﻿// JavaScript Document
//滑动门
function tab1(cursor,n){
	var nav=document.getElementById("tab");
	if(nav)
	{
	nav.className= "Content_R2_a1_t"+cursor;
	for(i=1;i<=n;i++){		
		var cont=document.getElementById("taba_cont"+i);
		cont.style.display=(i==cursor)?"block":"none";
	}
	}
}

function tabc(cursor,n){
	var nav=document.getElementById("tabc");
	if(nav)
	{
	nav.className= "Content_R2_a1_t"+cursor;
	for(i=1;i<=n;i++){		
		var cont=document.getElementById("tabc_cont"+i);
		cont.style.display=(i==cursor)?"block":"none";
	}
	}
}

var k=1;
function Refresh()
{  
    k++;
    if(k>3)
    {
       k=1;
    }
    tab1(k,3);
    tabc(k,3);
    setTimeout("Refresh()",5000);   
}
window.onload=function()
{
setTimeout("Refresh()",5000);
}

/* 20100514 */

// JavaScript Document
function showdiv(obj)
{
	var Pn_div = document.getElementById(obj);
	if(Pn_div.style.display == "block")
	{
		document.getElementById(obj+"1").innerHTML = "更多";
		Pn_div.style.display = "none";
		
		}
	else
	{
		document.getElementById(obj+"1").innerHTML = "关闭";
		Pn_div.style.display = "block";
		}
}

/* end 20100514 */
