
var re= new Object(), timerID = null, current = "";
re.setOff = function(){return false;}
re.setOn = function(){return false;}

function init() {

	re = new RolloverEngine();
}

bw = new checkBrowser()

function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
        this.ns6=(this.dom && parseInt(this.ver) >= 6) ?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}

function getRef(layerID) {
	return 	bw.dom ? document.getElementById(layerID).style : bw.ie4 ? document.all[layerID].style : bw.ns4 ?  document[layerID] : 0; 

}

function show(layerID) {
	selectedRoot = layerID;
	getRef(layerID).visibility="visible";
	current = layerID;
}

function hide(layerID) {
	selectedRoot = layerID;
	getRef(layerID).visibility="hidden";
}


function hideMenu(layerID) {
	timerID = setTimeout("hide('" + layerID + "');", 250);
}

function showMenu(layerID) {
	clearTimeout(timerID);
	if ((layerID != current) && (current != ""))hide(current);
	if (layerID != "") show(layerID);
}