function desplegar(id){

varid = document.getElementById(id);



$(varid).morph('height:100px;');


}
function menu_hover(obj){

	tal = document.getElementById(obj);



	//tal.style='border:2px solid blue';
	tal.style.cursor="pointer";
		tal.style.cursor="hand";

	
}

function menu_out(obj){

	tal = document.getElementById(obj);



	

	
}

function menu_go(url){

document.location.href='http://www.dc10barcelona.com/'+url;
}

function open_evento(id,counter){
	
	info = document.getElementById('info_'+id);
	masinfo = document.getElementById('masinfo_'+id);
	menosinfo = document.getElementById('menosinfo_'+id);
	textos = new Array();
	
	for (i=id;i <= counter-1 +id;i++){
		textos[i]=document.getElementById('texto_'+i);
	}
	
		masinfo.style.display='none';


	Effect.BlindDown(info);
	for (i=id;i <= counter - 1 + id;i++){
		Effect.BlindDown(textos[i]);
	}
	Effect.BlindDown(menosinfo);

}
function close_evento(id,counter){
	info = document.getElementById('info_'+id);
	masinfo = document.getElementById('masinfo_'+id);
	menosinfo = document.getElementById('menosinfo_'+id);
	
	textos = new Array();
	
	for (i=id;i <= id + counter-1;i++){
		textos[i]=document.getElementById('texto_'+i);
	}
	
	menosinfo.style.display='none';


	Effect.BlindUp(info);
for (i=id;i <= counter - 1 + id;i++){
		Effect.BlindUp(textos[i]);
	}
	Effect.BlindDown(masinfo);

}



function objetoAjax(){
	var xmlhttp=false;
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xmlhttp = false;
  		}
	}

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}

function masfotos(container,carpeta,from,intento){
	
	div = document.getElementById(container);
	   	div.innerHTML = "<img src='lib/lgtboximages/loading.gif'><BR><BR>";
	ajax=objetoAjax();
	url = 'http://www.dc10barcelona.com/lib/consulta_fotos.php?carpeta='+carpeta+'&from='+from+'&intento='+intento;
	ajax.open("GET", url);
	ajax.onreadystatechange=function() {
		
		 if((ajax.readyState == 3) || (ajax.readyState == 2) || (ajax.readyState == 1))  {
	   	div.innerHTML = "<img src='lib/lgtboximages/loading.gif'><BR><BR>";
	  }else if (ajax.readyState==4) {

			div.innerHTML = ajax.responseText;
	//Effect.BlindDown(div);

	  }


	}
		

		if(intento > 1) {
		document.getElementById('intento_'+intento).style.display='none';
//		document.getElementById('intento_'+intento).innerHTML='&nbsp;';		
		}

	ajax.send(null)
}

function fondo_blanco(id){


}

