$(document).ready(function(){	
										
								$("#most_comment_popular_content #most_comment li:gt(9)").remove();
							   
							    var h1 = $("#most_comment_popular_content #most_comment").height() + 44;
								var h2 = $("#most_comment_popular_content #most_popular").height() + 44;
								$("#most_comment_popular_tab #tab1").attr("hei",h1 + "px");
								$("#most_comment_popular_tab #tab2").attr("hei",h2 + "px");
							  	$("#most_comment_popular_content").css("height", h1);// the first always is "tab1"
							     var justClicked = false;
							   $("ul#most_comment_popular_tab li").hover(
											function(){
											var active_tab = $("ul#most_comment_popular_tab li.active");
											if($(this).attr("id")!=active_tab.attr("id")) 
														$(this).stop().addClass("hover");
													  },function(){$(this).stop().removeClass("hover"); });
							   
							   $("ul#most_comment_popular_tab li").click(function(){	
											var active_tab = $("ul#most_comment_popular_tab li.active");
											if(($(this).attr("id") != active_tab.attr("id")) && !justClicked)
											{
													justClicked = true;
													$("ul#most_comment_popular_tab li").stop().removeClass("active");
													$(this).stop().addClass("active");	
													
													$("#most_comment_popular_content #jsframe").animate({
																		"left": "+=" + $(this).stop().attr("pos")}, "slow",function(){justClicked = false;});
													$("#most_comment_popular_content").animate({
																		height: $(this).stop().attr("hei")
																		}, "slow");

													
											}
											});
							   
							   
							   });