// JavaScript Document



function yy(a,TabNum){

        for(var i=1;i<=TabNum;i++)
        {
            document.getElementById("Tab_"+i).style.display='none';
        }
        document.getElementById("Tab_"+a).style.display='block';
        
		newImage = "url(../image/hh_02.gif)";
		huanImage="url(../image/hh_06.gif)";
		var yy1=document.getElementById("yy1");
		var yy2=document.getElementById("yy2");
		var yy3=document.getElementById("yy3");
		var yy4=document.getElementById("yy4");
		var yy5=document.getElementById("yy5");
		var yy6=document.getElementById("yy6");
		var yyu1=document.getElementById("yyu1");
		var yyu2=document.getElementById("yyu2");
		var yyu3=document.getElementById("yyu3");
		var yyu4=document.getElementById("yyu4");
		var yyu5=document.getElementById("yyu5");
		var yyu6=document.getElementById("yyu6");
		var chen=document.getElementById("chen")
		if (a==1){
		yy1.style.backgroundImage=newImage;
		yy2.style.backgroundImage="";
		yy3.style.backgroundImage="";
		yy4.style.backgroundImage="";
		yy5.style.backgroundImage="";
		yy6.style.backgroundImage="";
		yyu1.style.backgroundImage=huanImage;
		yyu2.style.backgroundImage="";
		yyu3.style.backgroundImage="";
		yyu4.style.backgroundImage="";
		yyu5.style.backgroundImage="";
		yyu6.style.backgroundImage="";
		}
		if (a==2){
		yy2.style.backgroundImage=newImage;
		yy1.style.backgroundImage="";
		yy3.style.backgroundImage="";
		yy4.style.backgroundImage="";
		yy5.style.backgroundImage="";
		yy6.style.backgroundImage="";
		yyu2.style.backgroundImage=huanImage;
		yyu1.style.backgroundImage="";
		yyu3.style.backgroundImage="";
		yyu4.style.backgroundImage="";
		yyu5.style.backgroundImage="";
		yyu6.style.backgroundImage="";
		}
		if (a==3){
		yy3.style.backgroundImage=newImage;
		yy1.style.backgroundImage="";
		yy2.style.backgroundImage="";
		yy4.style.backgroundImage="";
		yy5.style.backgroundImage="";
		yy6.style.backgroundImage="";
		yyu3.style.backgroundImage=huanImage;
		yyu1.style.backgroundImage="";
		yyu2.style.backgroundImage="";
		yyu4.style.backgroundImage="";
		yyu5.style.backgroundImage="";
		yyu6.style.backgroundImage="";
		}
		if (a==4){
		yy4.style.backgroundImage=newImage;
		yy1.style.backgroundImage="";
		yy2.style.backgroundImage="";
		yy3.style.backgroundImage="";
		yy5.style.backgroundImage="";
		yy6.style.backgroundImage="";
		yyu4.style.backgroundImage=huanImage;
		yyu1.style.backgroundImage="";
		yyu2.style.backgroundImage="";
		yyu3.style.backgroundImage="";
		yyu5.style.backgroundImage="";
		yyu6.style.backgroundImage="";
		}
		if (a==5){
		yy5.style.backgroundImage=newImage;
		yy1.style.backgroundImage="";
		yy2.style.backgroundImage="";
		yy3.style.backgroundImage="";
		yy4.style.backgroundImage="";
		yy6.style.backgroundImage="";
		yyu5.style.backgroundImage=huanImage;
		yyu1.style.backgroundImage="";
		yyu2.style.backgroundImage="";
		yyu3.style.backgroundImage="";
		yyu4.style.backgroundImage="";
		yyu6.style.backgroundImage="";
		}
		if (a==6){
		yy6.style.backgroundImage=newImage;
		yy1.style.backgroundImage="";
		yy2.style.backgroundImage="";
		yy3.style.backgroundImage="";
		yy4.style.backgroundImage="";
		yy5.style.backgroundImage="";
		
		
		yyu6.style.backgroundImage=huanImage;
		yyu1.style.backgroundImage="";
		yyu2.style.backgroundImage="";
		yyu3.style.backgroundImage="";
		yyu4.style.backgroundImage="";
		yyu5.style.backgroundImage="";
		
		}
	
		
	}



