function setup() {	var xMax = screen.availWidth;	var yMax = screen.availHeight;	var ratio = Number(xMax)/Number(yMax);	window.moveTo(0, 0);	if ( ratio > Number(8)/Number(3) ) {		xMax = Number(xMax)/Number(2);	}	window.resizeTo(xMax,yMax);}function detectOS() {	if(navigator.userAgent.indexOf('Win') == -1) {		OS = 'Macintosh';	} else {		OS = 'Windows';	}	return OS;}function detectBrowser() {	if(navigator.appName.indexOf('Netscape') == -1) {		browser = 'IE';	} else {		browser = 'Netscape';	}	return browser;}function FullScreen(pURL, pTitle) {	var adjWidth;	var adjHeight;	if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) {		adjWidth = 20;		adjHeight = 35;	}	if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) {		adjWidth = 20;		adjHeight = 35;		winOptions = 'fullscreen=yes';	}	if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) {		adjWidth = 30;		adjHeight = 30;	}	var winWidth = screen.availWidth - adjWidth;	var winHeight = screen.availHeight - adjHeight;	var winSize = 'width=' + winWidth + ',height=' + winHeight;	var thewindow = window.open(pURL, pTitle, winSize);	thewindow.moveTo(0,0);}function launchFullscreen(pURL, pTitle) {	if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {		window.open(pURL,pTitle,'fullscreen=yes');	} else {		onload=FullScreen(pURL, pTitle);	}}