    var DHTML = (document.getElementById || document.all || document.layers);
    function getObj(name) {
      if (document.getElementById) {
      this.obj = document.getElementById(name);
      }
      else if (document.all) {
      this.obj = document.all[name];
      }
      else if (document.layers) {
       this.obj = document.layers[name];
      }
    }

    function changeBackground(objid, color) {
      if (!DHTML) return;
      var tdCell = new getObj(objid);
      tdCell.obj.style.background = color;
    }

   function pop_menu (element, whichMenu, whatState){
     if (!DHTML) return;
       var contactusTopOffset = document.getElementById('contactus_row').offsetTop;
       var topOffset = document.getElementById(element).offsetTop;
       var leftOffset = document.getElementById(element).offsetLeft;
       var heightOffset = document.getElementById(element).offsetHeight;
       var widthOffset = document.getElementById(element).offsetWidth;
           topOffset += heightOffset;
           contactusOffset = (heightOffset * 12)
       if (whatState == 'hidden') {
          contactusOffset *= 0;
       }
     if (!document.all) {
       document[whichMenu].topOffset = topOffset;
       document[whichMenu].visibility = whatState;
     }
     if (document.getElementById) {
       document.getElementById(whichMenu).style.top = topOffset + "px";
       document.getElementById(whichMenu).style.left = leftOffset + "px";
       document.getElementById('contactus_row').style.top = contactusOffset + "px";
       document.getElementById(whichMenu).style.visibility = whatState;
     }
   }

    function set_variables() {
      var homePage = new getObj('home_anchor');
      homePage.obj.innerText = "Home";
      homePage.obj.href = "/region/welcome.html";
      var currentPage = new getObj('page_anchor');
      currentPage.obj.innerText = pageHeader;
      currentPage.obj.href = "/" + workarea + "/welcome.html";
      var footerAnchor = new getObj('footer_anchor');
      footerAnchor.obj.href = footerMailto;
      var navIndex = new getObj('welcome_anchor');
      navIndex.obj.href = "/" + workarea + "/welcome.html";
      navIndex = new getObj('people_anchor');
      navIndex.obj.href = "/" + workarea + "/people/index.html";
      navIndex = new getObj('people_anchor');
      navIndex.obj.href = "/" + workarea + "/people/index.html";
      navIndex = new getObj('schools_anchor');
      navIndex.obj.href = "/" + workarea + "/schools.html";
      navIndex = new getObj('forms_anchor');
      navIndex.obj.href = "/" + workarea + "/forms/index.html";
      navIndex = new getObj('or_anchor');
      navIndex.obj.href = "http://www.sacsnet.org";
      navIndex = new getObj('events_anchor');
      navIndex.obj.href = "/" + workarea + "/events/index.html";
      navIndex = new getObj('region_anchor');
      navIndex.obj.href = "http://www.sacsnet.org/region";
      navIndex = new getObj('relatedlinks_anchor');
      navIndex.obj.href = "/" + workarea + "/relatedlinks/index.html";
      navIndex.obj.style.color = "#FF0000";
      navIndex.obj.style.fontWeight = "bolder";
      navIndex = new getObj('contactus_anchor');
      navIndex.obj.href = "/" + workarea + "/contactus.html";
    }

var dragapproved=false
var minrestore=0
var initialwidth,initialheight
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all
var popupElement = "";

function iecompattest(){
  return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function drag_drop(e){
  if (ie5 && dragapproved && event.button==1){
    document.getElementById(popupElement).style.left = tempx + event.clientX - offsetx + "px"
    document.getElementById(popupElement).style.top = tempy + event.clientY - offsety + "px"
  }
  else if (ns6 && dragapproved){
    document.getElementById(popupElement).style.left = tempx + e.clientX-offsetx + "px";
    document.getElementById(popupElement).style.top = tempy + e.clientY - offsety + "px";
  }
}

function initializedrag(e){
  offsetx = ie5? event.clientX : e.clientX;
  offsety = ie5? event.clientY : e.clientY;
  document.getElementById(popupElement + "Content").style.display="";
  tempx = parseInt(document.getElementById(popupElement).style.left);
  tempy = parseInt(document.getElementById(popupElement).style.top);
  dragapproved = true;
  document.getElementById(popupElement).onmousemove = drag_drop;
}

function popup(elementID, width, height){
  popupElement = elementID;
  if (!ie5&&!ns6)
    window.open("", "","width=width, height=height, scrollbars=1")
  else {
    document.getElementById(popupElement).style.display=''
    document.getElementById(popupElement).style.width = initialwidth = width+"px"
    document.getElementById(popupElement).style.height = initialheight = height+"px"
    document.getElementById(popupElement).style.left = "30px";
    document.getElementById(popupElement).style.top=ns6? window.pageYOffset*1+30+"px" : iecompattest().scrollTop*1+30+"px"
  }
}

function maximize(){
  if (minrestore==0){
    minrestore=1 //maximize window
    document.getElementById("maxname").setAttribute("src","restore.gif")
    document.getElementById(popupElement).style.width=ns6? window.innerWidth-20+"px" : iecompattest().clientWidth+"px"
    document.getElementById(popupElement).style.height=ns6? window.innerHeight-20+"px" : iecompattest().clientHeight+"px"
  }
  else{
    minrestore=0 //restore window
    document.getElementById("maxname").setAttribute("src","max.gif")
    document.getElementById(popupElement).style.width=initialwidth
    document.getElementById(popupElement).style.height=initialheight
  }
    document.getElementById(popupElement).style.left=ns6? window.pageXOffset+"px" : iecompattest().scrollLeft+"px"
    document.getElementById(popupElement).style.top=ns6? window.pageYOffset+"px" : iecompattest().scrollTop+"px"
}

function closeit() {
  document.getElementById(popupElement).style.display="none"
}

function stopdrag(){
  dragapproved=false;
  document.getElementById(popupElement).onmousemove=null;
  document.getElementById(popupElement + "Content").style.display="";
}

function test (message) {
  alert(message);
}