﻿var lastPopUpWindow = null;
function pop (sCase)
{
	// close the last pop-up.
	try 
	{
		lastPopUpWindow.close ();
	}catch (e)
	{
	}
	switch (sCase)
	{
		//DOWNLOADS section
		case "tickets" :
		lastPopUpWindow = launchPopUpWindow ('tickets.html', 'buddyicons', 367, 386);
		break;
		//DOWNLOADS section
		case "wallpaper" : //wallpaperID number, width
		lastPopUpWindow = launchPopUpWindow ('wallpaper.html?id=' + pop.arguments [1] + '&width=' + pop.arguments [2] , 'wallpaper', 850, 550, 1, 1);
		break;
		case "buddyicons" :
		lastPopUpWindow = launchPopUpWindow ('buddyicons.html', 'buddyicons', 356, 500);
		break;
		case "poster" :
		lastPopUpWindow = launchPopUpWindow ('poster.html', 'poster', 800, 800);
		break;
		//GALLERY section
		//TRAILER section
		case "trailerOptions" :
		lastPopUpWindow = launchPopUpWindow ("http://noreservationsmovie.warnerbros.com/cmp/trailer.html?id=trailer", "trailer", 550, 500);
		break;
		case "tvSpotOptions" :
		lastPopUpWindow = launchPopUpWindow ("http://noreservationsmovie.warnerbros.com/cmp/tvspot" + pop.arguments [1] + ".html?id=tvspot" + pop.arguments [1] , "tvSpotOptions", 550, 500);
		break;
		//CAST AND FILMMAKERS section
		//RECIPES section
		case "staf" :
		lastPopUpWindow = launchPopUpWindow ('http://php.warnerbros.com/movies/noreservations/staf.php', 'staf', 360, 280);
		break;
		case "recipe" :
		lastPopUpWindow = launchPopUpWindow ('download.html?theFile=recipe.zip', 'download', 600, 335);
		break;
		//PARTNERS section
		case "BonAppetit" :
		window.open ("http://www.bonappetit.com");
		break;
		case "FoodTV" :
		//lastPopUpWindow = launchPopUpWindow('download.html?theFile=foodtv.zip', 'download', 600, 335);
		window.open ("http://www.foodnetwork.com/");
		break;
		case "mcCormick" :
		window.open ("http://www.mccormickgourmet.com");
		break;
		case "oCO" :
		window.open ("http://www.oliviersandco.com");
		break;
		case "deanDeluca" :
		window.open ("http://www.deandeluca.com");
		break;
		case "visaScreening" :
		window.open ("http://www.visa.com");
		break;
		case "palmPartner" :
		window.open ("http://www.thepalm.com/promodetail.cfm?promo_id=67");
		break;
		//SOUNDTRACKS section
		case "buyNow" :
		window.open ("http://www.amazon.com/gp/product/B000RHRGQC/102-8823209-6678507?ie=UTF8&tag=various02-20&linkCode=xm2&camp=1789&creativeASIN=B000RHRGQC");
		break;
		//PROMOTIONS section
		case "mcNews" :
		window.open ("http://www.moviecitynews.com/specials/2007/noreservations.html");
		break;
		case "iesb" :
		window.open ("http://www.iesb.net/index.php?option=com_ezine&task=read&page=2&category=26&article=2857");
		break;
		case "hollywood" :
		window.open ("http://hollywood.com/contest/No_Reservations_Sweepstakes/4404958");
		break;
		case "aced" :
		window.open ("http://acedmagazine.com/content/view/263/1/");
		break;
		case "threebc" :
		window.open ("http://www.3blackchicks.com//index.php?option=com_content&task=view&id=1072&Itemid=2");
		break;
		case "countingDown" :
		window.open ("http://www.countingdown.com/features?feature_id=3978877");
		break;
		case "extraTV" :
		window.open ("http://extratv.warnerbros.com/contests/noreservations/");
		break;
		case "blackFilm" :
		window.open ("http://blackfilm.com/20070713/features/noreservations.shtml");
		break;
		case "deseretNews" :
		window.open ("http://www.deseretnews.com/dn/user/contest/view/1,5103,20000005,00.html");
		break;
		case "videoDetective" :
		window.open ("http://www.videodetective.com/contest.aspx?ID=35");
		break;
		case "newsDay" :
		window.open ("http://www.newsdayinsider.com/contest.php?m=contest_register&cID=84");
		break;
		case "limbo" :
		window.open ("http://www.limbo.com/unique?aid=104303");
		break;
		case "movieweb" :
		window.open ("http://www.movieweb.com/news/71/21271.php");
		break;
		case "palm" :
		window.open ("http://www.thepalm.com/index.cfm?fa=p&amp;pid=332");
		break;
		case "wnbc" :
		window.open ("http://www.WNBC.com/entertainment/13719311/detail.html");
		break;
		case "knbc" :
		window.open ("http://www.NBC4.tv/entertainment/13719311/detail.html");
		break;
		case "wmaq" :
		window.open ("http://www.NBC5.com/entertainment/13719311/detail.html");
		break;
		case "wcau" :
		window.open ("http://www.NBC10.com/entertainment/13719311/detail.html");
		break;
		case "kntv" :
		window.open ("http://www.NBC11.com/entertainment/13719311/detail.html");
		break;
		case "ktvu" :
		window.open ("http://www.KTVU.com/entertainment/13719311/detail.html");
		break;
		case "wcvb" :
		window.open ("http://www.wcvb.com/entertainment/13719311/detail.html");
		break;
		case "wmur" :
		window.open ("http://www.TheWMURChannel.com/entertainment/13719311/detail.html");
		break;
		case "kxas" :
		window.open ("http://www.NBC5i.com/entertainment/13719311/detail.html");
		break;
		case "wrc" :
		window.open ("http://www.NBC4.com/entertainment/13719311/detail.html");
		break;
		case "wgcl" :
		window.open ("http://www.cbs46.com/entertainment/10562848/detail.html");
		break;
		case "wsb" :
		window.open ("http://www.WSBTV.com/entertainment/13719311/detail.html");
		break;
		case "kpho" :
		window.open ("http://www.kpho.com/entertainment/13719311/detail.html");
		break;
		case "kptv" :
		window.open ("http://www.kptv.com/entertainment/13719311/detail.html");
		break;
		case "wfsb" :
		window.open ("http://www.wfsb.com/entertainment/13719311/detail.html");
		break;
		case "wvit" :
		window.open ("http://www.NBC30.com/entertainment/13719311/detail.html");
		break;
		case "kvvu" :
		window.open ("http://www.kvvu.com/entertainment/13719311/detail.html");
		break;
		case "wsmv" :
		window.open ("http://www.wsmv.com/entertainment/13719311/detail.html");
		break;
		case "wdiv" :
		window.open ("http://www.wdiv.com/entertainment/13719311/detail.html");
		break;
		case "kprc" :
		window.open ("http://www.KPRC.com/entertainment/13719311/detail.html");
		break;
		case "kiro" :
		window.open ("http://www.KIROTV.com/entertainment/13719311/detail.html");
		break;
		case "wmor" :
		window.open ("http://www.MoreTV32.com/entertainment/13719311/detail.html");
		break;
		case "wplg" :
		window.open ("http://www.Click10.com/entertainment/13719311/detail.html");
		break;
		case "wtvj" :
		window.open ("http://www.NBC6.net/entertainment/13719311/detail.html");
		break;
		case "wews" :
		window.open ("http://www.NewsNet5.com/entertainment/13719311/detail.html");
		break;
		case "kmgh" :
		window.open ("http://www.KMGH.com/entertainment/13719311/detail.html");
		break;
		case "kcra" :
		window.open ("http://www.thekcrachannel.com/entertainment/13719311/detail.html");
		break;
		case "wesh" :
		window.open ("http://www.WESH.com/entertainment/13719311/detail.html");
		break;
		case "wkmg" :
		window.open ("http://www.wkmg.com/entertainment/13719311/detail.html");
		break;
		case "wftv" :
		window.open ("http://www.wftv.com/entertainment/13719311/detail.html");
		break;
		case "wtae" :
		window.open ("http://www.wtae.com/entertainment/13719311/detail.html");
		break;
		case "wpxi" :
		window.open ("http://www.wpxi.com/entertainment/13719311/detail.html");
		break;
		case "wbal" :
		window.open ("http://www.thewbalchannel.com/entertainment/13719311/detail.html");
		break;
		case "wrtv" :
		window.open ("http://www.wrtv.com/entertainment/13719311/detail.html");
		break;
		case "kgtv" :
		window.open ("http://www.kgtv.com/entertainment/13719311/detail.html");
		break;
		case "knsd" :
		window.open ("http://www.nbcsandiego.com/entertainment/13719311/detail.html");
		break;
		case "wb58" :
		window.open ("http://www.wb58tv.com/entertainment/13719311/detail.html");
		break;
		case "wsoc" :
		window.open ("http://www.WSOCTV.com/entertainment/13719311/detail.html");
		break;
		case "kctv" :
		window.open ("http://www.KCTV5com/entertainment/10562848/detail.html");
		break;
		case "kmbc" :
		window.open ("http://www.KMBC.com/entertainment/13719311/detail.html");
		break;
		case "wlwt" :
		window.open ("http://www.wlwt.com/entertainment/13719311/detail.html");
		break;
		case "wisn" :
		window.open ("http://www.WISN.com/entertainment/13719311/detail.html");
		break;
		case "wyff" :
		window.open ("http://www.WYFF.com/entertainment/13719311/detail.html");
		break;
		case "whns" :
		window.open ("http://www.FOXCAROLINA.com/entertainment/13719311/detail.html");
		break;
		case "ksat" :
		window.open ("http://www.ksat.com/entertainment/13719311/detail.html");
		break;
		case "wpbf" :
		window.open ("http://www.TheWPBFChannel.com/entertainment/13719311/detail.html");
		break;
		case "wdsu" :
		window.open ("http://www.WDSU.com/entertainment/13719311/detail.html");
		break;
		case "koco" :
		window.open ("http://www.KOCO.com/entertainment/13719311/detail.html");
		break;
		case "koat" :
		window.open ("http://www.KOAT.com/entertainment/13719311/detail.html");
		break;
		case "wgal" :
		window.open ("http://www.TheWGALChannel.com/entertainment/13719311/detail.html");
		break;
		case "wlky" :
		window.open ("http://www.WLKY.com/entertainment/13719311/detail.html");
		break;
		case "wjxt" :
		window.open ("http://www.WJXT.com/entertainment/13719311/detail.html");
		break;
		case "whio" :
		window.open ("http://www.whiotv.com/entertainment/13719311/detail.html");
		break;
		case "kcci" :
		window.open ("http://www.kcci.com/entertainment/13719311/detail.html");
		break;
		case "kitv" :
		window.open ("http://www.KITV.com/entertainment/13719311/detail.html");
		break;
		case "ketv" :
		window.open ("http://www.ketv.com/entertainment/13719311/detail.html");
		break;
		case "wisc" :
		window.open ("http://www.Channel3000.com/entertainment/13719311/detail.html");
		break;
		case "wapt" :
		window.open ("http://www.TheJacksonChannel.com/entertainment/13719311/detail.html");
		break;
		case "wptz" :
		window.open ("http://www.wptz.com/entertainment/13719311/detail.html");
		break;
		case "wmtw" :
		window.open ("http://www.WMTW.com/entertainment/13719311/detail.html");
		break;
		case "wjac" :
		window.open ("http://www.WJACTV.com/entertainment/13719311/detail.html");
		break;
		case "kfox" :
		window.open ("http://www.kfoxtv.com/entertainment/13719311/detail.html");
		break;
		case "wxii" :
		window.open ("http://www.WXII12.com/entertainment/13719311/detail.html");
		break;
		case "khbs" :
		window.open ("http://www.KHBS.com/entertainment/13719311/detail.html");
		break;
		case "wnem" :
		window.open ("http://www.wnem.com/entertainment/13719311/detail.html");
		break;
		case "krxi" :
		window.open ("http://www.krxitv.com/entertainment/13719311/detail.html");
		break;
		case "ksbw" :
		window.open ("http://www.TheKSBWChannel.com/entertainment/13719311/detail.html");
		break;
		case "kero" :
		window.open ("http://www.KERO.com/entertainment/13719311/detail.html");
		break;
		case "wtov" :
		window.open ("http://www.WTOV9.com/entertainment/13719311/detail.html");
		break;
	}
}
