function launchDMR() {
	hitbox.Set_hbLink(exitLinkArray[1]);
	document.location.href='http://disney.go.com/disneymovierewards/';
}
streetDate=[2007,12,18];
vaultDate=[2008,1,31];
function checkAvailability() {
	var year=streetDate[0];
	var month=streetDate[1]-1;
	var date=streetDate[2];
	var toVault = new Date();
	toVault.setFullYear(vaultDate[0]);
	toVault.setMonth(vaultDate[1]-1);
	toVault.setDate(vaultDate[2]);
	toVaultTime = toVault.getTime();
	var today=new Date();
	todayDateTime = today.getTime();
	var availableDate = new Date();
	availableDate.setFullYear(year);
	availableDate.setMonth(month);
	availableDate.setDate(date);
	availableDateTime = availableDate.getTime();
	if(todayDateTime >= toVaultTime){
		nowAvailable="vault";
	} else if(todayDateTime >= availableDateTime){
		nowAvailable=true;
	}else{
		nowAvailable=false;
	}
}
checkAvailability();
function textonlyStreet() {
	if (nowAvailable=="vault") {
		var streetImg = "textonly_postvault.jpg";
	} else if (nowAvailable) {
		var streetImg = "textonly_poststreet.jpg";
	} else {
		var streetImg = "textonly_prestreet.jpg";
	}
	document.write("<img src='images/"+streetImg+"' alt='CINDERELLA II' width='994' height='190' hspace='0' vspace='1' border='0' usemap='#orderMap'>");
}

function openPage(targURL, hb) { //v2.0
	// hitbox.Set_hbLink(exitLinkArray[hb]);
	document.location.href=targURL;
}
function openWindow(targURL, hb) { //v2.0
if (hb>=0){hitbox.Set_hbPageView(pageArray[hb], contentArray[hb]);}
cindy2Win = window.open(targURL,'cindy2pop');
cindy2Win.window.focus(); 
}
function openExitWindow(targURL, hb) { //v2.0
if (hb>=0){hitbox.Set_hbLink(exitLinkArray[hb]);}
cindy2Win = window.open(targURL,'cindy2pop');
cindy2Win.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;
	cindy2Win = window.open(targURL,'cindy2pop',coords);
	cindy2Win.window.focus(); 
}

function launchWpaper(targURL, hb) {
	// alert (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;
	cindy2Win = window.open(targURL,'cindy2pop',coords);
	cindy2Win.window.focus();
}
function launchOrder(hb) {
	hitbox.Set_hbLink(exitLinkArray[hb]);
	// change to real Store page page
	if (hb>=0){hitbox.Set_hbPageView(pageArray[hb], contentArray[hb]);}
	cindy2Win = window.open('http://transfer.go.com/cgi/transfer.dll?name=23303&SOURCE=23303&srvc=store&goto=http://disneyshopping.go.com/webapp/wcs/stores/servlet/DSIProductDisplay?langId=-1&storeId=10051&catalogId=10002&productId=1217793&categoryId=13678&CMP=OTL-TWDC_BVHE&att=BVHE','cindy2pop');
	cindy2Win.window.focus(); 
}
function launchScrapbook() {
	// alert ("launchScrapbook")
	// hitbox.Set_hbPageView(pageArray[17], contentArray[17]);
	var w = 764;
	var h = 440;
	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;
	scrapbookWin = window.open('scrapbook/scrapbook.html','scrapbookPop',coords);
	scrapbookWin.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;
	cindy2Win = window.open('http://www.totaleclips.com/player/splash.aspx?custid=3&playerid=2&clipid=e30562','cindy2pop',coords);
	cindy2Win.window.focus();
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//-->