	    var  tabindex1=1;
	    var  tabindex2=1;
          var  tabindex3=1;
               
        function startAll()
           	{
			startShow1();
			startShow2();
			//startShow3();
		}
  
       function changLink(flag)
       {
       
        if(flag==1)
         {
           if(tabindex1==1)
           {
            window.location.href='http://www.brcclub.cn/News/NewsList.shtml';
           // http://www.brcclub.cn/News/NewsList.shtml
           //http://www.brcclub.cn/News/MeetNewsList.shtml
           //http://www.brcclub.cn/News/DynamicProjectList.shtml
           }
           else if(tabindex1==2)
           {
             window.location.href='http://www.brcclub.cn/News/MeetNewsList.shtml';

           }
           else{
            window.location.href='http://www.brcclub.cn/News/DynamicProjectList.shtml';

           }
         }
         
         else if(flag==2)
         {

           if(tabindex2==1)
           {
            window.location.href='http://www.brcclub.cn/Circle/activity.shtml';
           }
           else if(tabindex2==2)
           {
            window.location.href='http://www.brcclub.cn/Circle/movie.shtml';

           }
           else{
            window.location.href='http://www.brcclub.cn/Circle/food.shtml';

           }

         }
         else{
         window.location.href='http://www.brcclub.cn/Circle/house.shtml';

           //if(tabindex3==1)
           //{
          // window.location.href='#';
          // }
          // else if(tabindex3==2)
         //  {
          //  window.location.href='http://www.brcclub.cn/Circle/house.shtml';

         //  }
          // else{
          //  window.location.href='#';

          // }

         }

       }

	    //tabÂÖ»»  
		function chengeDiv(flag, index) {
			var strNavId;
			var strInfoId;
			var count = 4;
			if (flag == 1) {
                 strNavId = "NewsInfoNav";
				strInfoId = "NewsInfo";
				
				if(tabindex1==3)
				{
				 tabindex1=1;
				}else{
				tabindex1+=1;
				}
			}
			else if (flag == 2) {
				strNavId = "fInfoNav";
				strInfoId = "fInfo";
				if(tabindex2==3)
				{
				 tabindex2=1;
				}else{
				tabindex2+=1;
				}


			}
			else if (flag == 3) {
				strNavId = "qInfoNav";
				strInfoId = "qInfo";
				var count = 4;
				
				if(tabindex3==3)
				{
				 tabindex3=1;
				}else{
				tabindex3+=1;
				}


			}
			for (var i = 1; i < count; i++) {


				if (i == index) {

					document.getElementById(strNavId + index).className = "mouseIn newsInfo";
					document.getElementById(strInfoId + index).className = "divShow newsInfo";

				}
				else {
					document.getElementById(strNavId + i).className = "mouseOut";
					document.getElementById(strInfoId + i).className = "divHide";
				}

			}
		}
		
function startShow1()
{

  chengeDiv(1,tabindex1);
    
  timer1=window.setTimeout("startShow1()",2500);
}

function startShow2()
{

  chengeDiv(2,tabindex2);
    
  timer2=window.setTimeout("startShow2()",3000);
}

function startShow3()
{

  chengeDiv(3,tabindex3);
    
  timer3=window.setTimeout("startShow3()",4000);
}


function stop(flag)
{
if(flag==1)
{

   window.clearTimeout(timer1);
}else if(flag==2)
{

window.clearTimeout(timer2);

}
else{


window.clearTimeout(timer3);
}
}

