var flag = 0;
var tn = 0;
var ff=!(document.all);
var menuList=new Array();
var tabList=new Array();
menuList=["photoAdMenu0","photoAdMenu1","photoAdMenu2","photoAdMenu2"];
tabList=["photoAdTab0","photoAdTab1","photoAdTab2","photoAdTab3"];
function ShowTab(id){
     for(var i=0;i<menuList.length;i++)
     {
       //document.getElementById(menuList[i]).className="newsHomeHidden";
       document.getElementById(tabList[i]).style.display="none";
     }
       //document.getElementById(menuList[id]).className="newsHomeShow";
	   //if(ff==true)
		//{
		//   document.getElementById(tabList[id]).style.display="table-row;block;";
      // }else{
		   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()",5000);
}