$(function(){
animating = false;
showRep = function(divId){
  if(animating==false){ 
   var newDiv = $("#"+divId);
   var oldDiv = $(".repActive");
   if(oldDiv.attr("id")!=divId){
     
	  animating = true;   
	  newDiv.css("z-index","100").fadeIn("slow",function(){
	      $(this).css("z-index","99").attr("class","repActive");
		  oldDiv.css("z-index","1").attr("class","rep").hide();
		  animating = false;
	  });
     };
   };
}
});

