function openwindow(theURL,winName,width,height,doResize) {
    popup = window.open(theURL,winName,'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no,menubar=no,toolbar=no,location=no,directories=no,status=no');
	if (doResize == true) {
		moveToCenter (popup,width,height);
	}
}
function moveToCenter (wind, winX, winY) {
	screenWidth = screen.availWidth;
	screenHeight = screen.availHeight;
	finalX = (screenWidth / 2) - (winX/2);
	finalY = (screenHeight / 2) - (winY/2);
	wind.moveTo (finalX, finalY);
}
/*
function launchTrailer() {
	openwindow('trailer.html','trailerwin',760,555);
}
function launchTrailerDirect(whichStream) {
	pageName = "trailer_view.html?movie=" + whichStream;
	openwindow(pageName,'trailerwin',760,555);
}
*/
function launchActivity(whichWeek) {
	pathName = "activities/week_" + whichWeek + "/index.html";
	openwindow(pathName,'activityWin',600,500,true);
}
function launchPassport() {
	openwindow('passport.html','activityWin',600,500,true);
}
function launchDesktop(whichDsk) {
	pathName = "desktop.html?whichDsk=" + whichDsk;
	window.open(pathName,'desktopWin','width=760,height=500,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,location=no,directories=no,status=no',true);
}
function launchSoundtrack() {
	openwindow('soundtrack.html','soundtrackWin',600,353,true);
}
function launchVid(whichVid) {
	var vidURL = "";
	switch (whichVid) {
		case 0:  // trailer stream
			vidURL = "redirect_trailer.html";
			break;
		case 1: // 1 - 5 are video clips
			vidURL = "http://www.totaleclips.com/player/splash.aspx?clipid=e22095&custid=3&playerid=2";
			break;
		case 2:
			vidURL = "http://www.totaleclips.com/player/splash.aspx?clipid=e22096&custid=3&playerid=2";
			break;
		case 3:
			vidURL = "http://www.totaleclips.com/player/splash.aspx?clipid=e22097&custid=3&playerid=2";
			break;
		case 4:
			vidURL = "http://www.totaleclips.com/player/splash.aspx?clipid=e22098&custid=3&playerid=2";
			break;
	}
	openwindow(vidURL,'vidwin',340,480,false);
}
function launchOrderNow() {
	window.open('http://go-disneydirect.com/aroundtheworldin80daysdvd');
}
function launchSoundtrackBuy() {
	buyWin = window.open('http://disney.store.go.com/DSSectionPage.process?Merchant_Id=2&Section_Id=11888&Product_Id=163075', 'SoundtrackBuy', 'toolbar=0,scrollbars=1,location=1,statusbar=0,menubar=1,resizable=1,width=760,height=550');
}

