 //*----------------------------------------------
//*  Update Log
//*  2008-05-15 New
//*  2009-01-26 Add help-ask-response.php
//*  2009-02-16 Add green roofing 
//*  2009-03-08 Roofsavers
//*  2009-03-13 Community Support - Green Force
//*  2009-03-13 Green Roofing Incentives
//*  2009-03-18 HRTC 
//*  2009-04-10 Ask Craig responses
//*  2009-06-08 CertainTeed Pages
//*  2009-06-18 Concierge Roofing page
//*  2009-06-18 Ask Craig Response - Skylight
//*  2009-06-18 Concierge form
//*  2009-07-23 New Repairs Page - Budget Saving Tips
//*  2009-08-30 Community Support Landing Page & Raise the Roof
//*  2009-08-31 Rename Residential Envelope to Exterior 
//*  2009-09-18 Ice Damming Nicholas
//*  2009-09-21 Cedar Shinges Project page 
//*  2009-09-23 Res Gutter Cleaning page & Form 
//*  2009-09-23 Help Ask Craig - Skylight problems
//*  2009-10-01 Meet the Team - Doug Cochrane
//*  2009-10-02 Kaycan Aluminum & Vinyl Siding
//*  2009-10-06 Why Us - Email Alerts 
//*  2009-11-11 Change title of Help: Certainteed How to  ... to Roof design & color
//*  2009-11-20 Add Ice Dam Help page
//*  2009-11-22 Add Ask Craig Snow Removal page
//*  2009-11-25 Add Ask Craig Installing bathroom ventilation fans 
//*  2009-12-02 Decra pages. Change Metal Roofs to Steel Roofing
//*  2009-12-07 Winter Roofing
//*  2010-01-15 Ask Craig - Winter Roof Leaks
//*  2010-01-29 Sales Position 
//*  2010-01-30 Remove HRTC
//*  2010-02-02 Survey Form
//*  2010-03-31 Ask Craig - Help Metal Roofing and Velus skylights
//*  2010-04-12 Remove ecoEnergy 
//*  2010-04-20 Special Offers Page
//*  2010-05-04 Remove Alerts page
//*  2010-05-04 Move Res Masonry to top menu, remove repairs mansonry.
//*  2010-05-17 Masonry Testimonials
//*  2010-07-06 Remove why-hst.asp 
//*  2011-08-14 Downspout Disconnection Service
//*----------------------------------------------
	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 = ".php;";  
 
//*----------------------------------------------
//*   MASONRY 
	pref="masonry-";   
//*----------------------------------------------
  if (thefile.substring(0,"masonry-".length) == "masonry-")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";
  	zindex=80;	//* This is for Gallery Creator lightbox.js which uses value 90 for overlay.
  	
 	aI("text=<b>MASONRY</b>;url=" + pref + "intro" + lang );
	aI("text=Testimonials;url=" + pref + "testimonials" + lang ); 	
	}  	
  } 	
		
//*----------------------------------------------
//* WHY US MENU
	pref="why-";
//*---------------------------------------------- 
  if (thefile.substring(0,"why".length) == "why" || thefile.substring(0,"0-why".length) == "0-why")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";	
    aI("text=<b>WHY&nbsp;&nbsp;US?</b>;url=" + pref + "intro" + lang );
	aI("text=Testimonials;url=" + pref + "testimonials" + lang ); 
	aI("text=Customer Survey;url=" + pref + "survey-intro" + lang);
	aI("text=&nbsp;&nbsp;&nbsp;Survey Form;url=" + pref + "survey-form" + lang );
//	aI("text=Beat the HST;url=" + pref + "hst" + lang );
	aI("text=Media;url=" + pref + "media" + lang );
	aI("text=Training;url=" + pref + "training" + lang );
	aI("text=Safety;url=" + pref + "safety" + lang );
	aI("text=Company History;url=" + pref + "company" + lang ); 
	aI("text=Quality Control;url=" + pref + "quality" + lang );
	aI("text=Made to Order;url=" + pref + "madetoorder" + lang );
	aI("text=The Difference;url=" + pref + "difference" + lang );
	aI("text=Meet the Team;url=" + pref + "team" + lang ); 
	aI("text=Going Green;url=" + pref + "green" + lang );
//	aI("text=Sign up for Email Alerts;url=" + pref + "alerts" + lang );
	aI("text=Community Support;url=" + pref + "community-intro" + lang );	
	aI("text=&nbsp;&nbsp;&nbsp;Taylor Lindsay-Noel;url=" + pref + "community-taylor" + lang );
	aI("text=&nbsp;&nbsp;&nbsp;Green Force;url=" + pref + "community-greenforce" + lang );		
	} 
