	var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
	var thefile = location.href.substring(dir.length,location.href.length+1);

_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=40                // Follow scrolling Rate
_subOffsetTop=0              // Sub menu top offset
_subOffsetLeft=-2            // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x

//*----------------------------------------------
//*  MENU STYLE for MAIN HORIZONTAL MENU
//*----------------------------------------------
with(menuStyle=new mm_style()){
onbgcolor="#000000";  // almost black #292728
oncolor="#FFFFFF";
offbgcolor="#FEA502";  // Orange 	
offcolor="#000000";
onborder="1px solid #000000";
bordercolor="#666666";
borderstyle="solid";
borderwidth=1;
separatorcolor="#F2F2F2";
separatorsize="0";
padding=1;  		// pad evenly on 4 sides
//padding="3,9,3,9";  //* top, right, bottom, left - Doesn't work in Mozilla or Opera
fontsize="9 px";
fontstyle="normal";  // or italicc
//fontweight="bold";
fontfamily="Verdana, Tahoma, Arial";
align="center";
pagecolor="#FFFFFF";
pagebgcolor="#000000";  // black
pageborder="1px solid #043914";   
headercolor="#000000";
headerbgcolor="#ffffff";
//subimage="arrow.gif";
subimagepadding="2";
//offbgcolor="transparent";
overfilter="Fade(duration=0.2);Alpha(opacity=99);Shadow(color='#AAAAAA', Direction=180, Strength=3)";
outfilter="randomdissolve(duration=0.3)";
}

//*----------------------------------------------
//*  MENU STYLE for all SUB Menus
//*----------------------------------------------
with(subMenuStyle=new mm_style()){
onbgcolor="#FEA502";  // almost black #292728
oncolor="#000000";
offbgcolor="#000000";  // Orange 	
offcolor="#FFFFFF";
bordercolor="#666666";	//* Grey
borderstyle="solid";
borderwidth=1;
separatorcolor="#AD9B85";	 
separatorsize="1";
padding=3;
// padding="3,3,3,3";  //* top, right, bottom, left.   Does not work in Mozilla or Opera
fontsize="10px";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="#000000";	//* Text. Page being displayed.
pagebgcolor="#D3C9BC";	 
pageborder="1px solid #333333";
headercolor="#F1C375";   //* Redish Text  
headerbgcolor="#C41B1B"; //* Beige background 
subimage="arrow.gif";
subimagepadding="2,0,0,0";  //* top, right, bottom, left
subimageposition = "top";
overfilter="Fade(duration=0.2);Alpha(opacity=95);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}
//*----------------------------------------------
//*  MENU STYLE for POPUPS - PDF
//*----------------------------------------------
with(menuStylePOPUP=new mm_style()){
onbgcolor="#E8EFF5";
oncolor="#000000";
offbgcolor="#E8EFF5";
offcolor="#000000";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=5;
fontsize="11px";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#FFD400";
subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=100);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}
//*----------------------------------------------
//*  MENU STYLE for FLOATING "TOP"  
//*----------------------------------------------
with(menuStyleTop=new mm_style()){
onbgcolor="#0A4696";
oncolor="#FFFFFF";
offbgcolor="#FFFFFF";
offcolor="#515151";
bordercolor="#DDDDDD";
borderstyle="solid";
borderwidth=1;
separatorcolor="#FFB578";
separatorstyle="solid";
separatorsize="1";
padding=0;
fontsize="10px";
fontstyle="normal";
fontfamily="Arial, Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#FFEFDF";
}

