  // CODE COURTESY OF 
  // U.I. INTEGRATION BY DEVIGAL DESIGN: http://devigal.com/

<!--//


function hideLayer(theLayer) {
	document.getElementById(theLayer).style.display = "none";
}


function showLayer(theLayer) {
	document.getElementById(theLayer).style.display = "block";
}


function switchLayer(LayerOn,LayerOff) {
	hideLayer(LayerOff);
	showLayer(LayerOn);
}


function popup(url,width,height) {
        window.open(url,'popup','width='+width+',height='+height+',scrollbars=auto,resizable=yes,toolbar=no,directories=no,menubar=no,status=no,left=100,top=100');
        return false;
}

function makewin (targurl, width, height, winopts) {
  if (navigator.userAgent.indexOf("MSIE 3.0") == -1 && navigator.appVersion.indexOf("2.0") == -1)
    {
      if (window.sidebars == null)
	{
	  sidebars = new Object;
	  sidebars.length = 5;
	}
      allopts = "width=" + width + ",height=" + height + "," + winopts;
      var tempref = window.open(targurl, "sidebar2" + sidebars.length, allopts);      
      sidebars[sidebars.length] = tempref;
      sidebars.length++;
    }
  else
    {
      self.location.href = targurl;
    }
}

function killwins() {
  if (navigator.userAgent.indexOf("MSIE 3.0") != -1 && window.sidebars != null)
    {
      for (i = 1; i < sidebars.length; i++)
	{
	  sidebars[i].close();
	}
    }
}

//-->
