function canviacontingut(mnu,url){
  mnu_ant = document.variables.menu_selected.value;

  document.getElementById('menu_' + mnu).style.background = '#66D43D';
	if(mnu_ant%2==0){
	document.getElementById('menu_' + mnu_ant).style.background = '#999';
	}
	else{
	document.getElementById('menu_' + mnu_ant).style.background = '#CCC';
	}
	document.getElementById('menu_' + mnu_ant).style.borderColor='white';
	document.getElementById('menu_' + mnu).style.color='#000';
  document.getElementById('ifra_central').src=url;
  document.variables.menu_selected.value=mnu;
}

function canviacolor(mnu,obj,opt){
 
 if(document.variables.menu_selected.value!=mnu){
   
	 if(opt==0){
     obj.style.background="#ffffff";
  	 obj.style.color='#F00';
  	 obj.style.borderWidth='1px';
  	 obj.style.borderStyle='solid';
  	 obj.style.borderColor='gray'
   }
   else{
	   if(mnu%2==0){
    	 obj.style.background="#999999";
    	 obj.style.color='';
    	 obj.style.borderWidth='1px';
    	 obj.style.borderStyle='solid';
    	 obj.style.borderColor='white'
		 }
		 else{
    	 obj.style.background="#CCC";
    	 obj.style.color='';
    	 obj.style.borderWidth='1px';
    	 obj.style.borderStyle='solid';
    	 obj.style.borderColor='white'		 
		 }
   }
 }

}
