//<![CDATA[

function Browser() {

  var ua, s, i;

  this.isIE    = false;
  this.isNS    = false;
  this.version = null;

  ua = navigator.userAgent;

  s = "MSIE";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  // Treat any other "Gecko" browser as NS 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }
}

function toggle(id, what) {

dom = document.getElementById ? 1 : 0;
ie4 = (document.all && !dom) ? 1 : 0;
opera = (navigator.userAgent.indexOf('Opera')!=-1) ? 1 : 0;
supported = ((dom||ie4) && !(opera)) ? 1 : 0;

if(!supported)
return;

if (dom && !document.all)
document.all = document.getElementsByTagName("*")

obj = (dom) ? document.getElementById(id) : document.all(id)

if(what=='vis')
obj.style.visibility='visible';

else
obj.style.visibility='hidden'; 
	
}

function timer_close(){
timer = setTimeout("toggle('side','hid')" , 100);
}

function timer_open(){
setTimeout("toggle('side','vis')" , 100);
}

function find_menu(id) {

dom = document.getElementById ? 1 : 0;
ie4 = (document.all && !dom) ? 1 : 0;
opera = (navigator.userAgent.indexOf('Opera')!=-1) ? 1 : 0;
supported = ((dom||ie4) && !(opera)) ? 1 : 0;

if(!supported)
return;

if (dom && !document.all)
document.all = document.getElementsByTagName("*")

obj = (dom) ? document.getElementById(id) : document.all(id)

if(obj.style.visibility=='visible')
{ clearTimeout(timer); toggle('side','vis'); }

	
}

//]]>
