$(document).ready(function(){ cmtLength = $("#cmtNum").size(); if(cmtLength) { var cmtNum = $('#cmtNum').text(); var cmtNum = cmtNum.replace("(", ""); var cmtNum = cmtNum.replace(")", ""); $('#commentnumberPost').empty().append(cmtNum); }if(cmtLength == "0"){ $('#commentnumberPost').empty().append("0"); } $('#latestOnStyle').find('li a:empty').parent().hide(); $(".mostPopularContent img").each(fun