	function flashLoaded(){
		resize80Percentage();
	}

	function popWin(mypage, myname, w, h, scrollBar, stat) {
		// popup window
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h - 50) / 2;
		// default values for scroll and status
		if(scrollBar!=1){scrollBar = 0};
		if(stat!=1){stat = 0};
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scrollBar+',status='+stat+',dependent=1,resizable=1';
		try {
			win = window.open(mypage, myname, winprops);
			if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
		}
		catch(e) { }
	}
	function return80PercentWindowWidth(){
		outStr = Math.floor(screen.width * .8);
		if (outStr == undefined){
			outStr = 743;
		}
		return outStr;
	}
	function return80PercentWindowHeight(){
		if (parseInt(screen.height) < 780) 
		{		
			outStr = Math.floor(screen.height * .9);
		}
		else	
		{
			outStr = Math.floor(screen.height * .8);
		}
		
		if (outStr == undefined){
			outStr = 586;
		}
		return outStr;
	}
	function launchPopWin(loc){
		// launch a window at a set width/height
		if (loc!=null) {
			popWin(loc, 'RTA_MAP', 743, 586, 1, 1);
		} else {
			popWin('/rta_map.html', 'RTA_MAP', 743, 586, 1, 1);
		}
	}
	function launchPopWin80Percentage(){
		// launch a window at 80 percent of width/height
		var launchW = return80PercentWindowWidth();
		var launchH = return80PercentWindowHeight();
		popWin('/rta_map.html', 'RTA_MAP', launchW, launchH, 1, 1);
	}
	function launchPopWin80PercentageNoScroll(){
		// launch a window at 80 percent of width/height
		var launchW = return80PercentWindowWidth();
		var launchH = return80PercentWindowHeight();
		popWin('/rta_map_noScroll.html', 'RTA_MAP', launchW, launchH, 0, 1);
	}
	function resize80Percentage(){
		var launchW = return80PercentWindowWidth();
		var launchH = return80PercentWindowHeight();
		
		/*if(parseInt(screen.height) < 780)
		{
			moveTo((screen.width - launchW)/2,0);
			resizeOuterTo(launchW, parseInt(screen.height));
		} 
		else 
		{*/
			moveTo((screen.width - launchW)/2,((screen.height - launchH)/2)-30);
			resizeOuterTo(launchW, launchH);
		//}
	}	
	function resizeOuterTo(w,h){
		var agt=navigator.userAgent.toLowerCase();
		var is_mac = (agt.indexOf("mac")!=-1);
		if (parseInt(navigator.appVersion)>3){
			if (is_mac){
				top.resizeTo(w,h);
			}else if (navigator.appName=="Netscape"){
				top.outerWidth=w;
				top.outerHeight=h;
			}else{
				top.resizeTo(w,h);
			}
		}
	}
	
	// pop window loaded so we can now resize the window to 80% viewable area (this needs to be done after the window loads else scroll bars become a problem)
	function pageLoaded(){
		//setTimeout('resize80Percentage()', 1000);
		//resizeOuterTo(1000,800);
	}
