﻿
//2008-09-20 by sonic.hu
var ishow=1;  //当前显示
var timeAuto;
var w=1;
var maxitem=6   //要显示的条目数

var timeout=5000  //切换时间
var divtxt="img"
function changimg(num,c){
 clearTimeout(timeAuto);
 for ( var i=1;i<=maxitem;i++)
 document.getElementById("shows_" + i).style.backgroundColor="green";
  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("shows_"+num).style.backgroundColor="red";
if (c==0)w++;
if (w>6) w=1;
timeAuto=setTimeout("changimg("+w+",0)",timeout);
 }
changimg(w,0)
