
function bindEffects(){
   $("div.opacityCnt h2 a").click(function () {
      if ($("#expText").is(":hidden")) 
      {
         $(this).text("Less"); 
         $(this).addClass("minus");
         $("#tabsContent").addClass("ex");
         $("#expText").slideDown("slow");
      } 
      else 
      {
         $(this).text("More");
         $(this).removeClass("minus");
         $("#tabsContent").removeClass("ex");   
         $("#expText").slideUp();
      }
   });
   
    // Show image gallery on Enlarge Image
   $("#tabs li").click(function () {
         
		 $(this).find("div").show();
		 return false;
		 
		
   });
   
    $("#tabs li div").hover(function() {
		//$(this).find("div").show();
		return false;
	}, function() {
		$(this).hide();
	});
	
	$("#tabs li div").click(function() {
		$(this).hide();
		return false;
	});
	
   
   
	/*$("#tabs li").hover(function() {
		$(this).find("div").show();
	}, function() {
		$(this).find("div").hide();
	});*/
	
   
   
   
   // Show image gallery on Enlarge Image
   $("#tabs li div p a").click(function () {
         
		 $("#tabs li div").hide();
		 $("#photo_"+this.id).show();
		 return false;
		 
		
   });
   
    $(".next").click(function () {
		
		$(".imageBox").hide();
		$("#photo_"+this.id).show();
								   
	});
	
	$(".previous").click(function () {
		
		$(".imageBox").hide();
		$("#photo_"+this.id).show();
								   
	});
   
    
   
   // Hide image on close push
   $(".gallery_close").click(function () {
	   $(".imageBox").hide(); 
	   $("#tabs li div").show();
   });
   
   
   
}


    
$(document).ready(function() {
   bindEffects();
});