// showroom.js

//custom object constructor
function imageSet(id,src,type,capt){
	this.id = id;
	this.src = src;
	this.type = type;
	this.capt = capt;
}

var curImg = 0;
var showbtnN = false;

var images = new Array();
images[0] = new imageSet("p1","images/001-Pressure-Formed.jpg","products","The window, vents, and large hole are formed by the pressure form mold, reducing secondary labor and keeping the price low.");
images[1] = new imageSet("p2","images/002-Vacuum-Formed.jpg","products","This vacuum formed part is made from medical grade clear polycarbonate with a color matched flame retardant ABS insert. This product is found in hospitals worldwide.");
images[2] = new imageSet("p3","images/003-Pressure-Formed.jpg","products","The level of detail is high on this front panel. The texture and color are achieved by finishing the part with paint.");
images[3] = new imageSet("p4","images/004-Vacuum-Formed.jpg","products","The shape of the clear faceplate is blown by air.  Made from polycarbonate material, otherwise known as &ldquo;bulletproof glass,&rdquo; it is nearly indestructible.");
images[4] = new imageSet("p5","images/005-Pressure-Formed.jpg","products","The pocket details and handle shown here are formed by the mold.  We guarantee our aluminum molds to last until you don’t need them anymore.");
images[5] = new imageSet("p6","images/006-Pressure-Formed.jpg","products","The pressure formed assembly shown here stands over four feet tall.  We are capable of making pressure formed parts up to 48&rdquo; x 96&rdquo; x 36&rdquo; deep.");
images[6] = new imageSet("p7","images/021-Pressure-Formed.jpg","products","The light pipe locations are formed into the mold, reducing secondary labor and part price. This part is finished with two paint colors and two silkscreen colors for a truly custom look.");
images[7] = new imageSet("p8","images/008a-Vacuum-Formed.jpg","products","H&amp;S Products manufactures the clear packaging part surrounding the black injection molded part, supplied by another vendor.  We offer lower volume packaging solutions with starting gauges of .030 inches and up.");
images[8] = new imageSet("p9","images/008b-Vacuum-Formed.jpg","products","The clear PETG packaging surrounds the fragile electrical components of the black part, creating a water-tight seal and protection from the elements.");
images[9] = new imageSet("p10","images/009-Pressure-Formed.jpg","products","H&amp;S Products can put your logo and name right into the part!  The embossed and repousséd logos on this assembly are formed by the pressure form mold, eliminating the additional costs associated with other ways of getting your name on there.<br>But if you still need a silkscreened or pad printed look, we can help with that too.");
images[10] = new imageSet("p11","images/010-Pressure-Formed.jpg","products","We manufactured this part using flame retardant ABS material with a UL 94-V0 listing, and it will self-extinguish if it catches on fire.  ");
images[11] = new imageSet("p12","images/011-Pressure-Formed.jpg","products","This product is finished with Electromagnetic Interference (EMI) shielding, so static electricity cannot damage the components inside.");
images[12] = new imageSet("p13","images/012-Vacuum-Formed.jpg","products","This dashboard for a motorcycle videogame is an example of a distortion printed vacuum formed part.  The plastic sheet is silkscreened with carbon fiber artwork before being formed into a finished piece.");
images[13] = new imageSet("p14","images/013-Pressure-Formed.jpg","products","The repousséd logo is formed directly into the part by the pressure form mold at the same time the rest of the part is formed.");
images[14] = new imageSet("p15","images/014-Pressure-Formed.jpg","products","This part is finished with Class A Smooth paint.");
images[15] = new imageSet("p16","images/015-Pressure-Formed.jpg","products","H&amp;S Products can help save you money by eliminating secondary procedures: the vents featured on the rear of this part are formed in by the mold.");
images[16] = new imageSet("p17","images/016-Pressure-Formed.jpg","products","A typical pressure formed part manufactured in the USA by H&amp;S Products.");
images[17] = new imageSet("p18","images/017a-Pressure-Formed.jpg","products","This pressure formed part is painted and silkscreened multiple colors for a custom finish.");
images[18] = new imageSet("p19","images/017b-Pressure-Formed.jpg","products","H&amp;S Products built the tooling 100% in-house for this part and all other parts found on <a href=\"http://www.hsproducts.com\">www.hsproducts.com</a>.  We guarantee the tooling for the life of the part, or we rebuild it for free.");
images[19] = new imageSet("p20","images/018-Vacuum-Formed.jpg","products","Vacuum formed shield measuring 14&rdquo; depth of draw. The PETG material has chemical resistance, perfect for the see-through lab equipment shield seen here.");
images[20] = new imageSet("p21","images/019-Pressure-Formed.jpg","products","A small, simple pressure formed bezel with crisp lines and details.<br>H&amp;S Products brings even the simplest enclosure ideas to life with a 5 week standard first article lead time.");
images[21] = new imageSet("p22","images/020-Vacuum-Formed.jpg","products","This slot machine display is another example of a distortion printed vacuum formed part.  The plastic sheet is silkscreened with the colors and numbers before being formed into a finished piece.");
images[22] = new imageSet("p23","images/007-Pressure-Formed.jpg","products","Zero draft? Zero problem! Straight lines with no draft angles are easy with pressure forming.");
images[23] = new imageSet("p24","images/022-Pressure-Formed.jpg","products","A variety of vent options can be formed directly into the part, helping your components breathe fresh air.");
images[24] = new imageSet("p25","images/023-Vacuum-Formed.jpg","products","This light manifold is a hidden part.  By vacuum forming it, we can keep your start-up costs to a minimum.");
images[25] = new imageSet("p26","images/024-Vacuum-Formed.jpg","products","A vacuum formed part with generous radiuses.  ");
images[26] = new imageSet("p27","images/025-Vacuum-Formed.jpg","products","A simple enclosure finished with Class A Smooth paint.");
images[27] = new imageSet("p28","images/026-Vacuum-Formed.jpg","products","Same part, same mold, different colors. Paint lets you be versatile in manufacturing different looking items, even if it's the same part.<br>However, we can form parts using color-matched material too, if that's what you need.");
images[28] = new imageSet("p30","images/028-Vacuum-Formed.jpg","products","100% optically clear and distortion free, this drape formed acrylic part houses lab equipment for a cancer research company.");
images[29] = new imageSet("p31","images/Z01.jpg","products","This prototype was completed from a large model in 3 weeks using temporary fiberglass tooling. It is over 6 feet tall.");
images[30] = new imageSet("p32","images/030-Vacuum-Formed.jpg","products","This part measures 30&rdquo; x 30&rdquo; x 17&rdquo; deep. We can form a single part as large as 48&rdquo; x 96&rdquo; x 36&rdquo; deep or 84&rdquo; x 84&rdquo; x 48&rdquo; deep.");
images[31] = new imageSet("p33","images/031-Pressure-Formed.jpg","products","H&amp;S Products manufactures 32 pressure formed parts for this Open End MRI assembly. Out of the 16,000 parts shipped, none have been rejected by the customer for any quality related reason.");
images[32] = new imageSet('t1',"images/tooling1.jpg","tooling","");
images[33] = new imageSet("t2","images/tooling2.jpg","tooling","");
images[34] = new imageSet("t3","images/tooling3.jpg","tooling","");
images[35] = new imageSet("t4","images/tooling4.jpg","tooling","");
images[36] = new imageSet("t5","images/tooling5.jpg","tooling","");
images[37] = new imageSet("t6","images/tooling6.jpg","tooling","");
images[38] = new imageSet("t7","images/tooling7.jpg","tooling","");
images[39] = new imageSet("t8","images/tooling8.jpg","tooling","");
images[40] = new imageSet("t9","images/tooling9.jpg","tooling","");
images[41] = new imageSet("t10","images/Z05.jpg","tooling","Our tooling manager prepares the VMX84 to cut metal as large as 84&rdquo; x 34&rdquo; x 30&rdquo; with a single setup as well as larger pieces of metal with multiple setups.");
images[42] = new imageSet("t11","images/Z06.jpg","tooling","H&amp;S Products molds are created from machined aluminum and will last the life of the part.");
images[43] = new imageSet("t12","images/Z07.jpg","tooling","The molds made for your parts can be as shallow as 0.5&rdquo; (as shown) or as deep as 48&rdquo;.");
images[44] = new imageSet("f1","images/facility1.jpg","facility","");
images[45] = new imageSet("f2","images/facility2.jpg","facility","");
images[46] = new imageSet("f3","images/facility3.jpg","facility","");
images[47] = new imageSet("f4","images/facility4.jpg","facility","");
images[48] = new imageSet("f5","images/facility5.jpg","facility","");
images[49] = new imageSet("f6","images/facility6.jpg","facility","");
images[50] = new imageSet("f7","images/facility7.jpg","facility","");
images[51] = new imageSet("f8","images/facility8.jpg","facility","");
images[52] = new imageSet("f9","images/facility9.jpg","facility","");
images[53] = new imageSet("f10","images/facility10.jpg","facility","");
images[54] = new imageSet("f11","images/facility11.jpg","facility","");
images[55] = new imageSet("f12","images/facility12.jpg","facility","");
images[56] = new imageSet("f14","images/Z02.jpg","facility","These pressure formed parts are showing off their top vents and handle as well as a white silk screened stripe down the side.");
images[57] = new imageSet("f15","images/Z03.jpg","facility","<b>Upper left:</b> The male mold is vacuum forming a shape. <b>Upper right:</b> The part takes shape as it cools on the mold. <b>Bottom:</b> The cool piece is automatically ejected and ready to trim.");
images[58] = new imageSet("f16","images/Z04.jpg","facility","These unenclosed CNC mills are used for trimming critical areas on pressure and vacuum formed parts.");
images[59] = new imageSet("f17","images/Z08.jpg","facility","H&amp;S Products offers low-volume vacuum formed packaging with less starting costs than competing methods.");

