function wallpaper(WPID, width, height){
	winInfo = "height="+height+",width="+width;
	URL = "/us/wallpapers/wallpaper.html?paperID="+WPID+"&width="+width+"&height="+height;
	window.open(URL, "wallpaper", winInfo);
}

function wallpaperMaker(WPID, width, height){
	winInfo = "height="+height+",width="+width;
	URL = "/us/news/promotions/shrek/wallpapermaker/wallpaper.html?paperID="+WPID+"&width="+width+"&height="+height;
	window.open(URL, "wallpapermaker", winInfo);
}

function popup(URL, width, height){
	winInfo = "height="+height+",width="+width+",resizable=yes,scrollbars=yes";
	window.open(URL, "popup", winInfo);
}
if(document.images){
	promo1_on = new Image();
	promo1_on.src = "/us/images/homepage/main/promo1_on.gif";
	promo1_off = new Image();
	promo1_off.src = "/us/images/homepage/main/promo1.gif";
	
	promo2_on = new Image();
	promo2_on.src = "/us/images/homepage/main/promo2_on.gif";
	promo2_off = new Image();
	promo2_off.src = "/us/images/homepage/main/promo2.gif";
	
	promo3_on = new Image();
	promo3_on.src = "/us/images/homepage/main/promo3_on.gif";
	promo3_off = new Image();
	promo3_off.src = "/us/images/homepage/main/promo3.gif";
}
function homeRoll(imgName, mouseDir){
	if(mouseDir == 'in'){
		document.images[imgName].src = eval(imgName+"_on.src");
	}
	else{
		document.images[imgName].src = eval(imgName+"_off.src");
	}
}

function popWin4()	{
	ghostPop = window.open("/us/baking/holidays/flower_pop.html","flower","toolbar=no,menubar=yes,scrollbars=yes,status=no,scrolling=yes,resizeable=no,width=583,height=450");
}
function popWin5()	{
	ghostPop = window.open("/us/baking/holidays/cutouts_pop.html","cutouts","toolbar=no,menubar=yes,scrollbars=yes,status=no,scrolling=yes,resizeable=no,width=583,height=450");
}
function popWin6()	{
	ghostPop = window.open("/us/baking/recipes/cakes/butterfly_pop.html","butterfly","toolbar=no,menubar=yes,scrollbars=yes,status=no,scrolling=yes,resizeable=no,width=583,height=450");
}
function owl()	{
	ghostPop = window.open("/us/baking/recipes/popup/pop_owl.shtml","owl","toolbar=no,menubar=yes,scrollbars=yes,status=no,scrolling=yes,resizeable=yes,width=523,height=510");
}
function download_wallpaper(image) {
	url = "download_wallpaper.jsp?image=" + image;
	window.open(url, 'a', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=1280,height=1024');
}
function verify(source){
	if(source == "bingo"){
		if(confirm("By downloading this game, I agree that I am over 12 years of age.")){
			window.open("/us/academyawards/bingo/pdf/MMS_BingoCards.pdf");
		}
	}
	else if(source == "wallpaper"){
		if(confirm("By participating in this activity, I agree that I am over 12 years of age.")){
			document.getElementById("body").style.display = "block";
		}
	}
}
function checkReSize(){
		if(document.body.offsetWidth <= 772){
			if(document.getElementById('promo1')){
				document.getElementById('promo1').style.left = "375";
			}
			//if(document.getElementById('promo2')){
			//	document.getElementById('promo2').style.left = "375";
			//}
			if(document.getElementById('ChangeThisDiv')){
				document.getElementById('ChangeThisDiv').style.left = "375";
			}
			if(document.getElementById('theFlash')){
				document.getElementById('theFlash').style.left = "376";
			}
			if(document.getElementById('homepromoshrek')){
				document.getElementById('homepromoshrek').style.left = "376";
			}
			if(document.getElementById('mov')){
				document.getElementById('mov').style.left = "376";
			}
			if(document.getElementById('main')){
				document.getElementById('main').style.left = "376";
			}
			if(document.getElementById('sidepromo')){
				document.getElementById('sidepromo').style.left = "376";
			}
		}
		else{
			if(document.getElementById('promo1')){
				document.getElementById('promo1').style.left = "50%";
			}
			//if(document.getElementById('promo2')){
			//	document.getElementById('promo2').style.left = "50%";
			//}
			if(document.getElementById('ChangeThisDiv')){
				document.getElementById('ChangeThisDiv').style.left = "50%";
			}
			if(document.getElementById('theFlash')){
				document.getElementById('theFlash').style.left = "50%";
			}
			if(document.getElementById('homepromoshrek')){
				document.getElementById('homepromoshrek').style.left = "50%";
			}
			if(document.getElementById('mov')){
				document.getElementById('mov').style.left = "50%";
			}
			if(document.getElementById('main')){
				document.getElementById('main').style.left = "50%";
			}
			if(document.getElementById('sidepromo')){
				document.getElementById('sidepromo').style.left = "50%";
			}
		}
	}
	



