function toggleBox(szDivID, iState){ // 1 visible, 0 hidden
   	if(document.layers){ //NN4+
      		document.layers[szDivID].display = iState ? "block" : "none";
   	}else if(document.getElementById){ //gecko(NN6) + IE 5+
   		var obj = document.getElementById(szDivID);
       	obj.style.display = iState ? "block" : "none";
  	 	}else if(document.all){	//IE 4
   		document.all[szDivID].style.display = iState ? "block" : "none";
   	}
}

function ckall(parent, pre, amount){
	var test = document.getElementById(parent).checked;
	for(var i=1; i<= amount; i++){
		var ele = pre+'_'+i;
		if(test)
			document.getElementById(ele).checked = true;
		else
			document.getElementById(ele).checked = false;
	}
}
function moveBox(e, divId) {
	var posx = 0;
	var posy = 0;
	if (!e) var e = window.event;
	
	if (e.pageX || e.pageY){
		posx = e.pageX;
		posy = e.pageY;
	}else if (e.clientX || e.clientY){
		posx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
	}
	document.getElementById(divId).style.left = posx + 10 + 'px';
	document.getElementById(divId).style.top = posy + 'px';
}
function changeMessage(iMessage, divId) {
	var message = new Array();
	message[0]='Header +++ Detail';
	var parts = new Array();
	parts = message[iMessage].split(' +++ ');
	mTitle = parts[0]; mBody = parts[1];
	var content = '<h1>Message</h1><h2>' + mTitle + ':</h2><p>' + mBody + '</p>';
	document.getElementById(divId).innerHTML = content;
	toggleBox(divId, 1);
}

// PRODUCT FEATURE SCRIPTS

