function entra()
{
	setTimeout('entra2("marco.htm")',3000);
	}
function entra2(nombre)
{
var centrado = (screen.width/400)-10; a3=eval("window.open(nombre,'window1','toolbar=0,location=0,titlebar=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=0,width=790,height=554,top=0,left=" + centrado + "')");
}
function entra3(nombre)
{
window.close()
var centrado = (screen.width/400)-10; a3=eval("window.open(nombre,'window1','toolbar=0,location=0,titlebar=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=0,width=790,height=554,top=0,left=" + centrado + "')");
}
var optimizacionWindow=null;
function optimizacion(mypage,myname,w,h,pos,infocus){
if(pos=='random'){
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=='center'){
LeftPosition=(screen.width)?(screen.width-w)/2:100;
TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!='random') || pos==null){LeftPosition=100;TopPosition=100;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
optimizacionWindow=window.open('',myname,settings);
if(infocus=='front'){optimizacionWindow.focus();optimizacionWindow.location=mypage;}
}
var situWindow=null;
function situ(mypage,myname,w,h,pos,infocus){
if(pos=='random'){
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=='center'){
LeftPosition=(screen.width)?(screen.width-w)/2:100;
TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!='random') || pos==null){LeftPosition=100;TopPosition=100;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
situWindow=window.open('',myname,settings);
if(infocus=='front'){situWindow.focus();situWindow.location='situ.htm';}
}
function derecho(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 2 || e.which == 3))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 3 || event.button == 2)) {
alert("Propiedad de Dilarotell, S.L.");
return false;
}
return true;
}
document.onmousedown=derecho;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=derecho;
var menuWindow=null;
function menu(mypage,myname,w,h,pos,infocus){
if(pos=='random'){
LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=='center'){
LeftPosition=(screen.width)?(screen.width-w)/2:100;
TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!='random') || pos==null){LeftPosition=100;TopPosition=100;}settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
menuWindow=window.open('',myname,settings);
if(infocus=='front'){menuWindow.focus();menuWindow.location='menu.htm';}
}
function cierra()
{
	window.close('menu.htm');
	}
