function menu(ID){
    preview = document.getElementById(ID );
counter = 0

for(start = 1; start < 9; start++) {
counter = counter + 1
 document.getElementById(counter).style.visibility = "hidden";
      document.getElementById(counter).style.position = "absolute";
      document.getElementById(counter).style.top = "-10000";
      document.getElementById(counter).style.left = "-10000";

}
      preview.style.visibility = "visible";
      preview.style.position = "relative";
      preview.style.top = "0";
      preview.style.left = "0";

  }
  var win = null;
function NewWindow(mypage,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,'promociones',settings)
}
var i;
i=1;
function fotos(w,h,pg,id) {
if (i>w){
}
else
{
if (parseInt(navigator.appVersion)>3) {
   if (navigator.appName=="Netscape") {
    top.outerWidth=w;
    top.outerHeight=h;
top.moveTo((screen.width-w)/2,(screen.height-h)/2);
window.location=pg + ".aspx?id=" + id;
   }
   else {
top.resizeTo(w,h );
top.moveTo((screen.width-w)/2,(screen.height-h)/2);
window.location=pg + ".aspx?id=" + id;
}
}
i++;
 }
}
function mostrar()
 { 
document.getElementById('boton').style.visibility = "visible";
document.getElementById('boton').style.position = "relative";
document.getElementById('boton').style.top = "0";
document.getElementById('boton').style.left = "0";

 }
 function entrar(){
 setTimeout("mostrar();", 4000)
 }
 function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		function setContent() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var contentElement = document.getElementById('content');
					var contentHeight = contentElement.offsetHeight;
					if (windowHeight - contentHeight > 0) {
						contentElement.style.position = 'relative';
						contentElement.style.top = ((windowHeight / 2) - (contentHeight / 2)) + 'px';
					}
					else {
						contentElement.style.position = 'static';
					}
				}
			}
		}
		window.onload = function() {
			setContent();
		}
		window.onresize = function() {
			setContent();
		}

