//The Jarvis library of dhtml and javascript stuff
//1-03-01

var IE4 = (document.all && !document.getElementById) ? true : false;
var NS4 = (document.layers) ? true : false;
var IE5 = (document.all && document.getElementById) ? true : false;
var NS6 = (document.getElementById && !document.all) ? true : false;

var isMac = (navigator.appVersion.indexOf("Mac") != -1);
var isWin = (navigator.appVersion.indexOf("Win") != -1);
//var isUnix = (!isMac && !isWin);

var pia, bgbs;
var fo = "";
var lo = "";
if (parseInt(navigator.appVersion) >= 4)
	{
		if(navigator.appName == "Netscape")
		{	
			pia = true;
		}
		else{ 
			bgbs = true;
		}// end if
	}//end if

//*****************************8
//Start the fx's
//***************************

function makeHappy(passMe){
	var theThing;
	if(NS4){theThing =  eval("document." + passMe);}
	else if(IE5 || IE4){theThing = eval("document.all."+passMe+".style");}
	else if(NS6){theThing = document.getElementById(passMe).style;}
	return theThing;
}//end fx

function showMe(passMe){
	var invisibleObj = makeHappy(passMe);
	
	invisibleObj.visibility = "visible";
	
}//end fx

function hideMe(passMe){
	var theThing = makeHappy(passMe);
	
	theThing.visibility = "hidden";
}// end fx

//returns y coor of an image object
//very useful in positioning 
//update 1-15-02 not cutting it for NS6
function getMyY(itsHere){
	theThang = eval("document."+itsHere);
	if(pia){
			return (NS4)?theThang.y:theThang.offsetLeft;
			}
	else{ 
		var y= theThang.offsetTop;
		var prnt= theThang.offsetParent;
		while(prnt!=null){
		y+= prnt.offsetTop;
		prnt= prnt.offsetParent;
		}
		return y;
	}
}// end fx

//returns x coor of an image object
//very useful in positioning 
function getMyX(itsHere){
	theThang = makeHappy(itsHere);
	if(pia){
			return (NS4)?theThang.x:theThang.offsetTop;
			}
	else{ 
		var x= theThang.offsetLeft;
		var prnt= theThang.offsetParent;
		while(prnt!=null){
		x+= prnt.offsetLeft;
		prnt= prnt.offsetParent;
		}
		return x;
	}
}// end fx
function submitMe(formName){
	document[formName].submit();
}//end fx

