

function carrega(x,y) {
  $('ID_portada').style.display="none";
  var nuevoRequest = new Request({
     method: 'get',
     url: 'projecte.php',
     data: {'proj' : x, 'subproj' : y },
     //data: {'projj' : x },
     //data: {'subproj' : y },
     onRequest: function() {
     	$('ID_contingut1').addClass('contingut1');
		$('ID_contingut1').addClass('ajax-loading3');
		//alert("Inicio Consulta");
	 },
     onSuccess: function(texto, xmlrespuesta){
     	//alert("proj:"+x+"/subproj"+y);
	 	$('ID_contingut1').removeClass('ajax-loading3');
	 	$('ID_contingut1').set('html',texto);
	 },
     onFailure: function(){
		 $('ID_contingut1').removeClass('ajax-loading3');
		 //alert('Error!');
	 }
  }).send();

  var nuevoRequest = new Request({
     method: 'get',
     url: 'projecte1.php',
     data: {'proj' : x, 'subproj' : y },
     //data: {'projj' : x },
     //data: {'subproj' : y },
     onRequest: function() {
     	$('ID_contingut2').addClass('contingut2');
		$('ID_contingut2').addClass('ajax-loading3');
		//alert("Inicio Consulta");
	 },
     onSuccess: function(texto, xmlrespuesta){
     	//alert("proj:"+x+"/subproj"+y);
	 	$('ID_contingut2').removeClass('ajax-loading3');
	 	$('ID_contingut2').set('html',texto);
	 },
     onFailure: function(){
		 $('ID_contingut2').removeClass('ajax-loading3');
		 //alert('Error!');
	 }
  }).send();

}

function carrega1(x,y,z) {
  $('ID_portada').style.display="none";
  var nuevoRequest = new Request({
     method: 'get',
     url: 'projecte.php',
     data: {'proj' : x, 'subproj' : y, 'img' : z },
     //data: {'projj' : x },
     //data: {'subproj' : y },
     onRequest: function() {
     	$('ID_contingut1').addClass('contingut1');
		$('ID_contingut1').addClass('ajax-loading3');
		//alert("Inicio Consulta");
	 },
     onSuccess: function(texto, xmlrespuesta){
     	//alert("proj:"+x+"/subproj"+y);
	 	$('ID_contingut1').removeClass('ajax-loading3');
	 	$('ID_contingut1').set('html',texto);
	 },
     onFailure: function(){
		 $('ID_contingut1').removeClass('ajax-loading3');
		 //alert('Error!');
	 }
  }).send();

  var nuevoRequest = new Request({
     method: 'get',
     url: 'projecte1.php',
     data: {'proj' : x, 'subproj' : y, 'img' : z },
     //data: {'projj' : x },
     //data: {'subproj' : y },
     onRequest: function() {
     	$('ID_contingut2').addClass('contingut2');
		$('ID_contingut2').addClass('ajax-loading3');
		//alert("Inicio Consulta");
	 },
     onSuccess: function(texto, xmlrespuesta){
     	//alert("proj:"+x+"/subproj"+y);
	 	$('ID_contingut2').removeClass('ajax-loading3');
	 	$('ID_contingut2').set('html',texto);
	 },
     onFailure: function(){
		 $('ID_contingut2').removeClass('ajax-loading3');
		 //alert('Error!');
	 }
  }).send();

}