ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

var str=navigator.userAgent;
var re=/Firefox/;
var index=str.search(re);
ff = (index>-1)? true:false  

function getDiv(divName) {	
	if (ns4) 
		return (document.layers[divName]);
	else 
		return (document.all[divName]);	
}

function changeDiv(div, page) 
{

	if (ns4) 
		eval("document." + div + "Layer.src = page")
	else 
		eval("parent." + div + "Frame.document.location = page")
}

function showDiv(divName) {
	var obj = getDiv(divName);	
	if (obj != null)
	{
		if (ns4) 
			obj.visibility = "show";
		else 
			obj.style.visibility = "visible";
	}			
}

function hideDiv(divName) {
	var obj = getDiv(divName);	
	if (obj != null)
	{
		if (ns4) 
			obj.visibility = "hide";
		else 
			obj.style.visibility = "hidden";
	}			
}

function moveDivBy(divName,x,y) {
	var theDiv = getDiv(divName);	
	if (ns4) 
	{
		theDiv.moveBy(x,y);
	} 
	else
	{
		theDiv.style.pixelLeft += x; 
		theDiv.style.pixelTop += y;
	} 
} 

function moveDiv(divName,x,y) {
	var theDiv = getDiv(divName);	
	if (ns4) 
	{
		theDiv.moveTo(x,y);
	} 
	else 
	{
		theDiv.style.pixelLeft = x; 
		theDiv.style.pixelTop = y;
	} 
} 

	
	

