//*------------------------------------------------------------------------------------------------------
//*  Update Log - MAIN MENU - AVENUE ROAD ROOFING
//*  
//*  2008-05-15 New
//*  2009-01-26 Add help-ask-response.php
//*  2009-03-02 Add green roofing to top menu
//*  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
//*  2010-04-22 HST
//*  2010-05-04 Remove Alerts page, move Safey to WHy us 
//*  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);
	lang = ".php;";   //* Language suffix

//*----------------------------------------------
//*  TOP HORIZONTAL MENU   left="offset=186";
//*----------------------------------------------

	with(milonic=new menuname("topmenu")){
	style=homeMenuStyle;
	xmenuwidth=228;  itemheight=15; top=61; screenposition="center";  left="offset=165"; alwaysvisible=1; orientation="horizontal";
	zindex=80;	//* This is for Gallery Creator lightbox.js which uses value 90 for overlay.
	
//   alert(homepg)
 	if (thefile.substring(0,"home".length) == "home")	{
 		aI("text=&nbsp;type=header;headerbgcolor=transparent;align=center;itemwidth=45;");
	}
	else {
		aI("text=Home;align=center;itemwidth=45;url=home" + lang + ";showmenu=HOME;" );
	}
 	aI("text=Masonry;align=center;itemwidth=45;url=masonry-intro" + lang + ";showmenu=MASONRY;" );
	aI("text=Gallery;align=center;itemwidth=55;url=gallery-intro" + lang + ";showmenu=GALLERY;" );
 	aI("text=Green Roofing;align=center;xitemwidth=85;url=greenroofing-intro" + lang + ";showmenu=GREENROOFING;" );
	aI("text=Inspections;align=center;itemwidth=80;url=inspections" + lang );
 	aI("text=Employment;align=center;itemwidth=85;url=emp-intro" + lang + ";showmenu=EMPLOY;" );
 	aI("text=Contact;align=center;itemwidth=55;url=contact-intro" + lang + ";showmenu=CONTACT;" );
	}

//*----------------------------------------------
//*  MAIN HORIZONTAL MENU 
//*----------------------------------------------

	with(milonic=new menuname("main")){
	style=mainMenuStyle;
	menuwidth=820;  itemheight=30; top=90; screenposition="center";  left="offset=0"; alwaysvisible=1; orientation="horizontal";
	zindex=80;	//* This is for Gallery Creator lightbox.js which uses value 90 for overlay.
	
	aI("text=<b>&nbsp;WHY&nbsp;US?&nbsp;</b>;align=center;itemwidth=65;url=why-intro" + lang + ";showmenu=WHY;" );

	aI("text=<b>RESIDENTIAL</b>;align=center;itemwidth=85;url=res-intro" + lang + ";showmenu=RESIDENTIAL;" );

	aI("text=<b>REPAIRS</b>;align=center;itemwidth=85;url=repairs-intro" + lang + ";showmenu=REPAIRS;" );	

 	aI("text=<b>&nbsp;COMMERCIAL&nbsp;</b>;align=center;itemwidth=85;url=com-intro" + lang + ";showmenu=COMMERCIAL;" );

	aI("text=<b>SPECIAL&nbsp;OFFERS</b>;align=center;itemwidth=120;url=special-intro" + lang );
 
 	aI("text=<b>ESTIMATES</b>;align=center;itemwidth=85;url=est-intro" + lang + ";showmenu=ESTIMATES;" );
 
  	aI("text=<b>FINANCING</b>;align=center;itemwidth=105;url=fin-intro" + lang + ";showmenu=FINANCING;" );
 
// 	aI("text=<b>QUALITY&nbsp;CONTROL</b>;align=center;itemwidth=85;url=out-intro" + lang );	 
  	
  	aI("text=<b>WARRANTY</b>;align=center;itemwidth=85;url=warranty-intro" + lang + ";showmenu=WARRANTY;" );	  			
 
 	aI("text=<b>HELP&nbsp;CENTRE</b>;align=center;itemwidth=105;url=help-intro" + lang + ";showmenu=HELP;" );
 
	}

