function wallpaper(WPID, width, height){
	winInfo = "height="+height+",width="+width;
	URL = "http://global.mms.com/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 = "http://global.mms.com/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 = "images/homepage/main/promo1_on.html";
	promo1_off = new Image();
	promo1_off.src = "images/homepage/main/promo1.html";
	
	promo2_on = new Image();
	promo2_on.src = "images/homepage/main/promo2_on.html";
	promo2_off = new Image();
	promo2_off.src = "images/homepage/main/promo2.gif";
	
	promo3_on = new Image();
	promo3_on.src = "images/homepage/main/promo3_on.html";
	promo3_off = new Image();
	promo3_off.src = "images/homepage/main/promo3.html";
}
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 popWin6()	{
	ghostPop = window.open("baking/recipes/cakes/butterfly_pop.html","butterfly","toolbar=no,menubar=yes,scrollbars=yes,status=no,scrolling=yes,resizeable=no,width=583,height=450");
}
