/*    This library has been tested with very specific browser and OS combination.
 *        More will be added if 
 */
var nav4=false;
var ie4=false;
var nav5=false;
var ie5=false;
var ie6=false;
var dyn=false;

if (navigator.platform=="Win32") {
    if(navigator.appVersion.charAt(0) == "4" && navigator.appName == "Netscape") {nav4=true;}                   //netscape 4 on windows
    if(navigator.appVersion.charAt(0) == "5" && navigator.appName == "Netscape") {nav5=true;}                   //netscape 5 on windows
    if(navigator.appVersion.charAt(0) == "4" && navigator.appName == "Microsoft Internet Explorer") {ie4=true;} //id 5 on windows
}
if (nav4 || ie4 || nav5 || ie5){
    dyn=true;
}
//document.write(navigator.appVersion);
//document.write(nav4, ie4, nav5, ie5);

//objection reference fix for netscape and ie
function objfix(objname_in) {
   var objname_out;
   if (nav4) {
      objname_out = eval("document." + objname_in);
   } 
   else if (nav5) {
      objname_out = document.getElementById(objname_in);
      objname_out = objname_out.style;
   } 
   else if (ie4){
      objname_out = eval("document.all." + objname_in + ".style");
   }
   return objname_out;
}

//set coordinate for object
function ShiftToY(obj, y) {
   var theObj=objfix(obj);
   if(nav5||nav4) {
      theObj.top=y;
   }
   else if(ie4) {
      offsetY = window.event.offsetY - document.body.scrollTop
      theObj.pixelTop=y+document.body.scrollTop;
   }
}

/*
//netscape capture event fix
var cursorx, cursory;
if(nav5) {
    document.onmouseover = ecapture; 
}
if(nav4) {
    document.captureEvents(Event.MOUSEMOVE)
    document.onMouseMove = ecapture; 
}

function ecapture(e)
{
    if(nav4||nav5){
        cursorx=e.pageX;
        cursory=e.pageY;
}   }


function showdescription(obj) {
    if (nav4||nav5){
        ShiftToY(obj, cursory);
    }
    else if (ie4){
        ShiftToY(obj, window.event.clientY);
    }
    VisibleOn(obj);
}

function hidedescription(obj) {
    VisibleOff(obj);
}
*/




//set visibility
function VisibleOn(obj) {
   var theObj=objfix(obj);
   theObj.visibility="visible";
}

function VisibleOff(obj) {
   var theObj=objfix(obj);
   theObj.visibility="hidden";
}


