base = "IcyHot/";
if (document.images)
{
 tvspot1on = new Image();
 tvspot1on.src="images/TVSpot1On.gif";  
 tvspot1off = new Image();
 tvspot1off.src="images/TVSpot1Off.gif";  

 tvspot2on = new Image();
 tvspot2on.src="images/TVSpot2On.gif";  
 tvspot2off = new Image();
 tvspot2off.src="images/TVSpot2Off.gif";  

 tvspot3on = new Image();
 tvspot3on.src="images/TVSpot3On.gif";  
 tvspot3off = new Image();
 tvspot3off.src="images/TVSpot3Off.gif";  

 seemoreon = new Image();
 seemoreon.src="landing/seemoreon.gif";  
 seemoreoff = new Image();
 seemoreoff.src="landing/seemoreoff.gif";  

 productpatch = new Image(103,96);
 productpatch.src="images/navProductPatch.gif";
 productsleeve = new Image(103,96);
 productsleeve.src="images/navProductSleeve.gif";
 productcream = new Image(103,96);
 productcream.src="images/navProductCream.gif";
 productbalm = new Image(103,96);
 productbalm.src="images/navProductBalm.gif";
 productheat = new Image(103,96);
 productheat.src="images/navProductHeat.gif";
 productpro = new Image(103,96);
 productpro.src="images/navProductPro.gif";
 
 patchon = new Image(103,33);
 patchon.src="images/navPatchOn.gif";  
 patchoff = new Image(103,33);
 patchoff.src="images/navPatchOff.gif";  
  
 sleeveon = new Image(103,33);
 sleeveon.src="images/navSleeveOn.gif";  
 sleeveoff = new Image(103,33);
 sleeveoff.src="images/navSleeveOff.gif";  

 creamon = new Image(103,33);
 creamon.src="images/navcreamOn.gif";  
 creamoff = new Image(103,33);
 creamoff.src="images/navcreamOff.gif";  

 balmon = new Image(103,33);
 balmon.src="images/navbalmOn.gif";  
 balmoff = new Image(103,33);
 balmoff.src="images/navbalmOff.gif";  

 heaton = new Image(103,33);
 heaton.src="images/navheatOn.gif";  
 heatoff = new Image(103,33);
 heatoff.src="images/navheatOff.gif";  

 VanishingScentGelon = new Image(103,48);
 VanishingScentGelon.src="images/navVanishingGelOn.gif";  
 VanishingScentGeloff = new Image(103,48);
 VanishingScentGeloff.src="images/navVanishingGelOff.gif";  

 proon = new Image(103,33);
 proon.src="images/navproOn.gif";  
 prooff = new Image(103,33);
 prooff.src="images/navproOff.gif";  

 navhomeon = new Image();
 navhomeon.src="images/navhomeOn.gif";  
 navhomeoff = new Image();
 navhomeoff.src="images/navhomeOff.gif";  

 navtestimonialson = new Image();
 navtestimonialson.src="images/navTestimonialsOn.gif";  
 navtestimonialsoff = new Image();
 navtestimonialsoff.src="images/navTestimonialsOff.gif";  

 navwhereon = new Image();
 navwhereon.src="images/navwhereOn.gif";  
 navwhereoff = new Image();
 navwhereoff.src="images/navwhereOff.gif";  

 navmoreon = new Image();
 navmoreon.src="images/navmoreOn.gif";  
 navmoreoff = new Image();
 navmoreoff.src="images/navmoreOff.gif";  

 navmediaon = new Image();
 navmediaon.src="images/navmediaOn.gif";  
 navmediaoff = new Image();
 navmediaoff.src="images/navmediaOff.gif";  

 navsundayon = new Image();
 navsundayon.src="images/navsundayOn.gif";  
 navsundayoff = new Image();
 navsundayoff.src="images/navsundayOff.gif";  

 slideouta1on = new Image();
 slideouta1on.src="images/slideouta1On.gif";  
 slideouta1off = new Image();
 slideouta1off.src="images/slideouta1Off.gif";  

 slideouta2on = new Image();
 slideouta2on.src="images/slideouta2On.gif";  
 slideouta2off = new Image();
 slideouta2off.src="images/slideouta2Off.gif";  

 slideouta3on = new Image();
 slideouta3on.src="images/slideouta3On.gif";  
 slideouta3off = new Image();
 slideouta3off.src="images/slideouta3Off.gif";  

 slideoutb1on = new Image();
 slideoutb1on.src="images/slideoutb1On.gif";  
 slideoutb1off = new Image();
 slideoutb1off.src="images/slideoutb1Off.gif";  

 slideoutb2on = new Image();
 slideoutb2on.src="images/slideoutb2On.gif";  
 slideoutb2off = new Image();
 slideoutb2off.src="images/slideoutb2Off.gif";
 
 slideoutc1on = new Image();
 slideoutc1on.src="images/slideoutc1On.gif";  
 slideoutc1off = new Image();
 slideoutc1off.src="images/slideoutc1Off.gif";  

 slideoutc2on = new Image();
 slideoutc2on.src="images/slideoutc2On.gif";  
 slideoutc2off = new Image();
 slideoutc2off.src="images/slideoutc2Off.gif";
 
 slideoutd1on = new Image();
 slideoutd1on.src="images/slideoutd1On.gif";  
 slideoutd1off = new Image();
 slideoutd1off.src="images/slideoutd1Off.gif";  

 slideoutd2on = new Image();
 slideoutd2on.src="images/slideoutd2On.gif";  
 slideoutd2off = new Image();
 slideoutd2off.src="images/slideoutd2Off.gif";

 homepic1on = new Image();
 homepic1on.src="images/HomeXLAcheOn.gif";  
 homepic1off = new Image();
 homepic1off.src="images/HomeXLAcheOff.gif";
 
 homepic2on = new Image();
 homepic2on.src="images/HomeHeatItOn.gif";  
 homepic2off = new Image();
 homepic2off.src="images/HomeHeatItOff.gif";
 
 homepic3on = new Image();
 homepic3on.src="images/Home5TipsOn.gif";  
 homepic3off = new Image();
 homepic3off.src="images/Home5TipsOff.gif";
 
 homepic4on = new Image();
 homepic4on.src="images/HomeWhereHurtOn.gif";  
 homepic4off = new Image();
 homepic4off.src="images/HomeWhereHurtOff.gif";
 
 buynowon = new Image();
 buynowon.src="images/logo/buynowon.gif";  
 buynowoff = new Image();
 buynowoff.src="images/logo/buynowoff.gif";

 
 titlecreamon = new Image();
 titlecreamon.src="images/logo/TitleCreamOff.gif";  
 titlecreamoff = new Image();
 titlecreamoff.src="images/logo/TitleCreamOn.gif";
 
 titlebalmon = new Image();
 titlebalmon.src="images/logo/TitleBalmStick.gif";  
 titlebalmoff = new Image();
 titlebalmoff.src="images/logo/TitleBalmStickOn.gif";
 
 TitleArmNeckLegPatchon = new Image();
 TitleArmNeckLegPatchon.src="images/logo/TitleArmNeckLegPatchoff.gif";  
 TitleArmNeckLegPatchoff = new Image();
 TitleArmNeckLegPatchoff.src="images/logo/TitleArmNeckLegPatchon.gif";
  
 TitleBackPatchon = new Image();
 TitleBackPatchon.src="images/logo/TitleBackPatchon.gif";  
 TitleBackPatchoff = new Image();
 TitleBackPatchoff.src="images/logo/TitleBackPatchoff.gif";
 
 TitleLargeSleeveon = new Image();
 TitleLargeSleeveon.src="images/logo/TitleLargeSleeveoff.gif";  
 TitleLargeSleeveoff = new Image();
 TitleLargeSleeveoff.src="images/logo/TitleLargeSleeveon.gif";
 
 TitleSmallSleeveon = new Image();
 TitleSmallSleeveon.src="images/logo/TitleSmallSleeveoff.gif";  
 TitleSmallSleeveoff = new Image();
 TitleSmallSleeveoff.src="images/logo/TitleSmallSleeveon.gif";

}