//*----------------------------------------------
//*   HOME
//*----------------------------------------------
with(milonic=new menuname("HOME")){
style=subMenuStyle; xmenuwidth=97;
	aI("text=Site Map;url=sitemap" + lang );
}

//*----------------------------------------------
//*   MASONRY
	pref="masonry-";  
//*----------------------------------------------
with(milonic=new menuname("MASONRY")){
style=subMenuStyle; xmenuwidth=97;  	
	aI("text=Testimonials;url=" + pref + "testimonials" + lang ); 
}

//*----------------------------------------------
//*   GREENROOFING
	pref="greenroofing-";  
//*----------------------------------------------
with(milonic=new menuname("GREENROOFING")){
style=subMenuStyle; xmenuwidth=97;  	
	aI("text=Environmental Benefits;url=" + pref + "benefits" + lang ); 
	aI("text=Case Study;url=" + pref + "casestudy" + lang );
	aI("text=Incentives;url=" + pref + "incentives" + lang );
}

//*----------------------------------------------
//*   WHY US 
	pref="why-";  
//*----------------------------------------------
with(milonic=new menuname("WHY")){
style=subMenuStyle; xmenuwidth=250;
	aI("text=Testimonials;url=" + pref + "testimonials" + lang );
	aI("text=Customer Survey;url=" + pref + "survey-intro" + lang + ";showmenu=SURVEY;" );
	aI("text=Media;url=" + pref + "media" + lang );
//	aI("text=Beat the HST;url=" + pref + "hst" + 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 + ";showmenu=COMMUNITY;" );
}

//*----------------------------------------------
//*   SURVEY
//*----------------------------------------------
with(milonic=new menuname("SURVEY")){
style=subMenuStyle; xmenuwidth=97;
	aI("text=Survey Form;url=" + pref + "survey-form" + lang );
}

//*----------------------------------------------
//*   COMMUNITY
//*----------------------------------------------
with(milonic=new menuname("COMMUNITY")){
style=subMenuStyle; xmenuwidth=97;
	aI("text=Taylor Lindsay-Noel;url=" + pref + "community-taylor" + lang );
	aI("text=Green Force;url=" + pref + "community-greenforce" + lang );
}
//*----------------------------------------------
//*   RESIDENTIAL
	pref="res-";  
//*----------------------------------------------
with(milonic=new menuname("RESIDENTIAL")){
style=subMenuStyle; xmenuwidth=97;
  	aI("text=Roofing;url=" + pref + "roof-intro" + lang + ";showmenu=RES-ROOFING;" );
  	aI("text=Building&nbsp;Exterior;url=" + pref + "env-intro" + lang + ";showmenu=RES-ENVELOPE;" );
//	aI("text=Home Renovation Tax Credit (HRTC);url=" + pref + "hrtc" + lang );
//	aI("text=ecoENERGY Retrofit Grant;url=" + pref + "ecoenergy" + lang );
}

