	/***********************************************
	* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
	* This notice MUST stay intact for legal use
	* Visit http://www.dynamicdrive.com/ for full source code
	***********************************************/
	
	//Contents for menu 1: Home
	// var menu1=new Array();
	
	//Contents for menu 2: About Marvin
	var menu2=new Array();
	menu2[0]='<a href="company.html" class="headerlink">The Company</a>';
	menu2[1]='<a href="press_room.html" class="headerlink">Press Room</a>';
	menu2[2]='<a href="environment.html" class="headerlink">The Environment</a>';
	menu2[3]='<a href="safety.html" class="headerlink">Safety</a>';
	menu2[4]='<a href="testimonials.html" class="headerlink">Testimonials</a>';
	menu2[5]='<a href="warranty.html" class="headerlink">20/10 Warranty</a>';
	menu2[6]='<a href="patents.html" class="headerlink">Patents</a>';
			
	//Contents for menu 3: Design
	var menu3=new Array();
	menu3[0]='<a href="gallery.html" class="headerlink">Gallery</a>';
	menu3[1]='<a href="case_studies.html" class="headerlink">Residential Case Studies</a>';
	menu3[2]='<a href="case_studies_commercial.html" class="headerlink">Commercial Case Studies</a>';
	menu3[3]='<a href="design.html" class="headerlink">Design Tips</a>';
	menu3[4]='<a href="calendar.html" class="headerlink">Calendar</a>';
	menu3[5]='<a href="../press_features/monthly_project.pdf" class="headerlink">Project of the Month</a>';
			
	//Contents for menu 4: Windows
	var menu4=new Array();
	menu4[0]='<a href="sliding_sash.html" class="headerlink">Sliding Sash</a>';
	menu4[1]='<a href="insert_sliding_sash.html" class="headerlink">Insert Sliding Sash</a>';
	menu4[2]='<a href="casement.html" class="headerlink">Casement</a>';
	menu4[3]='<a href="awning.html" class="headerlink">Awning</a>';
	menu4[4]='<a href="bay.html" class="headerlink">Bay</a>';
	menu4[5]='<a href="bow.html" class="headerlink">Bow</a>';
	menu4[6]='<a href="special_shapes.html" class="headerlink">Polygon and Special Shapes</a>';
	menu4[7]='<a href="round_top.html" class="headerlink">Round Top</a>';
	menu4[8]='<a href="magnum_sliding_sash.html" class="headerlink">Magnum Sliding Sash</a>';
	menu4[9]='<a href="glider.html" class="headerlink">Glider</a>';
	menu4[10]='<a href="tilt_turn.html" class="headerlink">Tilt Turn</a><hr>';
	menu4[11]='<a href="options.html" class="headerlink">Options</a>';
			
	//Contents for menu 5: Doors
	var menu5=new Array();
	menu5[0]='<span class="headerlink">Swinging Doors</span>';
	menu5[1]='<a href="inswing_french.html" class="headerlink">- Inswing French</a>';
	menu5[2]='<a href="outswing_french.html" class="headerlink">- Outswing French</a>';
	menu5[3]='<a href="archtop_french.html" class="headerlink">- Arch Top French</a>';
	menu5[4]='<a href="commercial_door.html" class="headerlink">- Commercial</a><hr>';
	menu5[5]='<span class="headerlink">Sliding Doors</span>';
	menu5[6]='<a href="sliding_french_door.html" class="headerlink">- Sliding French Door</a>';
	menu5[7]='<a href="sliding_patio_door.html" class="headerlink">- Sliding Patio Door</a><hr>';
	menu5[8]='<a href="options.html" class="headerlink">Options</a>';
			
	//Contents for menu 6: Custom solutions
	var menu6=new Array();
	menu6[0]='<a href="cust_soln_intro.html" class="headerlink">Introduction</a>';
	menu6[1]='<a href="casings_sills.html" class="headerlink">Casings & Sills</a>';
	menu6[2]='<a href="divided_lites.html" class="headerlink">Glazing Bars</a>';
	menu6[3]='<a href="raised_panels.html" class="headerlink">Raised Panel Doors</a>';
	menu6[4]='<a href="decorative_glass.html" class="headerlink">Decorative Glass</a>';
	menu6[5]='<a href="clad_exteriors.html" class="headerlink">Clad Exteriors</a>';
	menu6[6]='<a href="custom_solutions.html" class="headerlink">Custom Solutions Gallery</a>';
			
	//Contents for menu 7: Learn
	var menu7=new Array();
	menu7[0]='<a href="window_basics.html" class="headerlink">Window Basics</a>';
	menu7[1]='<a href="door_basics.html" class="headerlink">Door Basics</a>';
	menu7[2]='<a href="rating.html" class="headerlink">Performance Ratings</a>';
	menu7[3]='<a href="toughened_glass.html" class="headerlink">Toughened Glass</a>';
	menu7[4]='<a href="maintenance.html" class="headerlink">Maintenance</a>';
	// menu7[5]='<a href="installation_instructions.html" class="headerlink">Installation</a>';
	menu7[5]='<a href="glossary.html" class="headerlink">Glossary</a>';
			
	//Contents for menu 8: Resources
	var menu8=new Array();
	menu8[0]='<a href="resources_intro.html" class="headerlink">Introduction</a>';
	menu8[1]='<a href="cpd.html" class="headerlink">CPD</a>';
	menu8[2]='<a href="nbs_plus.html" class="headerlink">NBS Plus</a>';
	menu8[3]='<a href="mds.html" class="headerlink">MDS</a>';
	menu8[4]='<a href="architectural_support.html" class="headerlink">Architectural Support</a>';
	menu8[5]='<a href="projects.html" class="headerlink">Projects</a>';
	// menu8[3]='<a href="architectural_detail.html" class="headerlink">Architectural Detail Manual</a>';
	// menu8[4]='<a href="construction.html" class="headerlink">Construction Specifications</a>';
	// menu8[5]='<a href="installation.html" class="headerlink">Installation Instructions</a>';
	// menu8[6]='<a href="parts_manual.html" class="headerlink">Marvin Parts Manual</a>';
			
	//Contents for menu 9: Sales
	var menu9=new Array();
	menu9[0]='<a href="uk_sales.html" class="headerlink">UK Sales</a>';
	menu9[1]='<a href="irish_sales.html" class="headerlink">Irish Sales</a>';
			
	var menuwidth='265px'; //default menu width
	var menubgcolor='#dedbd6';  //menu bgcolor
	var disappeardelay=100;  //menu disappear speed onMouseout (in milliseconds)
	var hidemenu_onclick="yes"; //hide menu when user clicks within menu?
	
	
	
	
	var ie4=document.all;
	var ns6=document.getElementById&&!document.all;
	
	if (ie4||ns6)
	document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>');
	
	function getposOffset(what, offsettype){
	var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
	var parentEl=what.offsetParent;
	while (parentEl!=null){
	totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
	parentEl=parentEl.offsetParent;
	}
	return totaloffset;
	}
	
	
	function showhide(obj, e, visible, hidden, menuwidth){
	if (ie4||ns6)
	dropmenuobj.style.left=dropmenuobj.style.top=-500;
	if (menuwidth!=""){
	dropmenuobj.widthobj=dropmenuobj.style;
	dropmenuobj.widthobj.width=menuwidth;
	}
	if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
	obj.visibility=visible;
	else if (e.type=="click")
	obj.visibility=hidden;
	}
	
	function iecompattest(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
	}
	
	function clearbrowseredge(obj, whichedge){
	var windowedge;
	var edgeoffset=0;
	if (whichedge=="rightedge"){
	windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15;
	dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;
	if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
	edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth;
	}
	else{
	windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18;
	dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;
	if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
	edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight;
	}
	return edgeoffset;
	}
	
	function populatemenu(what){
	if (ie4||ns6)
	dropmenuobj.innerHTML=what.join("");
	}
	
	
	function dropdownmenu(obj, e, menucontents, menuwidth){
	if (window.event) event.cancelBubble=true;
	else if (e.stopPropagation) e.stopPropagation();
	clearhidemenu();
	dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv;
	populatemenu(menucontents);
	
	if (ie4||ns6){
	showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth);
	dropmenuobj.x=getposOffset(obj, "left");
	dropmenuobj.y=getposOffset(obj, "top");
	dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px";
	dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px";
	}
	
	return clickreturnvalue();
	}
	
	function clickreturnvalue(){
	if (ie4||ns6) return false;
	else return true;
	}
	
	function contains_ns6(a, b) {
	while (b.parentNode)
	if ((b = b.parentNode) == a)
	return true;
	return false;
	}
	
	function dynamichide(e){
	if (ie4&&!dropmenuobj.contains(e.toElement))
	delayhidemenu();
	else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
	delayhidemenu();
	}
	
	function hidemenu(e){
	if (typeof dropmenuobj!="undefined"){
	if (ie4||ns6)
	dropmenuobj.style.visibility="hidden";
	}
	}
	
	function delayhidemenu(){
	if (ie4||ns6)
	delayhide=setTimeout("hidemenu()",disappeardelay);
	}
	
	function clearhidemenu(){
	if (typeof delayhide!="undefined")
	clearTimeout(delayhide);
	}
	
	if (hidemenu_onclick=="yes")
	document.onclick=hidemenu;

