

var imagenes=new Array(
"El_Cobijo_(view_from_road_3)_big.jpg","El_Cobijo_(view_from_road_3)_small.jpg","View of El Cobijo from road",
"El_Cobijo_(view_of_serrania_and_entrance)_big.jpg","El_Cobijo_(view_of_serrania_and_entrance)_small.jpg","View of Serranía and entrance",
"El_Cobijo_(entrance_3)_big.jpg","El_Cobijo_(entrance_3)_small.jpg","Garden and entrance",  
"El_Cobijo_(front_drive_way)_big.jpg","El_Cobijo_(front_drive_way)_small.jpg","Front drive way",  
"El_Cobijo_(entrance)_big.jpg","El_Cobijo_(entrance)_small.jpg","Entrance",  
"El_Cobijo_(living_room)_big.jpg","El_Cobijo_(living_room)_small.jpg","Living room",  
"El_Cobijo_(dining_room)_big.jpg","El_Cobijo_(dining_room)_small.jpg","Dining room",  
"El_Cobijo_(dining_room_2)_big.jpg","El_Cobijo_(dining_room_2)_small.jpg","Dining and living room",  
"El_Cobijo_(kitchen)_big.jpg","El_Cobijo_(kitchen)_small.jpg","Kitchen",  
"El_Cobijo_(pool_view_1)_big.jpg","El_Cobijo_(pool_view_1)_small.jpg","Pool view 1",  
"El_Cobijo_(pool_view_2)_big.jpg","El_Cobijo_(pool_view_2)_small.jpg","Pool view 2",  
"El_Cobijo_(terrace)_big.jpg","El_Cobijo_(terrace)_small.jpg","Terrace",
"El_Cobijo_(master_bedroom)_big.jpg","El_Cobijo_(master_bedroom)_small.jpg","Master bedroom",  
"El_Cobijo_(blue_bedroom)_big.jpg","El_Cobijo_(blue_bedroom)_small.jpg","Blue bedroom",  
"El_Cobijo_(yellow_bedroom)_big.jpg","El_Cobijo_(yellow_bedroom)_small.jpg","Yellow bedroom",  
"El_Cobijo_(green_bedroom)_big.jpg","El_Cobijo_(green_bedroom)_small.jpg","Green bedroom",  
"El_Cobijo_(patio)_big.jpg","El_Cobijo_(patio)_small.jpg","Patio",  
"El_Cobijo_(entrance_4)_big.jpg","El_Cobijo_(entrance_4)_small.jpg","Entrance arch",  
"El_Cobijo_(garden_and_terrace)_big.jpg","El_Cobijo_(garden_and_terrace)_small.jpg","Garden and terrace",  
"El_Cobijo_(view_of_terrace)_big.jpg","El_Cobijo_(view_of_terrace)_small.jpg","View of terrace",  
"El_Cobijo_(aerial_view_4)_big.jpg","El_Cobijo_(aerial_view_4)_small.jpg","Aerial view 1",  
"El_Cobijo_(aerial_view_2)_big.jpg","El_Cobijo_(aerial_view_2)_small.jpg","Aerial view 2",  
"El_Cobijo_(evening_view)_big.jpg","El_Cobijo_(evening_view)_small.jpg","Evening view",  
"El_Cobijo_(view_south_spring)_big.jpg","El_Cobijo_(view_south_spring)_small.jpg","View of the Serranía"

);

	function ajustar()
	{
		var resultado=-200;
	try
	{
		resultado=document.getElementById('wrpcen').offsetLeft;
	}
	catch(Exception)
	{}
	//alert('a='+resultado);
	return resultado;
}

function dibujarImagen(codigo,ficheroGrande,ficheroPeque,texto)
{

		var resultado='<div class="thumbwrapper" >';
		resultado+='<a id="thumb'+codigo+'" href="images/';
		resultado+=ficheroGrande;
		resultado+='" class="highslide" onclick="return hs.expand(this, {wrapperClassName : \'highslide-white\', spaceForCaption: 30, 	outlineType: \'rounded-white\', captionId: \'caption'+codigo+'\'})">';
		resultado+='<img style="margin-top: 15px;width:202px;height:135px;" id="thumb'+codigo+'" src="images/';
		resultado+=ficheroPeque;
		resultado+='" alt="Highslide JS" 	title="'+texto+'" /></a>\n';
		resultado+='<div class="highslide-caption" id="caption-for-thumb3" >'+texto+'</div>\n';
		resultado+='    <div id="controlbar" class="highslide-overlay controlbar">\n';
		resultado+='    <a href="#" class="previous" onclick="return hs.previous(this)" title="Previous (left arrow key)"></a>\n';
		resultado+='    <a href="#" class="next" onclick="return hs.next(this)" title="Next (right arrow key)"></a>\n';
    	resultado+='    <a href="#" class="highslide-move" onclick="return false" title="Click and drag to move"></a>\n';
    	resultado+='    <a href="#" class="close" onclick="return hs.close(this)" title="Close"></a>\n';
	resultado+='    </div>\n';
		resultado+='</div>\n';	
		resultado+='\n';
		return resultado;
}

function dibujarTodasLasImagenes()
{
		var i=0;
			hs.align = 'center';
			hs.allowMultipleInstances = false;

		var contador=1;
		for(i=0;i<imagenes.length;i=i+3)
		{
				
				document.write(dibujarImagen(contador,imagenes[i],imagenes[i+1],imagenes[i+2]));
			contador++;
		}
		
		document.getElementById("wrpcen").style.minHeight='1200px';
}



	// remove the registerOverlay call to disable the controlbar
	if(false)hs.registerOverlay(
    	{
    		thumbnailId: null,
    		overlayId: 'controlbar',
    		position: 'top right',
    		hideOnMouseOut: true
		}
	);
	
    hs.graphicsDir = 'highslide/graphics/';
    hs.outlineType = 'rounded-white';
    hs.captionEval = 'this.thumb.title';
