function setTriggers(){
	$(".toolsLinkTrigger").colorbox({width:"50%", inline:true, href:"#login", onOpen:function(){$("object").each(function(index){$(this).addClass("moved");});$("embed").each(function(index){$(this).addClass("moved");}); },onClosed:function(){$("object").each(function(index){$(this).removeClass("moved");});$("embed").each(function(index){$(this).removeClass("moved");});}},function(){ document.forms.login.to.value = this.rel; document.forms.login.username.focus(); });
}


$(document).ready(function() {	



getTools();
setTriggers();

//$(".toolsLinkTrigger").colorbox({width:"50%", inline:true, href:"#login", onOpen:function(){$("object").each(function(index){$(this).addClass("moved");});$("embed").each(function(index){$(this).addClass("moved");}); },onClosed:function(){$("object").each(function(index){$(this).removeClass("moved");});$("embed").each(function(index){$(this).removeClass("moved");});}},function(){ document.forms.login.to.value = this.rel; document.forms.login.username.focus(); });

});//document.ready function

function toolStateChanged()
{
if (xmlhttp.readyState==4)
  {
    document.getElementById("toolsFly").innerHTML=xmlhttp.responseText;
    setTriggers();
  }
}

function getTools()
{
	var start = new Date();
	var time = start.getTime();
	var link = "/dynamic/currentStudents/tools.htm?id="+time;
	xmlhttp=GetXmlHttpObject();
  	if (xmlhttp==null)
  	{
  	  	//alert ("Your browser does not support XMLHTTP!");
  	 	return;
  	}
  	xmlhttp.onreadystatechange=toolStateChanged;
  	xmlhttp.open("GET",link,true);
  	xmlhttp.send(null);
}

