// JavaScript Document



//Code that makes a script run on pageload

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(staffstartup);
//you can add more onload events right here using the above syntax


function staffstartup(){
	
	//if(!(document.all || (document.compatMode && document.all))){ //Check for IE4+
	
	if(Array.every || window.opera){ //Check for Firefox 1.5+ or Opera
	
		//Make the info boxes fade in and out
		var examplelinks = document.getElementsByClassName("examplelink");
		for (x=0; x < examplelinks.length; x++) 
		{
			changetopopup(x,examplelinks);
		 }
	}
		

}


//Putting it in a separate function solves the closure problem
function changetopopup(x,array){
	Event.observe(array[x], "click", function(){
											  	
												array[x].href="javascript:;";
												
												
											  });
}