//*----------------------------------------------
//*   RES-ROOFING 
//*----------------------------------------------
with(milonic=new menuname("RES-ROOFING")){
style=subMenuStyle; xmenuwidth=97;
  	aI("text=Shingles;url=" + pref + "roof-shingles" + lang + ";showmenu=LUXURY;" );
  	aI("text=Concierge Service;url=" + pref + "roof-concierge" + lang );
  	aI("text=Cedar Shingles;url=" + pref + "roof-cedar" + lang + ";showmenu=CEDAR;" );
  	aI("text=Flat Roofs;url=" + pref + "roof-flat" + lang );
  	aI("text=Decking;url=" + pref + "roof-decking" + lang );
  	aI("text=Steel Roofing;url=" + pref + "roof-steel-intro" + lang + ";showmenu=STEEL;" );
  	aI("text=Slate;url=" + pref + "roof-slate" + lang );
  	aI("text=Roofed Decks;url=" + pref + "roof-decks" + lang );
  	aI("text=Winter Roofing;url=" + pref + "roof-winter" + lang );
  	aI("text=Ice Dams;url=" + pref + "roof-icedams" + lang );
  	aI("text=Roof Snow Removal;url=" + pref + "roof-snow-removal" + lang );
  	aI("text=Gutter Cleaning;url=" + pref + "roof-gutter" + lang + ";showmenu=GUTTER;" );
  	aI("text=Roof Saver;url=" + pref + "roof-roofsaver-intro" + lang + ";showmenu=ROOFSAVER-RES;" );
}
 
with(milonic=new menuname("LUXURY")){
style=subMenuStyle; xmenuwidth=97;
  	aI("text=CertainTeed Luxury Shingles;url=" + pref + "roof-shingles-luxury-intro" + lang + ";showmenu=LUXURY2;" );
}

with(milonic=new menuname("CEDAR")){
style=subMenuStyle; xmenuwidth=97;
  	aI("text=Sample Project;url=" + pref + "roof-cedar-project" + lang );
}

with(milonic=new menuname("STEEL")){
style=subMenuStyle; xmenuwidth=97;
  	aI("text=Decra;url=" + pref + "roof-steel-decra-intro" + lang + ";showmenu=DECRA;" );
}

with(milonic=new menuname("DECRA")){
style=subMenuStyle; xmenuwidth=97;
  	aI("text=Latest Releases;url=" + pref + "roof-steel-decra-latest" + lang );
}

with(milonic=new menuname("GUTTER")){
style=subMenuStyle; xmenuwidth=97;
  	aI("text=Request Gutter Cleaning;url=" + pref + "roof-gutter-form" + lang );
}


with(milonic=new menuname("LUXURY2")){
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 ); 
}

with(milonic=new menuname("ROOFSAVER-RES")){
style=subMenuStyle; xmenuwidth=97;
  	aI("text=Qs & As;url=" + pref + "roof-roofsaver-q&a" + lang );  
  	aI("text=Packages;url=" + pref + "roof-roofsaver-packages" + lang );
  	aI("text=Order Form - Slopped Roofs;url=" + pref + "roof-roofsaver-form" + lang );   	
  	aI("text=Flat Roofs;url=" + pref + "roof-roofsaver-flat-intro" + lang ); 
   	aI("text=&nbsp;&nbsp;&nbsp;Order Form - Flat Roofs;url=" + pref + "roof-roofsaver-flat-form" + lang );	
}

//*----------------------------------------------
//*   RES-ENVELOPE (Exterior)
//*----------------------------------------------
with(milonic=new menuname("RES-ENVELOPE")){
style=subMenuStyle; xmenuwidth=97;
// 	aI("text=Masonry;url=" + pref + "env-masonry" + lang );
  	aI("text=Copper;url=" + pref + "env-copper" + lang );  	
  	aI("text=Siding;url=" + pref + "env-siding" + lang + ";showmenu=SIDING;" );
  	aI("text=Eavestrough;url=" + pref + "env-eaves" + lang );
		aI("text=Downspout Disconnection Service;url=" + pref + "env-downspout" + lang );  	  //2011-08-14
  	aI("text=Soffit & Fascia;url=" + pref + "env-soffit" + lang );
  	aI("text=Skylights & Solar Tubes;url=" + pref + "env-skylights" + lang + ";showmenu=SKYLIGHTS;" );	
}

