		
	$(document).ready(function() {
		
		// Preload all rollovers
		$("#botones img").each(function() {
			// Set the original src
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/.png$/ig,"_over.png");
			$("<img>").attr("src", rollON);
		});
		
		// Navigation rollovers
		$("#botones a").mouseover(function(){
			imgsrc = $(this).children("img").attr("src");
			matches = imgsrc.match(/_over/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.png$/ig,"_over.png"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
			}
			
		});
		$("#botones a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
		
		// CARGA EL DIV CON LA CATEGORIA SELECCIONADA DEL MENU
	 	$("#botones a, #boton_contacto a").click(function(){
	 		link = $(this).attr("href")
	 		$("div#contenido").load(link);
	 		return false; //para que no ejecute el enlace xD
	 	});
});