var isIE
var isNS
var isMac

//sniffs the broswer being used
if (parseInt(navigator.appVersion) >= 4)
{
if (navigator.platform =="Win32")
{
	if (navigator.appName == "Netscape")
	{
		isNS = true;
		layerRef= "document.";
		styleRef= "";
		thetop= ".top"
	}
	else
	{
		isIE = true;
		layerRef="document.all.";
		styleRef=".style";
		thetop = ".pixelTop"
	}
}
else isMac = true;
}

if (isNS) document.write ('<LINK REL=stylesheet HREF="http://www.markle.org/netscape.css" TYPE="text/css">')
if (isIE) document.write ('<LINK REL=stylesheet HREF="http://www.markle.org/ie.css" TYPE="text/css">')
if (isMac) document.write ('<LINK REL=stylesheet HREF="http://www.markle.org/mac.css" TYPE="text/css">')


//preload all images to be rolled over
//nav images
programs_hi=new Image();
programs_hi.src="http://www.markle.org/images/menu_programs_hi.gif";
about_hi=new Image();
about_hi.src="http://www.markle.org/images/menu_about_hi.gif";
gpi_hi=new Image();
gpi_hi.src="http://www.markle.org/images/menu_gpi_hi.gif";
news_hi=new Image();
news_hi.src="http://www.markle.org/images/menu_news_hi.gif";
sitemap_hi=new Image();
sitemap_hi.src="http://www.markle.org/images/menu_sitemap_hi.gif";
contact_hi=new Image();
contact_hi.src="http://www.markle.org/images/menu_contact_hi.gif";
programs_lo=new Image();
programs_lo.src="http://www.markle.org/images/menu_programs_lo.gif";
about_lo=new Image();
about_lo.src="http://www.markle.org/images/menu_about_lo.gif";
gpi_lo=new Image();
gpi_lo.src="http://www.markle.org/images/menu_gpi_lo.gif";
news_lo=new Image();
news_lo.src="http://www.markle.org/images/menu_news_lo.gif";
sitemap_lo=new Image();
sitemap_lo.src="http://www.markle.org/images/menu_sitemap_lo.gif";
contact_lo=new Image();
contact_lo.src="http://www.markle.org/images/menu_contact_lo.gif";

//main section images
blank1 = new Image();
blank1.src = "http://www.markle.org/images/graphic_spacer.gif";
arrow1 = new Image();
arrow1.src = "http://www.markle.org/images/graphic_home_arrow.gif";
blank2 = new Image();
blank2.src = "http://www.markle.org/images/graphic_spacer.gif";
arrow2 = new Image();
arrow2.src = "http://www.markle.org/images/graphic_home_arrow.gif";
blank3 = new Image();
blank3.src = "http://www.markle.org/images/graphic_spacer.gif";
arrow3 = new Image();
arrow3.src = "http://www.markle.org/images/graphic_home_arrow.gif";
blank4 = new Image();
blank4.src = "http://www.markle.org/images/graphic_spacer.gif";
arrow4 = new Image();
arrow4.src = "http://www.markle.org/images/graphic_home_arrow.gif";
photo1 = new Image();
photo1.src = "http://www.markle.org/images/photo_home_default_stock.jpg";
photo2 = new Image();
photo2.src = "http://www.markle.org/images/home1.jpg";
photo3 = new Image();
photo3.src = "http://www.markle.org/images/home2.jpg";
photo4 = new Image();
photo4.src = "http://www.markle.org/images/home3.jpg";
photo5 = new Image();
photo5.src = "http://www.markle.org/images/home4.jpg";

//actual rollover function
function rollover(imgSwap,imgName) {
if (imgSwap.indexOf(section) != -1) return
else
	{
	imgSwap = eval(imgSwap + ".src");
	document [imgName].src = imgSwap;
	}
}	
	
//for navigation include
var section
function navroll()
{
var query = location.href
var result = query.split("_")
section = result[1]
if(section != null){
eval ("document.images['"+section+"'].src='/images/menu_"+section+"_hi.gif'")
}
}