with(milonic=new menuname("SIDING")){
style=subMenuStyle; xmenuwidth=97;
  	aI("text=Aluminum Siding;url=" + pref + "env-siding-aluminum" + lang );
  	aI("text=Vinyl Siding;url=" + pref + "env-siding-vinyl" + lang );
}
with(milonic=new menuname("SKYLIGHTS")){
style=subMenuStyle; xmenuwidth=97;
  	aI("text=Free Inspection;url=" + pref + "env-skylights-inspection" + lang );
  	aI("text=Sun Tunnel;url=" + pref + "env-skylights-sun-tunnel" + lang );
  	aI("text=Velux Skylight Sale;url=" + pref + "env-skylights-velux" + lang );
}
//*----------------------------------------------
//*   REPAIRS 
	pref="repairs-";  
//*----------------------------------------------
with(milonic=new menuname("REPAIRS")){
style=subMenuStyle; xmenuwidth=75; 
	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-";  
//*----------------------------------------------
with(milonic=new menuname("COMMERCIAL")){
style=subMenuStyle; xmenuwidth=97;
  	aI("text=Engineers;url=" + pref + "engineers" + lang ); 
  	aI("text=Flat Roofs;url=" + pref + "flat-intro" + lang  + ";showmenu=COM-FLAT;" );
  	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 );
}

//*----------------------------------------------
//*   COMMERCIAL FLAT ROOFS
//*----------------------------------------------
with(milonic=new menuname("COM-FLAT")){
style=subMenuStyle; xmenuwidth=97;
  	aI("text=Fundamentals;url=" + pref + "flat-fundamentals" + lang ); 
  	aI("text=Getting Started;url=" + pref + "flat-getstarted" + lang );
  	aI("text=Construction;url=" + pref + "flat-construction" + lang );  	
} 
 
//*----------------------------------------------
//*   GALLERY 
	pref="gallery-";  
//*----------------------------------------------
with(milonic=new menuname("GALLERY")){
style=subMenuStyle; xmenuwidth=250;
	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 );   
}

//*----------------------------------------------
//*   ESTIMATES 
	pref="est-";  
//*----------------------------------------------
with(milonic=new menuname("ESTIMATES")){
style=subMenuStyle; xmenuwidth=250;
	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-";  
//*----------------------------------------------
with(milonic=new menuname("FINANCING")){
style=subMenuStyle; xmenuwidth=250;
	aI("text=Monthly Payments;url=" + pref + "payments" + lang );
}

//*----------------------------------------------
//*   WARRANTY 
	pref="warranty-";  
//*----------------------------------------------
with(milonic=new menuname("WARRANTY")){
style=subMenuStyle; xmenuwidth=250;
	aI("text=Warranty Inquiry Form;url=" + pref + "form" + lang );
}

//*----------------------------------------------
//*   HELP 
	pref="help-";  
//*----------------------------------------------
with(milonic=new menuname("HELP")){
style=subMenuStyle; xmenuwidth=97;
	aI("text=Ask Craig;url=" + pref + "ask-intro" + lang  + ";showmenu=ASK;" );
	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 ); 
} 
 
with(milonic=new menuname("ASK")){
style=subMenuStyle; xmenuwidth=111;	
	aI("text=Post Your Question;url=" + pref + "ask-form" + lang );
	aI("text=Metal Roofing;url=" + pref + "ask-metal-roofing" + lang );
	aI("text=Velux skylight on a flat roof;url=" + pref + "ask-velux-skylight" + lang );
	aI("text=Roof leaks only in winter;url=" + pref + "ask-winter-roofleak" + lang );
	aI("text=Bathroom ventilation fans;url=" + pref + "ask-bathroom-vents" + lang );
	aI("text=Snow removal on flat roofs;url=" + pref + "ask-snow-removal" + lang );
	aI("text=Skylight problems;url=" + pref + "ask-skylight-problems" + lang );
	aI("text=Skylight energy efficiency;url=" + pref + "ask-skylight" + lang );
	aI("text=Mold growth in my attic;url=" + pref + "ask-mold" + lang );
	aI("text=Ice Damming, Nicholas;url=" + pref + "ask-ice-damming-nicholas" + lang );		
	aI("text=Ice Damming, Sally;url=" + pref + "ask-ice-damming-sally" + lang );
	aI("text=Roof Valley Systems;url=" + pref + "ask-roof-valley" + lang );
	aI("text=Algae;url=" + pref + "ask-algae" + lang );	
} 

