//*----------------------------------------------
//*  Update Log
//* 2009-06-10 Add you tube icon and videos to hot news
//* 2009-08-12 Move videos to Pubinfo page (techdown)
//* 2009-11-09 Resinstate videos in Hot news. Add “Handelsblatt” item.
//* 2009-12-02 Add pdf link to ahr expo hot news item
//* 2010-08-04 Revamp home page side menu 
//*----------------------------------------------
	var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
	var thefile = location.href.substring(dir.length,location.href.length+1);
	
//	alert(thefile);
//*----------------------------------------------
//*  GLOBAL LANGUAGE SUFFIX
//*----------------------------------------------
	lang = ".asp;";
	searchicon = "image=../images/icon-mag.gif;imageposition=baseline;imagepadding=3;";
	loginicon = "image=../images/icon-key.gif;imageposition=baseline;imagepadding=0;";
	quoteicon = "image=../images/icon-quote2.gif;imageposition=baseline;imagepadding=2;";
	faqicon = "image=../images/icon-faq.gif;imageposition=baseline;imagepadding=2;";
	lockicon = "image=../images/icon-lock.gif;imageposition=baseline;imagepadding=2;";
	supporticon = "image=../images/icon-group.gif;ximageposition=baseline;imagepadding=2;";
	icondoc = "image=../images/icon-doc2.gif;ximageposition=baseline;imagepadding=2;";
	iconworld = "image=../images/icon-world.gif;imageposition=baseline;imagepadding=2;";
	iconsitemap = "image=../images/icon-sitemap.gif;imageposition=baseline;imagepadding=2;";
	iconpdf = "image=../images/pdf-icon.gif;imageposition=baseline;imagepadding=2;";
	iconbulsqr = "image=../images/bul-sqr.gif;imageposition=baseline;imagepadding=2;";
	iconyoutube = "image=../images/icon-youtube.gif;imageposition=baseline;imagepadding=2;";
	iconspacer = "image=../images/spacer.gif;imageposition=baseline;imagepadding=2 6 2 6;";
//*----------------------------------------------
//*  QUICK LINKS MENU
//*----------------------------------------------
	with(milonic=new menuname("QuickMenu")){	
  	style=quickMenuStyle; itemwidth=150; alwaysvisible=1; orientation="vertical"; position="relative";
 
  	aI("text=<center>Q U I C K&nbsp;&nbsp;L I N K S</center>;fontweight=bold;type=header;");
// 	aI("text=Google;url=http://www.google.com;target=blank;" );
 
//	aI(searchicon + "text=Search Site;url=search" + lang );
// 	aI(quoteicon + "text=Request Quote;url=init-order.form" + lang );
	aI(supporticon + "text=Customer Service<br>& Support;url=contact-form" + lang );
	aI(icondoc + "text=Published Information;url=pub-intro" + lang );
	
	aI(iconworld + "text=Schwank Worldwide;url=comp-worldwide" + lang );
	aI(iconsitemap + "text=Site Map;url=sitemap" + lang );
	}
	
//	drawMenus();
	
	//* this spacer will put some vertical space between the Quick and Side menus/
//	document.write ('<img src="../images/spacer.gif" width=4 height=5 border=0>');	
 
//*----------------------------------------------
//* HOME NEWS
//*----------------------------------------------
	
