var NumeroImagenes = 6;
var texto=
'Pre-existencias: un antiguo taller mec&aacute;nico casi en desuso repleto de coches semidesguazados.<br />Proponer un estudio de arquitectura dentro de un viejo taller de coches provoc&oacute; una estrategia de dise&ntilde;o acorde a nuestras necesidades.<br />Conceptualmente, se aprovecha el espacio-nave para mantener la m&aacute;xima diafanidad. &Uacute;nicamente aparecen cerrados aquellos elementos cuya funci&oacute;n lo exige.<br />Se intenta explotar al m&aacute;ximo el concepto de flexibilidad: flexibilidad espacial que conlleva tambi&eacute;n una flexibilidad en la configuraci&oacute;n del trabajo: espacio y trabajo deben responder a una misma estrategia.<br />La manipulaci&oacute;n de unos materiales sin acabados, sin detalles, sin encuentros, sin color,  dotan al conjunto de una atm&oacute;sfera atemporal. El cierre de fachada (vidrio serigrafiado) propone una estrategia de materializaci&oacute;n de imagen a modo de argumento epistemol&oacute;gico: la explicaci&oacute;n de lo existente no deja ver lo que realmente existe: la transparencia de la fachada se ve empa&ntilde;ada por la explicaci&oacute;n (memoria de proyecto) del interior que pretende mostrar: la afirmaci&oacute;n de lo que se muestra se ve negada por su lectura...<br />Texto y materia: ambos e inseparablemente explican el proyecto: c&oacute;digo de c&oacute;digos.<br /><br /><br />FICHA T&Eacute;CNICA<br /><br />Colaboradores: Ibon Ibarlucea, Michel Arauzo y David Torres, arquitectos<br /><br />Proyecto: 1997<br />Fin de obra: 1997<br /><br />Constructor: Lantegia<br /><br />Fot&oacute;grafo: Javier Prieto<br /><br /><br />PUBLICACIONES<br /><br />Dise&ntilde;o Interior 106<br />Architecti 45<br />Premios COAVN 1998<br />DAU 26';



/*===================================================================
FIN CONFIGURACION
===================================================================*/





function PreCarga (objetoImagen, rutaImagen) 
{
    if (document.images)
    {
	eval (objetoImagen +' = new Image()')
	eval (objetoImagen +'.src = "' + rutaImagen + '"')
    }
}
function inicio(){

	var i=0
	for(i=1;i<=NumeroImagenes;i++){
		PreCarga ('Image'+i,'image'+i+'.jpg');
		PreCarga ('ImageBig'+i,'image'+i+'_big.jpg');
		if(i==1){
			document.getElementById('enlaces').innerHTML+='<a href="JavaScript:ShowWork1 (\'null\',\'miImagen\','+i+')" style="color:#FED100;">&bull;</a>\n';
			imagenactual = new Image();
			imagenactual.src = 'image'+i+'_big.jpg';
			if(imagenactual.naturalWidth){			
				document.getElementById("ampliar").attributes['href'].value = "javascript:muestra_imagen('image"+i+"_big.jpg',"+imagenactual.naturalWidth+","+imagenactual.naturalHeight+")";
			}
			else {				
				document.getElementById("ampliar").attributes['href'].value = "javascript:muestra_imagen('image"+i+"_big.jpg',"+imagenactual.width+","+imagenactual.height+")";
			}
		}
		else{
			document.getElementById('enlaces').innerHTML+='<a href="JavaScript:ShowWork1 (\'null\',\'miImagen\','+i+')">&bull;</a>\n';
		}
	}
	document.getElementById('Textos-Obra').innerHTML=texto;
}
var num_imagen = 2;
function ShowWork (capa,nombreImagen,objetoImagen) 
{
    if (document.layers && capa!=null)
	eval('document.' + capa + '.document.images["' + nombreImagen + '"].src = ' + objetoImagen + '.src')
    else
	document.images[nombreImagen].src = eval(objetoImagen + ".src")
}


function ShowWork1 (capa,nombreImagen,objetoImagen) 
{
    if(NumeroImagenes<objetoImagen){
	objetoImagen = 1;
    }
    if (document.layers && capa!=null)
	eval('document.' + capa + '.document.images["' + nombreImagen + '"].src = Image' + objetoImagen + '.src');
    else
	document.images[nombreImagen].src = eval("Image" +objetoImagen + ".src");
   num_imagen = objetoImagen + 1;
document.getElementById('enlaces').innerHTML="";
	for(i=1;i<=NumeroImagenes;i++){
		if(i==objetoImagen){
			document.getElementById('enlaces').innerHTML+='<a href="JavaScript:ShowWork1 (\'null\',\'miImagen\','+i+')" style="color:#FED100;">&bull;</a>\n';
			imagenactual = new Image();
			imagenactual.src = 'image'+i+'_big.jpg';
			if(imagenactual.naturalWidth){			
				document.getElementById("ampliar").attributes['href'].value = "javascript:muestra_imagen('image"+i+"_big.jpg',"+imagenactual.naturalWidth+","+imagenactual.naturalHeight+")";
			}
			else {				
				document.getElementById("ampliar").attributes['href'].value = "javascript:muestra_imagen('image"+i+"_big.jpg',"+imagenactual.width+","+imagenactual.height+")";
			}
		

		}
		else {
		document.getElementById('enlaces').innerHTML+='<a href="JavaScript:ShowWork1 (\'null\',\'miImagen\','+i+')">&bull;</a>\n';
		}
	}
}

OCULTO="none";
VISIBLE="block";
 
function mostrar(blo) {
  document.getElementById(blo).style.display=VISIBLE;
  document.getElementById('ver_off').style.display=VISIBLE;
  document.getElementById('ver_on').style.display=OCULTO;
}
 
function ocultar(blo) {
  document.getElementById(blo).style.display=OCULTO;
  document.getElementById('ver_off').style.display=OCULTO;
  document.getElementById('ver_on').style.display=VISIBLE;
}


function shownNext(){
	ShowWork1(null,"miImagen",num_imagen);	
}

function Textos(nombrediv) {
	if(document.getElementById(nombrediv).style.display == '') {
        	document.getElementById(nombrediv).style.display = 'none';
	} else {
        	document.getElementById(nombrediv).style.display = '';
        }
}

function muestra_imagen(archivo,ancho,alto){
	//xInnerHtml('c1','')
	
	xWidth ('ampliacion',ancho + 6)
	xHeight ('ampliacion',alto + 6 + 20)
	xWidth ('c1',ancho)
	xHeight ('c1',alto)
	xWidth ('cerrarampliacion',ancho)
	
	
	xInnerHtml('c1','<img src="' + archivo + '" width="' + ancho + '" height="' + alto + '" border="2">')
	
	xShow('ampliacion');	
}

function cerrar_ampliacion(){
	xHide('ampliacion');
	
}