//*----------------------------------------------
//*   EMPLOYMENT 
	pref="emp-";  
//*----------------------------------------------
with(milonic=new menuname("EMPLOY")){
style=subMenuStyle; xmenuwidth=89;
	aI("text=&nbsp;Get on File;url=" + pref + "form" + lang );
 	aI("text=&nbsp;Commercial Sales Postion;url=" + pref + "sales-position" + lang );
	aI("text=&nbsp;Job Listings;url=" + pref + "listings" + lang );
}

//*----------------------------------------------
//*   CONTACT US 
	pref="contact-";  
//*----------------------------------------------
with(milonic=new menuname("CONTACT")){
style=subMenuStyle; xmenuwidth=89;
	aI("text=&nbsp;Commercial Customers Form;url=" + pref + "com-form" + lang );
    aI("text=&nbsp;Residential Customers Form;url=" + pref + "res-form" + lang );
	aI("text=&nbsp;Concierge Service;url=" + pref + "res-concierge-form" + lang );
}
 
//*----------------------------------------------
//*  POPUP Box for PDF Icon
//*----------------------------------------------
with(milonic=new menuname("pdfhelp")){
style=menuStylePOPUP; left="offset=25"; itemwidth=232; top=-170;
aI("text=<img src='../images/pdf-icon.gif' width=15 height=16 border=0 align='absmiddle'> <b>About PDF Files</b> <img src='../images/pdf-icon-red.gif' width=21 height=12 border=0 align='absmiddle'>;type=header;align=center;");
aI("text=To download PDF files to your hard disk for <b>offline viewing</b>, right-click on the 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.");
aI("text=Adobe Acrobat Reader is required to view the Portable Document Format (PDF) files found on this web site.<br><br>Download the latest free version of Acrobat Reader by clicking the button below:");
aI("text=<img src='../images/getacrobat-e.gif' width=88 height=31 border=0 align='absmiddle' alt='Get Acrobat Reader'>;url=http://www.adobe.com/products/acrobat/readstep.html;target=blank;align=center;");
} 

//*----------------------------------------------
//*  POPUP Box for Privacy Policy
//*----------------------------------------------
with(milonic=new menuname("Privacy")){
style=menuStylePOPUP; 
left=-212; 
itemwidth=200; 
top=-160;
aI("text=<b>Privacy Policy</b>;type=header;align=center;");
aI("text=We will never share, sell, or rent your personal information with anyone. Information submitted to us is only available to our employees for the purpose of contacting you or sending you emails related to Avenue Road Roofing services.");
} 

//*----------------------------------------------
//*  POPUP Box for Privacy Policy
//*----------------------------------------------
with(milonic=new menuname("Privacy2")){
style=menuStylePOPUP; left=-212; itemwidth=200; top=-100;
aI("text=<b>Privacy Policy</b>;type=header;align=center;");
aI("text=We will never give, trade, sell or rent submitted information to a third party.");
} 

//*----------------------------------------------
//*  Top of Page Floating Menu for Certain Pages
//*----------------------------------------------
 
 if ( thefile.substring(0,"faq".length) == "faqx") {	

	with(milonic=new menuname("top")){
	style=menuStyleTop;
	menuwidth=10;
	itemheight=6;
	left="offset=371";  
	screenposition="bottom, center"; 
	top="offset=-25";
	followscroll=1;
//	followscroll="0,40,5"
	alwaysvisible=1;
	orientation="horizontal";
	aI("text=&nbsp;Top&nbsp;url=#top");
	}
}

drawMenus(); 
