function checkAvailability(streetDate) {
	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){
		return true;
	}else{
		return false;
	}
}

function checkDate(yr,mo,dt) {
	var mo=mo-1;
	var today=new Date();
	var userDateAt = location.search.substring().indexOf("today=");
	if (userDateAt > 0) {
		var userDateStr = location.search.substr(userDateAt+6);
		var userDateEnd =  userDateStr.indexOf("&");
		if (userDateEnd > 0) {
			userDateStr = userDateStr.substring (0,userDateEnd);
		}
		userDate = userDateStr.split(",");
		today.setFullYear(userDate[0]);
		today.setMonth(Number(userDate[1])-1);
		today.setDate(userDate[2]);
	}
	today.setMinutes(today.getMinutes()+10);
	var streetDate = new Date();
	streetDate.setFullYear(yr);
	streetDate.setMonth(mo);
	streetDate.setDate(dt);
	if(today >= streetDate) {
		return true;
	}else{
		return false;
	}
}

function textonlyStreet() {
	if (checkDate(2009,1,30)) {
		var streetImg = "textonly_header_vault.jpg";
	} else {
		var streetImg = "textonly_header_post.jpg' usemap='#orderMap";
	}
		
	document.write("<img src='images/"+streetImg+"' alt='Snow Whtie And The Seven Dwarfs' border='0' align='middle' vspace='1' />");
}
/*
function newWindow(targURL, disclaimer, hb, exit, winName) {
	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 if (winName) {
		swWin2 = window.open(targURL,winName);
		swWin2.window.focus();
	} else {
		swWin = window.open(targURL,'swWin');
		swWin.window.focus();
	}
}
*/
function loadPage(targURL) {
	window.location.href = targURL;
}
function newWindow(targURL) {
	var swWin = window.open(targURL,'swWin');
	swWin.window.focus();
}
function openEmailsig (id) {
	// alert ("openEmailSig: "+id);
	popup("popup_signature.html?sig="+id, 300, 420, false);
}
function openWpaper (id, size) {
	// alert ("openWpaper: "+id+"; "+size);
	// "media/wallpaper/snowwhite_'+wpaper+'.jpg"
	var targURL = ("popup_wpaper.html?wpaper="+id+"_"+size);
	var winl = (screen.width - 800) / 3;
	var wint = (screen.height - 600) / 3;
	swWin = window.open(targURL,'swPop', 'width=800,height=600,top='+wint+',left='+winl+'scrollbars=no,resizable=yes');
	swWin.window.focus(); 
}
function popup(targURL, w, h, disclaimer) {
	/*
	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('game/', 'intermediate', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=750,height=500');
		alert ("popup("+targURL+","+winl+","+wint+","+disclaimer+")");
	} else {
		var winl = (screen.width - w) / 3;
		var wint = (screen.height - h) / 3;
		coords = 'width='+w+',height='+h+',top='+wint+',left='+winl;
		swWin = window.open(targURL,'swPop', 'width=1024, height=768, scrollbars=1,resizable=1, menubar=1, location=1, toolbar=1');
		swWin.window.focus();
		
	}
}

var chAppVersion=navigator.appVersion.split("MSIE");
var chBrwsrVer=parseFloat(chAppVersion[1]);
/*
alert (navigator.userAgent+"; chBrwsrVer = "+chBrwsrVer);
*/
if(navigator.userAgent.indexOf("MSIE") > 0 && chBrwsrVer<=6) {
	document.write ("<style>.closeBtn {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='media/popups/btn_close_bg.png', sizingMethod='crop');}.closeBtn a {position:relative;}</style>");
	
} else {
	document.write ("<style>.closeBtn {background: url(media/popups/btn_close_bg.png) top left no-repeat;}</style>");
}


//-->