jQuery(document).ready(function(){
	$('.label_js a').click(function(e){
		var show_id = $(e.target).text().replace(/[^a-zA-Z0-9]+/g,'');
		$(e.target).parent().parent().siblings('.content_rightbg').find('.lable_content').hide();
		$('#'+show_id).show();
		$(e.target).parent().siblings().find('a').removeClass('now');
		$(e.target).attr('class','now');
		return false;
	});
	$(".label_js .now").click();
	$(".page_n").click(function(e){
		$(".page_n").removeClass('page_now');
		$(e.target).addClass('page_now');
		$("img.news_imgs").hide();
		$("img.news_imgs[name="+$(e.target).text()+"]").show();
		return false;
	});
	var str1=$('.edit_content_m').html();
	var height1 = $('.edit_content_m').height();
	$('.edit_content_m').empty();
	$('.edit_content_m').html($('.news_block_m').html());
	$('.news_block_m').empty();
	$('.news_block_m').html(str1);
	
	$('.tag_more').click(function(e){
		$(e.target).parent('p.introdu').next().css('display','inline');
		$(e.target).hide();
		return false;
	});
	$(".button_website,.link_website").click(function(e){
		r = Math.random();
		$.get('/2010/proc/_tmp_button_statistics.php?id='+$(e.target).attr('name')+'&hit=1&'+r);
	});
	
	$(".tab_contral").click(function(e){
		$(".tab_show").hide();
		$(".tab_show[title="+$(e.target).html()+"]").show();
		$(".tab_contral").removeClass("tab_contral_on");
		$(e.target).addClass("tab_contral_on");
		return false;
	});
	
	$('.back_g a').click(function(e){
		$('.back_g a').removeClass('active');
		$(e.target).addClass('active');
		$('.dwp_tab_content').hide();
		$('.dwp_tab_content[name=tab_'+$(e.target).attr('name')+']').show();
		return false;
	});
	
	 $("#show_content").click(function(e){
		 var tag_all_content=$("#tag_all_content").html();
		 $("#tag_content").html(tag_all_content);
		 $("#tag_content").css("display","block");
		 $("#tag_content").addClass("edit_content");
		 return false;
  });

});
