// JavaScript Document
// 1/12/2011 2:39 PM

var local = (location.href.indexOf("file") > -1);
/****************************************************************************************************
* Shooting Star
****************************************************************************************************/
function launchShootingStar() {
	var basePath;
	if (local) {
		basePath = "shootingStar/";
	} else {
		basePath = "/shootingStar/";
	}	
	
	var url = basePath + "index.html";

	var width = 900;
	var height = 600;
	
	var myWindow = openWindow(url, "shootingStar", width, height);
	myWindow.focus();
}


/****************************************************************************************************
* Mist Island
****************************************************************************************************/
function launchMistIslandGame() {
	var basePath = "mistIsland/";
	var url = basePath + "index.html";
	var width = 900;
	var height = 600;
	
	var myWindow = openWindow(url, "mistIsland", width, height);
}

/****************************************************************************************************
* Swirl Games - Legacy
****************************************************************************************************/
function launchSwirlGame(id, trackingDebug) {
var basePath;
	basePath = "swirlGames/";
	
	var url = basePath + "SwirlChallenge.html?game=" + id;
	
	if (trackingDebug) {
		url += "&metrixDebug=1";
	}
	
	var width = 575;
	var height = 575;
	
	var myWindow = openWindow(url, "swirlChallenge", width, height);
}


function launchEndSequenceGame() {
	var width = 640;
	var height = 480;
	
/*
	var x = (document.all)?window.screenLeft:window.screenX;
	var y = (document.all)?window.screenTop:window.screenY; 
*/

	// dimensions of base window
/*	
	var winW = 630
	var winH = 460;
	
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winW = window.innerWidth;
			winH = window.innerHeight;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			winW = document.body.offsetWidth;
			winH = document.body.offsetHeight;
		}
	}

	x += (winW - width)/2;
	y += (winH - height)/2;
*/
	
	var url = "swirlsEndAnimation/endAnimation.html";
	
	var myWindow = openWindow(url, "endSequence", width, height);
}


