function launchDMR() {
	// hitbox.Set_hbLink(exitLinkArray[4]);
	document.location.href='http://disney.go.com/disneymovierewards/';
}
streetDate=[2007,12,18];
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='Underdog' border='0' align='middle' vspace='1' usemap='#orderMap'>");
}

function openPage(targURL, hb) { //v2.0
	// hitbox.Set_hbLink(exitLinkArray[hb]);
	document.location.href=targURL;
}
function openWindow(targURL) { //v2.0
	// if (hb>=0){hitbox.Set_hbPageView(pageArray[hb], contentArray[hb]);}
	underdogWin = window.open(targURL,'underdogPop');
	underdogWin.window.focus(); 
}
function openExitWindow(targURL, hb) { //v2.0
	// if (hb>=0){hitbox.Set_hbLink(exitLinkArray[hb]);}
	underdogWin = window.open(targURL,'underdogPop');
	underdogWin.window.focus(); 
}
function launchWpaper(size) {
	// alert ("launchWpaper("+size+")");
	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;
	underdogWin = window.open('downloads/wpaper_'+size+'.html','underdogPop',coords);
	underdogWin.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 {
		// document.write('<s'+'cript language="JavaScript" src="http://switch.atdmt.com/action/060123_Underdog_BuyNow"></s'+'cript>')
		underdogWin = window.open(orderPage,'underdogPop');
		underdogWin.window.focus();
	}
}
function launchBuddy() {
	// alert ("launchBuddy()");
	// 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;
	underdogWin = window.open('downloads/buddy_icons.html','underdogPop',coords);
	underdogWin.window.focus();
}
function launchGame(gameID) {
	// alert ("launchGame("+gameID+")");
	// citysweep, meteordash, superfetch
	if (gameID=="citysweep") {
		var w = 800;
		var h = 600;
	} else {
		var w = 640;
		var h = 500;
	}
		var winl = (screen.width - w) / 3;
		var wint = (screen.height - h) / 3;
		coords = 'width='+w+',height='+h+',top='+wint+',left='+winl;
		gameWin = window.open('games/'+gameID+'/','orderwin', coords,'scrollbars=no,resizable=no');
		if (parseInt(navigator.appVersion) >= 4) { gameWin.window.focus(); }
}

function launchTrailer() {
	hitbox.Set_hbPageView(pageArray[9], contentArray[9]);
	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;
	underdogWin = window.open('http://www.totaleclips.com/player/splash.aspx?custid=3&playerid=2&clipid=e34157','underdogPop',coords);
	underdogWin.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];}
}
//-->