
function checkPopup(strTaster){
	var strWindowName = window.name
	
	if(strWindowName.length == 0){
		// check where we are.
		switch(strTaster){
			case "home" :
				window.location.href = "/index.asp";
				break;
			case "maths" :
				window.location.href = "/Maths/maths.htm";
				break;
			case "science" :
				window.location.href = "/Science/science.htm";
				break;
			case "primary" :
				window.location.href = "/primary/primary.htm";
				break;
			case "games" :
				window.location.href = "/amusements/Games/games.htm";
				break;
			case "illusions" :
				window.location.href = "/amusements/OpticalIllusions/illusions.htm";
				break;
			default :
				window.location.href = "/index.asp";
		}
	} else {
		// do nothing
	}
}

//Opens game in a window with no toolbar
var windowHandle = '';
function openMaxWindow(url) {
    windowHandle = window.open(url,'popup','fullscreen=no, scrollbars=yes,resizable=yes, screenX=0, screenY=0, outerHeight=' + screen.availHeight + ',outerWidth=' + screen.availWidth);
}