	// Name the opener window so we can target it if necessary
	self.name = "arthur_main";

	function openWin(URL,type,w,h) {
	
	var bname = navigator.appName;
	var bversion = parseInt(navigator.appVersion);
	var bplatform = navigator.platform;
	var status = 'no';
	var reSize = 'no';
	var scroll = 'no';
	var toolbar = 'no';
	var location = 'no';
	var menubar = 'no';
	var directories = 'no';
	var ewindow;
	
// Name the parent so we can target it if necessary
	
	if (type == "tah") {
		if (!w) {
			w = 475;
		}
		if (!h) {
			h= 550;
		}
		reSize = 'yes';	
		scroll = 'yes';	
	} 	
	
// use this for Arthur's Travel Adventure (vertical)	
	else if (type == "tav") {
		if (!w) {
			w = 475;
		}
		if (!h) {
			h= 550;
		}
		reSize = 'yes';	
		scroll = 'yes';			
	} 	
	
// use this for Real Video popups
	else if (type == "vid") {
		if (!w) {
			w = 400;
		}
		if (!h) {
			h= 500;
		}
		reSize = 'no';		
	} 	
	
// now we're just adding extraneous stuff from around the site
// global gizmo

	else if (type == "giz") {
		if (!w) {
			w = 545;
		}
		if (!h) {
			h= 600;
		}
		reSize = 'yes';
		scroll='yes';		
	} 	
	
	
	var windowFeatures = 'width='+w+',height='+h+
									',toolbar='+toolbar+',status='+status+
									',scrollbars='+scroll+',resizable='+reSize+
									',menubar='+menubar+
									',location='+location+
									',directories='+directories+''
									
	ewindow = window.open(URL,type,windowFeatures);   
	ewindow.focus();
}

