var is = new Is();

function Is ()
{
	var agt = navigator.userAgent.toLowerCase();

	this.created = true;

	this.major = parseInt(navigator.appVersion);
	this.minor = parseFloat(navigator.appVersion);

	this.nav = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)));
	this.nav2 = (this.nav && (this.major == 2));
	this.nav3 = (this.nav && (this.major == 3));
	this.nav4 = (this.nav && (this.major == 4));

	//Netscape 6
	this.nav5 = (this.nav && (this.major == 5));
	this.nav6 = (this.nav && (this.major == 5));
	this.gecko = (this.nav && (this.major >= 5));

	this.ie	= (agt.indexOf('msie') != -1);
	this.ie3 = (this.ie && (this.major == 3));
	this.ie4 = (this.ie && (this.major == 4));
	this.ie5 = (this.ie && (this.major == 5));

	this.opera = (agt.indexOf('opera') != -1);

	this.nav4up = this.nav && (this.major >= 4);
	this.ie4up = this.ie  && (this.major >= 4);
}

function showmenu (id) {
	//alert(document.all(id).style.visibility);
	//if(loaded == 0)return false;
	if(is.ie4up) document.all(id).style.visibility = 'visible';
	else if(is.gecko) document.getElementById(id).style.visibility = 'visible';		
	// else document.layers[lay].visibility='show';
	return true;
}

function hidemenu (id) {
	//if(loaded == 0)return false;
	if(is.ie4up) document.all(id).style.visibility = 'hidden';
	else if(is.gecko) document.getElementById(id).style.visibility = 'hidden';		
	// else document.layers[lay].visibility='show';
	
	return true;
}



	var old_item_id;
	var timeout_id;

	function show_item (f_item_id) {
		if ((old_item_id != f_item_id) && (old_item_id != null)) {
			hidemenu(old_item_id); 
		} else {
			if (timeout_id>0) { 
				clearTimeout(timeout_id);
				timeout_id = 0;
			}
		}
		showmenu (f_item_id);
		old_item_id = f_item_id;
	}

	function hide_item (f_item_id) {
		timeout_id = setTimeout ("_hide_item('" + f_item_id + "');", 700);
	}

	function _hide_item (f_item_id) {
		hidemenu (f_item_id);
		timeout_id = 0;
	}
	