//	drawMenus(); //* This is required for the following statement.
//	document.write ('<img src="../images/spacer.gif" width=10 height=25 border=0>');	
  }


//*----------------------------------------------
//*   RESIDENTIAL
	pref="res-";  
//*---------------------------------------------- 
  if (thefile.substring(0,"res-".length) == "res-")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";	
 	aI("text=<b>R E S I D E N T I A L</b>;url=" + pref + "intro" + lang );
  	aI("text=<b>Roofing</b>;url=" + pref + "roof-intro" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Shingles;url=" + pref + "roof-shingles" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Luxury Shingles;url=" + pref + "roof-shingles-luxury-intro" + lang + ";showmenu=LUXURY-SIDE;" );
 	aI("text=&nbsp;&nbsp;&nbsp;Concierge Service;url=" + pref + "roof-concierge" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Cedar Shingles;url=" + pref + "roof-cedar" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sample Project;url=" + pref + "roof-cedar-project" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Flat Roofs;url=" + pref + "roof-flat" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Decking;url=" + pref + "roof-decking" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Steel Roofing;url=" + pref + "roof-steel-intro" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decra;url=" + pref + "roof-steel-decra-intro" + lang + ";showmenu=DECRA;" );
  	aI("text=&nbsp;&nbsp;&nbsp;Slate;url=" + pref + "roof-slate" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Roofed Decks;url=" + pref + "roof-decks" + lang ); 
  	aI("text=&nbsp;&nbsp;&nbsp;Winter Roofing;url=" + pref + "roof-winter" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Ice Dams;url=" + pref + "roof-icedams" + lang ); 
  	aI("text=&nbsp;&nbsp;&nbsp;Roof Snow Removal;url=" + pref + "roof-snow-removal" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Gutter Cleaning;url=" + pref + "roof-gutter" + lang + ";showmenu=GUTTER;" );

//* ROOF SAVER
  	aI("text=&nbsp;&nbsp;&nbsp;<b>Roof Saver</b>;url=" + pref + "roof-roofsaver-intro" + lang ); 
  	
  	aI("text=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Qs & As;url=" + pref + "roof-roofsaver-q&a" + lang );  
  	aI("text=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Packages;url=" + pref + "roof-roofsaver-packages" + lang ); 
  	aI("text=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Order Form - Sloped;url=" + pref + "roof-roofsaver-form" + lang ); 
  	aI("text=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flat Roofs;url=" + pref + "roof-roofsaver-flat-intro" + lang ); 
   	aI("text=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Order Form - Flat;url=" + pref + "roof-roofsaver-flat-form" + lang );	  		  		
  	
  	aI("text=<b>Building&nbsp;Exterior</b>;url=" + pref + "env-intro" + lang ); 
// 	aI("text=&nbsp;&nbsp;&nbsp;Masonry;url=" + pref + "env-masonry" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Copper;url=" + pref + "env-copper" + lang );  	
  	aI("text=&nbsp;&nbsp;&nbsp;Siding;url=" + pref + "env-siding" + lang + ";showmenu=SIDING;" );
// 	aI("text=&nbsp;&nbsp;&nbsp;Aluminum Siding;url=" + pref + "env-siding-aluminum" + lang );
// 	aI("text=&nbsp;&nbsp;&nbsp;Vinyl Siding;url=" + pref + "env-siding-vinyl" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Eavestrough;url=" + pref + "env-eaves" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Downspout Disconnection<br>&nbsp;&nbsp;&nbsp;Service;url=" + pref + "env-downspout" + lang );  	  //2011-08-14
  	aI("text=&nbsp;&nbsp;&nbsp;Soffit & Fascia;url=" + pref + "env-soffit" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Skylights & Solar Tubes;url=" + pref + "env-skylights" + lang ); 
	aI("text=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Free Inspection;url=" + pref + "env-skylights-inspection" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sun Tunnel;url=" + pref + "env-skylights-sun-tunnel" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Velux Skylight Sale;url=" + pref + "env-skylights-velux" + lang );
//	aI("text=<b>Home Renovation Tax Credit (HRTC)</b>;url=" + pref + "hrtc" + lang );	
//	aI("text=<b>ecoENERGY Retrofit Grant</b>;url=" + pref + "ecoenergy" + lang );   
	}  	
 
  }

	with(milonic=new menuname("LUXURY-SIDE")){
	style=subMenuStyle; xmenuwidth=97;
  		
  	aI("text=Grand Manor;url=" + pref + "roof-shingles-luxury-grand-manor" + lang );
  	aI("text=Presidential Shake;url=" + pref + "roof-shingles-luxury-presidential-shake" + lang );
  	aI("text=Landmark TL;url=" + pref + "roof-shingles-luxury-landmark" + lang );
  	aI("text=Centennial Slate;url=" + pref + "roof-shingles-luxury-centennial-slate" + lang );
  	aI("text=Independence;url=" + pref + "roof-shingles-luxury-independence" + lang );
	} 	

 
//*----------------------------------------------
//*   REPAIRS 
	pref="repairs-";  
//*----------------------------------------------
  if (thefile.substring(0,"repairs-".length) == "repairs-")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";	
 	aI("text=<b>R E P A I R S</b>;url=" + pref + "intro" + lang );
	aI("text=Shingles;url=" + pref + "shingles" + lang ); 
	aI("text=Flat Roofs;url=" + pref + "flat" + lang ); 
	aI("text=Carpentry;url=" + pref + "carpentry" + lang ); 
//	aI("text=Masonry;url=" + pref + "masonry" + lang );
//	aI("text=Gutter Cleaning;url=" + pref + "gutter" + lang );
	aI("text=Budget Saving Tips;url=" + pref + "tips" + lang );
	aI("text=Request Residential Repair;url=" + pref + "res-form" + lang );
	aI("text=Request Commercial Repair;url=" + pref + "com-form" + lang );		    	
	}  	
  }
 
