// JavaScript Document//2008-09-20 by sonic.hu
var ishow=1; //当前显示
var timeAuto;
var w=1;
var maxitem=4   //要显示的条目数

var timeout=5000 //切换时间
var divtxt="img"
			
function changimg (num,c){
	
clearTimeout(timeAuto);
for ( var i=1;i<=maxitem;i++){
	document.getElementById("li"+i).style.backgroundImage="none";
	document.getElementById("li"+i).style.color="#999";
}
if(document.all)
{
document.getElementById("img0").filters[0].Apply(); 
document.getElementById("img0").filters[0].Play(duration=2); 
document.getElementById("img0").filters[0].Transition=23;
}
document.getElementById("img0").innerHTML=document.getElementById("img"+num).innerHTML; 

document.getElementById("li"+num).style.backgroundImage="url(Images/123.png)";
document.getElementById("li"+num).style.color="#F60";


if (c==0)w++;
if (w>4) w=1;
timeAuto=setTimeout("changimg("+w+",0)",timeout);
}
changimg(w,0)

function chang(num){
		document.getElementById("li"+num).style.cursor='pointer';
	}