var texts = new Array();
texts[1] = '<h3>Accessories</h3><p><span class=\"bold italic\">HUSKY®</span> offers a full line of accessories including strainers, top and ground covers, supply line brackets, tank racks and drain tube clamps.</p><p><a href=\"http://www.huskyportable.com/firefighting-accessories_id65.html\" title=\"Husky offers a full line of accessories for folding frame tanks\">Click here to Learn More!</a></p>';
texts[2] = '<h3><span class=\"bold italic\">HUSKY®</span> Quality</h3><p>We stand behind the quality of our Folding Frame Tanks with a lifetime warranty on all welds and welded seams.</p><p><a href=\"http://www.huskyportable.com/news_id102.php?article=16\" title=\"Read about Husky\'s® lifetime warranty on welds and welded seams.\">Click here to Learn More!</a></p>';
texts[3] = '<h3>Exclusive EXLON Liner</h3><p>We designed our EXLON® material with UV, heat, abrasion and puncture resistance, excellent cold cracking qualities and incredible strength.</p><p><a href=\"http://www.huskyportable.com/news_id102.php?article=10\" title=\"Read about Husky\'s® exclusive EXLON tank liner material.\">Click here to Learn More!</a></p>';
texts[4] = '<h3>Available in the Size You Need</h3><p><span class=\"bold italic\">HUSKY®</span> Folding Frame Tanks standard sizes range from 500 to 5000 gallons, but we can custom-design a tank to fit the size you need.</p><p><a href=\"#dimensions-anchor\" title=\"View standard sizes for Husky\'s® folding frame tanks.\">View Our Standard Dimensions</a></p>';
texts[5] = '<h3>Easy Lift Handles</h3><p><span class=\"bold italic\">Husky\'s®</span> heavy-duty Easy Lift handles attached to the floor of our Folding Frame tanks and make tank tear-down easier and faster.</p><p><a href=\"http://www.huskyportable.com/husky-easy-lift-handles_id111.html\" title="Read more about Husky\'s® Easy-Lift Handles">Click here to Learn More!</a></p>';
texts[6] = '<h3>Accessories</h3><p><span class=\"bold italic\">HUSKY®</span> offers a full line of accessories including strainers, top and ground covers, supply line brackets, tank racks and drain tube clamps.</p><p><a href=\"http://www.huskyportable.com/firefighting-accessories_id65.html\" title=\"Husky® offers a full line of accessories for self supporting tanks\">Click here to Learn More!</a></p>';
texts[7] = '<h3><span class=\"bold italic\">Husky®</span> Quality</h3><p>We stand behind the quality of our Self Supporting Tanks with a unprecedented lifetime warranty on all welds and welded seams.</p><p><a href=\"http://www.huskyportable.com/news_id102.php?article=16\" title=\"Read about Husky\'s® lifetime warranty on welds and welded seams.\">Click here to Learn More!</a></p>';
texts[8] = '<h3>Exclusive EXLON® Liner</h3><p>We designed our EXLON® material with UV, heat, abrasion and puncture resistance, excellent cold cracking qualities and incredible strength.</p><p><a href=\"http://www.huskyportable.com/news_id102.php?article=10\" title=\"Read about Husky\'s® exclusive EXLON® tank liner material.\">Click here to Learn More!</a></p>';
texts[9] = '<h3>Valves & Fittings</h3><p><span class=\"bold italic\">HUSKY®</span> can fit your Self Supporting tank with the perfect valves and fittings to meet your needs — special order fittings available.</p><p><a href=\"#fittings-anchor\" title=\"Read more about Husky\'s® valves and fittings for self supporting tanks.\">Click here to Learn More!</a></p>';
texts[10] = '<h3>Easy Lift Handles</h3><p><span class=\"bold italic\">Husky\'s®</span> heavy-duty Easy Lift handles attached to the sides and floor of our Self Supporting tanks and make tank tear-down easier and faster.</p><p><a href=\"http://www.huskyportable.com/husky-easy-lift-handles_id111.html\" title="Read more about HUSKY\'s® Easy-Lift Handles">Click here to Learn More!</a></p>';
texts[11] = '<h3><em>HUSKY</em> Quality</h3><p><span class=\"bold italic\">HUSKY®</span> Helicopter Tanks are precisely built with top quality, high grade materials. Each tank is tested and approved before shipping.</p><p><a href=\"http://www.huskyportable.com/news_id102.php?article=16\" title=\"Read about Husky\'s® lifetime warranty on welds and welded seams.\">Click here to Learn More!</a></p>';
texts[12] = '<h3>72 & 134 Gallon Helicopter Tanks</h3><p><strong><em>HUSKY\'s®</em></strong> two smaller Helicopter Tank models have a convenient tetrahedron shape and an attatched hose.</p><p><a href=\"#small-tank-anchor\" title=\"Read more about Husky\'s® smaller Helicopter Water tanks.\">Click here to Learn More!</a></p>';
texts[13] = '<h3>240 & 360 Gallon Helicopter Tanks</h3><p><strong><em>HUSKY\'s®</em></strong> two larger Helicopter Tank models are built with a round base and taper from bottom to top.</p><p><a href=\"#large-tank-anchor\" title=\"Read more about Husky\'s® larger Helicopter Water tanks.\">Click here to Learn More!</a></p>';
texts[14] = '<h3>Valves and Fittings</h3><p><span class=\"bold italic\">HUSKY®</span> Helicopter Tanks come with durable valves, fittings and spigots that are convenient and easy to use.</p><p><a href=\"#valve-anchor\" title=\"Read more about Husky\'s® fittings for their Helicopter Water tanks.\">Click here to Learn More!</a></p>';
texts[15] = '<h3>Standard Materials</h3><p>The standard material for <span class=\"bold italic\">Husky\'s®</span> Helicopter Water Tanks is a heavy duty reinforced pvc, but they have a potable material option as well.</p><p><a href=\"#materials-anchor\" title=\"Read more about Husky\'s® standard materials for their Helicopter Water tanks.\">Click here to Learn More!</a></p>';
texts[16] = '<h3>Aluminum Angle Berms</h3><p><span class=\"bold italic\">Husky\'s®</span> <a href=\"http://www.huskyportable.com/aluminum-angle-berms_id56.html\">Freedom Series IV</a> drive through berms and <a href=\"http://www.huskyportable.com/aluminum-angle-berms_id100.html\">Patriot Series</a> standard berms feature aluminum angle side walls. <span class=\"bold italic\">Husky®</span> Aluminum Angle Berms are easy to use with minimal set-up time.</p>';
texts[17] = '<h3>Self Rising Berms</h3><p><span class=\"bold italic\">Husky\'s®</span> Freedom Series III Berms feature self-rising walls that rise with the level of the liquid and can be driven over from any angle with no damage.</p><p><a href=\"http://www.huskyportable.com/self-rising-berms_id87.html\" title=\"Read about Husky\'s® self rising drive through berms.\">Click here to Learn More!</a></p>';
texts[18] = '<h3>Air Wall Berms</h3><p><span class=\"bold italic\">HUSKY\'s®</span> <a href=\"http://www.huskyportable.com/air-wall-berms_id54.html\">Freedom Series II</a> drive-through berms and <a href=\"http://www.huskyportable.com/continuous-air-chamber-berms_id57.html\">Eagle Series II</a> recovery berms feature air chamber walls equipped with a pressure relief valve to prevent over-inflation. These berms are very light and easy to set up.</p>';
texts[19] = '<h3>Foam Side Wall Berms</h3><p><span class=\"bold italic\">Husky®</span> foam wall berms contain minor drips and small capacity tanks and are designed for long life and less maintenance. They are very simple to use and set up is minimal.</p><p><a href=\"http://www.huskyportable.com/foam-wall-berms_id55.html\" title=\"Learn more about Husky® Foam Wall Berms.\">Click here to Learn More!</a></p>';
texts[20] = '<h3>Drive-Through Berms</h3><p><span class=\"bold italic\">Husky\'s®</span> Drive-Through Freedom Berms are the perfect solution when ease of operation is essential; no need to get out of your vehicle and break down walls to enter your berm.</p><p><a href=\"http://www.huskyportable.com/drive-through-berms_id53.htmll\" title=\"Read more about HUSKY\'s® Drive-Though Berms.\">Click here to Learn More!</a></p>';
texts[21] = '<h3>Accessories</h3><p><span class=\"bold italic\">HUSKY®</span> offers a full line of accessories, including bladder berms and liners, ground covers and &quot;Quick Fix&quot; Field Repair Kits.</p><p><a href=\"http://www.huskyportable.com/environmental-accessories_id79.html\" title=\"Husky® offers a full line of accessories for folding frame tanks\">Click here to Learn More!</a></p>';
texts[22] = '<h3><em>HUSKY</em> Quality</h3><span class=\"bold italic\">HUSKY\'s®</span> Bladder Tanks are precisely built with top quality, high grade materials. Each Bladder Tank is tested and approved before shipping.</p><p><a href=\"#testing-anchor\" title=\"Read more about Husky\'s® quality and testing standards on their Bladder Tanks.\">Click here to Learn More!</a></p>';
texts[23] = '<h3>Custom Designed to Meet Your Needs</h3><p>We can build your Bladder Tank taller, shorter, wider or longer with just about any fitting and valve configuration you can come up with.</p><p><a href=\"#custom-anchor\" title=\"Read more about custom options on a Husky® Bladder Tank.\">Click here to Learn More!</a></p>';
texts[24] = '<h3>Valves and Fittings</h3><p><span class=\"bold italic\">HUSKY®</span> has quality fittings for any requirement, whether it\'s gray water, black water, potable water, or fuel or other chemicals.</p><p><a href=\"#fittings-anchor\" title=\"Read more about valves and fittings options for Husky\'s® Bladder Tanks.\">Click here to Learn More!</a></p>';
texts[25] = '<h3>Multi-Purpose Liquid Storage Tanks</h3><p><span class=\"bold italic\">HUSKY®</span> Bladder Tanks have been used for many purposes, from jet fuel storage to transporting drinking water for disaster victims.</p><p><a href=\"#liquid-anchor\" title=\"Read more about the many practical uses for a Husky® Bladder Tank.\">Click here to Learn More!</a></p>';
texts[26] = '<h3>Accessories</h3><p><span class=\"bold italic\">HUSKY\'s®</span> offers a full line of accessories including strainers, top and ground covers, supply line brackets, tank racks and drain tube clamps.</p><p><a href=\"http://www.huskyportable.com/firefighting-accessories_id65.html\" title=\"Husky® offers a full line of accessories for their Bladder Tanks.\">Click here to Learn More!</a></p>';
texts[27] = '<h3><em>HUSKY®</em> Quality</h3>We stand behind the quality of our Aqua Tanks with a lifetime warranty on all welds and welded seams.</p><p><a href=\"http://www.huskyportable.com/news_id102.php?article=16\" title=\"Read more about Husky\'s® lifetime warranty on welds and welded seams for Aqua Tanks.\">Click here to Learn More!</a></p>';
texts[28] = '<h3>Exclusive EXLON® Liner</h3><p>We designed our EXLON® material with UV, heat, abrasion and puncture resistance, excellent cold cracking qualities and incredible strength.</p><p><a href=\"http://www.huskyportable.com/news_id102.php?article=10\" title=\"Read more about Husky\'s® new EXLON® tank liner material.\">Click here to Learn More!</a></p>';
texts[29] = '<h3>Easy to Assemble</h3><p>The top and bottom rails of our AQUA tanks types II and III lock in place at the corners with high-quality stainless steel spring snaps. No pins, no hassle — no tools needed!</p>';
texts[30] = '<h3>Easy to Drain</h3> <p><span class=\"bold italic\">HUSKY\'s®</span> AQUA tanks come standard with a 10" quick-release drain tube with an easy pull-through strap. Tanks over 2000 gallons come with two drain tubes. Custom fittings and valves are available.</p>';
texts[31] = '<h3><em>HUSKY®</em> Quality</h3>Husky Oil Booms are designed without compromise with high tensile strength, heavy-duty ballast chain and strong connection points.</p><p><a href=\"http://www.huskyportable.com/news_id102.php?article=16\" title=\"Read more about Husky\'s® lifetime warranty on welds and welded seams for Aqua Tanks.\">Read about our Lifetime Warranty!</a></p>';
texts[32] = '<h3><em>HUSKY®</em> V6 Oil Containment Boom</h3><p><span class=\"bold italic\">HUSKY\'s®</span> V6 oil boom is an 18" economical and common answer to spills in moderate to choppy waters.</p><p><a href=\"#v6-anchor\" title=\"Read more about Husky\'s® V6 Oil Containment Booms.\">Click here to Learn More!</a></p>';
texts[33] = '<h3><em>HUSKY®</em> V8 Oil Containment Boom</h3><p><span class=\"bold italic\">HUSKY\'s®</span> V8 oil boom is a 24" high performance barrier and is the answer to spills in slightly choppy to rough waters.</p><p><a href=\"#v8-anchor\" title=\"Read more about Husky\'s® V8 Oil Containment Booms.\">Click here to Learn More!</a></p>';
texts[34] = '<h3><em>HUSKY®</em> V12 Oil Containment Boom</h3> <p><span class=\"bold italic\">HUSKY\'s®</span> V12 oil boom is a 36" super duty barrier and is best utilized in open waters and ocean environments.</p><p><a href=\"#v12-anchor\" title=\"Read more about Husky\'s® V12 Oil Containment Booms.\">Click here to Learn More!</a></p>';
texts[35] = '<h3>Price Reduced!</h3><p>This oil boom is priced to move quickly, and we currently have over 35,000 feet of boom in stock ready to be shipped.</p><p><a href=\"#pricing-anchor\" title=\"Read more about special pricing on Husky\'s® Oil Containment Booms.\">Click here to Learn More!</a></p>';
texts[36] = '<h3>Custom Portable Tanks</h3><p>We can custom-design your prefect frame tank, self-supporting tank or bladder tank. This Wash Tank is custom-built with one low side-wall, making it perfect for pressure spraying equipment.</p>';
texts[37] = '<h3>Custom Accessories</h3><p>This low-level strainer is attached to the inside of a <span class=\"bold italic\">Husky®</span> Self Supporting Tank and allows a pumper truck to draft water down to two or three inches.</p>';
texts[38] = '<h3>Custom Valves & Fittings</h3><p>We can customize your Folding Frame Tanks, AQUA Tanks, Bladder Tanks, Helicopter Water Tanks, Flexible Frac Tanks and Self Supporting Tanks with whatever fittings you need.</p>';
texts[39] = '<h3>Specialty Items</h3> <p><span class=\"bold italic\">Husky®</span> has manufactured a wide range of specialty items, including this catch ring that was used as a movie prop.</p><p><a href=\"http://www.huskyportable.com/specialty-items_id39.html\" title=\"Read more about Husky\'s® Specialty Items.\">Read more about our Specialty Items</a></p>';
texts[40] = '<h3>Custom Tarps & Covers</h3><p><span class=\"bold italic\">Husky®</span> can make a tarp or cover that does whatever you need it to.<br />You choose the size, color, grommet placement, material and special labeling.</p><p><a href=\"http://www.huskyportable.com/covers-tarps-staging-mats_id70.html\" title=\"View Husky® tarps, covers and staging mats.\">View our Tarps, Covers and Staging Mats</a></p>';


function interAct(id, action, left, top) {
	var aspectDiv = document.getElementById('aspect-text');
	var arrow = document.getElementById('arrow-accessories');
	var leftpos = left+'px';
	var toppos = top+'px';
	if (action=='over') {
		aspectDiv.innerHTML = texts[id];
		arrow.style.marginLeft = leftpos;
		arrow.style.marginTop = toppos;
		arrowstate = 'flex';
	}
	else if (action=='out' && arrowstate=='flex') {
		aspectDiv.innerHTML = texts[id];
		arrow.style.marginLeft = leftpos;
		arrow.style.marginTop = toppos;
	}
	else if (action=='click') {
		arrowstate = 'fixed';
		aspectDiv.innerHTML = texts[id];
		arrow.style.marginLeft = leftpos;
		arrow.style.marginTop = toppos;
	}
}


