function pan(foto)
{
	pano="http://www.lospirineos.info/eizasa/panoramicas/pan"+foto+".htm";
	photowindow=window.open(pano,'photowindow','width=400,height=200,scrollbars=no,scrollbars=no,top=100,left=100');
}

function foto2(foto)
{
	var h=400; var w=525;
	var name="foto";
	var winl = (screen.width - w) / 4;
	var wint = (screen.height - h) / 4;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=auto ,resizable=no';
	foto="imagenes/"+foto;
	winplano = window.open('', name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { winplano.window.focus(); }
	
	winplano.document.write('<HTML><HEAD><TITLE>Promociones EIZASA</TITLE>');
	winplano.document.write('<LINK REL="stylesheet" HREF="styles.css">');
	winplano.document.write('</HEAD><BODY>');
	winplano.document.write('<img src='+foto+'>');
	winplano.document.write('</BODY></HTML>');
	winplano.document.close();
}

function fotohw(foto,h,w)
{
	var name = navigator.appName;
	if (name == "Microsoft Internet Explorer") {
	h = h + 10;
	w = w + 10;
	}
	else {
	h = h + 20;
	w = w + 25;
	}
	
	var name="foto";
	var winl = (screen.width - w) / 4;
	var wint = (screen.height - h) / 4;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=auto ,resizable=no';
	//foto="imagenes/"+foto;
	winplano = window.open('', name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { winplano.window.focus(); }
	
	winplano.document.write('<HTML><HEAD><TITLE>RAID AVENTURA CALAMOCHA</TITLE>');
	winplano.document.write('<LINK REL="stylesheet" HREF="styles.css">');
	winplano.document.write('</HEAD><BODY bgcolor="#000000" text="#000000" leftmargin="0" topmargin="5" marginwidth="0" marginheight="5">');
	winplano.document.write('<div align="center"><img src='+foto+'');
	winplano.document.write(' border="1"></div>');
	winplano.document.write('</BODY></HTML>');
	winplano.document.close();
	
}


function fotohws(foto,h,w)
{
	var name = navigator.appName;
	if (name == "Microsoft Internet Explorer") {
	h = h + 10;
	w = w + 25;
	}
	else {
	h = h + 20;
	w = w + 25;
	}
	
	var name="foto";
	var winl = (screen.width - w) / 4;
	var wint = (screen.height - h) / 4;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes ,resizable=no';
	//foto="imagenes/"+foto;
	winplano = window.open('', name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { winplano.window.focus(); }
	
	winplano.document.write('<HTML><HEAD><TITLE>RAID AVENTURA CALAMOCHA</TITLE>');
	winplano.document.write('<LINK REL="stylesheet" HREF="styles.css">');
	winplano.document.write('</HEAD><BODY bgcolor="#000000" text="#000000" leftmargin="0" topmargin="5" marginwidth="0" marginheight="5">');
	winplano.document.write('<div align="center"><img src='+foto+'');
	winplano.document.write(' border="1"></div>');
	winplano.document.write('</BODY></HTML>');
	winplano.document.close();
	
}




function fotohw2(foto,h,w)
{
	var name = navigator.appName;
	if (name == "Microsoft Internet Explorer") {
	h = h + 10;
	w = w + 5;
	}
	else {
	h = h + 20;
	w = w + 20;
	}
	
	var name="foto";
	var winl = (screen.width - w) / 4;
	var wint = (screen.height - h) / 4;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=auto ,resizable=no';
	//foto="imagenes/"+foto;
	winplano = window.open('', name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { winplano.window.focus(); }
	
	winplano.document.write('<HTML><HEAD><TITLE>Promociones EIZASA</TITLE>');
	winplano.document.write('<LINK REL="stylesheet" HREF="styles.css">');
	winplano.document.write('</HEAD><BODY bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="5" marginwidth="0" marginheight="5">');
	winplano.document.write('<div align="center"><img src='+foto+'></div>');
	winplano.document.write('</BODY></HTML>');
	winplano.document.close();
	
}



function flash(flash,h,w)
{
	var name = navigator.appName;
	if (name == "Microsoft Internet Explorer") {
	h = h + 10;
	w = w + 5;
	}
	else {
	h = h + 20;
	w = w + 20;
	}
	
	var name="flash";
	var winl = (screen.width - w) / 4;
	var wint = (screen.height - h) / 4;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=auto ,resizable=no';
	//flash="swf/"+flash;
	winplano = window.open('', name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { winplano.window.focus(); }
	
	winplano.document.write('<HTML><HEAD><TITLE>Promociones EIZASA</TITLE>');
	winplano.document.write('<LINK REL="stylesheet" HREF="styles.css">');
	winplano.document.write('</HEAD><BODY bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="5" marginwidth="0" marginheight="5">');
	winplano.document.write('<div align="center">');
	winplano.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width='+w+' height='+h+'>');
	winplano.document.write('<param name="movie" value='+flash+'><param name="quality" value="high">');
	winplano.document.write('<embed src='+flash+' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+w+' height='+h+'></embed></object>');
	winplano.document.write('</div></BODY></HTML>');
	winplano.document.close();
	
}


function tour(pagina)
{

	pagina=""+pagina+"";
	photowindow=window.open(pagina,'photowindow','width=790,height=450,scrollbars=no,top=100,left=100');

}


function planohw(plano,h,w)
{
	var name = navigator.appName;
	if (name == "Microsoft Internet Explorer") {
	h = h + 10;
	w = w + 5;
	}
	else {
	h = h + 20;
	w = w + 20;
	}
	
	var name="plano";
	var winl = (screen.width - w) / 4;
	var wint = (screen.height - h) / 4;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=auto ,resizable=no';
	plano="planos/"+plano+".jpg";
	winplano = window.open('', name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { winplano.window.focus(); }
	
	winplano.document.write('<HTML><HEAD><TITLE>Promociones EIZASA</TITLE>');
	winplano.document.write('<LINK REL="stylesheet" HREF="styles.css">');
	winplano.document.write('</HEAD><BODY bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="5" marginwidth="0" marginheight="5">');
	winplano.document.write('<div align="center"><img src='+plano+'></div>');
	winplano.document.write('</BODY></HTML>');
	winplano.document.close();
	
}

function planohw2(plano,h,w)
{
	var name = navigator.appName;
	if (name == "Microsoft Internet Explorer") {
	h = h + 10;
	w = w + 5;
	}
	else {
	h = h + 20;
	w = w + 20;
	}
	
	var name="plano";
	var winl = (screen.width - w) / 4;
	var wint = (screen.height - h) / 4;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes ,resizable=yes';
	//plano="planos/"+plano+".jpg";
	winplano = window.open('', name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { winplano.window.focus(); }
	
	winplano.document.write('<HTML><HEAD><TITLE>Promociones EIZASA</TITLE>');
	winplano.document.write('<LINK REL="stylesheet" HREF="styles.css">');
	winplano.document.write('</HEAD><BODY bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="5" marginwidth="0" marginheight="5">');

	winplano.document.write('<tr><td><div align="right"><a  href="javascript:self.print()" class="texto">Imprimir plano</a></div></td></tr>');

	winplano.document.write('<div align="center"><img src='+plano+'></div>');
	winplano.document.write('</BODY></HTML>');

	winplano.document.write('<tr><td><div align="right"><a  href="javascript:self.print()" class="texto">Imprimir plano</a></div></td></tr>');

	winplano.document.close();
	
}

function printplano(plano)
{
	var h=450; var w=450;
	var name="printplano";
	var winl = (screen.width - w) / 4;
	var wint = (screen.height - h) / 4;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes ,resizable=yes';
	plano="planos/"+plano+"-i.jpg";
	winprint = window.open('', name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { winprint.window.focus(); }
	
	winprint.document.write('<HTML><HEAD><TITLE>Promociones EIZASA - Imprimir plano</TITLE>');
	winprint.document.write('<LINK REL="stylesheet" HREF="styles.css">');
	winprint.document.write('</HEAD><BODY>');
	winprint.document.write('<img src='+plano+'>');
	winprint.document.write('</BODY></HTML>');
	winprint.document.close();
	
	if (winprint.print) {
	agree = confirm('Asegurese de configurar la impresora correctamente. \n\nContinuar impresión?');
	if (agree) winprint.print(); 
   	}

	winprint.focus();
}

function memoria(memo) {
var h=100; var w=400;
var name="memoria";
var winl = (screen.width - w) / 4;
var wint = (screen.height - h) / 4;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no ,resizable=no';
memo="ppt/memoria"+memo+".zip";
winmemo = window.open(memo, name, winprops)
if (parseInt(navigator.appVersion) >= 4) { winmemo.window.focus(); }
}

function frameLinkArribaContenido(dirhtm,dirframe) {
top.central.abajo.medio.contenido.location.href=dirframe;
self.location.href=dirhtm;

}

function frameLinkContenido(dirhtm,dirframe) {
top.central.arriba.location.href=dirframe;
self.location.href=dirhtm;

}



function memoriadescargar(memo) {
var h=100; var w=400;
var name="memoria";
var winl = (screen.width - w) / 4;
var wint = (screen.height - h) / 4;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no ,resizable=no';
memo="ppt/memoria"+memo+".ppt";
winmemo = window.open(memo, name, winprops)
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 4;
var wint = (screen.height - h) / 4;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar=no,scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function panogirasoles(foto)
{
	var h=250; var w=375;
	var name="foto";
	var winl = (screen.width - w) / 4;
	var wint = (screen.height - h) / 4;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=auto ,resizable=no';
	foto="imagenes/"+foto+".swf";
	winplano = window.open('', name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { winplano.window.focus(); }
	
	winplano.document.write('<HTML><HEAD><TITLE>Promociones EIZASA</TITLE>');
	winplano.document.write('<LINK REL="stylesheet" HREF="styles.css">');
	winplano.document.write('</HEAD><BODY>');
	winplano.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="353" height="230">');
        winplano.document.write('<param name=movie value='+foto+'>');
        winplano.document.write('<param name=quality value=high>');
        winplano.document.write('<embed src='+foto+' quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="353" height="230">');
        winplano.document.write('</embed>');
        winplano.document.write('</object>');
	winplano.document.write('</BODY></HTML>');
	winplano.document.close();
}

function fotos(pagina)
{

	pagina=""+pagina+"";
	estadowindow=window.open(pagina,'fotos','width=700,height=600,resizable=no,scrollbars=yes,top=100,left=100');

}


function op(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}