if (thefile.substring(0,"home".length) == "home"  )	{
	with(milonic=new menuname("QuickMenu")){	
	style=quickHomeMenuStyle; itemwidth=150; alwaysvisible=1; orientation="vertical"; position="relative";
 	
//		aI(iconbulsqr + "text=Catch up on the latest developments at Schwank Group;url=hotnews" + lang );
		aI("text=<center>N E W&nbsp;&nbsp;P R O D U C T S</center>;fontweight=bold;type=header;");
		aI("text=24V head - Schwank<br>Patio 4000 Series;align=center;url=../download/24V-4000-announcement-patioSchwank.pdf;target=blank;");
		aI("text=sportSchwank;align=center;url=prod-patio-sports" + lang ); 
		aI("text=ThermoControl Plus;align=center;url=prod-access-tcplus" + lang ); 
 
		aI("text=U P C O M I N G&nbsp;&nbsp;S H O W S;align=center;fontweight=bold;type=header;");
		aI("text=Come visit our booth at:;align=center;fontweight=normal;type=header;headerbgcolor=#FDFDEE;headercolor=#000000");

		aI("text=World Energy Engineering Congress (WEEC) 2010<br><i>Booth No: 810</i>;align=center;url=http://www.energycongress.com;target=blank");		
		aI("text=AHR EXPO 2011<br><i>Booth No: N4139</i>;align=center;url=http://www.ahrexpo.com;target=blank");	 		
	}	
}		
	
	drawMenus(); //* This is required for the following statement.
	
	//* this spacer will put some vertical space between the Quick and Side menus/
	document.write ('<img src="../images/spacer.gif" width=4 height=5 border=0>');


//*----------------------------------------------
//* COMPANY - SIDE MENU
	pref="comp-";
//*----------------------------------------------

if (thefile.substring(0,"comp".length) == "comp"  )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=150;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Company Intro</b>;url=" + pref + "intro" + lang );
	aI("text=Message From the International President;url=" + pref + "message" + lang );
	aI("text=History;url=" + pref + "history" + lang );
	aI("text=Worldwide Companies;url=" + pref + "worldwide" + lang ); 
	}	
}	//* end if	
 
//*----------------------------------------------
//* PRODUCTS - SIDE MENU
	pref="prod-";
//*----------------------------------------------

if (thefile.substring(0,"prod".length) == "prod"  )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=150;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>patioSchwank Intro</b>;url=" + pref + "patio-intro" + lang );
	aI("text=2100 Series;url=" + pref + "patio-2100" + lang );
	aI("text=2300 Series;url=" + pref + "patio-2300" + lang );
	aI("text=3000 Series;url=" + pref + "patio-3000" + lang );
	aI("text=4000 Series;url=" + pref + "patio-4000" + lang );
	
	aI("text=Optional Accessories;url=" + pref + "accessories" + lang ); 
 
//	aI("text=<b>Other Products</b>;type=header;"); 	 	
	}	
		
}	//* end if	


//*----------------------------------------------
//* HEATING SOLUTIONS - SIDE MENU
	pref="heat-";
//*----------------------------------------------

if (thefile.substring(0,"heat".length) == "heat"  )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=150;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<b>Comfort Solutions Intro</b>;url=" + pref + "intro" + lang );
	aI("text=Infrared Technology;url=" + pref + "infrared" + lang );	 
//	aI("text=Case Studies;url=" + pref + "casestudies" + lang );
//	aI("text=FAQ;url=" + pref + "faq" + lang );
	aI("text=Installation References;url=http://www.schwank.de/en/references/index.html;target=blank"); 
 }
} 
 
//*----------------------------------------------
//* PUBLISHED INFO - SIDE MENU
	pref="pub-";
//*----------------------------------------------

if (thefile.substring(0,"pub".length) == "pub" )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=150;	alwaysvisible=1; orientation="vertical"; position="relative";
	aI("text=<b>Published Info Intro</b>;url=" + pref + "intro" + lang );
	aI("text=Login - Registered Users  ;url=login" + lang );	
			
//	aI("text=Register New Account;url=login-acct.asp?func=new");		
	}	
}	//* end if	


//*----------------------------------------------
//* DESIGN/QUOTE - TECH DOWN - TO BE FIXED for GENERAL ACCESS
//*----------------------------------------------

if ( thefile.substring(0,"techdown".length) == "techdownzzz" ||
thefile.substring(0,"login.asp".length) == "loginzzz.asp"  )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=150;	alwaysvisible=1; orientation="vertical"; position="relative";
  	aI("text=<center>REGISTERED USER AREA</center>;fontweight=bold;type=header;");
