<!-- hide script from old browsers

menu_status = new Array();

function xstooltip_findPosX(obj) 
{
  var curleft = 0;
  if (obj.offsetParent) 
  {
    while (obj.offsetParent != "[object HTMLBodyElement]") 
        {
            curleft += obj.offsetLeft
            obj = obj.offsetParent;
        }
    }
    else if (obj.x) 
        curleft += obj.x; 
    return curleft;
}


function xstooltip_findPosY(obj) 
{
    var curtop = 0;
    if (obj.offsetParent) 
    {
        while (obj.offsetParent) 
        {
            curtop += obj.offsetTop
            obj = obj.offsetParent;
        }
    }
    /*else if (obj.y)
        curtop += obj.y;*/
    return curtop;
}

function xstooltip_show(tooltipId, parentId, posX, posY)
{
    it = document.getElementById(tooltipId);
    
    if ((it.style.top == '' || it.style.top == 0) 
        && (it.style.left == '' || it.style.left == 0))
    {
        // need to fixate default size (MSIE problem)
        it.style.width = it.offsetWidth + 'px';
        it.style.height = it.offsetHeight + 'px';
        
        img = document.getElementById(parentId); 
    
        // if tooltip is too wide, shift left to be within parent 
        if (posX + it.offsetWidth > img.offsetWidth) posX = img.offsetWidth - it.offsetWidth;
        if (posX < 0 ) posX = 0; 
        
        x = xstooltip_findPosX(img) + posX;
        y = xstooltip_findPosY(img) + posY;
        
        it.style.top = y + 'px';
        it.style.left = x + 'px';
    }
    
    it.style.visibility = "visible"; 
}

function xstooltip_hide(id)
{
    it = document.getElementById(id); 
    it.style.visibility = 'hidden'; 
}

function showHide(theid, show, which){
    if (document.getElementById) {
    
    if (show != "no") {    
      for (i in menu_status) {
        var switch_id = document.getElementById(i);
        switch_id.className = 'hide';
        menu_status[i] = 'hide';
      }
    }
    else if (which) {
      for (i in menu_status) {
        if (i != which) {
          var switch_id = document.getElementById(i);
          switch_id.className = 'hide';
          menu_status[i] = 'hide';
        }
      }
    }
    
    var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        }
    }
}

function hideall(){
    if (document.getElementById) {
    
    for (i in menu_status) {
      var switch_id = document.getElementById(i);
      switch_id.className = 'hide';
      menu_status[i] = 'hide';
    }
    
    }
}


<!-- Original:  Jenny Blewitt (webmaster@webdesignsdirect.com) -->
<!-- Web Site:  http://www.webdesignsdirect.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);
ie7dn = (browserName.indexOf("Microsoft") >= 0 && browserVer < 7);

function doPic(imgName) {
  if (ns3up || ie4up) {
    imgOn = ("" + imgName);
    document.mainpic.src = imgOn;
    if (ie7dn) {
      location.href="#top";
    }
  }
}

function admin() {
window.location="/cal/login.php";
}

img1= new Image(216,36)
img1.src = "img1.gif"
img2 = new Image(216,36)
img2.src = "img2.gif"

function over(im) {
document.getElementById(im).src = img2.src; return true;
}

function off(im) {
document.getElementById(im).src = img1.src; return true;
}


function ie7dnmsg() {
  vers = navigator.appVersion.indexOf("MSIE") + 5;
  ie7dn = (navigator.appVersion.charAt(vers) < 7 && browserVer <= 4);
  if (ie7dn){
  document.write('<br><Br><BR><font size="-1">Versions of Internet Explorer less than version 7 do not display this page correctly. For best viewing experience, please upgrade your browser.</font>')
  }
  if (screen.height<768 || screen.width<1024) {
    document.write('<br><Br><BR><font size="-1">This page is best viewed at a resolution of 1024x768 or greater.</font>')
  }
}



function screensize() 
{
  var date = new Date()
  date.setTime(date.getTime()+(3600000))
  var expires = "; expires="+date.toGMTString()
  document.cookie = "userheight="+screen.height+expires+"; path=/"
  document.cookie = "userwidth="+screen.width+expires+"; path=/"
}

// end hiding script from old browsers -->

