﻿function popup (url, w, h, windowName, r, st, s, l, m, t)
{
	try 
	{
		win.close ();
	}catch (e)
	{
	}
	win = window.open (url, windowName, 'height=' + h + ', width=' + w + ', resizable=' + r + ', status= ' + st + ', scrollbars=' + s + ', location=' + l + ', menubar=' + m + ', toolbar= ' + t + ', left=5, top=5');
	win.focus ();
}
function pop (sCase)
{
	//alert("pop : "+ sCase);
	switch (sCase)
	{
		case "PHD" :
		popup ('http://disney.go.com/playhouse/today/index.html', 800, 600 , 'PHD', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes');
		hitbox.Set_hbLink (exitLinkArray [14]);
		break;
		case "musicVideo" :
		launchPopUpWindow ('http://www.totaleclips.com/player/Splash.aspx?custid=3&clipid=e24576&playerid=2&affiliateid=-1', 'video', 340, 480);
		hitbox.Set_hbPageView (pageArray [84] , contentArray [84]);
		break;
		case "trailer":
		sPageMLC='/little+einsteins/inst+fair';
		sPageName='trailer1';
		hitbox.Set_hbPageView(sPageName,sPageMLC);
		launchPopUpWindow('http://totaleclips.com/player/Splash.aspx?custid=3&clipid=e41099&playerid=2&affiliateid=-1', 'trailer', 340, 480);
		break;
		case "team" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e26617&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbLink (exitLinkArray [3]);
		break;
		case "teamTrailer" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e26617&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView (pageArray [103] , contentArray [103]);
		break;
		case "pyramidTrailer" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e30417&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView (pageArray [112] , contentArray [103]);
		break
		case "firebirdTrailer" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e32125&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView (pageArray [116] , contentArray [103]);
		break
		case "clip1" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e24511&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView (pageArray [104] , contentArray [104]);
		break;
		case "clip2" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e24510&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView (pageArray [105] , contentArray [105]);
		break;
		case "clip1b" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e27095&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView (pageArray [104] , contentArray [107]);
		break;
		case "clip2b" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e27094&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView (pageArray [105] , contentArray [108]);
		break;
		case "firebird_clip1" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e33622&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView(pageArray[119],contentArray[105]);
		break;
		case "firebird_clip2" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e33624&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView(pageArray[120],contentArray[107]);
		break;
		case "firebird_clip3" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e33626&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView(pageArray[121],contentArray[108]);
		break;
		case "firebird_clip4" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e33627&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView(pageArray[122],contentArray[108]);
		break;		
		case "order" :
		//launchPopUpWindow('http://go-disneydirect.com/DisneysLittleEinsteinsOurBigHugeAdventureDVD','order', 391, 272);
		popup ('http://transfer.go.com/cgi/transfer.dll?name=23303&SOURCE=23303&srvc=store&goto=http://disneyshopping.go.com/webapp/wcs/stores/servlet/DSIProductDisplay?catalogId=10002&storeId=10051&productId=1229712&langId=-1&categoryId=13687&CMP=OTL-TWDC_BVHE&att=BVHE', 770, 700, 'newWin', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes');
		hitbox.Set_hbLink (exitLinkArray [3]);
		break;
		case "privacy" :
		launchPopUpWindow ('http://littleeinsteins.com/privacy.html', sCase, 385, 400, 1, true);
		break;
		case "legal" :
		launchPopUpWindow ('http://littleeinsteins.com/popup.html', sCase, 385, 400, 1, true);
		break;
		case "contact" :
		launchPopUpWindow ('http://littleeinsteins.com/contact.html', sCase, 385, 400, 1, true);
		break;
		case "orderTeam" :
		//window.open("http://go-disneyshopping.com/DisneysLittleEinsteinsTeamupforAdventureDVD");
		popup ('http://go-disneyshopping.com/DisneysLittleEinsteinsTeamupforAdventureDVD', 770, 700, 'newWin', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes');
		hitbox.Set_hbLink (exitLinkArray [11]);
		break;
		case "orderNew" :
		//window.open("http://go-disneyshopping.com/DisneysLittleEinsteinsMissionCelebrationDVD");
		popup ('http://go-disneyshopping.com/DisneysLittleEinsteinsMissionCelebrationDVD', 770, 700, 'newWin', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes');
		hitbox.Set_hbLink (exitLinkArray [10]);
		break;
		case "orderPyramid" :
		//window.open("http://go-disneyshopping.com/DisneysLittleEinsteinsMissionCelebrationDVD");
		popup ('http://go-disneyshopping.com/LittleEinsteinsTheLegendOfTheGoldenPyramidDVD', 770, 700, 'newWin', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes');
		hitbox.Set_hbLink (exitLinkArray [12]);
		break;
		case "orderFirebird" :
		popup ('http://transfer.go.com/cgi/transfer.dll?name=23303&SOURCE=23303&srvc=store&goto=http://disneyshopping.go.com/webapp/wcs/stores/servlet/DSIProductDisplay?catalogId=10002&storeId=10051&productId=1207305&langId=-1&categoryId=13687&CMP=OTL-TWDC_BVHE&att=BVHE', 770, 700, 'newWin', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes');
		document.action_tag.src = "http://switch.atdmt.com/action/LittleEinsteinsRocketsFirebirdRescue_BuyNow";
		hitbox.Set_hbLink (exitLinkArray [13]);
		break;
		case "orderFOTIF":
		popup ('http://transfer.go.com/cgi/transfer.dll?name=23303&SOURCE=23303&srvc=store&goto=http://disneyshopping.go.com/webapp/wcs/stores/servlet/DSIProductDisplay?catalogId=10002&storeId=10051&productId=1229712&langId=-1&categoryId=13687&CMP=OTL-TWDC_BVHE&att=BVHE', 770, 700, 'newWin', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes');
		document.action_tag.src = "http://switch.atdmt.com/action/LittleE_FOTIF_ordernow";
		hitbox.Set_hbLink (exitLinkArray [16]);
		break;
		case "missionTrailer" :
		launchPopUpWindow ('http://www.totaleclips.com/player/splash.aspx?custid=3&playerid=2&clipid=e28265', 'trailer', 340, 480);
		//launchPopUpWindow('http://totaleclips.com/player/splash.aspx?clipid=e24510&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView (pageArray [100] , contentArray [100]);
		break;
		case "Missionclip1" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e28207&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView (pageArray [101] , contentArray [101]);
		break;
		case "Missionclip2" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e28206&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView (pageArray [102] , contentArray [102]);
		break;
		case "teamVideo" :
		launchPopUpWindow ('http://www.totaleclips.com/player/Splash.aspx?custid=3&clipid=e24576&playerid=2&affiliateid=-1', 'video', 340, 480);
		hitbox.Set_hbPageView (pageArray [84] , contentArray [84]);
		break;
		
		case "activityPage1" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/LE_FirebirdActivSht_01.pdf', 'activity1', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [123] , contentArray [119]);
		break;
		case "activityPage2" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/LE_FirebirdActivSht_02.pdf', 'activity2', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [124] , contentArray [120]);
		break;
		case "activityPage3" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/le_obha_activitysheet01.pdf', 'activity3', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [125] , contentArray [121]);
		break;
		case "activityPage4" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/le_obha_activitysheet02.pdf', 'activity4', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [126] , contentArray [122]);
		break;
		case "activityPage5" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/le_gp_activitysheet01.pdf', 'activity5', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [127] , contentArray [123]);
		break;
		case "activityPage6" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/le_gp_activitysheet02.pdf', 'activity6', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [128] , contentArray [124]);
		break;
		case "activityPage7" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/le_mc_activitysheet01.pdf', 'activity7', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [129] , contentArray [125]);
		break;
		case "activityPage8" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/le_mc_activitysheet02.pdf', 'activity8', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [130] , contentArray [126]);
		break;
		case "activityPage9" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/le_tufa_activitysheet01.pdf', 'activity9', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [131] , contentArray [127]);
		break;
		case "activityPage10" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/le_tufa_activitysheet02.pdf', 'activity10', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [132] , contentArray [128]);
		break;
	
		case "craft1" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/baton.pdf', 'newWin', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [97] , contentArray [97]);
		break;
		case "craft2" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/balloons.pdf', 'newWin', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [98] , contentArray [98]);
		break;
		case "craft3" :
		NewWindow = window.open ('http://adisney.go.com/littleeinsteins/pdf/pirateshat.pdf', 'newWin', 'width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus ();
		hitbox.Set_hbPageView (pageArray [99] , contentArray [99]);
		break;
		case "pyramidSneak" :
		launchPopUpWindow ('http://totaleclips.com/player/splash.aspx?clipid=e31460&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView (pageArray [113] , contentArray [113]);
		break;
		case "firebirdSneak" :
		//launchPopUpWindow('http://totaleclips.com/player/splash.aspx?clipid=e33047&custid=3&playerid=2', 'trailer', 340, 480);
		document.action_tag.src = "http://switch.atdmt.com/action/LittleEinsteinsRocketsFirebirdRescue_SneakPeek";
		hitbox.Set_hbPageView (pageArray [118] , contentArray [118]);
		break;
		case "firebirdSneak2" :
		launchPopUpWindow('http://totaleclips.com/player/splash.aspx?clipid=e33047&custid=3&playerid=2', 'trailer', 340, 480);
		hitbox.Set_hbPageView (pageArray [118] , contentArray [118]);
		break;
		
		case "fairies_trailer":
		sPageMLC='/little+einsteins/inst+fair';
		sPageName='trailer1';
		hitbox.Set_hbPageView(sPageName,sPageMLC);
		launchPopUpWindow('http://totaleclips.com/player/Splash.aspx?custid=3&clipid=e41099&playerid=2&affiliateid=-1', 'trailer', 340, 480);
		break;
		case "fairies_clip1":
		sPageMLC='/little+einsteins/inst+fair';
		sPageName='clip1';
		hitbox.Set_hbPageView(sPageName,sPageMLC);
		launchPopUpWindow('http://totaleclips.com/player/Splash.aspx?custid=3&clipid=e41099&playerid=2&affiliateid=-1', 'trailer', 340, 480);
		break;
		case "fairies_clip1":
		sPageMLC='/little+einsteins/inst+fair';
		sPageName='clip1';
		hitbox.Set_hbPageView(sPageName,sPageMLC);
		launchPopUpWindow('http://totaleclips.com/player/Splash.aspx?custid=3&clipid=e40001&playerid=2&affiliateid=-1', 'trailer', 340, 480);
		break;
		case "fairies_clip2":
		sPageMLC='/little+einsteins/inst+fair';
		sPageName='clip2';
		hitbox.Set_hbPageView(sPageName,sPageMLC);
		launchPopUpWindow('http://totaleclips.com/player/Splash.aspx?custid=3&clipid=e39998&playerid=2&affiliateid=-1', 'trailer', 340, 480);
		break;
		case "fairies_clip3":
		sPageMLC='/little+einsteins/inst+fair';
		sPageName='clip3';
		hitbox.Set_hbPageView(sPageName,sPageMLC);
		launchPopUpWindow('http://totaleclips.com/player/Splash.aspx?custid=3&clipid=e39997&playerid=2&affiliateid=-1', 'trailer', 340, 480);
		break;
		case "fairies_clip4":
		sPageMLC='/little+einsteins/inst+fair';
		sPageName='clip4';
		hitbox.Set_hbPageView(sPageName,sPageMLC);
		launchPopUpWindow('http://totaleclips.com/player/Splash.aspx?custid=3&clipid=e39999&playerid=2&affiliateid=-1', 'trailer', 340, 480);
		break;
		case "fairies_sneak":
		sPageMLC='/little+einsteins/inst+fair';
		sPageName='sneak';
		hitbox.Set_hbPageView(sPageName,sPageMLC);
		launchPopUpWindow('http://totaleclips.com/player/Splash.aspx?custid=3&clipid=e40000&playerid=2&affiliateid=-1', 'trailer', 340, 480);
		break;
		case "activity_fairies_1":
		NewWindow=window.open('../pdf/LE_flightActivSht_01.pdf','newWin','width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus();
		hitbox.Set_hbPageView(pageArray[142],contentArray[93]);
		break;
		case "activity_fairies_2":
		NewWindow=window.open('../pdf/LE_flightActivSht_02.pdf','newWin','width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
		NewWindow.focus();	
		hitbox.Set_hbPageView(pageArray[142],contentArray[93]);
		break;	
		
		
		case "christmas_trailer":
			launchPopUpWindow('http://totaleclips.com/player/Splash.aspx?custid=3&clipid= e41949&playerid=2&affiliateid=-1', 'trailer', 340, 480);
		break;
		case "orderChristmas":
			popup ('http://transfer.go.com/cgi/transfer.dll?name=23303&SOURCE=23303&srvc=store&goto=http://disneyshopping.go.com/webapp/wcs/stores/servlet/DSIProductDisplay?catalogId=10002&storeId=10051&productId=1233148&langId=-1&categoryId=13687&CMP=OTL-TWDC_BVHE&att=BVHE', 770, 700, 'newWin', 'yes', 'yes', 'yes', 'yes', 'yes', 'yes');
		break;
		case "activity_christmas_1":
			NewWindow=window.open('../pdf/LE_ChristmasWish_01.pdf','newWin','width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
			NewWindow.focus();
		break;
		case "activity_christmas_2":
			NewWindow=window.open('../pdf/LE_ChristmasWish_02.pdf','newWin','width=700,height=900,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
			NewWindow.focus();	
		break;	
		
	}
}
function openRatingsDisclaimer (URL)
{
	win = window.open ('http://disney.go.com/disneypictures/javascript/disclaimer/index.html?http://' + URL, 'intermediate', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=370,height=210');
}