// hardacker.com 
// Andy Hardacker February 2002
function getObject(id) {
  if (document.getElementById) return document.getElementById(id);
  if (document.all) return eval("document.all." + id);
  if (document.layers) {
    // for old Netscape, have to include all containing layers 
    // so this function should be called iteratively and we'll have
    // to figure out a way to deal with the dot
    return eval("document." + id);
  }
  return null;
}
function actionButtonOver() { this.className="action-button-horiz abh-over"; } 
function actionButtonDown() { this.className="action-button-horiz abh-down"; }
function actionButtonOut()  { this.className="action-button-horiz"; }
function initPage() {
  var nav = getObject("nav-buttons");
  if (nav != null) {
    var navButton = null;
	if (document.getElementById)
	  navButton = nav.getElementsByTagName("A");
  	else if (document.all)
	  navButton = nav.all.tags("A");
  	else if (document.layers)
      navButton = nav.document.anchors; 
    if (navButton != null) {           
      // alert("navButton.length="+navButton.length);
  	  for (var i=0;i < navButton.length;i++) {
  		if (navButton[i].className == "action-button-horiz") {
          navButton[i].onfocus   = actionButtonOver; 
          navButton[i].onblur    = actionButtonOut; 
          navButton[i].onkeydown = actionButtonDown; 
        }  
  	  }
    }  
  }
}
 
function openPopUp(filename,height,width,options) {
  if (typeof options != "undefined" && options != "") options = ","+options;
  window.open(filename,'','width='+width+',height='+height+options);
  return false;           
}

