// JavaScript Document
function estiloOn(which, estilo, div2, estilo2){
	//alert (which);
	if (document.all||document.getElementById){
		which.className= estilo;
		document.getElementById(div2).className= estilo2;
	}
}

function showDiv(codi) {
	//alert ("#"+codi);
	
	jQuery('#'+codi).animate(
	  {
        opacity: 1
      }, 
	  { 
      	  speed: 500, 
	  	  complete: function  () { 
			jQuery('#'+codi).css({ display: 'block' });  
	  	  }
	  }
	);
}

function hideDiv(codi) {

	jQuery('#'+codi).animate(
	  {
        opacity: 0

      }, 
	  { 
      	  speed: 500, 
	  	  complete: function  () { 
			jQuery('#'+codi).css({ display: 'none' });  
	  	  }
	  }
);
}