<!-- //hide from crippled browsers
//preload rollover images 

var rOver=false;
var cached=false;

if (document.images) {
	rOver=true;
	//top images
	homeIcon=new Image;
	homeIcon.src="images/navigation/topNav/home.gif";
	homeOnIcon=new Image;
	homeOnIcon.src="images/navigation/topNav/homeOn.gif";
	
	caseIcon=new Image;
	caseIcon.src="images/navigation/topNav/case.gif";
	caseOnIcon=new Image;
	caseOnIcon.src="images/navigation/topNav/caseOn.gif";
	
	revisionIcon=new Image;
	revisionIcon.src="images/navigation/topNav/revision.gif";
	revisionOnIcon=new Image;
	revisionOnIcon.src="images/navigation/topNav/revisionOn.gif";
	
	theoryIcon=new Image;
	theoryIcon.src="images/navigation/topNav/theory.gif";
	theoryOnIcon=new Image;
	theoryOnIcon.src="images/navigation/topNav/theoryOn.gif";
	
	informationIcon=new Image;
	informationIcon.src="images/navigation/topNav/information.gif";
	informationOnIcon=new Image;
	informationOnIcon.src="images/navigation/topNav/informationOn.gif";
	
	loginIcon=new Image;
	loginIcon.src="images/navigation/topNav/login.gif";
	loginOnIcon=new Image;
	loginOnIcon.src="images/navigation/topNav/loginOn.gif";

	teachersIcon=new Image;
	teachersIcon.src="images/navigation/topNav/teachers.gif";
	teachersOnIcon=new Image;
	teachersOnIcon.src="images/navigation/topNav/teachersOn.gif";


	cached=true;
}

/*
function popUp(url) {
	var popup=window.open(url , "thePopup","width=460,height=350,status=no,menubar=no,scrollbars=yes");
}
*/

function rollOver(object, image) {
	if (rOver==true && cached==true) {
		rOverState=eval(image+"OnIcon.src");
		document.getElementById(object).src=rOverState;
	}
}

function rollOff(object, image) {
	if (rOver==true && cached==true) {
		rOverState=eval(image+"Icon.src");
		document.getElementById(object).src=rOverState;
	}
}

function popUp(url) {
	theFullURL=url;
	/*
	theFullURL="http://development.thetimes100.co.uk/"+url;
	theFullURL="http://starfury/times11/"+url;
	*/
	var popup=window.open(theFullURL, "thePopup","width=460,height=350,status=no,menubar=no,scrollbars=yes");
}
// -->