function aa(a,TabNum){

        for(var i=1;i<=TabNum;i++)
        {
            document.getElementById("Tab_"+i).style.display='none';
        }
        document.getElementById("Tab_"+a).style.display='block';
    	 
		newImages = "url(../image/qpian_03.gif)";
		huanImages="url(../image/qpian_04.gif)";
		var an1=document.getElementById("an1");
		var an2=document.getElementById("an2");
		var an3=document.getElementById("an3");
		var an4=document.getElementById("an4");
		var an5=document.getElementById("an5");
		var an6=document.getElementById("an6");
		var an7=document.getElementById("an7");
		var an8=document.getElementById("an8");
		var an9=document.getElementById("an9");
		var ann1=document.getElementById("ann1");
		var ann2=document.getElementById("ann2");
		var ann3=document.getElementById("ann3");
		var ann4=document.getElementById("ann4");
		var ann5=document.getElementById("ann5");
		var ann6=document.getElementById("ann6");
		var ann7=document.getElementById("ann7");
		var ann8=document.getElementById("ann8");
		var ann9=document.getElementById("ann9");
		var cheng=document.getElementById("cheng")
		
		if (a==1){
		an1.style.backgroundImage=newImages;
		an2.style.backgroundImage="";
		an3.style.backgroundImage="";
		an4.style.backgroundImage="";
		an5.style.backgroundImage="";
		an6.style.backgroundImage="";
		an7.style.backgroundImage="";
		an8.style.backgroundImage="";
		an9.style.backgroundImage="";
		ann1.style.backgroundImage=huanImages;
		ann2.style.backgroundImage="";
		ann3.style.backgroundImage="";
		ann4.style.backgroundImage="";
		ann5.style.backgroundImage="";
		ann6.style.backgroundImage="";
		ann7.style.backgroundImage="";
		ann8.style.backgroundImage="";
		ann9.style.backgroundImage="";
		}
		if (a==2){
		an2.style.backgroundImage=newImages;
		an1.style.backgroundImage="";
		an3.style.backgroundImage="";
		an4.style.backgroundImage="";
		an5.style.backgroundImage="";
		an6.style.backgroundImage="";
		an7.style.backgroundImage="";
		an8.style.backgroundImage="";
		an9.style.backgroundImage="";
		ann2.style.backgroundImage=huanImages;
		ann1.style.backgroundImage="";
		ann3.style.backgroundImage="";
		ann4.style.backgroundImage="";
		ann5.style.backgroundImage="";
		ann6.style.backgroundImage="";
		ann7.style.backgroundImage="";
		ann8.style.backgroundImage="";
		ann9.style.backgroundImage="";
		}
		if (a==3){
		an3.style.backgroundImage=newImages;
		an1.style.backgroundImage="";
		an2.style.backgroundImage="";
		an4.style.backgroundImage="";
		an5.style.backgroundImage="";
		an6.style.backgroundImage="";
		an7.style.backgroundImage="";
		an8.style.backgroundImage="";
		an9.style.backgroundImage="";
		ann3.style.backgroundImage=huanImages;
		ann1.style.backgroundImage="";
		ann2.style.backgroundImage="";
		ann4.style.backgroundImage="";
		ann5.style.backgroundImage="";
		ann6.style.backgroundImage="";
		ann7.style.backgroundImage="";
		ann8.style.backgroundImage="";
		ann9.style.backgroundImage="";
		}
		if (a==4){
		an4.style.backgroundImage=newImages;
		an1.style.backgroundImage="";
		an2.style.backgroundImage="";
		an3.style.backgroundImage="";
		an5.style.backgroundImage="";
		an6.style.backgroundImage="";
		an7.style.backgroundImage="";
		an8.style.backgroundImage="";
		an9.style.backgroundImage="";
		ann4.style.backgroundImage=huanImages;
		ann1.style.backgroundImage="";
		ann2.style.backgroundImage="";
		ann3.style.backgroundImage="";
		ann5.style.backgroundImage="";
		ann6.style.backgroundImage="";
		ann7.style.backgroundImage="";
		ann8.style.backgroundImage="";
		ann9.style.backgroundImage="";
		}
		if (a==5){
		an5.style.backgroundImage=newImages;
		an1.style.backgroundImage="";
		an2.style.backgroundImage="";
		an3.style.backgroundImage="";
		an4.style.backgroundImage="";
		an6.style.backgroundImage="";
		an7.style.backgroundImage="";
		an8.style.backgroundImage="";
		an9.style.backgroundImage="";
		ann5.style.backgroundImage=huanImages;
		ann1.style.backgroundImage="";
		ann2.style.backgroundImage="";
		ann3.style.backgroundImage="";
		ann4.style.backgroundImage="";
		ann6.style.backgroundImage="";
		ann7.style.backgroundImage="";
		ann8.style.backgroundImage="";
		ann9.style.backgroundImage="";
		}
		if (a==6){
		an6.style.backgroundImage=newImages;
		an1.style.backgroundImage="";
		an2.style.backgroundImage="";
		an3.style.backgroundImage="";
		an4.style.backgroundImage="";
		an5.style.backgroundImage="";
		an7.style.backgroundImage="";
		an8.style.backgroundImage="";
		an9.style.backgroundImage="";
		ann6.style.backgroundImage=huanImages;
		ann1.style.backgroundImage="";
		ann2.style.backgroundImage="";
		ann3.style.backgroundImage="";
		ann4.style.backgroundImage="";
		ann5.style.backgroundImage="";
		ann7.style.backgroundImage="";
		ann8.style.backgroundImage="";
		ann9.style.backgroundImage="";
		}
		if (a==7){
		an7.style.backgroundImage=newImages;
		an1.style.backgroundImage="";
		an2.style.backgroundImage="";
		an3.style.backgroundImage="";
		an4.style.backgroundImage="";
		an5.style.backgroundImage="";
		an6.style.backgroundImage="";
		an8.style.backgroundImage="";
		an9.style.backgroundImage="";
		ann7.style.backgroundImage=huanImages;
		ann1.style.backgroundImage="";
		ann2.style.backgroundImage="";
		ann3.style.backgroundImage="";
		ann4.style.backgroundImage="";
		ann5.style.backgroundImage="";
		ann6.style.backgroundImage="";
		ann8.style.backgroundImage="";
		ann9.style.backgroundImage="";
		}
		if (a==8){
		an8.style.backgroundImage=newImages;
		an1.style.backgroundImage="";
		an2.style.backgroundImage="";
		an3.style.backgroundImage="";
		an4.style.backgroundImage="";
		an5.style.backgroundImage="";
		an6.style.backgroundImage="";
		an7.style.backgroundImage="";
		an9.style.backgroundImage="";
		ann8.style.backgroundImage=huanImages;
		ann1.style.backgroundImage="";
		ann2.style.backgroundImage="";
		ann3.style.backgroundImage="";
		ann4.style.backgroundImage="";
		ann5.style.backgroundImage="";
		ann6.style.backgroundImage="";
		ann7.style.backgroundImage="";
		ann9.style.backgroundImage="";
		}
		if (a==9){
		an9.style.backgroundImage=newImages;
		an1.style.backgroundImage="";
		an2.style.backgroundImage="";
		an3.style.backgroundImage="";
		an4.style.backgroundImage="";
		an5.style.backgroundImage="";
		an6.style.backgroundImage="";
		an7.style.backgroundImage="";
		an8.style.backgroundImage="";
		ann9.style.backgroundImage=huanImages;
		ann1.style.backgroundImage="";
		ann2.style.backgroundImage="";
		ann3.style.backgroundImage="";
		ann4.style.backgroundImage="";
		ann5.style.backgroundImage="";
		ann6.style.backgroundImage="";
		ann7.style.backgroundImage="";
		ann8.style.backgroundImage="";
		}
}



