is = new BrowserCheck();
timething=null;

function on(id,obj) {
xpos = findPosX(obj) + 0;
ypos = findPosY(obj) + 34 ;
moveObject(xpos,ypos,id);
hideall();
show(id);
}

function hideall() {
hide('submenu_1');
hide('submenu_2');
hide('submenu_3');
}

function show(id) {
	if (is.ns) document.layers[id].visibility = "show"
	else if (is.ie4) document.all(id).style.visibility = "visible"
	else if (is.ie) document.getElementById(id).style.visibility = 'visible'
}

function hide(id) {
        if (is.ns) document.layers[id].visibility = "hide"              
        else if (is.ie4) document.all(id).style.visibility = "hidden"
        else if (is.ie) document.getElementById(id).style.visibility = 'hidden'
}   

function BrowserCheck() {
        var b = navigator.appName
        if (b=="Netscape") this.b = "ns"
        else if (b=="Microsoft Internet Explorer") this.b = "ie"
        else this.b = "ie";
        this.v = parseInt(navigator.appVersion)
        this.ns = (this.b=="ns" && this.v==4)
        this.ns4 = (this.b=="ns" && this.v==4)
        this.ie = ((this.b=="ie" && this.v>=4)||(this.b=="ns" && this.v>=5))
        this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
        this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
        if (this.ie5) this.v = 5
        this.min = (this.ns||this.ie)
        if(!this.ns) { this.ie=true; }
}

function moveObject(xpos,ypos,id) {
// y positioning
	if (is.ns) document.layers[id].style.top = ypos;
	else if (is.ie4) document.all(id).style.top = ypos;
	else if (is.ie) document.getElementById(id).style.top = ypos;
// x positioning
	if (is.ns) document.layers[id].style.left = xpos;
	else if (is.ie4) document.all(id).style.left = xpos;
	else if (is.ie) document.getElementById(id).style.left = xpos;
}

function findPosX(obj) {
	var curleft = 0;
	if (document.getElementById || document.all) {
		while (obj.offsetParent) {
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (document.layers)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj) {
	var curtop = 0;
	if (document.getElementById || document.all) {
		while (obj.offsetParent) {
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (document.layers)
		curtop += obj.y;
	return curtop;
}

function timeout(id) {
	timething = setTimeout('timeoutsub("'+id+'")',2500);
}
function timeoutsub(id) {
	if (id == "all") {
		hideall();
	}
	else {
		hide(id);
	}
}
function delayout() {
	timeout("all");
}

function wait() {
clearTimeout(timething);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}