Drupal.behaviors.custom = function(context) {
 
  $(".show_more").click(function () {
     $("#community-more-link").hide('fast');
     $("#community-less-link").show('slow');	  
	 $(".detailed_description").slideDown("slow");
     return false;

 });
  
  $(".show_less").click(function () {
     $("#community-less-link").hide('fast');	  
	 $(".detailed_description").slideUp("slow");
     $("#community-more-link").show('slow');
     return false;

 });
 
   $(".show_more_desc").click(function () {
     $("#community-desc-more-link").hide('fast');
     $("#community-desc-less-link").show('slow');	  
	 $(".detailed_description_desc").slideDown("slow");
     return false;

 });
  
  $(".show_less_desc").click(function () {
     $("#community-desc-less-link").hide('fast');	  
	 $(".detailed_description_desc").slideUp("slow");
     $("#community-desc-more-link").show('slow');
     return false;

 });
 
   $(".show_more_motion").click(function () {
     $("#motionchart-more-link").hide('fast');
     $("#motionchart-less-link").show('slow');	  
	 $(".motionchart-detailed_description").slideDown("slow");
     return false;

 });
  
  $(".show_less_motion").click(function () {
     $("#motionchart-less-link").hide('fast');	  
	 $(".motionchart-detailed_description").slideUp("slow");
     $("#motionchart-more-link").show('slow');
     return false;

 });
 

 
 
 $('.faq_detailed_description').hide();

 $(".faq_show_more").click(function () {
//     if(!$(this).parent().children(".faq_detailed_description").is(":visible")){
//         $(this).parent().children(".faq_detailed_description").show('20');
//         $("img", this).attr("src", imagePath + "hide.jpg");
//         $("img", this).attr("alt", "Hide");
//
//     }else{
//         $(this).parent().children(".faq_detailed_description").hide('20');
//
//     }
	   $(this).parent().children(".faq_detailed_description").toggle('20');
     return false;

 });



 
};