//*----------------------------------------------
//*  MAIN HORIZONTAL MENU 
//*----------------------------------------------
with(milonic=new menuname("header")){
style=menuStyle;
//left=100;
menuwidth=619;
top=117;
screenposition="center"; // left or center
//position="relative"; 
alwaysvisible=1;
orientation="horizontal";
// onfunction=showtip('Latest additions to the web site');   <--- Tooltip example

if (thefile.substring(0,"home".length) == "home"  )	{
	aI("text=&nbsp;;itemwidth=55;type=header;headercolor=#FEA502;headerbgcolor=#FEA502;");
}	
else {
	aI("text=HOME;itemwidth=55;url=" + htmldir  + "home.asp;");
}	
aI("text=ABOUT<br>US;itemwidth=66;url=" + htmldir  + "about.asp;");
aI("text=COMFORT<br>& SAVINGS;itemwidth=80;url=" + htmldir  + "comfort.asp;");
aI("text=INFRARED<br>HEATERS;itemwidth=90;url=" + htmldir  + "heaters.asp;showmenu=heaters;");
aI("text=PUBLISHED<br>INFO;itemwidth=80;url=" + htmldir  + "pubinfo.asp;showmenu=pubinfo;");
aI("text=INITIATE<br>DESIGN;itemwidth=80;url=" + htmldir  + "initorder.asp");
aI("text=FAQ;url=" + htmldir  + "faq.asp;itemwidth=64");
aI("text=CONTACT;itemwidth=72;url=" + htmldir  + "contact.asp;");
//aI("text=CONTACT;itemwidth=72;url=" + htmldir  + "contact.asp;;showmenu=contact;");
//aI("text=;type=header;headercolor=#292728;headerbgcolor=#292728;");
}
//*----------------------------------------------
//*  HEATERS SUB MENU
//*----------------------------------------------
with(milonic=new menuname("heaters")){
style=subMenuStyle;
aI("text=Introduction;url=" + htmldir  + "heaters.asp;");
aI("text=Tube Heaters;url=" + htmldir  + "tube.asp;");
aI("text=Luminous Heaters;url=" + htmldir  + "luminous.asp;");
aI("text=Patio & Car Wash;url=" + htmldir  + "patio.asp;");
aI("text=Construction Heaters;url=" + htmldir  + "construction.asp;");
aI("text=Case Studies;url=" + htmldir  + "case-studies.asp;");
aI("text=Newsletters;url=" + htmldir  + "newsletters.asp;");
}
//*----------------------------------------------
//*  PUBINFO SUB MENU
//*----------------------------------------------
with(milonic=new menuname("pubinfo")){
style=subMenuStyle;
aI("text=Introduction;url=" + htmldir  + "pubinfo.asp;");
//aI("text=North & South America;type=header;headerbgcolor=#FFAE33" );
aI("text=Login / Update Account;url=" + htmldir  + "login.asp;");
aI("text=Register New Account;url=" + htmldir  + "login-acct.asp?func=new;");
aI("text=Download PDFs<br><i>(must be logged in)</i>;url=" + htmldir  + "pubdown.asp;");
aI("text=Case Studies;url=" + htmldir  + "case-studies-redir.asp;");
}
//*----------------------------------------------
//*  CONTACT MENU
//*----------------------------------------------
with(milonic=new menuname("contact")){
style=subMenuStyle;
//aI("text=Contact InfraSave;url=" + htmldir  + "contact.asp;");
//aI("text=InfraSave U.S.A. Representatives;url=" + htmldir  + "reps.asp;");
}

//*----------------------------------------------
//*  Top of Page Floating Menu for Certain Pages
//*----------------------------------------------
 
 if ( thefile.substring(0,"pubdown.asp".length) == "pubdown.asp" ||
  thefile.substring(0,"faq".length) == "faq" ) {	

	with(milonic=new menuname("top")){
	style=menuStyleTop;
	menuwidth=10;
	itemheight=6;
	left="offset=325";  
	screenposition="bottom, center"; 
	top="offset=-25";
	followscroll=1;
//	followscroll="0,40,5"
	alwaysvisible=1;
	orientation="horizontal";
	aI("text=&nbsp;Top&nbsp;url=#top");
	}
}

//*----------------------------------------------
//*  POPUP Box for PDF Icon
//*----------------------------------------------
with(milonic=new menuname("pdfhelp")){
style=menuStylePOPUP; left=76; itemwidth=232; top=-270;overflow="scroll"; itemheight=10;
aI("text=<img src='../images/pdficonsmall.gif' width=15 height=16 border=0 align='absmiddle'> <b>About PDF Files</b>;type=header;align=center;");

aI("text=Adobe Reader is required to view the Portable Document Format (PDF) files found on this web site.<br><br>Download the latest free version of Adobe Reader by clicking the button below:<br><center><img src='../images/getacrobat.gif' width=88 height=31 border=0 align='absmiddle' alt='Get Acrobat Reader'></center>;url=http://www.adobe.com/products/acrobat/readstep.html;target=_new");

aI("text=To download PDF files to your hard disk for <b>offline viewing</b>, right-click on a PDF document link, then select \"Save Target As...\" from the pop-up menu. To view the PDF in a new browser window, just click on the link.");
} 
 

//*----------------------------------------------
//*  POPUP Box for PDF Icon
//*----------------------------------------------
with(milonic=new menuname("pdfhelp2")){
style=menuStylePOPUP; left=65; itemwidth=232; top=-16;overflow="scroll"; itemheight=10;
aI("text=<img src='../images/pdficonsmall.gif' width=15 height=16 border=0 align='absmiddle'> <b>About PDF Files</b>;type=header;align=center;");

aI("text=Adobe Reader is required to view the Portable Document Format (PDF) files found on this web site.<br><br>Download the latest free version of Adobe Reader by clicking the button below:<br><center><img src='../images/getacrobat.gif' width=88 height=31 border=0 align='absmiddle' alt='Get Acrobat Reader'></center>;url=http://www.adobe.com/products/acrobat/readstep.html;target=_new");

aI("text=To download PDF files to your hard disk for <b>offline viewing</b>, right-click on a PDF document link, then select \"Save Target As...\" from the pop-up menu. To view the PDF in a new browser window, just click on the link.");
} 
drawMenus();