var timeout1, timeout2, timeout3, timeout4, prodflag ;

prodflag=0;

function slideover(name,menunum)
{
if (menunum==1 && timeout1) clearTimeout(timeout1);
if (menunum==2 && timeout2) clearTimeout(timeout2);
if (menunum==3 && timeout3) clearTimeout(timeout3);
if (menunum==4 && timeout4) clearTimeout(timeout4);
over1(name);
return 0;
}

function over(name)
{
prodflag=0;
over1(name);

eval("document.images['products'].src = product" + name +".src");

if (name == "patch")
	{
	clearTimeout(timeout1);
	document.getElementById("menu1").style.visibility = "visible";
	}

// if (name == "sleeve")
//	{
//	clearTimeout(timeout2);
//	document.getElementById("menu2").style.visibility = "visible";
//
//	}
if (name == "heat")
	{
	clearTimeout(timeout3);
	document.getElementById("menu3").style.visibility = "visible";
	}
return 0;
}

function over1(name)
{
eval("document.images['" +name+ "'].src = " + name +"on.src");
document.images[name].style.cursor="pointer";

if (name == "navmore")
	{
	clearTimeout(timeout4);
	document.getElementById("menu4").style.visibility = "visible";
	}
return 0;
}

function slideout(name,n)
{
prodflag=1;
if (n==1) timeout1 = setTimeout("hide('menu1','patch')",010);
if (n==2) timeout2 = setTimeout("hide('menu2','sleeve')",010);
if (n==3) timeout3 = setTimeout("hide('menu3','heat')",010);
if (n==4) timeout4 = setTimeout("hide('menu4','navmore')",010);
out(name);
return 0;
}

