// <script language="JavaScript"><!--
	function center_popup(URL, TARGET, max_winsize_x, max_winsize_y)
	{
		// Setup popup window's size
		// max_winsize_x = 980;	// max window width 1027
		// max_winsize_y = 650;	// max window height
		
		winsize_x = (max_winsize_x > screen.availWidth ? screen.availWidth:max_winsize_x);
		winsize_y = (max_winsize_y > screen.availHeight ? screen.availHeight:max_winsize_y);
		
		locX = (max_winsize_x > screen.availWidth ? 0:((screen.availWidth - max_winsize_x)/2));
		locY = (max_winsize_y > screen.availHeight ? 0:((screen.availHeight - max_winsize_y)/2));
		// 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no'
		splash = window.open(URL, TARGET,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
		
		splash.resizeTo(winsize_x,winsize_y);
		splash.moveTo(locX,locY);
		splash.focus();
	}

	function center_popup2(URL, TARGET, features)
	{
		max_winsize_x = 600;
		max_winsize_y = 600;

		locX = (max_winsize_x > screen.availWidth ? 0:((screen.availWidth - max_winsize_x)/2));
		locY = (max_winsize_y > screen.availHeight ? 0:((screen.availHeight - max_winsize_y)/2));

		splash = window.open(URL, TARGET, features);
		splash.moveTo(locX,locY);
		splash.focus();
	}

	self.name = 'mainwindow';
//--></script>
//
//<A HREF="top_flash/index.html" TARGET="splash" ONCLICK="center_popup('top_flash/index.html');">
