streetDate=[2008,8,26];
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_header_post.jpg";
	} else {
		var streetImg = "textonly_header_pre.jpg";
	}
	document.write("<img src='images/"+streetImg+"' alt='The Little Mermaid: Ariel\'s Beginning' border='0' align='middle' vspace='1' usemap='#orderMap' />");
}
function newWindow(targURL, disclaimer, hb, exit) { //v2.0
	if (hb>=0 && exit=="true"){
		hitbox.Set_hbLink(exitLinkArray[hb]);
	} else if (hb>=0) {
		hitbox.Set_hbPageView(pageArray[hb], contentArray[hb]);
	}
	if (disclaimer=="true") {
		disclaimerWin = window.open('http://disney.go.com/disneyvideos/javascript/disclaimer/disclaimer.html?'+ targURL, 'intermediate', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=370,height=210');
	} else {
		lm3Win = window.open(targURL,'lm3Win');
		lm3Win.window.focus();
	}
}
function popup(targURL, w, h, disclaimer, hb, exit) { //v2.0
	if (hb>=0 && exit=="true"){
		hitbox.Set_hbLink(exitLinkArray[hb]);
	} else if (hb>=0) {
		hitbox.Set_hbPageView(pageArray[hb], contentArray[hb]);
	}
	/*
	if (hb>=0){hitbox.Set_hbLink(exitLinkArray[hb]);}
	// alert ("popup("+targURL+","+w+","+h+","+disclaimer+")");
	*/
	if (disclaimer=="true") {
		disclaimerWin = window.open('http://disney.go.com/disneyvideos/javascript/disclaimer/disclaimer.html?'+ targURL, 'intermediate', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=370,height=210');
	} else {
		var winl = (screen.width - w) / 3;
		var wint = (screen.height - h) / 3;
		coords = 'width='+w+',height='+h+',top='+wint+',left='+winl;
		lm3Win = window.open(targURL,'lm3Pop', coords,'scrollbars=no,resizable=no');
		lm3Win.window.focus(); 
	}
}
function launchGame(gameName, hb) { //v2.0
	if (gameName=="maze") {
		lm3Win = window.open('popups/lm3_maze.pdf','lm3Win');
		lm3Win.window.focus();
		hitbox.Set_hbPageView(pageArray[hb], contentArray[hb]);
	} else if (gameName=="concentration") {
	} else if (gameName=="sebastian") {
	}
}
//-->