var flag = 0;
var tn = 0;
var ff=!(document.all);
var menuList=new Array();
var tabList=new Array();
menuList=["photo0","photo1","photo2","photo3"];
tabList=["photo0","photo1","photo2","photo3"];
function ShowTab(id){
     for(var i=0;i<menuList.length;i++)
     {
       document.getElementById(tabList[i]).style.display="none";
     }
   document.getElementById(tabList[id]).style.display="block";
}
function overMenu(n){
flag = 1;
ShowTab(n);
}
function outMenu(){
flag=0;
}
function run(){
try
{
if(flag==0){
ShowTab(tn);
}
tn++;
if(tn>3) 
{
tn = 0;
}
}
catch(e)
{}
}
function startrun(){
 tims = window.setInterval("run()",3000);
}