/*
*/

function newWindow(thumb) {
	holaWindow = window.open('', 'hola', 'location=yes,scrollbars=yes,width=650,height=500');
	holaWindow.document.write('<html><head><title>Hola! Sitges Holiday Apartments</title><link rel="stylesheet" href="../css/hola.css"><script>function closeWindow(){annualWindow.close()}<\/script></head><body bgcolor="ffffe0"><table align="center" cellpadding="10" cellspacing="0" width="100%"><tr><td align="center" valign="top"><h1><b>Hola! Sitges Holiday Apartments</b></h1><p><b>'+captionarray[thumb]+'</b><br><br clear="all"><IMG SRC="/images\/'+imagearray[thumb]+'.jpg"><\/td><\/tr><tr><td colspan=2 align=\"center\"><br><INPUT onclick="window.close()" type=button value="Close window" name="closing"><\/td><\/tr><\/table><\/body><\/html>');
}

function newPhotoWindow(thumb) {
	//holaWindow.window.close();
	holaWindow = window.open('', 'hola', 'location=no,scrollbars=no,width=500,height=370 screenX=0, screenY=0, left=0, top=0');
	holaWindow.document.write('<html><head><title>Hola! Sitges Holiday Apartments</title><link rel="stylesheet" href="../css/fotowindow.css"><script>function closeWindow(){annualWindow.close()}<\/script></head><body bgcolor="ffffe0" topmargin="0" leftmargin="0"><table align="center" cellpadding="10" cellspacing="0" width="100%"><tr><td align="center" valign="top"><h1><b>Hola! Sitges Holiday Apartments</b></h1><p><b>'+captionarray[thumb]+'</b><br /><a href="javascript:window.close()"><IMG SRC="/images\/'+imagearray[thumb]+'.jpg"><\/td><\/tr><tr><td colspan=2 align=\"center\"><INPUT onclick="window.close()" type=button value="Close window" name="closing"><\/td><\/tr><\/table><\/body><\/html>');
}

function newBigWindow(thumb) {
	//holaWindow.window.close();
	holaWindow = window.open('', 'hola', 'location=no,scrollbars=no,width=650,height=500 screenX=0, screenY=0, left=0, top=0');
	holaWindow.document.write('<html><head><title>Hola! Sitges Holiday Apartments</title><link rel="stylesheet" href="../css/fotowindow.css"><script>function closeWindow(){annualWindow.close()}<\/script></head><body bgcolor="ffffe0" topmargin="0" leftmargin="0"><table align="center" cellpadding="10" cellspacing="0" width="100%"><tr><td align="center" valign="top"><h1><b>Hola! Sitges Holiday Apartments</b></h1><p><b>'+captionarray[thumb]+'</b><br /><a href="javascript:window.close()"><IMG SRC="/images\/'+imagearray[thumb]+'.jpg"><\/td><\/tr><tr><td colspan=2 align=\"center\"><INPUT onclick="window.close()" type=button value="Close window" name="closing"><\/td><\/tr><\/table><\/body><\/html>');
}

function fullWinPic(thumb) {
	holaWindow = window.open('','hola','toolbar=no, location=no, scrollbars=no, status=no, width=500, height=370 screenX=0, screenY=0, left=0, top=0');
	holaWindow.document.write('<?xml version="1.0" encoding="iso-8859-1"?>\n\n');
	holaWindow.document.write('	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n');
	holaWindow.document.write('	<html>\n');
	holaWindow.document.write('		<head>\n');
	holaWindow.document.write('				<title>'+captionarray[thumb]+'</title>\n');
	holaWindow.document.write('				<link rel="stylesheet" href="../css/hola.css">\n');
	holaWindow.document.write('				<script>function closeWindow(){annualWindow.close()}<\/script>\n');
	holaWindow.document.write('		</head>\n');
	holaWindow.document.write('		<body topmargin="0" leftmargin="0">\n');
	holaWindow.document.write('			<img src="/images\/'+imagearray[thumb]+'.jpg" height="370" width="500">\n');
	holaWindow.document.write('		</body>\n');
	holaWindow.document.write('	</html>\n');
};

function openWindow() {
	window.open('apt1_avail.html','hola2','toolbar=yes, location=yes, scrollbars=yes, status=no, width=700, height=600, screenX=0, screenY=0, left=0, top=0'); 
}

function closeWindow() {
	availWindow.close();
}

function putThumb(i, file) {
	document.write('<a href="javascript:newWindow('+i+')"><IMG SRC="/images/'+file+'_thumb.jpg" hspace=5 vspace=5 border=2 hspace="10" height="72" width="100"></a><br clear="all">');
}

function putHThumb(base, title) {
	document.write('<a href="javascript:new500CleanWin(\'../fullpic.asp?base='+base+'%26title='+title+'\')"><IMG SRC="/images/apartments/'+base+'thumb.jpg"	border="0" height="72" width="100"></a>&nbsp;');
}

function putPhotoThumb(i, file) {
	document.write('<a href="javascript:newPhotoWindow('+i+')"><img src="/images/'+file+'_thumb.jpg" hspace=5 vspace=5 border=2 hspace="10" height="72" width="100"></a><br clear="all">');
}

function putSizedThumb(i, file, big) {
	if (big==true){
		document.write('<a href="javascript:newBigWindow('+i+')"><img src="/images/'+file+'_thumb.jpg" hspace=5 vspace=5 border=2 hspace="10" height="72" width="100"></a><br clear="all">');}
	else {
		document.write('<a href="javascript:newPhotoWindow('+i+')"><img src="/images/'+file+'_thumb.jpg" hspace=5 vspace=5 border=2 hspace="10" height="72" width="100"></a><br clear="all">');}
}

function putFullThumb(i, file) {
	document.write('<a href="javascript:fullWinPic('+i+')"><IMG SRC="/images/'+file+'_thumb.jpg" hspace=5 vspace=5 border=2 hspace="10" height="75" width="100"></a><br clear="all">');
}

function newCleanWin(uri, nam){
	window.open(uri, nam, 'location=no,scrollbars=no,width=650,height=365 screenX=0, screenY=0, left=0, top=0');
}

function new500CleanWin(uri, nam){
	window.open(uri, nam, 'location=no,scrollbars=no,width=500,height=370 screenX=0, screenY=0, left=0, top=0');
}

var WindowObjectReference = null;
function openRequestedPopup(strUrl, strWindowName)
{
  if(WindowObjectReference == null || WindowObjectReference.closed)
  {
    WindowObjectReference = window.open(strUrl, strWindowName, "location=no,resizable=yes,scrollbars=no,status=yes,width=650,height=365,screenX=0,screenY=0,left=0,top=0");
  }
  else
  {
    WindowObjectReference.focus();
  };
}

/*
	[By task='SEO']
	Version de las funciones de thumbnail y ventana fullpic que permiten ajuste de tamaņo
	Parametros x, y

function putExactThumb(base, title, x, y) {
	document.write('<a href="javascript:newExactCleanWin(\'fullpic.asp?base='+base+'%26title='+title+'\', '+x+', '+y+')"><IMG SRC="/images/apartments/'+base+'thumb.jpg" border="0" height="72" width="100"></a>&nbsp;');
}
function newExactCleanWin(uri, nam, x, y){
	window.open(uri, nam, 'location=no,scrollbars=no,width='+x+',height='+y+', screenX=0, screenY=0, left=0, top=0');
}
[/By]*/
