// If javascript is enabled, make the menu invisible until the proper mouseovers have been defined and 
// give special styles to the submenus
var  mSitePath = "http://www.frost.co.uk";
var topLoc = top.location.toString();
var topLocL = topLoc.substr(0,5);

if(topLocL == "https"){
	mSitePath = "https://www.frost.co.uk";
}

if (document.getElementById && document.getElementsByTagName) {
	//document.write("<link rel='stylesheet' type='text/css' href='"+mSitePath+"/includes/jsmenustyle.css' />");
	//document.write(".");
}

//window.onload = init;

function init() {
	if (document.getElementById && document.getElementsByTagName) {
		var myMenu = document.getElementById("menu").getElementsByTagName("a");
		var myMenuB = document.getElementById("menuBottom").getElementsByTagName("a");
		if (!myMenu) { 
			return; 
		}else {
			for (var i=0;i<myMenu.length;i++) {
				myMenu[i].onmouseover = navHoverStyle;
				myMenu[i].onfocus = navHoverStyle;
			}
			document.getElementById("menu").style.visibility = "visible";
		}
		if (!myMenuB) { 
			return; 
		}else {
			for (var i=0;i<myMenuB.length;i++) {
				myMenuB[i].onmouseover = navHoverStyle;
				myMenuB[i].onfocus = navHoverStyle;
			}
			document.getElementById("menuBottom").style.visibility = "visible";
		}
	}
}

