	/*var strQuery = new String(parent.window.location.search);
	strQuery = strQuery.substr(1);
	if (parent.window.location.hash.length >= 2){
		var thePage;
		if (strQuery != ""){
			thePage = "&"
		} else {
			thePage = ""
		}
		thePage += "page="+parent.window.location.hash.substr(1);
		strQuery += thePage;
	}
	*/
	//strQuery += "&browserApp="+navigator.appName.toLowerCase() +" "+ navigator.userAgent.toLowerCase()+"&strSessionID="+parent.window.getSessionID();


	function getClientWidth(){
		var clientW;
		if (self.innerWidth){
			clientW = self.innerWidth;
		} else if (document.documentElement && document.documentElement.clientWidth){
			clientW = document.documentElement.clientWidth;
		} else if (document.body){
			clientW = document.body.clientWidth;
		}
		return clientW;
	}
	function getClientHeight(){
		var clientH;
		if (self.innerHeight){
			clientH = self.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight){
			clientH = document.documentElement.clientHeight;
		} else if (document.body){
			clientH = document.body.clientHeight;
		}
		return clientH;
	}
	function getScrollTop(){
		var scrollT;
		if (self.pageYOffset){
			scrollT = self.pageYOffset;
		} else if (document.documentElement && document.documentElement.scrollTop){
			scrollT = document.documentElement.scrollTop;
		} else if (document.body){
			scrollT = document.body.scrollTop;
		}
		return scrollT;
	}
	function setScrollTop(){
		self.scrollTo(0,0);
	}
	function setScrollBottom(){
		self.scrollTo(0,3000);
	}
	function setScrollPos(numPos){
		self.scrollTo(0,numPos);
	}
	function setDivHeight(numHeight){
		var userAgent = navigator.userAgent.toLowerCase();
		if (userAgent.indexOf("mac") == -1){
				document.getElementById("browser").style.height = numHeight;
		}
		document.getElementById("flashHolder").style.height = numHeight;
		getScreenCoords();
	}
	function doCenter(){
	 	var winW = getClientWidth();
		var newLeft = (winW-777)/2;
		if (newLeft < 2){
			newLeft = 2;
		}
		document.getElementById("flashHolder").style.left = newLeft+'px';
	}
	function getScreenCoords(){
		var screenTopY = getScrollTop();
		var screenBottomY = getClientHeight();
		document.browser.SetVariable("strScreenTopY", screenTopY);
		document.browser.SetVariable("strScreenBottomY", screenBottomY);
		document.browser.SetVariable("strScreenCoordsLoaded", "true");
	}
	
	function handleWindowChange(){
		getScreenCoords();
	}
	function browser_DoFSCommand(command, args){
		eval(command+'('+args+')');
	}
	function sitemap_DoFSCommand(command, args){
		eval(command+'('+args+')');
	}
	function setFocus() {
  		window.focus();
	}
	function notFound(){
		parent.window.location = "/notfound";
	}
	function doBookmark(){
		
		var appName = navigator.appName.toLowerCase(); 
		var userAgent = navigator.userAgent.toLowerCase();
		
		if (appName.indexOf("explorer") != -1){
			window.external.AddFavorite(parent.window.location, parent.document.title);
		} else {
			var info;
			if (userAgent.indexOf("mac") != -1){
				info = "Please use Cmd-D or the menu to bookmark Fantasy Interactive (FI)";
			} else {
				info = "Please use Ctrl-D or the menu to bookmark Fantasy Interactive (FI)";
			}
			alert(info);		
		}
		
	}
	if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
 		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  		document.write('on error resume next \n');
  		document.write('Sub browser_FSCommand(ByVal command, ByVal args)\n');
  		document.write(' call browser_DoFSCommand(command, args)\n');
  		document.write('end sub\n');
  		document.write('</SCRIPT\> \n');
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  		document.write('on error resume next \n');
  		document.write('Sub sitemap_FSCommand(ByVal command, ByVal args)\n');
  		document.write(' call sitemap_DoFSCommand(command, args)\n');
  		document.write('end sub\n');
  		document.write('</SCRIPT\> \n');
	}
	window.onresize = handleWindowChange;
	window.onscroll = handleWindowChange;