// JavaScript Documentvar agt=navigator.userAgent.toLowerCase();var is_safari = agt.indexOf("safari")!=-1;function getdropdowns(){	var dn = 'domd';startdiv(dn,'154');	bi('entire1.htm',dn,'<strong>Styles</strong>');	bi('traditional.htm',dn,'&nbsp;&nbsp;&nbsp;&nbsp;Traditional');	bi('classicquickship.htm',dn,'&nbsp;&nbsp;&nbsp;&nbsp;Classic Quick Ship');	bi('classiccustomseries.htm',dn,'&nbsp;&nbsp;&nbsp;&nbsp;Classic Custom');	bi('estateseries.htm',dn,'&nbsp;&nbsp;&nbsp;&nbsp;Estate Series');	bi('grandestateseries.htm',dn,'&nbsp;&nbsp;&nbsp;&nbsp;Grand Estate');	bi('productspage.htm',dn,'<strong>Products</strong>');	bi('meshsafetycoversmain.htm',dn,'&nbsp;&nbsp;&nbsp;&nbsp;Meyco Lite-Mesh');	bi('meshsafetycoversmainrugged.htm',dn,'&nbsp;&nbsp;&nbsp;&nbsp;Rugged-Mesh');	bi('permaguardlite.htm',dn,'&nbsp;&nbsp;&nbsp;&nbsp;PermaGuard-Lite');	bi('ongroundcovers2.htm',dn,'&nbsp;&nbsp;&nbsp;&nbsp;On-Ground Covers');		bi('kiddykorral2.htm',dn,'&nbsp;&nbsp;&nbsp;&nbsp;Kiddy Pool-Corral');	enddiv(); 	dn = 'hostd';startdiv(dn ,'154');	bi('ab.htm',dn ,'<strong>How To AB Measure</strong>');	bi('anchorchoices.htm',dn ,'<strong>Anchors</strong>');	bi('popupanchor.htm',dn ,'&nbsp;&nbsp;&nbsp;&nbsp;Pop-Up');	bi('screwtypeanchor.htm',dn ,'&nbsp;&nbsp;&nbsp;&nbsp;Screw Type');	bi('wallanchor.htm',dn ,'&nbsp;&nbsp;&nbsp;&nbsp;Wall Anchor');	bi('wooddeckanchor.htm',dn ,'&nbsp;&nbsp;&nbsp;&nbsp;Wood Deck Anchor');	bi('drainage.htm',dn ,'<strong>Drainage</strong>');	bi('interactivedemo.htm',dn ,'<strong>Interactive Demo</strong>');	bi('instructionsrepsalts.htm',dn ,'<strong>Instructions/Repairs</strong>');	bi('downloadableforms.htm',dn ,'<strong>Forms/Worksheets</strong>');	enddiv();}function startdiv(idval,w){	var s = document.write ('<div id="'+idval+'"><table width="'+w+'" border="0" cellpadding="0" cellspacing="0" class="mt">');}function enddiv(){	var s = document.write ("</table></div>");}function bi(link,div,name){	var s = document.write ("<tr><td onClick=\"lnk('"+link+"');\" onMouseOver=\"menuovr('"+div+"','"+pn(name)+"',this);\" onMouseOut=\"menuout('"+div+"',this);\" class=\"nav2\">"+name+"</td></tr>");}function pn(name){	var s=name;if(s.indexOf("<")>0) {return(s.slice(0,s.indexOf("<")-1));}return(s);}function lnk(link){	internal_clicked = true;	window.open(link,'_self');}function mainovr(div,status){	if(is_safari){		bHover=status;window.status=status;setDD(div,status,false);}	else{		bHover=status;window.status=status;setTimeout('setDD(\'' + div + '\', \'' + status + '\', false)',400);}}function mainout(div){	bHover='';window.status='';setDDTimeout(div);}function menuovr(div, link, item){	window.status=link;item.style.backgroundColor='#F0F0F0';setDD(div,'',true);}function imgovr(div){}function menuout(div, item){	setDDTimeout(div);item.style.backgroundColor='#00CCFF';}function findDiv(n, d) { 	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findDiv(n,d.layers[i].document);  if(!x && document.getElementById) x=document.getElementById(n); return x;}function tNav() { 		var i,p,v,obj,args=tNav.arguments;  for (i=0; i<(args.length-2); i+=3) if ((obj=findDiv(args[i]))!=null) { v=args[i+2];    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }    obj.visibility=v; }    }function hideDDs(sect) {	tNav('domd','','hide');tNav('hostd','','hide');showElement('SELECT');}function hideDD(sect) {	tNav(sect,'','hide');hideDDs(sect);}var secSet = null;var activeTimer = null;var bHover = '';var img = '';function setDD(sect, windowStatusVal, bshow) {	hideDDs(sect);	if ((bHover==windowStatusVal)||(bshow)){		tNav(sect,'','show');		if (secSet != null) window.clearTimeout(secSet);				hideElement('SELECT', document.all[sect]); 	}}function setDDTimeout(sect){	if (secSet != null) window.clearTimeout(secSet);	secSet = window.setTimeout('hideDD("' + sect + '")',500);}function hideElement( elmID, overDiv ) {  if(document.all) {    for(i = 0; i < document.all.tags( elmID ).length; i++) {      obj = document.all.tags( elmID )[i];      if(!obj || !obj.offsetParent) continue;      // Find the element's offsetTop and offsetLeft relative to the BODY tag.      objLeft   = obj.offsetLeft - overDiv.offsetParent.offsetLeft;      objTop    = obj.offsetTop;      objParent = obj.offsetParent;      while(objParent.tagName.toUpperCase() != 'BODY') {        objLeft  += objParent.offsetLeft;        objTop   += objParent.offsetTop;        objParent = objParent.offsetParent;}      objHeight = obj.offsetHeight;      objWidth  = obj.offsetWidth;      if((overDiv.offsetLeft + overDiv.offsetWidth) <= objLeft);      else if((overDiv.offsetParent.offsetTop + overDiv.offsetHeight + 20) <= objTop);      else if(overDiv.offsetTop >= eval(objTop + objHeight));      else if(overDiv.offsetLeft >= eval(objLeft + objWidth));      else {        obj.style.visibility = 'hidden';      }    }  }}function showElement(elmID) {  if(document.all) {    for(i = 0; i < document.all.tags( elmID ).length; i++) {      obj = document.all.tags(elmID)[i];      if(!obj || !obj.offsetParent) continue;      obj.style.visibility = '';    }  }}function centerOpen(url,name,w,h,x,y,center) { 	screenw = screen.availWidth;	screenh = screen.availHeight;	if (center=="1"){		x=(screenw-w)/2;		y=(screenh-h)/2;    }    	window.open(url,name,'width='+w+',height='+h+',left='+x+',top='+y+',toolbars=no,statusbar=no,resizable=no,menubar=no,scrollbars=no');		}
