\n'); } function mapa(url,sx,sy){ var posx=(window.screen.width/2)-(sx/2+15); var posy=(window.screen.height/2)-sy/2-20; mapa1 = window.open (url, "", "resizable=no,scrollbars=0,status=1,location=no,toolbar=no,menubar=no,width="+sx+",height="+sy+",screenX="+posx+",screenY="+posy+",left="+posx+",top="+posy); } function finestra(url,sx,sy){ var posx=(window.screen.width/2)-(sx/2+15); var posy=(window.screen.height/2)-sy/2-20; fin = window.open (url, "", "resizable=no,scrollbars=1,status=1,location=no,toolbar=no,menubar=no,width="+sx+",height="+sy+",screenX="+posx+",screenY="+posy+",left="+posx+",top="+posy); } function entrada(){ capa2("cp2"); if (window.screen.width>820){ capa("cp1"); }else{ sx=400; sy=250; var posx=window.screen.width-sx-10; var posy=0;//window.screen.height-(sy/2)-20; window.open ("movies/toshiba/info.htm", "fini", "resizable=no,scrollbars=1,status=1,location=no,toolbar=no,menubar=no,width="+sx+",height="+sy+",screenX="+posx+",screenY="+posy+",left="+posx+",top="+posy); } } function capa(nom){ // if browser is IE if (document.all) { //alert("ie"); document.all[nom].style.left=Math.max((document.body.clientWidth/2)+360,0); document.all[nom].style.top=Math.max((document.body.clientHeight/2)-225,0); document.all[nom].style.width=(document.body.clientWidth/2)-350-20; document.all[nom].style.visibility="visible"; //var hideWhat = document.all(mVisible).style; //hideWhat.visibility = "hidden"; } // if browser is Moz else if (document.getElementById) { //alert("moz"); document.getElementById(nom).style.left=Math.max((window.innerWidth/2)+360,0); document.getElementById(nom).style.top=Math.max((window.innerHeight/2)-225,0); document.getElementById(nom).style.width=(window.innerWidth/2)-350-20; document.getElementById(nom).style.visibility="visible"; //var hideWhat = document.getElementById(mVisible); //hideWhat.style.visibility = "hidden"; } // if browser isn't IE or Moz else if(document.layers) { //alert("else"); //var hideWhat = document.layers[mVisible]; //hideWhat.visibility = "hidden"; document.layers[nom].left=(screen.width/2)+375; } } function capa2(nom){ // if browser is IE if (document.all) { document.all[nom].style.left=Math.max((document.body.clientWidth/2)-375,0); document.all[nom].style.top=Math.max((document.body.clientHeight/2)-225,0); } // if browser is Moz else if (document.getElementById) { document.getElementById(nom).style.left=Math.max((window.innerWidth/2)-375,0); document.getElementById(nom).style.top=Math.max((window.innerHeight/2)-225,0); } // if browser isn't IE or Moz else if(document.layers) { document.layers[nom].left=Math.max((document.body.clientWidth/2)-375,0); document.layers[nom].top=Math.max((document.body.clientHeight/2)-225,0); } } function alertSize() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } window.alert( 'Width = ' + myWidth ); window.alert( 'Height = ' + myHeight ); } //-->