//*----------------------------------------------
//*   COMMERCIAL
	pref="com-";    
//*----------------------------------------------
  if (thefile.substring(0,"com-".length) == "com-")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";	
 	aI("text=<b>C O M M E R C I A L</b>;url=" + pref + "intro" + lang );
  	aI("text=Engineers;url=" + pref + "engineers" + lang ); 
  	
  	aI("text=<b>Flat Roofs</b>;url=" + pref + "flat-intro" + lang );
  	aI("text=&nbsp;&nbsp;&nbsp;Fundamentals;url=" + pref + "flat-fundamentals" + lang ); 
  	aI("text=&nbsp;&nbsp;&nbsp;Getting Started;url=" + pref + "flat-getstarted" + lang );  	
  	aI("text=&nbsp;&nbsp;&nbsp;Construction;url=" + pref + "flat-construction" + lang ); 
  
  	aI("text=Building&nbsp;Envelope;url=" + pref + "envelope" + lang );  
  	aI("text=Property Managers;url=" + pref + "propmanagers" + lang );	
  	aI("text=Building&nbsp;Cladding;url=" + pref + "cladding" + lang ); 
  	aI("text=Winter Roofing;url=" + pref + "winter" + lang );  	
	}  	
  }  

//*----------------------------------------------
//*   GALLERY 
	pref="gallery-";   
//*----------------------------------------------
  if (thefile.substring(0,"gallery-".length) == "gallery-")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";
  	zindex=80;	//* This is for Gallery Creator lightbox.js which uses value 90 for overlay.
  	
 	aI("text=<b>G A L L E R Y</b>;url=" + pref + "intro" + lang );
	aI("text=Residential  Sloped Roofs;url=" + pref + "res-sloped" + lang ); 
	aI("text=Residential  Flat Roofs;url=" + pref + "res-flat" + lang ); 
	aI("text=Residential  Building;url=" + pref + "res-building" + lang ); 
	aI("text=Commercial  Flat Roofs;url=" + pref + "com-flat" + lang ); 
	aI("text=Churches and Commercial;url=" + pref + "com-churches" + lang ); 
	aI("text=Commercial  Building;url=" + pref + "com-building" + lang ); 
	}  	
  } 

//*----------------------------------------------
//*   GREENROOFING 
	pref="greenroofing-";   
//*----------------------------------------------
  if (thefile.substring(0,"greenroofing-".length) == "greenroofing-")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";
  	zindex=80;	//* This is for Gallery Creator lightbox.js which uses value 90 for overlay.
  	
 	aI("text=<b>GREEN ROOFING</b>;url=" + pref + "intro" + lang );
	aI("text=Environmental Benefits;url=" + pref + "benefits" + lang ); 
	aI("text=Case Study;url=" + pref + "casestudy" + lang );
	aI("text=Incentives;url=" + pref + "incentives" + lang );	
	}  	
  } 

//*----------------------------------------------
//*   ESTIMATES 
	pref="est-";   
//*----------------------------------------------
  if (thefile.substring(0,"est-".length) == "est-")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";	
 	aI("text=<b>E S T I M A T E S</b>;url=" + pref + "intro" + lang );
	aI("text=Residential Estimate Form;url=" + pref + "res-form" + lang );
	aI("text=Commercial Estimate Form;url=" + pref + "com-form" + lang );
	aI("text=Smart Buyer;url=" + pref + "smartbuyer" + lang ); 	
	}  	
  }    

//*----------------------------------------------
//*   FINANCING 
	pref="fin-";
