

// launcher.js
var siteWindow;
var installFlashWindow;

// opens a window and returns the window
function popUp(url,name, options, newwin) {
	// alert ( url +' '+ name +' '+ options);
	if ((newwin == null) || (newwin.closed == true)) {
		newwin = window.open(url,name, options);
	}
	// alert (newwin);
	newwin.focus();
	return newwin;
}

function launchSite () {
	// set url and window name
	var url = "princeton.html";
	var winName = "princeton1";
	// set dimensions
	var width = 790;
	var height = 555;
	// set screen positon
	var screenXW = (screen.availWidth - width) / 2;
	var screenYW = (screen.availHeight - height) /2;
	if (screenYW < 0) {
		screenYW = 0;
	}
	// create options string for pop
	var options = "width="+width+",height="+height+",left=" + screenXW + ",top=" + screenYW + ",toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,screenX=" + screenXW + ",screenY=" + screenYW;
	siteWindow = popUp (url, winName, options, siteWindow);
}