function outdelay(name)
{
prodflag = 1;
if (name=="patch")  	timeout1 = setTimeout("hide('menu1','" +name+ "')",010);
if (name=="sleeve") 	timeout2 = setTimeout("hide('menu2','" +name+ "')",010);
if (name=="heat")  	timeout3 = setTimeout("hide('menu3','" +name+ "')",010);
if (name=="navmore") timeout4 = setTimeout("hide('menu4','" +name+ "')",010);

 return 0;
}

function out(name)
{
imgOff = eval(name + "off.src");
document.images[name].src=imgOff;
document.images[name].style.cursor="default";
return 0;
}

function outprod(name)
{
out(name);
document.images["products"].src="images/navProducts.gif";
return 0;
}

function hide(menu,name)
{
 document.getElementById(menu).style.visibility = "hidden";
 if (prodflag)
 document.images["products"].src="images/navProducts.gif";
 out(name);
 return 0;
}

function myclick(name)
{
if(name=="slideouta1") location = "pagepatchxlback.html";
if(name=="slideouta2") location = "pagepatchback.html";
if(name=="slideouta3") location = "pagepatcharmneck.html";
if(name=="slideoutb1") location = "pagesleevelarge.html";
if(name=="slideoutb2") location = "pagesleevesmall.html";
if(name=="slideoutc1") location = "pageheatback.html";
if(name=="slideoutc2") location = "pageheatarmneck.html";
if(name=="patch") location = "pagepatchxlback.html";
if(name=="sleeve") location = "pagesleevelarge.html";
if(name=="heat") location = "pageheatback.html";
if(name=="VanishingScentGel") location = "pagevanishingscentgel.html";
if(name=="cream") location = "pagecream.html";
if(name=="balm") location = "pagebalm.html";
//if(name=="pro") location = "pagepro.html";
if(name=="navhome") location = "HomePage.html";
if(name=="navtestimonials") location = "testimonials.html";
if(name=="navwhere") location = "wheretoretail.html";
if(name=="navmedia") location = "media.html";
if(name=="navsunday") location = "navsunday.html";
if(name=="slideoutd1") location = "morehowicyhot.html";
if(name=="slideoutd2") location = "moreforprofs.html";
if(name=="tvspot1") popup("tvspot1.html");
if(name=="tvspot2") popup("tvspot2.html");
if(name=="tvspot3") popup("tvspot3.html");
if(name=="homepic1") location = "pagepatchxlback.html";
if(name=="homepic2") location = "pageheatback.html";
if(name=="homepic3") location = "tipstoc.html";
if(name=="homepic4") location = "wheredoesithurt.html";
if(name=="seemore") location = "homepage.html";
if(name=="buynow") location = "wheretoretail.html";
if(name=="titlecream") location = "wheretoretail.html";
if(name=="titlebalm") location = "wheretoretail.html";
if(name=="TitleArmNeckLegPatch") location = "wheretoretail.html";
if(name=="TitleLargeSleeve") location = "wheretoretail.html";
if(name=="TitleSmallSleeve") location = "wheretoretail.html";
return 0;
}

function leave(name)
{
// chattem, disclaimer, privacy, pro, mailorder
window.open("PopupExit.html",name,"width=782,height=561,toolbar=no");
return 1;
}

function popup(webpage,ht)
{
// drugfacts, tv spots
window.open(webpage,"popup","width=782,height=561");
return 1;
}

function glossary(name)
{
// glossary
window.open("glossary.html#" + name,"popup","width=795,height=600, scrollbars=1");
return 0;
}

