// browser detection

var detect = navigator.userAgent.toLowerCase();
var browser;

if (checkIt('safari')) browser = "Safari"
if (checkIt('opera'))  browser = "Opera"
if (checkIt('msie'))   browser = "explorer"
if (checkIt('firefox'))browser = "firefox"
if (checkIt('gecko'))  browser = "mozilla"


function checkIt(string)
 {
    
    place = detect.indexOf(string)

  if (place != -1) 
  {
    return true;
  }
}

function position(cell)
{
   var pos;
   pos = document.getElementById(cell).offsetLeft;
   return pos;
}


// 1 visible, 0 hidden
function showhide(layerID, iState) {
 
    document.getElementById(layerID).style.visibility = iState ? "visible" : "hidden"; 
}
