//Javascript Browser Sniff 1.0
//Jim Cummins - http://www.conxiondesigns.com
//Browser Sniff 1.0
var isIE = false;
var isOther = false;
var isNS4 = false;
var isNS6 = false;
if(document.getElementById){
	if(!document.all){
		isNS6=true;
	}
	if(document.all){
		isIE=true;
	}
}
else {
	if(document.layers){
		isNS4=true;
	}
	else{
		isOther=true;
	}
}
//End of Browser Sniff1.0
//Access Layer Style Properties
//Jim Cummins - http://www.conxiondesigns.com
//Required components:  Javascript Browser Sniff 1.0

function aLs(layerID){
var returnLayer;
	if(isIE){
		returnLayer = eval("document.all." + layerID + ".style");
	}
	if(isNS6){
		returnLayer = eval("document.getElementById('" + layerID + "').style");
	}
	if(isNS4){
		returnLayer = eval("document." + layerID);
	}
	if(isOther){
		returnLayer = "null";
		alert("-[Error]-\nDue to your browser you will probably not\nbe able to view all of the following page\nas it was designed to be viewed. We regret\nthis error sincerely.");
	}
	return returnLayer;
}
//End of Accessing Layer Style Properties


//HideShow 1.0
//Jim Cummins - http://www.conxiondesigns.com
//Required components:  Accessing Layer Style Properties (and Req. Comp.)

function HideShow(ID){
	if((aLs(ID).visibility == "visible") || (aLs(ID).visibility == "")){
		aLs(ID).visibility = "hidden";
	}
	else if(aLs(ID).visibility == "hidden"){
		aLs(ID).visibility = "visible";
	}
}
//End of HideShow 1.0
