function uncover() {
	var cover=document.getElementById("sdmaps_cover");
	var content=document.getElementById("content");
	var adcontent=document.getElementById("adcontent");
	cover.style.backgroundPosition="-10000px -10000px";
	content.style.display="none";
	adcontent.style.display="";
}

function cover() {
	var cover=document.getElementById("sdmaps_cover");
	var content=document.getElementById("content");
	var adcontent=document.getElementById("adcontent");
	cover.style.backgroundPosition="0px 0px";
	adcontent.style.display="none";
	content.style.display="";
}

function setAdHeight() {
	var docHeight=getPageSizeWithScroll();	
	document.getElementById("sdmaps_background").style.height=docHeight+"px";
	document.getElementById("sdmaps_cover").style.height=docHeight+"px";
}

function getPageSizeWithScroll() {
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
  	}
	return yWithScroll;
}