// JavaScript Document
// SHOW AND HIDE LAYERS

var shown = "home"; 

function showitem(item) {	
  if (document.getElementById) {
		document.getElementById(shown).style.display = "none";		
		document.getElementById(item).style.display = "block";
		shown = item; 
		return false; 
	}	       
}

var theahrefs = document.getElementsByTagName("a");
      //fix dotted line thing when link is OnClicked
for(var x=0;x!=theahrefs.length;x++){
theahrefs[x].onfocus = function stopLinkFocus(){this.hideFocus=true;};

      }
	  
	  


// Adds an event handler to the onload event of the window object
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

// SHOW AND HIDE LAYERS

function toggleLayer(whichLayer)
{
    if (document.getElementById)
    {
        // this is the way the standards work
        var style2 = document.getElementById(whichLayer).style;
        style2.display = style2.display? "":"block";
    }
    else if (document.all)
    {
        var style2 = document.all[whichLayer].style;
        style2.display = style2.display? "":"block";
    }
    else if (document.layers)
    {
        // this is the way nn4 works
        var style2 = document.layers[whichLayer].style;
        style2.display = style2.display? "":"block";
    }
}

printLink = function() {
    if (window.print) {
        window.print();
    } else {
        alert("Unfortunately your browser doesn't support printing via Javascript.\nTo print this page please select \"File > Print...\" in your browser's menu.");
    }
    return false;
}