//	aI("text=<b>Published Information</b>;url=" + pref + "intro" + lang );
//	aI("text=Registered Users;fontweight=bold;type=header;headerbgcolor=#DDDDDD" );	
	aI("text=Download Tech Data;url=techdown" + lang );	
	aI("text=Forms & Accessories;url=techdown-acc" + lang );
	aI("text=Product Image Gallery;url=techdown-gal" + lang );	
	aI("text=Logout;url=login.asp?logout=y");
	}	
}	//* end if	

//*----------------------------------------------
//* TECHDOWN - YOUTUBE VIDEOS
//*----------------------------------------------

if ( thefile.substring(0,"techdown".length) == "techdown")	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=150;	alwaysvisible=1; orientation="vertical"; position="relative";	
	aI(iconyoutube + "text=View Schwank Infrared Heating Solutions video;url=http://www.youtube.com/watch?v=XpiCnNs3Xmg;target=blank");
	aI(iconyoutube + "text=View Schwank Tube Heater Flame video;url=http://www.youtube.com/watch?v=gjn7gR5g180;target=blank");
	}	
}	//* end if	

//*----------------------------------------------
//* DESIGN/QUOTE - SIDE MENU
	pref="des-";
//*----------------------------------------------

if (thefile.substring(0,"des".length) == "des" )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=150;	alwaysvisible=1; orientation="vertical"; position="relative";
//	aI("text=Design/Quote Intro;fontweight=bold;url=" + pref + "intro" + lang ); 
	aI("text=Initiate a Design, Quote or Order;url=" + pref + "initorder-form" + lang ); 
//	aI("text=Heating Design Form;url=" + pref + "heatloss-form" + lang ); 
	aI("text=Design Request;url=" + pref + "design-form" + lang ); 	
			
	}	
}	//* end if



//*----------------------------------------------
//* SERVICE - SIDE MENU
	pref="serv-";
//*----------------------------------------------

if (thefile.substring(0,"serv".length) == "serv"  )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=150;	alwaysvisible=1; orientation="vertical"; position="relative";
//	aI("text=<b>At Your Service</b>;url=" + pref + "contact-form" + lang );
//	aI("text=Canada Representatives;url=" + pref + "reps-can" + lang );
	aI("text=Customer Service;url=" + pref + "custserv" + lang );
	aI("text=Associates;url=" + pref + "associates" + lang ); 			
	}	
}	//* end if	

drawMenus();

//* this spacer will put some vertical space between the Quick and Side menus/
document.write ('<img src="../images/spacer.gif" width=4 height=5 border=0>');

 if (thefile.substring(0,"pub".length) == "pub"  ||
	thefile.substring(0,"heat-casestudies".length) == "heat-casestudies" ||
 	thefile.substring(0,"techdown".length) == "techdown" ||
 	thefile.substring(0,"techdown".length) == "techdown"
 )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=140;	alwaysvisible=1; orientation="vertical"; position="relative";
  	
  	aI(iconpdf + "text=&nbsp;&nbsp;About PDF files;fontweight=bold;type=header;headerbgcolor=#FFD400");
  	aI("text= Adobe Acrobat Reader is required to view the PDF files Found on this site. More&nbsp;info...;offbgcolor=#E8EFF5;showmenu=pdfhelpmenu;" ); 	
	}	
 }	//* end if


drawMenus();


//*----------------------------------------------
//* AHR EXPO 2007
//*----------------------------------------------

if (thefile.substring(0,"homexxxx".length) == "home"  )	{
	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyleNONE;itemwidth=150;	alwaysvisible=1; orientation="vertical"; position="relative";
  	
	aI("text=<img src='../images/ahrexpobutton-2007.gif' width=120 height=90 border=0 align='absmiddle'>;align=center;url=http://www.ahrexpo.com;target=_blank;bordercolor='#FF0000';" );	
	aI("text=<b>Booth # 5060</b>;align=center;" ); 		
	}	
}	//* end if	

drawMenus();