//*----------------------------------------------
  if (thefile.substring(0,"fin-".length) == "fin-")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";	
 	aI("text=<b>F I N A N C I N G</b>;url=" + pref + "intro" + lang );
	aI("text=Monthly Payments;url=" + pref + "payments" + lang );	
	}  	
  } 
 
//*----------------------------------------------
//*   WARRANTY 
	pref="warranty-";  
//*----------------------------------------------
  if (thefile.substring(0,"warranty-".length) == "warranty-")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";	
 	aI("text=<b>W A R R A N T Y</b>;url=" + pref + "intro" + lang );
	aI("text=Warranty Inquiry Form;url=" + pref + "form" + lang ); 	
	}  	
  }  

//*----------------------------------------------
//*   HELP 
	pref="help-"; 
//*----------------------------------------------
  if (thefile.substring(0,"help-".length) == "help-")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle; itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";	
 	aI("text=<b>H E L P&nbsp;&nbsp;C E N T R E</b>;url=" + pref + "intro" + lang );
	aI("text=Ask Craig;url=" + pref + "ask-intro" + lang );
	aI("text=&nbsp;&nbsp;&nbsp;Post Your Question;url=" + pref + "ask-form" + lang );

	aI("text=&nbsp;&nbsp;&nbsp;Metal Roofing;url=" + pref + "ask-metal-roofing" + lang );
	aI("text=&nbsp;&nbsp;&nbsp;How to install a Velux<br>&nbsp;&nbsp;&nbsp;skylight on a flat roof;url=" + pref + "ask-velux-skylight" + lang ); 
	aI("text=&nbsp;&nbsp;&nbsp;Roof leaks only in winter;url=" + pref + "ask-winter-roofleak" + lang );
	aI("text=&nbsp;&nbsp;&nbsp;Bathroom ventilation fans;url=" + pref + "ask-bathroom-vents" + lang );
	aI("text=&nbsp;&nbsp;&nbsp;Snow removal on<br>&nbsp;&nbsp;&nbsp;flat roofs;url=" + pref + "ask-snow-removal" + lang );
	aI("text=&nbsp;&nbsp;&nbsp;Skylight problems;url=" + pref + "ask-skylight-problems" + lang );
	aI("text=&nbsp;&nbsp;&nbsp;Skylight energy efficiency;url=" + pref + "ask-skylight" + lang );
	aI("text=&nbsp;&nbsp;&nbsp;Mold growth in my attic;url=" + pref + "ask-mold" + lang );
	aI("text=&nbsp;&nbsp;&nbsp;Ice Damming, Nicholas;url=" + pref + "ask-ice-damming-nicholas" + lang );
	aI("text=&nbsp;&nbsp;&nbsp;Ice Damming, Sally;url=" + pref + "ask-ice-damming-sally" + lang );	
	aI("text=&nbsp;&nbsp;&nbsp;Roof Valley Systems;url=" + pref + "ask-roof-valley" + lang );
	aI("text=&nbsp;&nbsp;&nbsp;Algae;url=" + pref + "ask-algae" + lang );	
 
	aI("text=Ten Tips;url=" + pref + "tips" + lang );
	aI("text=F A Q;url=" + pref + "faq" + lang );
	aI("text=Terminology;url=" + pref + "terminology" + lang );
	aI("text=Roof Design & Color;url=" + pref + "colorview" + lang );  
	}  	
  }  
 
//*----------------------------------------------
//*   EMPLOYMENT 
	pref="emp-";  
//*----------------------------------------------
  if (thefile.substring(0,"emp-".length) == "emp-")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";	
 	aI("text=<b>E M P L O Y M E N T</b>;url=" + pref + "intro" + lang );
 	aI("text=Get on File;url=" + pref + "form" + lang );
  	aI("text=Commercial Sales Postion;url=" + pref + "sales-position" + lang );
	aI("text=Job Listings;url=" + pref + "listings" + lang );
	}  	
  } 
 
//*----------------------------------------------
//*   CONTACT US 
	pref="contact-";  
//*----------------------------------------------
  if (thefile.substring(0,"contact-".length) == "contact-")	{
 	with(milonic=new menuname("SideMenu")){	
  	style=sideMenuStyle;itemwidth=170;	alwaysvisible=1; orientation="vertical"; position="relative";	
 	aI("text=<b>C O N T A C T &nbsp; U S</b>;url=" + pref + "intro" + lang );
	aI("text=&nbsp;Residential Customers;url=" + pref + "res-form" + lang );
	aI("text=&nbsp;Commercial Customers;url=" + pref + "com-form" + lang );
	aI("text=&nbsp;Concierge Service;url=" + pref + "res-concierge-form" + lang );
	}  	
  } 
 
drawMenus(); 
