function lanz() { stats(); DWidth = document.body.clientWidth; DHeight = document.body.clientHeight; PositionH = DHeight - 300; ObjDiv = document.getElementById('center_m'); ObjDiv.style.height = PositionH; ObtDatos('aA','center_m'); } //--- Menus y punteros de menus --- function Bttover(id,sec) { ObjDiv = document.getElementById(id).style; ObjDiv.cursor = "pointer"; if (sec=='i') { ObjDiv.backgroundImage = "url(images/lfm1.png)"; ObjDiv.color = '#000000'; } if (sec=='m') { ObjDiv.backgroundImage = "url(images/lfm2.png)"; ObjDiv.color = '#000000'; } if (sec=='f') { ObjDiv.backgroundImage = "url(images/lfm3.png)"; ObjDiv.color = '#000000'; } } function pt(id) { ObjDiv = document.getElementById(id).style; ObjDiv.cursor = "pointer"; } function Bttout(id,sec) { ObjDiv = document.getElementById(id).style; if (sec=='i') { ObjDiv.backgroundImage = "url(images/mft1.png)"; ObjDiv.color = '#FFFFFF';} if (sec=='m') { ObjDiv.backgroundImage = "url(images/mft2.png)"; ObjDiv.color = '#FFFFFF';} if (sec=='f') { ObjDiv.backgroundImage = "url(images/mft3.png)"; ObjDiv.color = '#FFFFFF';} } // --- Ajax ---- function createRequestObject(){ var peticion; var browser = navigator.appName; if(browser == "Microsoft Internet Explorer"){ peticion = new ActiveXObject("Microsoft.XMLHTTP"); } else{ peticion = new XMLHttpRequest(); } return peticion; } function ObtDatos(id,win) { ruta = 'modules/index.php?id='+id; Contenedor = '
CARGANDO...
'; obj = document.getElementById(win); http = new Array(); act = new Date(); http[act] = createRequestObject(); http[act].open('get', ruta); http[act].onreadystatechange = function() { if(http[act].readyState==1){ obj.innerHTML = Contenedor; }else if (http[act].readyState == 4) { if (http[act].status == 200 || http[act].status == 304) { obj.innerHTML = http[act].responseText; } }else if (http[act].readyState == 404){ obj.innerHTML = '
Error 404: La página no existe.
'; } } http[act].send(null); } function stats() { pheight = screen.height; pwidth = screen.width; ruta = 'modules/index.php?id=stats&wdth='+pwidth+'&hght='+pheight; obj = document.getElementById('stats'); http = new Array(); act = new Date(); http[act] = createRequestObject(); http[act].open('get', ruta); http[act].onreadystatechange = function() { if (http[act].readyState == 4) { if (http[act].status == 200 || http[act].status == 304) { obj.innerHTML = http[act].responseText; } } } http[act].send(null); } // --- Galeria --- function Subs(valor,subv) { window.scrollTo(0,0); document.body.style.overflow = 'hidden'; document.getElementById('base').style.display = 'none'; DHeight = document.documentElement.clientHeight; ObjDiv = document.getElementById('wtwo'); PositionH = (DHeight/2)-(591/2); ObjDiv.style.visibility = 'visible'; ObjDiv.style.top = PositionH+'px' ; DatosSubs(subv,'wtwo',valor); } function closew(id) { document.getElementById(id).style.visibility = 'hidden'; document.getElementById('base').style.display = 'block'; document.body.style.overflow = 'auto'; ObtDatos('nada',id); } function DatosSubs(id,win,valor) { ruta = 'modules/index.php?id='+id+'&valor='+valor; Contenedor = '
CARGANDO...
'; obj = document.getElementById(win); http = new Array(); act = new Date(); http[act] = createRequestObject(); http[act].open('get', ruta); http[act].onreadystatechange = function() { if(http[act].readyState==1){ obj.innerHTML = Contenedor; }else if (http[act].readyState == 4) { if (http[act].status == 200 || http[act].status == 304) { obj.innerHTML = http[act].responseText; } }else if (http[act].readyState == 404){ obj.innerHTML = '
Error 404: La página no existe.
'; } } http[act].send(null); }