var b = new Object();
function gV(){
    if (navigator.appVersion.indexOf("MSIE 5") > 0) return "5";
    else if (navigator.appVersion.indexOf("MSIE 5.5") > 0) return "5.5";
    else if (navigator.appVersion.indexOf("MSIE 6") > 0) return "6";
    else return (parseFloat(navigator.appVersion));
}
function gO(){
	if (navigator.appVersion.indexOf("Win95") > 0) return "WIN95";
	else if (navigator.appVersion.indexOf("Mac") > 0) return "MAC";
	else if (navigator.appVersion.indexOf("Win16") > 0) return "WIN31";
	else if (navigator.appVersion.indexOf("Windows") > 0) return "Windows";
	else if (navigator.appVersion.indexOf("X11") > 0) return "UNIX";
	else return "UNKOWN";
}
if (navigator.appName.substring(0,8) == "Netscape") b.na = "NN";
else if (navigator.appName.substring(0,9) == "Microsoft") b.na = "MSIE";
else b.na = navigator.appName;
b.os = gO();
b.vr = gV();
function spawnFullScreen(loc, redirectme){
	fls = 1;
	botSp = 53;
	hzs = 10;
	rd = 0;
	cl = 0;  
	rs = 0;
	if (b.vr >= 4 && b.na == "MSIE"){
    	rd = 1;
	}
	if (b.na == "NN" && b.vr < 5){
    	fls = 0;
    	cl = 1;
    	if (b.os == "MAC") {
    		botSp = 45;
    	}
	}
	if (b.na == "MSIE" && b.os == "MAC"){
		fls = 0;
		rs = 1;
		botSp = 0;
		hzs = 0;
    }
    if (b.na == "NN"){
		rs = 1;
		ah = screen.availHeight - 30;
		aw = screen.availWidth - 10;
	} else {
		aw = screen.width - hzs;
		ah = screen.height - botSp;
	}
	nw = window.open(loc,'truantduck_full_screen','innerWidth='+aw+'innerHeight='+ah+'screenX=0,screenY=0,toolbar=0,location=0,resizable='+rs+',scrollbars=0,left=0,top=0,width='+aw+',height='+ah+',fullscreen='+fls);
	if (rd == 1 && redirectme == '1'){
		document.location.href="http://www.truantduck.com/fs_hold.html";
	}
	nw.focus();
	if (cl == 1){
		self.close();
	}
}