
//-------------------------------------------------------------
// Set date components
//-------------------------------------------------------------
var d_names = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var m_names = new Array("January","February","March","April","May","June","July","August","September","October","November","December");

var d = new Date();
var curr_day   = d.getDay();
var curr_date  = d.getDate();
var curr_month = d.getMonth();
var curr_year  = d.getFullYear();

//-------------------------------------------------------------
//
//-------------------------------------------------------------
  function navhighlight(id, color)
  {
    var navElm = document.getElementById(id);
    navElm.style.backgroundColor = color;
  }


//-------------------------------------------------------------
// Open new window
//-------------------------------------------------------------
  function openPopup(url, name, width, height, features)
  {
      var winFeatures = (features) ? "," + features : "";
      var xPos = (screen.availWidth) / 2 - (width / 2);
      var yPos = (screen.availHeight / 2) - (height / 2);
      var winAttribs = "width=" + width + ",height=" + height + ",left=" + xPos + ",top=" + yPos + winFeatures;
      var popup = window.open(url, name, winAttribs);
      popup.focus();

  } // end openPopup()

//-------------------------------------------------------------
// Open new window
//-------------------------------------------------------------
  function openPrint(url, name, features)
  {
      var winFeatures = (features) ? "," + features : "";
      //var xPos = (screen.availWidth) / 2 - (width / 2);
      //var yPos = (screen.availHeight / 2) - (height / 2);
      //var winAttribs = "width=" + width + ",height=" + height + ",left=" + xPos + ",top=" + yPos + winFeatures;
      var winAttribs = "width=660,height=600,resizable=yes,toolbar=no,status=no,scrolling=yes,scrollbars=yes,location=no,menubar=no,directories=no" + winFeatures;
      var popup = window.open(url, name, winAttribs);
      popup.focus();

  } // end openPrint()

//-------------------------------------------------------------
// CSS Image Rollover (credit ABCNews.com)
//-------------------------------------------------------------
  function cssRollover(obj, posX, posY)
  {
      if (typeof obj == "string") {
          obj = document.getElementById(obj);
      }
      obj.style.backgroundPosition = posX + "px " + posY + "px";

  } // end cssRollover()

