//alert("hello");
ns = (document.layers)? true:false
ie = (document.all)? true:false
ns6 = (navigator.appName == "Netscape" && document.getElementById)? true:false
winIE5 = false;
var browserString = navigator.appVersion;
if (navigator.userAgent.indexOf("Win") > -1 && navigator.appName == "Microsoft Internet Explorer"){
	if (parseInt(browserString.charAt(22)) < 6){
		winIE5 = true;
	}
}
macIE = false;
var browserString = navigator.appVersion;
if (navigator.userAgent.indexOf("Mac") > -1 && navigator.appName == "Microsoft Internet Explorer"){
	macIE = true;
}
function hide(id){
	if (ns) document.layers[id].visibility = "hide"
	if (ns6){
		var obj = eval("document.getElementById('" + id + "')")
		obj.style.visibility = "hidden"
	}
	else if (ie) document.all[id].style.visibility = "hidden"
}
function show(id){
	if (ns) document.layers[id].visibility = "show"
	if (ns6){
		var obj = eval("document.getElementById('" + id + "')")
		obj.style.visibility = "visible"
	}
	else if (ie) document.all[id].style.visibility = "visible"
}
loaded = false;
totalSubs = 6;
topPos = 136;
rowHeight = 25;

function nav(ele,state){
	if(!ns){
		if(state > 0){
			ele.style.color = '306597';
			ele.style.backgroundColor = "FFFFFF";
		}else{
			ele.style.backgroundColor = "306597";
			//ele.style.backgroundImage = url('stars.gif'); 
			ele.style.color = 'ffffff';
		}
	}
}
function reset(focus){
	//alert("call");
	if(loaded){
		for(i = 1; i <= totalSubs; i ++){
			if(i == focus){
				show("subMenu" + i)
			}else{
				hide("subMenu" + i)
			}
		}
		show("bigHide")
	}
}
function hideAll(){
	for(i = 1; i <= totalSubs; i ++){
		hide("subMenu" + i)
	}
	hide("bigHide");
}
function openWin(page,name,width,height,scroll,resize){
window.open(page,name,"toolbar=0,location=0,status=0,menubar=0,scrollbars=" + scroll + ",resizable=" + resize + ",top=0,left=0,width=" + width + ",height=" + height)
}

outHTML = "";
function makeSubNav(){
	for(i = 1; i <= totalSubs; i++){
		theSub = eval("sub" + i);
		if(ns && i == 1){
			outHTML += "<div id='mud' style='position:absolute;left:0px;top:0px;visibility:hidden'></div>";
		}
		if(theSub.length == 0){
			outHTML += "<div id='subMenu" + i + "' style=\"position:absolute; left:0px; top:0px; visibility:hidden;\"></div>";
		}else{
			outHTML += "<div id='subMenu" + i + "' style='position:absolute;left:" + theSub[0].leftPos + "px;top:" + topPos + "px;visibility:hidden;z-index:10;'>";
			outHTML += "<table cellpadding=0 cellspacing=0 border=0 bgcolor='306597' width=\"" + theSub[0].width + "\">";
			for(j = 0; j < theSub.length; j ++){
				if(ns || winIE5){
					theClass = "mainNav";
					theLink = "<a href=\"" + theSub[j].goLink + "\">" + theSub[j].displayText + "</a>"
				}else{
					theClass = "navele";
					theLink = theSub[j].displayText;
				}
				outHTML += "<tr><td class='" + theClass + "' onMouseOver=\"nav(this,1);\" onMouseOut=\"nav(this,0);\" onClick=\"location = '" + theSub[j].goLink + "';\" nowrap><img src='../images/spacer.gif' width=3 height=" + rowHeight + " align='absmiddle' border=0>" + theLink + "</td></tr>";
			}
			outHTML += "</table></div>";
		}
	}
	outHTML += "<div id='bigHide' style=\"position:absolute;top:" + topPos + "px;left:0px;visibility:hidden;z-index:1;\">";
	outHTML += "<a href='#' onMouseOver='hideAll()'><img src='../images/spacer.gif' width=700 height=200 border=0></a>";
	outHTML += "</div>";
	//alert(outHTML);
	document.write(outHTML);
	loaded = true
}


function menuItem(displayText,goLink,leftPos,width){
	this.displayText = displayText;
	this.goLink = goLink;
	this.leftPos = leftPos;
	this.width = width;
}
sub1 = new Array();
sub2 = new Array();
	sub2[0] = new menuItem("Accounting Terminology Guide","../business/definitions.asp",91,150);
sub3 = new Array();
	sub3[0] = new menuItem("Making Your Pitch","../raising/default.asp#mp",194,150);
sub4 = new Array();
	sub4[0] = new menuItem("Recruiting Your Team","../building/recruiting.asp",286,150);
sub5 = new Array();
	sub5[0] = new menuItem("R&D Notebooks","../property/notebook.asp",422,150);
	sub5[1] = new menuItem("Key Items To Include","../property/key.asp");
	sub5[2] = new menuItem("Copyright, Patents & Trademarks","../property/patents.asp");	
	sub5[3] = new menuItem("Copyright","../property/patents.asp#copyrights");	
	sub5[4] = new menuItem("Patents","../property/patents.asp#patents");	
	sub5[5] = new menuItem("Trademarks","../property/patents.asp#trademarks");	
sub6 = new Array();
