<!--
var si = 0;

jQuery.fn.seqfx = function()
{
    $(this).fadeIn(200).delay(5000).fadeOut(200, function()
    {
        $(this).next().seqfx();
    });
	
	si++;
	
	if( si == 7 ) {
		si = 0;
		$(".message:first").seqfx();
	}
};

$(document).ready(function()
{
	$(".message").css("display","none");
    $(".message:first").seqfx();
	$(".newslist").css("display","none");
	$(".newslist:first").css("display","block");
	tabSwitch();
});


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function hidevalue() {
	document.getElementById("keyword").value = "";
}
function hideemail() {
	document.getElementById("email").value = "";
}
function tabSwitch() {
	//tab start
	$("#tab1").hover(
	  function () {
		$("#tab1").removeClass("focusunactive focusactive");
		$("#tab2").removeClass("unactive active");
		$("#tab3").removeClass("unactive active");
		$("#tab4").removeClass("unactive active");
		$("#tab5").removeClass("unactive active");
		$("#tab1").addClass("focusactive");
		$("#tab2").addClass("unactive");
		$("#tab3").addClass("unactive");
		$("#tab4").addClass("unactive");
		$("#tab5").addClass("unactive");
		$("#news1").css("display","block");
		$("#news2").css("display","none");
		$("#news3").css("display","none");
		$("#news4").css("display","none");
		$("#news5").css("display","none");
	  }, 
	  function () {
		//
	  }
	);
	$("#tab2").hover(
	  function () {
		$("#tab1").removeClass("focusunactive focusactive");
		$("#tab2").removeClass("unactive active");
		$("#tab3").removeClass("unactive active");
		$("#tab4").removeClass("unactive active");
		$("#tab5").removeClass("unactive active");
		$("#tab1").addClass("focusunactive");
		$("#tab2").addClass("active");
		$("#tab3").addClass("unactive");
		$("#tab4").addClass("unactive");
		$("#tab5").addClass("unactive");
		$("#news1").css("display","none");
		$("#news2").css("display","block");
		$("#news3").css("display","none");
		$("#news4").css("display","none");
		$("#news5").css("display","none");
	  }, 
	  function () {
		//
	  }
	);
	$("#tab3").hover(
	  function () {
		$("#tab1").removeClass("focusunactive focusactive");
		$("#tab2").removeClass("unactive active");
		$("#tab3").removeClass("unactive active");
		$("#tab4").removeClass("unactive active");
		$("#tab5").removeClass("unactive active");
		$("#tab1").addClass("focusunactive");
		$("#tab2").addClass("unactive");
		$("#tab3").addClass("active");
		$("#tab4").addClass("unactive");
		$("#tab5").addClass("unactive");
		$("#news1").css("display","none");
		$("#news2").css("display","none");
		$("#news3").css("display","block");
		$("#news4").css("display","none");
		$("#news5").css("display","none");
	  }, 
	  function () {
		//
	  }
	);
	$("#tab4").hover(
	  function () {
		$("#tab1").removeClass("focusunactive focusactive");
		$("#tab2").removeClass("unactive active");
		$("#tab3").removeClass("unactive active");
		$("#tab4").removeClass("unactive active");
		$("#tab5").removeClass("unactive active");
		$("#tab1").addClass("focusunactive");
		$("#tab2").addClass("unactive");
		$("#tab3").addClass("unactive");
		$("#tab4").addClass("active");
		$("#tab5").addClass("unactive");
		$("#news1").css("display","none");
		$("#news2").css("display","none");
		$("#news3").css("display","none");
		$("#news4").css("display","block");
		$("#news5").css("display","none");
	  }, 
	  function () {
		//
	  }
	);
	$("#tab5").hover(
	  function () {
		$("#tab1").removeClass("focusunactive focusactive");
		$("#tab2").removeClass("unactive active");
		$("#tab3").removeClass("unactive active");
		$("#tab4").removeClass("unactive active");
		$("#tab5").removeClass("unactive active");
		$("#tab1").addClass("focusunactive");
		$("#tab2").addClass("unactive");
		$("#tab3").addClass("unactive");
		$("#tab4").addClass("unactive");
		$("#tab5").addClass("active");
		$("#news1").css("display","none");
		$("#news2").css("display","none");
		$("#news3").css("display","none");
		$("#news4").css("display","none");
		$("#news5").css("display","block");
	  }, 
	  function () {
		//
	  }
	);
}
	//tab end
//-->
//========================= 设置字体大中小 start =============
	function doZoom(size){
		var artibody = document.getElementById('content');
		if(!artibody){
			return;
		}
		var artibodyChild = artibody.childNodes;
		artibody.style.fontSize = size + 'px';
		//再对artibody div内的直接html节点设置fontSize属性
		for(var i = 0; i < artibodyChild.length; i++){
			if(artibodyChild[i].nodeType == 1){
				artibodyChild[i].style.fontSize = size + 'px';
			}
		}
	}
//========================= 设置字体大中小 end =============

//bookmark ==========
function bookmark() {
title =document.title; 
url = document.location.href;
if (window.sidebar) { //firefox bookmark functionality
window.sidebar.addPanel(title, url,"");
} else if( window.external ) { //ie favorite functionality
window.external.AddFavorite( url, title); 
}else if(window.opera){//opera virtual sidebar link
a = document.createElement("A");
a.rel = "sidebar";
a.target = "_search";
a.title = title;
a.href = url;
a.click();
}
}
 

//bookmark end ==========
