// Universal Studios Themeparks Website Flash Site Pop-up script

// This script is used to pop open a sized window, load the appropriate Flash movies,
// and go to the specified frame for the movie. It detects the size of the user's
// monitor in IE 4+ & NS 4+. In older browsers it assumes the user has a 
// 640 x 480 monitor.

// Kevin Garrett, Universal Studios Online, 818-777-4930, kevin.garrett@unistudios.com

// 06/28/2000

function univstudiosrecpop(section,subsection,menucolor,park) {
	
	var screenwidth = 640;
	var screenheight = 480;
	var browserVersion = parseInt(navigator.appVersion.charAt(0));
	var serverpath = "http://themeparks.universalstudios.com/";
	//var serverpath = "http://themeparks.universalstudios.com/"; // developement only
	//var serverpath = ""; // developement only
	
	var embedpage = "flash/frame.cgi";
	if (browserVersion >= 4) { // This only works in Nav 4+, IE 4+.
		screenwidth = screen.width;
		screenheight = screen.height;
	}
	
	if (screenwidth > 640) { // large
		var windowWidth = "740";
		var windowHeight = "406"; // 376 + 30 for nav
		var windowName = "recflashlarge";
	} else { // small
		var windowWidth = "590";
		var windowHeight = "330"; // 300 + 30 for nav
		var windowName = "recflashsmall";
	} // if
	
	var windowURL = serverpath + embedpage + "?section=" + section + "&subsection=" + subsection + "&menucolor="  + menucolor + "&park=" + park;
	
	var windowOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,top=100,left=100,width=" + windowWidth + ",height=" + windowHeight ;
	
	var mywindow = window.open(windowURL,windowName,windowOptions);
	mywindow.focus();
}
