/* ------------ HOME MENU ----------------- */
$(document).ready(
	function() { 		
		 		
		$("#menu_1").click(				
		   function (){			   
			   $(this).addClass("buscar_on");
			   $(this).removeClass("buscar_off");
			   $("#menu_2").addClass("anunciar_off");
			   $("#menu_2").removeClass("anunciar_on");			   
			   $("#busc_datos").show();
			   $("#anunc_datos").hide();			  
		   }		   		
		);	
		$("#menu_2").click(				
		   function (){			   
			   $(this).addClass("anunciar_on");
			   $(this).removeClass("anunciar_off");
			   $("#menu_1").addClass("buscar_off");
			   $("#menu_1").removeClass("buscar_on");
			   $("#busc_datos").hide();
			   $("#anunc_datos").show();			 
		   }		   		
		);				
	}
);


/* --------------- Gallery Setup ----------------- */

/* -------- Ficha -------- */
$(document).ready(
	function() { 		
		 $("div.gallery").scrollable({ 
			next: 'div.next', 
			prev: 'div.prev',
			nextPage: 'div.nextPage',
			prevPage: 'div.prevPage',
			size: 5 
		}).mousewheel();		 		
	}
);


function showCarInfo(id,whatId){	
	/*
		1 - show 
		2 - hide
	*/	
	if(whatId == '1'){
		for (var i=1;i<=15;i++)
		{
			document.getElementById('carInfo_'+i).style.display="none";
		}	
		
		document.getElementById('carInfo_'+id).style.display="block";
	}else if(whatId == '2'){
		for (var i=1;i<=15;i++)
		{
			document.getElementById('carInfo_'+i).style.display="none";
		}	
	}	
	return false;
}
function showNoticiasInfo(id,whatId){	
	/*
		1 - show 
		2 - hide
	*/	
	if(whatId == '1'){
		document.getElementById(id).style.display="block";
	}else if(whatId == '2'){	
		document.getElementById(id).style.display="none";
	}	
	return false;
}