window.onload = function() {
rolinTab("rolin")

}
function rolinTab(obj) {
var list = $(obj).getElementsByTagName("LI");
var state = {show:false,hidden:false,showObj:false};

for (var i=0; i<list.length; i++) {
var tmp = new rolinItem(list[i],state);
if (i == 0) tmp.pShow();
}
	newImage = "url(../image/xubg.jpg)";
    var ifm = document.getElementById("ifm");
	if (ifm != null)
		ifm.src = "Online.aspx";
	var gifm = document.getElementById("gifm");

	if (gifm != null)
		gifm.src = "Overview.aspx?NewsId=30";
		
		
	var jifm = document.getElementById("jifm");
	if (jifm != null)
		jifm.src = "jjfa_a1.html";
	var cifm = document.getElementById("cifm");
	if (cifm != null)
		cifm.src = "cpzc_a1.html";
		

	var btnca1 = document.getElementById("btnca1");
	if(btnca1!=null)
		btnca1.style.backgroundImage=newImage;		
	var btn1 = document.getElementById("btna1");
	if(btn1!=null)
		btn1.style.backgroundImage=newImage;	
	var btnja1=document.getElementById("btnja1");
	if(btnja1!=null)
		btnja1.style.backgroundImage=newImage;
	
}

function rolinItem(obj,state) {
var speed = 0.0666; 
var range = 1;
var interval;
var tarH;
var tar = this;
var head = getFirstChild(obj);
var content = getNextChild(head);
var isOpen = false;
this.pHidden = function() {
if (isOpen) hidden();
}
this.pShow = show;

var baseH = content.offsetHeight;
content.style.display = "none";
var isOpen = false;


head.onmouseout = mouseout;

head.onclick = function() {
this.style.backgroundImage ="url(../image/zanbg.gif)" ;
if (!state.show && !state.hidden) {
if (!isOpen) {
head.onmouseout = null;
show();
} else {
hidden();
}

}
}

function mouseout() {
this.style.backgroundImage = "url(../image/zanbg.gif)"
}
function show() {
state.show = true;
if (state.openObj && state.openObj != tar ) {
state.openObj.pHidden();
}
content.style.height = "0px";
content.style.display = "block";
content.style.overflow = "hidden";
state.openObj = tar;
tarH = baseH;

interval = setInterval(move,10);
}
function showS() {
isOpen = true;
state.show = false;
}

function hidden() {
state.hidden = true;
tarH = 0;
interval = setInterval(move,10);
}

function hiddenS() {
head.style.borderBottom = "none";
head.onmouseout = mouseout;
head.onmouseout();
content.style.display = "none";
isOpen = false;
state.hidden = false;
}

function move() {
var dist = (tarH - content.style.height.pxToNum())*speed;
if (Math.abs(dist) < 1) dist = dist > 0 ? 1: -1;
content.style.height = (content.style.height.pxToNum() + dist) + "px";
if (Math.abs(content.style.height.pxToNum() - tarH) <= range ) {
clearInterval(interval);
content.style.height = tarH + "px";
if (tarH != 0) {
showS()
} else {
hiddenS();
}
}
}

}
var $ = function($) {return document.getElementById($)};
String.prototype.pxToNum = function() {return Number(this.replace("px",""))}
function getFirstChild(obj) {
var result = obj.firstChild;
while (!result.tagName) {
result = result.nextSibling;
}
return result;
}

function getNextChild(obj) {
var result = obj.nextSibling;
while (!result.tagName) {
result = result.nextSibling;
}
return result;
}

