/*
	Conjunto de reglas
*/
recargaReglasBloqueListadoPreparaciones = {
	plegar : function(){
		$('a[rel=camp]').click(ejecutarReglasBloqueListadoPreparaciones.regla1);
	}
};

/* 
Reglas con funciones manejadoras asociadas a los eventos 
*/
ejecutarReglasBloqueListadoPreparaciones = {
	regla1 : function (){
	
		var num = $(this).attr("num");
		var tipo = $(this).attr("tipo");
		
		$("div[rel=camp][tipo="+tipo+"]").slideUp("slow");
			
		$("div[rel=camp][tipo="+tipo+"][num="+num+"]").slideDown("slow");
		
		return false;
	}
};

$(document).ready(recargaReglasBloqueListadoPreparaciones.plegar);
