<!--
var newWindow = null
function VentanaFoto(NombreVentana, Imagen, AltText, idioma, Ancho, Alto, AnchoFoto,AltoFoto)
{	

	if (Ancho<=0)	Ancho=500;
	if (Alto<=0)	Alto=300;

	if (!AnchoFoto)	AnchoFoto=Ancho;
	if (!AltoFoto)	AltoFoto=Alto;

	//alert(NombreVentana+'-'+Imagen+'-'+AltText+'-'+Ancho+'-'+Alto+'-'+AnchoFoto+'-'+AltoFoto)
	
	if(idioma=="es")
	{	text1='¿te gusta?';	
		url1='/espanol/fotos/';
	}
	else if(idioma=="en")
	{	text1='you like it?';	
		url1='/english/photos/';
	}
	else if(idioma=="de")
	{	text1='';
		url1='/deutsch/fotos/';
	}

	if(Alto==AltoFoto)
	{
		scrollear = "noscrollbars";
		BarraScroll = 0;
	}
	else
	{
		scrollear = "scrollbars";
		Ancho = Ancho + 16;	//barras scroll
		//Alto = Alto + 16;	//barras scroll
	}
	
	newWindow = window.open("",NombreVentana,"width="+ Ancho +",height="+ Alto +",status,"+scrollear);
	if (newWindow != null)
	{
		var newContent = '';
		newContent += '<html><head><title>Holiday Villas Lanzarote'+ AltText +'.</title></head>';

		newContent += '<body text="#dddddd" marginheight=0 topmargin=0 marginwidth=0 leftmargin=0>';
		//newContent += '<img src="'+ Imagen +'" width='+ AnchoFoto +' height='+ AltoFoto +' border="0" alt="'  +AltText+ '">';

		//20070726 rbz
		if(AnchoFoto==555)
			newContent += '<table border="0" width="100%" height="80%" cellspacing="0" cellpadding="0" align="center"><tr><td align="center" valign="center"><img src="'+ Imagen +'" border="0" alt="'  +AltText+ '"></td></tr></table>';
		else
			newContent += '<img src="'+ Imagen +'" width='+ AnchoFoto +' height='+ AltoFoto +' border="0" alt="'  +AltText+ '">';

		newContent += '<div id="AreaTexto" style="position: absolute; left: 0px; top: 0px; width: '+ AnchoFoto +'; height: '+ AltoFoto +'; padding: 0; visibility: visible; z-index: 2; text-align: right; vertical-align: bottom; ">';
		newContent += '<table border="0" width="'+ AnchoFoto +'" height="'+ AltoFoto +'" cellspacing="2" cellpadding="2">';
		newContent += '<tr><td valign="bottom" align="right">';

		if(AltText)
		{
			newContent += '<p style="font-family: Verdana,Arial,Helvetica; font-size: 9pt; color: #eeeeee; background-image: url(/_img/tx-fondo-t3.gif); font-weight: bold;">';
			if(NombreVentana.substr(0,1)=='p')	// paquetes
				newContent += AltText;
			else
				newContent += '<a style="color:#ffffff; text-decoration: none;" href="' + url1 + '" target="_blank">&copy; LI - '+ AltText +' &nbsp;<i>' + text1 + '</i></a> ';
			newContent += '</p>';
		}
		newContent += '</td>';
		newContent += '<form>'
		newContent += '<td width="1%" valign="bottom" align="right"><font face="Arial" size="1"><b><input type="button" value=" x " onClick="self.close()"></b></font></td>'
		newContent += '</tr>'
		newContent += '</form>'
		newContent += '</table>';
		newContent += '</div>';

		newContent += '</body></html>'
		newWindow.document.write(newContent)
	}
}

//-->
