function launchDMR() {
	hitbox.Set_hbLink(exitLinkArray[4]);
	//document.location.href='http://disney.go.com/disneymovierewards/';
	// cindy3Win = window.open('http://disney.go.com/disneymovierewards/?NLC-disneyvideos','cindy3pop');
	// cindy3Win.window.focus();
}
streetDate=[2007,3,15];
function checkAvailability() {
	var year=streetDate[0];
	var month=streetDate[1]-1;
	var date=streetDate[2];
	var today=new Date();
	var todaysYear=today.getFullYear();
	var todaysMonth=today.getMonth();
	var todaysDate=today.getDate();
	todayDateTime = today.getTime();
	var availableDate = new Date();
	availableDate.setFullYear(year);
	availableDate.setMonth(month);
	availableDate.setDate(date);
	availableDateTime = availableDate.getTime();
	if(todayDateTime >= availableDateTime){
		nowAvailable=true;
	}else{
		nowAvailable=false;
	}
}
checkAvailability();
function noflashStreet() {
	if (nowAvailable) {
		var streetImg = "'images/noflash_poststreet.jpg' alt='E se o sapatinho n‹o servir?'";
	} else {
		var streetImg = "'images/noflash_street.jpg' alt='E se o sapatinho n‹o servir?'";
	}
	document.write("<img src="+streetImg+" width='665' height='169' usemap='#orderMap' border='0'>");
}
function textonlyStreet() {
	if (nowAvailable) {
		var streetImg = "textonly_poststreet.jpg";
	} else {
		var streetImg = "textonly_header.jpg";
	}
	document.write("<img src='images/"+streetImg+"' alt='CINDERELA 3' width='994' height='190' hspace='0' vspace='1' border='0' usemap='#orderMap'>");
}

function openPage(targURL, hb) { //v2.0
if (hb>=0){hitbox.Set_hbPageView(pageArray[hb], contentArray[hb]);}
cindy3Win = window.open(targURL,'cindy3pop');
cindy3Win.window.focus(); 
}
function openExitPage(targURL, hb) { //v2.0
if (hb>=0){hitbox.Set_hbLink(exitLinkArray[hb]);}
cindy3Win = window.open(targURL,'cindy3pop');
cindy3Win.window.focus(); 
}

//link to disney mom's registration
//function disneyMomsReg(){
//	openExitPage('https://www.interactualdvd.com/disney/discregistration/default.asp?bc=1',1);
//}
//function openDisclaimer(URL){
//	win = window.open('http://disney.go.com/disneyvideos/javascript/disclaimer/disclaimer.html?'+ URL, 'intermediate', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=370,height=210');
//}

function launchPrint(targURL, hb) { //v2.0
	//hitbox.Set_hbPageView(pageArray[hb], contentArray[hb]);
	var w = 620;
	var h = 500;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	coords = 'toolbar=yes,location=no,menubar=yes,status=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top='+wint+',left='+winl;
	cindy3Win = window.open(targURL,'cindy3pop',coords);
	cindy3Win.window.focus(); 
}
function launchBuddy(targURL) { //v2.0
	//hitbox.Set_hbPageView(pageArray[36], contentArray[36]);
	var w = 360;
	var h = 500;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	coords = 'toolbar=no,location=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top='+wint+',left='+winl;
	cindy3Win = window.open(targURL,'cindy3pop',coords);
	cindy3Win.window.focus();
}

function launchSignature(targURL, hb) { //v2.0
	//hitbox.Set_hbPageView(pageArray[hb], contentArray[hb]);
	var w = 360;
	var h = 500;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	coords = 'toolbar=no,location=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top='+wint+',left='+winl;
	cindy3Win = window.open(targURL,'cindy3pop',coords);
	cindy3Win.window.focus();
}

function launchWpaper(targURL, hb) {
	//hitbox.Set_hbPageView(pageArray[hb], contentArray[hb]);
	var w = 940;
	var h = 500;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	coords = 'toolbar=yes,location=no,menubar=yes,status=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top='+wint+',left='+winl;
	cindy3Win = window.open(targURL,'cindy3pop',coords);
	cindy3Win.window.focus();
}
function launchScreensaver(os, hb) {
	targURL='popups/screensaver.html?targOS='+os;
	hitbox.Set_hbPageView(pageArray[hb], contentArray[hb]);
	var w = 260;
	var h = 280;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	coords = 'toolbar=no,location=no,menubar=no,status=no,scrollbars=no,resizable=yes,width='+w+',height='+h+',top='+wint+',left='+winl;
	cindy3Win = window.open(targURL,'cindy3pop',coords);
	cindy3Win.window.focus();
}

function launchOrder(hb) {
	if (hb==3) {
		document.write('<s'+'cript language="JavaScript" src="http://switch.atdmt.com/action/060123_CinderellaIII_BuyNow"></s'+'cript>')
	}
	hitbox.Set_hbLink(exitLinkArray[hb]);
	cindy3Win = window.open('http://go-disneyshopping.com/CinderellaIIIATwistInTimeDVD','cindy3pop');
	cindy3Win.window.focus(); 
}
function launchMouseMaze() {
	hitbox.Set_hbPageView(pageArray[17], contentArray[17]);
	var w = 564;
	var h = 564;
	var winl = (screen.width - w) / 3;
	var wint = (screen.height - h) / 3;
	coords = 'toolbar=no,location=no,menubar=no,status=no,scrollbars=no,resizable=no,width='+w+',height='+h+',top='+wint+',left='+winl;
	cindy3Win = window.open('popups/mousemaze.html','cindy3pop',coords);
	cindy3Win.window.focus(); 
}
function launchTrailer(hb) {
	if (hb==51) {
		document.write('<s'+'cript language="JavaScript" src="http://switch.atdmt.com/action/CinderellaIII_Trailer_Views"></s'+'cript>')
	}
	hitbox.Set_hbPageView(pageArray[hb], contentArray[hb]);
	var w = 360;
	var h = 480;
	var winl = (screen.width - w) / 3;
	var wint = (screen.height - h) / 3;
	coords = 'toolbar=yes,location=no,menubar=yes,status=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top='+wint+',left='+winl;
	cindy3Win = window.open('http://www.totaleclips.com/player/splash.aspx?custid=3&playerid=2&clipid=e30562','cindy3pop',coords);
	cindy3Win.window.focus();
}

//-->