sfHover = function ()
{
	var sfEls = document.getElementById ("nav_container").getElementsByTagName ("LI");
	for (var i = 0; i < sfEls.length; i ++)
   {
		sfEls[i].onmouseover= function () {
			this.className += " sfhover";
		}
		sfEls[i].onmouseout = function () {
			this.className = this.className.replace (new RegExp (" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) 
{
  window.attachEvent ("onload", sfHover);
}

function openWindow (URL, windowName, windowProperties)
{
  newWindow = window.open (URL, windowName, windowProperties);
}

function openAnyWindow(url, name) {
  var screenWidth = screen.availWidth;
  var screenHeight = screen.availHeight;

  if( isNaN(screenWidth) || (screenWidth <= 1) ) {
    screenWidth = 640;
  }

  if( isNaN(screenHeight) || (screenHeight <= 1) ) {
    screenHeight = 480;
  }

  var leftPosition = 0;
  var topPosition = 0;
  var l = openAnyWindow.arguments.length;
  var w = "";
  var h = "";
  var features = "";

  for (i=2; i<l; i++) {
    var param = openAnyWindow.arguments[i];
    if ( (parseInt(param) == 0) ||
      (isNaN(parseInt(param))) ) {
      features += param + ',';
    } else {
      if (w == "") { 
        w = "width=" + param + "," 
        leftPosition = (screenWidth - param) / 2;
        w += "left=" + leftPosition + ","
      } else {
        topPosition = (screenHeight - param) / 2;
        h = "top=" + topPosition + ",";
        h += "height=" + param;
      }
    }
  }

  features += w + h;
  var code = "popupWin = window.open(url, name";
  if (l > 2) code += ", '" + features;
  code += "')";
  eval(code);
}
