var nscp = (navigator.appName == "Netscape")
var ismc = (navigator.appVersion.indexOf("Mac") != -1)
var vers = parseFloat(navigator.appVersion.substring(22,25))


function getObj(obj)
{	if (nscp)
	{	compLayr = document.layers[obj]
	}
	else
	{	compLayr = eval("document.all." + obj + ".style")
	}
	return compLayr
}



function setTop(layr,num)
{	obj = getObj(layr)
	if (nscp)
	{	obj.top = num
	}
	else
	{	obj.posTop = num
	}
}


// function to show later

function show(layr)
{	obj = getObj(layr)
	obj.visibility = "visible"
}

// function to hide later

function hide(layr)
{	obj = getObj(layr)
	obj.visibility = "hidden"
}

// this is used to get the the height of the page (used with the global nav 

function layerHeight(layr)
{	
	if (nscp)
	{	return eval("document." + layr + ".document.height")
	}
	else
	{	return eval("document.all." + layr + ".scrollHeight")
	}
}

// this is for the rollovers 

function imgOn(layerName,imgName)
{	if (nscp)
	{	
		//Commented out because I'm not using layers
		//eval("document." + layerName + ".document[imgName].src = " + imgName + "on.src");
		eval("document[imgName].src = " + imgName + "on.src");
	}
	else
	{	
		document[imgName].src = eval(imgName + "on.src");
	}
}

function imgOff(layerName,imgName)
{	if (nscp)
	{	
		//Commented out because I'm not using layers
		//eval("document." + layerName + ".document[imgName].src = " + imgName + "off.src");
		eval("document[imgName].src = " + imgName + "off.src");
	}
	else
	{	
		document[imgName].src = eval(imgName + "off.src");
	}
}
   
function imgDn(layerName,imgName)
{	if (nscp)
	{	
		//Commented out because I'm not using layers
		//eval("document." + layerName + ".document[imgName].src = " + imgName + "on.src");
		eval("document[imgName].src = " + imgName + "dn.src");
	}
	else
	{	
		document[imgName].src = eval(imgName + "dn.src");
	}
}

// this is to document the width

function layerWidth(layr)
{	if (nscp)
	{	return eval("document." + layr + ".document.width")
	}
	else
	{	return eval("document.all." + layr + ".scrollWidth")
	}
}


// this is to document the left coordiate


function getLeft(layr)
{	obj = getObj(layr)
	if (nscp)
	{	return (obj.left)
	}
	else
	{	x = eval(layr + ".offsetLeft")
		return (x)
	}
}