function showBigPic(num){
	var obj = document.getElementById('bigImg');
	//var topObj = document.getElementById('abovepic');
	var capObj = document.getElementById('belowpic');
	// find the new image from the roll over id
	for(var i=0; i < images.length; i++){
		var normal = images[i].id;
		if(num == normal){
			curImg = i;
			var theImg = images[i].src;
			//var theMessage = images[i].type;
			var theCaption = images[i].capt;
			var msg = "<a href='javascript://' onclick='shownext("+curImg+");'><img src=" + theImg +" border='0' alt='' class='bigImg'/></a>";
			//var topmsg = "<p>"+theMessage+"</p>";
			var botmsg = "<p>"+theCaption+"</p>";
			obj.innerHTML = msg;
			//topObj.innerHTML = topmsg;
			capObj.innerHTML = botmsg;
			}
	}
}

function start(){
	var obj = document.getElementById('one');
	var obj2 = document.getElementById('two');
	var obj3 = document.getElementById('three');
	var obj4 = document.getElementById('totload');
	var obj5 = document.getElementById('loading');
	obj.style.display = "block";
	obj2.style.display = "block";
	obj3.style.display = "block";
	obj4.style.visibility = "visible";
	obj5.style.display = "none";
}

function shownext(num){
	var obj = document.getElementById('bigImg');
	var capObj = document.getElementById('belowpic');
	var curNum = num;
	var nextNum = curImg + 1;
	if(!images[nextNum]){
		curImg = 0;
	} else {
		curImg++;
		var i = curImg;
		var theId = images[i].id;
		var theCaption = images[i].capt;
		var botmsg = "<p>"+theCaption+"</p>";
		var theImg = images[i].src;
		var msg = "<a href='javascript://' onclick='shownext("+curImg+");'><img src=" + theImg +" border='0' alt='' class='bigImg'/></a>";
		obj.innerHTML = msg;
		//topObj.innerHTML = topmsg;
		capObj.innerHTML = botmsg;
	}
}
