^TestPage1 var $jq_cn = jQuery.noConflict(); switch on Social Media flickr Village of Rye Brook Twitter Village of Rye Brook Mayor Police Department National Weater DPW Highway and Parks Fire Department Instagram Highway and Parks Police Village of Rye Brook Recreation Seniors Fire Department facebook Police Department Sustainability flickr Village of Rye Brook Twitter Village of Rye Brook Mayor Police Department National Weater DPW Highway and Parks Fire Department Instagram Highway and Parks Police Village of Rye Brook Recreation Seniors Fire Department facebook Police Department Sustainability $jq_cn(document).ready(function () { $jq_cn('.socialtype > h3').click(function (e) { var showElementDescription = $jq_cn(this).parents('.socialtype').find('ul'); if ($jq_cn(showElementDescription).is(':visible')) { showElementDescription.hide("fast", "swing"); $jq_cn(this).removeClass('open'); // $jq_cn(this).attr("src", "Image/up-arrow.jpg"); } else { showElementDescription.show("fast", "swing"); // $jq_cn(this).attr("src", "Image/down-arrow.jpg"); $jq_cn(this).addClass('open'); } }); });