<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">// JavaScript Document
// Author: Yangz
// Time: 2014/05/23

$(function(){

	var sTop;
	
	//å†…é¡µé¡µé¢æ»šåŠ¨
	if (!($.browser.msie &amp;&amp; ($.browser.version == "6.0") &amp;&amp; !$.support.style)) {
		$("#header").css({position:"fixed"});						
		$(".banner").css({position:"fixed"});
			
		$(window).scroll(function(){		
			
			sTop=$(this).scrollTop();
			
			if($(".main").hasClass("main2")||$(".main").hasClass("main3")){
				if(sTop&gt;261){			
					$("#header").css({top:261-sTop});
				}else{
					$("#header").css({top:0});					
				}				
			}else{
				if(sTop&gt;166){	
					$("#header").css({top:166-sTop});
					$(".banner").css({top:166-sTop});
				}else{
					$("#header").css({top:0});
					$(".banner").css({top:0});		
				}		
											
				if(sTop&gt;254){
					$(".sidebar").addClass("sidebar_fixed");				
					$(".main").addClass("main_fixed");
					
				}else{		
					$(".sidebar").removeClass("sidebar_fixed");
					$(".main").removeClass("main_fixed");
					
				}				
			}		
		});
	}
	
	
	//è£èª‰èµ„è´¨
	$(".honor_li").last().css({borderBottom:0});
	
	//é€‰é¡¹å¡åˆ‡æ¢å‡½æ•°
	function tab(tabWrap,tabLi,tabContent,tabContentLi,type){			
			switch(type){
				case "click":					
					$(tabWrap).find(tabLi).click(function(){						
						$(this).addClass("on").siblings().removeClass("on");
						var index=$(this).index();
						$(tabContent).find(tabContentLi).eq(index).show().siblings().hide();						
						}).first().click();					
						break;
				case "hover":
					$(tabWrap).find(tabLi).mouseenter(function(){						
						$(this).addClass("on").siblings().removeClass("on");
						var index=$(this).index();
						$(tabContent).find(tabContentLi).eq(index).show().siblings().hide();						
						}).first().mouseenter();					
						break;
				}
		}
	
	//ç»„ç»‡æž¶æž„é€‰é¡¹å¡
	tab(".zz_tab","a",".zz_tab_content",".zz_tab_li","click");
	
	
	$(".history_txt").each(function(){
		$(this).find("li").last().css({borderBottom:0});		
		});
	
	//å‘å±•åŽ†ç¨‹é€‰é¡¹å¡
	tab(".history_tab","a",".history_tab_content",".history_content_li","click");
			
	//å­—ä½“è®¾ç½®
	$(".font_size a").click(function(){
		var fs=$(this).data("fontsize");		
		$(".news_detail_content").css({fontSize:fs});
		//$(".news_detail_content p").css({fontSize:fs});	
		});
	
	//å‘å±•åŽ†ç¨‹é€‰é¡¹å¡
	tab(".leader_list","a",".ls_box",".ls_box_li","click");
	
	//æ–‡åŒ–ç†å¿µ
	$(".ln_box").last().css({borderBottom:0})
	
	//è´£ä»»å®žè·µ
	$(".ln_box").each(function(){		
		$(this).find(".lb_txt2").last().css({borderBottom:0,paddingBottom:0})
		});
	
	//ç‡ƒæ°”æ³•è§„
	$(".news_list2 .news_time strong").each(function(index,element){
		if((index+1)&lt;10){
			index="0"+(index+1)
			}else{index+=1}
		$(element).text(index)
		
		});	
	$(".gb_right").each(function(i,e){		
			$(e).find(".gbr_li").last().css({marginBottom:0});
		
		});	
		
	
	//ç«™ç‚¹åœ°å›¾
	$(".sitemap dl").eq(3).css({borderRight:"1px dotted #dbdad9"});
	$(".sitemap dl").last().css({borderRight:"1px dotted #dbdad9"});
	$(".sitemap dl:gt(3)").height(220);
	
	//webé¡µé¢
	/*$(".link_box").mouseenter(function(){			
			$(this).find(".link_hide").show();
			$(this).find(".link_show").hide();	
		});
	$(".link_box").mouseleave(function(){			
			$(this).find(".link_show").show();
			$(this).find(".link_hide").hide();	
		});	*/
	
});


</pre></body></html>