$(document).ready(function(){$('.channel-toggle-icon').click(function(e){var image_src=this.src;$('#'+this.id+'-collapse').toggle();if($('#'+this.id+'-collapse').is(":hidden")){$(this).attr('src',image_src.replace('collapse_tcat','collapse_tcat_collapsed'))}else{$(this).attr('src',image_src.replace('collapse_tcat_collapsed','collapse_tcat'))}})});