function pop(sCase) {
//alert(sCase);
	switch(sCase) {
		case "deeplink":
			//launchPopUpWindow("registration_static.html", "registration", 450, 600, 1, 1);
			switch(pop.arguments[1]){
				case 'hunt':
					window.open('index.html?deeplink=hunt','Hunt');
				break;
			}
		break;
		case "privacy":
			launchPopUpWindow("privacypolicy.html", "privacy", 425, 645, 1, 1);
		break;
		case "poster":
			launchPopUpWindow("posterFrame.html", "poster", 770, 550, 1, 1);
		break;
		case "trailer":
			//launchPopUpWindow("privacypolicy.html", "trailer", 425, 645, 1, 1);
			window.open('http://movies.yahoo.com/feature/missionimpossible3.html','Trailer');
		break;
		case "agent":
			launchPopUpWindow("registration.html", "registration", 450, 600, 1, 1);
		break;
		case "hunt":
			window.open('http://hunt.missionimpossible.com','Hunt');
		break;
		case "forgetPassword":
			launchPopUpWindow("http://mailchute.paramountmovies.com/mi3_hunt/forgot.cgi", "forgot", 450, 425, 1, 1);
		break;
		case "register":
			//launchPopUpWindow("registration_static.html", "registration", 450, 600, 1, 1);
			launchPopUpWindow("http://dev.missionimpossible.com/registration.html", "registration", 500, 600, 1, 1);
		break;
		case "rules" :
			launchPopUpWindow("hunt_rules.html", "huntrules", 450, 600, 1, 1);
		break;
		case "staf":
			launchPopUpWindow("http://mailchute.paramountmovies.com/mi3_hunt/staf.cgi", "staf", 480, 500, 1, 1);
		break;
		case "notice":
			launchPopUpWindow("hunt_notice.html", "Hunt", 425, 425, 1, 1);
		break;
		
		case "superbowl":
			window.open('http://www.apple.com/trailers/paramount/missionimpossibleiii/','superbowl');
		break;
		case "terms":
			launchPopUpWindow("termsofuse.html", "terms", 425, 645, 1, 1);
		break;
		case "webmaster":
			launchPopUpWindow("http://webmaster.missionimpossible.com/register/", "webmaster", 550, 548, 1);
		break;
		case "internationReleaseDates":
			window.open("http://www.missionimpossible.com/intl/", "internation" );
		break;
		case "buddyIcons":
			launchPopUpWindow("buddyicons.html", "buddyicons", 384, 400);
		break;
		case "chat":
			launchPopUpWindow("chat.html", "chat", 550, 505);
		break;
		case "wallpaper":
			if (pop.arguments[2]==1280) {
				iHeightLocal = 1024;
			} else {
				iHeightLocal = pop.arguments[2]/4*3;
			}
			launchPopUpWindow('wallpaper.html?iNum='+pop.arguments[1]+'&iWidth='+pop.arguments[2]+'&iHeight='+iHeightLocal, 'wallpaper'+pop.arguments[2], pop.arguments[2], iHeightLocal+50);
			var myTrackPath = "/downloads/wallpapers/"+pop.arguments[1]+"/"+pop.arguments[2]+"x"+iHeightLocal;
			urchinTracker(myTrackPath);
		break;
		case "filmRatings":
			window.open('http://www.filmratings.com','FilmRatings');
		break;
		case "parentalGuide":
			window.open('http://www.parentalguide.org','ParentalGuide');
		break;
		case "mpaa":
			window.open('http://www.mpaa.org','MPAA');
		break;
		case "privacyPolicy":
			launchPopUpWindow("privacypolicy.html", "privacy", 425, 645, 1, 1);
		break;
		case "termsOfUse":
			launchPopUpWindow("termsofuse.html", "terms", 425, 645, 1, 1);
		break;
		case "mobile":
			window.open('http://www.gameloft.com/mission-impossible-3/home.php','GameLoft');
		break;
		
		case "dvdPurchase":
			switch(pop.arguments[1]){
				case "mi3disk2":
					window.open('http://www.mixup.com.mx/mixup/subdept_portada.asp?subdept_id=2','buyItem');
				break;
				case default:
					launchPopUpWindow("buyNow.html", "buyNow", 384, 340);
			}
		break;
	}
}

function handleDownload(filePath) {
	launchPopUpWindow('download.html?theFile='+filePath, 'download', 770, 335);
}