function launchDMR() {
	document.location.href='http://disney.go.com/disneymovierewards/';
}
streetDate=[2008,6,17];
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 textonlyStreet() {
	if (nowAvailable) {
		var streetImg = "textonly_poststreet.jpg";
	} else {
		var streetImg = "textonly_prestreet.jpg";
	}
	document.write("<img src='images/"+streetImg+"' alt='Jungle Book 2' border='0' align='middle' vspace='1' usemap='#orderMap'>");
}
function openPage(targURL) { //v2.0
	document.location.href=targURL;
}
function openWindow(targURL) { //v2.0
	jb2Win = window.open(targURL,'jb2Pop');
	jb2Win.window.focus(); 
}
function openExitWindow(targURL, hb) { //v2.0
	jb2Win = window.open(targURL,'jb2Pop');
	jb2Win.window.focus(); 
}

/*
function launchOrder(orderPage) {
	// alert ("launchOrder: "+orderPage);
	if (orderPage=="order800") {
		var w = 390;
		var h = 270;
		var winl = (screen.width - w) / 3;
		var wint = (screen.height - h) / 3;
		coords = 'width='+w+',height='+h+',top='+wint+',left='+winl;
		orderWin = window.open('http://disneyvideos.disney.go.com/moviefinder/calltoorder.html','orderwin', coords,'scrollbars=no,resizable=no');
		if (parseInt(navigator.appVersion) >= 4) { orderWin.window.focus(); }
	} else {
		jb2Win = window.open(orderPage,'jb2Pop');
		jb2Win.window.focus();
	}
}
*/

function launchOrder(orderPage) {
	win = 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?catalogId=10002&storeId=10051&productId=1228634&langId=-1&categoryId=13685&CMP=OTL-TWDC_BVHE&att=BVHE');
	win.focus();
}

function launchPuzzle(url,hb) {
	if (hb>=0){}
	var w = 786;
	var h = 660;
	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;
	puzzleWin = window.open(url,'jb2Pop', coords);
	if (parseInt(navigator.appVersion) >= 4) { puzzleWin.window.focus(); }
}
function launchPrintable(url,hb) {
	if (hb>=0){}
	var w = 940;
	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;
	
	jb2Win = window.open(url,'jb2Pop',coords);
	jb2Win.window.focus();
	jb2Win.window.onload = function() {
		this.print()
	}
}

function launchTrailer(clipID,hb) {
	var w = 360;
	var h = 480;
	var winl = (screen.width - w) / 3;
	var wint = (screen.height - h) / 3;
	coords = 'toolbar=no,location=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top='+wint+',left='+winl;
	jb2Win = window.open('http://www.totaleclips.com/player/splash.aspx?custid=3&playerid=2&clipid='+clipID,'jb2Pop',coords);
	jb2Win.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];}
}
//-->