var NN4 = (navigator.appName.indexOf("Netscape")!=-1 && navigator.appVersion.charAt(0)=="4") ;
var NN6 = (navigator.appName.indexOf("Netscape")!=-1 && navigator.appVersion.charAt(0)=="5") ;
var IE = (navigator.appName.indexOf("Explorer")!=-1);

var OP = (navigator.appName.indexOf("Opera")!=-1);

var browser_version = parseInt(navigator.appVersion);

var style = "";
var visib = NN4 ? "show" : "visible"

var totalHeight = 0;


function getObject(obj) 
{
  if(NN6||OP) return document.getElementById(obj);
  else if(NN4) return eval("document."+obj)
  else if(IE) return document.all(obj);
}

function getStyle(obj) 
{
  obj = getObject(obj);
  if(IE || NN6 || OP) obj = obj.style
  return obj;
}

function swap(obj)
{
  var theObj = getStyle(obj)
  if(theObj.visibility == visib)
  {
    theObj.visibility = "hidden"
    theObj.top = -100;
  }
  else
  {
    theObj.visibility = visib
    theObj.top = 26;
  }
}

function getScreenWidth()
{
 screenWidth = (IE ) ? document.body.clientWidth : window.innerWidth;
 return screenWidth
}

function getScreenWidth()
{
 screenHeight = (IE ) ? document.body.clientHeight : window.innerHeight;
 return screenHeight
}


function show(obj)
{
  var theObj = getStyle(obj)
  theObj.left = 350
  theObj.visibility = visib  
}

function hide(obj)
{
  var theObj = getStyle(obj)
  theObj.visibility = "hidden"  
}