var disableDrops = false;
var formString="form";
var tStart="<table border=0 cellspacing=0 cellpadding=0>";
var cellStart="<tr height='20'><td width='152' align=left class='nav'>&nbsp;&nbsp;&nbsp;<a href='";
var cellMiddle="' class='header'>";
var cellEnd="</a>&nbsp;&nbsp;&nbsp;<BR></td></tr>";
var tEnd="<tr><td height=3 class='header'><img src='images/menu_site_over.gif' height=3></td></tr></table>";
var hideTimeout;
var layer2Hide;
var SiteName = "http://www.danetco.net/";

function timeOut(hide){
	hideTimeout = window.setTimeout(hide, 100);
	layer2Hide = hide;
}
function clearTime(){
	window.clearTimeout(hideTimeout);
}
function showLayer(ref,posX,posY, showIt){
		
	if(layer2Hide == "hideLayer()") window.clearTimeout(hideTimeout);
	if(showIt){
	var n;
	var innerText = tStart;
	for(n=0;n<window[ref].length;n++){
		innerText += cellStart;
		innerText += SiteName;
		innerText += window[ref][n];
		innerText += cellMiddle;
		n++;
		innerText += window[ref][n];
		innerText += cellEnd;
	}
	innerText += tEnd;
	subMenu.innerHTML = innerText;
	subMenu.style.marginLeft = posX +"px";
	subMenu.style.marginTop = posY +"px";
			
		// filter is only IE5.0+
		subMenu.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=83)";
		sel = document.all.tags("select");
		// loop to hide form select element if it collides with dropdown
		for(var i = 0; i < sel.length; i++){
			tempTop=0;
			tempLeft=0;
			temp=sel[i];
			while(temp.tagName != 'BODY'){
				tempTop += temp.offsetTop;
				tempLeft += temp.offsetLeft;
				temp = temp.offsetParent;
			}
			if(tempTop < (subMenu.offsetTop + subMenu.offsetHeight)){
				if((tempLeft < (subMenu.offsetLeft + subMenu.offsetWidth)) && (tempLeft + sel[i].offsetWidth > subMenu.offsetLeft)) {
					sel[i].style.visibility = 'hidden';
				}
			}
		}
		subMenu.style.visibility="visible";
	    subMenu.style.display="inline";
	}
}
function hideLayer(e){	
	if(subMenu.style.visibility!="hidden"){
        subMenu.style.visibility="hidden";
        subMenu.style.display="none";
        subMenu.innerHTML=0;
			
		sel = document.all.tags("select");
        for(var i = 0; i < sel.length; i++){
            sel[i].style.visibility = 'visible';
        }		
	}
	return false;
}
//available button variables
//variable format is var ButtonName= ["", ""];

//Home

//Store	
			 
//Catalog
var Catalog= ["catalog/index.html", "Catalog",
				"catalog/software.html", "Software",
				"catalog/hardware.html", "Hardware"];
//Managed Services			
var ManagedServices= ["?p=plans", "Service Plans",
				  "?p=msp", "Plan Comparison"];
//Web Services
var WebServices= ["?p=design", "Design",
                 "?p=hosting", "Hosting"];
//Other Services			 
var OtherServices= ["?p=automation", "Automation",
				 "?p=consult", "Consulting",
				 "?p=network", "Network Administration",
				 "?p=scada", "SCADA Systems"];
//Support
var Support= ["?p=policies", "Policies",
				  "?p=faq", "FAQ's",
				  "?p=ticket", "Create Ticket"];

//Company                			
var Company= ["?p=corporate", "About Us",
				"?p=privacy", "Privacy Policy"];			

//news               
var News= ["news/index.html", "News"];

//Forums
var Forums= ["forums/index.html", "Forums"];

