// JavaScript Document
function mappopup(){
	
	var thediv_Foreground=top.document.getElementById('displaybox_Foreground_Map');
	var thediv_Background=top.document.getElementById('displaybox_Background');
	//alert('p');
	if(thediv_Foreground.style.display == "none")
	{
		thediv_Foreground.style.display = "";
		thediv_Background.style.display = "";
		thediv_Foreground.innerHTML = "<table width='100%' height='100%'><tr><td align='center' valign='middle' width='100%' height='100%' style='border:solid 1px #666666;background-color:#FFFFFF;'><iframe name='choosealbum' height='100%' width='100%' allowtransparency='no' scrolling='no' marginwidth='0' marginheight='0' border='0' frameborder='0' src='/Catz2011/ContactUs/viewmap.php'></iframe></td></tr></table>";

	}
	else
	{
		thediv_Foreground.style.display = "none";
		thediv_Background.style.display = "none";
		thediv_Foreground.innerHTML = "";
	}
	return false;
}

function promotionpopup(which){
	var thediv_Foreground=top.document.getElementById('displaybox_Foreground_Promotion');
	var thediv_Background=top.document.getElementById('displaybox_Background');
	//alert('p');
	if(thediv_Foreground.style.display == "none")
	{
		thediv_Foreground.style.display = "";
		thediv_Background.style.display = "";
		thediv_Foreground.innerHTML = "<table width='100%' height='100%'><tr><td align='center' valign='middle' width='100%' height='100%' style='border:solid 1px #666666;background-color:#FFFFFF;'><iframe name='choosealbum' height='100%' width='100%' allowtransparency='no' scrolling='no' marginwidth='0' marginheight='0' border='0' frameborder='0' src='/Catz2011/Promotions/view.php?which="+which+"'></iframe></td></tr></table>";

	}
	else
	{
		thediv_Foreground.style.display = "none";
		thediv_Background.style.display = "none";
		thediv_Foreground.innerHTML = "";
	}
	return false;
}

function closeclicker(which){
	var thediv_Foreground=top.document.getElementById('displaybox_Foreground_'+which);
	var thediv_Background=top.document.getElementById('displaybox_Background');
		
		thediv_Foreground.style.display = "none";
		thediv_Background.style.display = "none";
		thediv_Foreground.innerHTML = "";
}
