//////////////////////////////////////////////////////////////////////////////////////////////global.js///////////////////////////////////////////////////////////////////////////////////////////////////These are functions used site wide.////////////////////////////////////////////////////////////////////WriteCSS//	This is used to create the correct style sheets for the page.//	It takes one argument, which is the path to the stylesheets.//	The name of the style sheets are programmed in.//	LargeTypeBrowsers.css = ie5+, net6+, pc//	SmallTypeBrowsers.css = everything elsefunction WriteCSS( fpath ){	var		plat = navigator.platform;	var		ver = navigator.appVersion;	var		doBig = false;	var		cssString;	if( ver.indexOf("MSIE") > 1)	{		ver = ver.substring(ver.indexOf("MSIE") + 4, 40);	}	if( plat != "MacPPC")	{		doBig = true;	}	else	{		if(parseInt(ver) >= 5)		{			doBig = true;			}	}	cssString = (doBig) ? 'LargeTypeBrowsers.css' : 'SmallTypeBrowsers.css';	cssString = '<link rel="stylesheet" href="' + fpath + cssString + '">';	document.open();	document.write(cssString);
//	alert(ver);	document.close();}/////////////////////////////////////////////////////////////////////////////////Helper Functions for NavObject//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////CreateStylefunction CreateStyle(divID, leftps, topps, height, width){	var	result = '';	if(divID)	{		result = '#' + divID + ' {position: absolute; ';				if(leftps){				result = result + 'left: ' + leftps + '; ';}		if(topps){			result = result + 'top: ' + topps + '; ';}		if(width){			result = result + 'width: ' + width + '; ';}		if(height){				result = result + 'height: ' + height + '; ';}		result = result + '}';	}	return (result);}////////////////////////////////////////////////////////////////////CreateDivfunction CreateDiv(divID){	var	result = "";	if(divID)	{		result = '<div id="' + divID + '" >';	}	return (result);}////////////////////////////////////////////////////////////////////CreateStylefunction CreateStyle(divID, leftps, topps, width, height){	var	result = '';	if(divID)	{		result = '#' + divID + ' {position: absolute; ';				if(leftps){				result = result + 'left: ' + leftps + '; ';}		if(topps){			result = result + 'top: ' + topps + '; ';}		if(width){			result = result + 'width: ' + width + '; ';}		if(height){				result = result + 'height: ' + height + '; ';}		result = result + '}';	}	return (result);}////////////////////////////////////////////////////////////////////CreateImgfunction CreateImg(imgpath, imgname, imgheight, imgwidth){	var		result = '<img src="' + imgpath + imgname + 'Off.gif" ';	result = result + 'name="' + imgname + '" ';	result = result + 'width="' + imgwidth + '" ';	result = result + 'height="' + imgheight + '" ';	result = result + 'border="0" ';	result = result + '>';	return (result);}////////////////////////////////////////////////////////////////////DoRollfunction DoRoll(navname, imgname, imgpath, imgstate){	var		state;	var		imgObject = 0;	var		tmpObj;	state = (imgstate)? "On.gif" : "Off.gif";	imgObject = document.images[imgname];		if(!imgObject)	{			//try net4 way		tmpObj = GetLay(navname);		if(tmpObj && tmpObj.document && tmpObj.document.images)		{			imgObject = tmpObj.document.images[imgname];		}	}	if(imgObject)	{		imgObject.src = imgpath + imgname + state;	}}////////////////////////////////////////////////////////////////////GetLayfunction GetLay(layID){	var	result = 0;		//try ie5+ and net6	if(document.getElementById)	{		result = document.getElementById(layID);	}		//try ie4	if(!result && document.all)	{		result = document.all[layID];	}		//try net4	if(!result)	{		result = document[layID];	}	return (result);}////////////////////////////////////////////////////////////////////CreateLinkfunction CreateLink( linkto, onover, onout){	var		result = '<a href="';		if(linkto)	{		result = result + linkto + '" ';	}	else	{		result = result + '#" ';	}	if(onover)	{		result = result + 'onmouseover="' + onover + '" ';	}	if(onout)	{		result = result + 'onmouseout="' + onout + '" ';	}	result = result + '>';	return (result);}////////////////////////////////////////////////////////////////////WriteLayfunction WriteLay(layName, layText){	var		layObj;	layObj = GetLay(layName);	if(layObj)	{		if(layObj.innerHTML)		{			layObj.innerHTML = layText;		}		else if(layObj.document)		{			layObj.document.open();			layObj.document.write(layText);			layObj.document.close();		}	}}////////////////////////////////////////////////////////////////////PopUpfunction PopUp(page, width, height){   var   BarString = "toolbar=no,location=no,scrollbars=yes,resizable=yes,";   BarString = BarString + "width=" + width;   BarString = BarString + ",height=" + height;   window.open(page, "Window", BarString);}////////////////////////////////////////////////////////////////////popUpPrintfunction popUpPrint(page, width, height){   var   BarString = "toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes,";   BarString = BarString + "width=" + width;   BarString = BarString + ",height=" + height;   window.open(page, "Window", BarString);}