var SwapID=0;
var PauseTime=15*1000;
var Timer1;
function swap(Obj)
{
 var st = document.getElementsByName('lt2');
 
 var j;
 if(st.length>0)
 {
  for(j=0; j<st.length; j++)
  {
   if(st[j]==Obj)
   {
    lt2[j].style.display='';
    mt[j].style.background='';
	mt[j].style.backgroundImage="url(images3/bg_bai.jpg)";   
	mt[j].style.backgroundRepeat='no-repeat';
    mt[j].style.color='#000000'
   } 
   else 
   {
    lt2[j].style.display='none';
    mt[j].style.background='';

    mt[j].style.color='#000000'
   }
  }
 }
}

function swap3(Obj)
{
 var st3 = document.getElementsByName('lt3');
 
 var j;
 if(st3.length>0)
 {
  for(j=0; j<st3.length; j++)
  {
   if(st3[j]==Obj)
   {
    lt3[j].style.display='';
    mt3[j].style.background='';
	mt3[j].style.backgroundImage="url(images3/bg_bai.jpg)";   
	mt3[j].style.backgroundRepeat='no-repeat';
    mt3[j].style.color='#000000'
   } 
   else 
   {
    lt3[j].style.display='none';
    mt3[j].style.background='';
    mt3[j].style.color='#000000'
   }
  }
 }
}


function swap4(Obj)
{
 var st4 = document.getElementsByName('lt4');
 
 var j;
 if(st4.length>0)
 {
  for(j=0; j<st4.length; j++)
  {
   if(st4[j]==Obj)
   {
    lt4[j].style.display='';
    mt4[j].style.background='';
	mt4[j].style.backgroundImage="url(images3/bg_bai.jpg)";   
	mt4[j].style.backgroundRepeat='no-repeat';
    mt4[j].style.color='#000000'
   } 
   else 
   {
    lt4[j].style.display='none';
    mt4[j].style.background='';
    mt4[j].style.color='#000000'
   }
  }
 }
}



function swap5(Obj)
{
 var st5 = document.getElementsByName('lt5');
 
 var j;
 if(st5.length>0)
 {
  for(j=0; j<st5.length; j++)
  {
   if(st5[j]==Obj)
   {
    lt5[j].style.display='';
    mt5[j].style.background='';
	mt5[j].style.backgroundImage="url(images3/bg_bai.jpg)";   
	mt5[j].style.backgroundRepeat='no-repeat';
    mt5[j].style.color='#000000'
   } 
   else 
   {
    lt5[j].style.display='none';
    mt5[j].style.background='';
    mt5[j].style.color='#000000'
   }
  }
 }
}


function swap6(Obj)
{
 var st6 = document.getElementsByName('lt6');
 
 var j;
 if(st6.length>0)
 {
  for(j=0; j<st6.length; j++)
  {
   if(st6[j]==Obj)
   {
    lt6[j].style.display='';
    mt6[j].style.background='';
	mt6[j].style.backgroundImage="url(images3/bg_bai2.jpg)";   
	mt6[j].style.backgroundRepeat='no-repeat';
    mt6[j].style.color='#000000'
   } 
   else 
   {
    lt6[j].style.display='none';
    mt6[j].style.background='';
    mt6[j].style.color='#000000'
   }
  }
 }
}


function AutoSwap() 
{
 for (i=0;i<3;i++)
 Swap(lt[i]);
 Timer1=setTimeout("AutoSwap()",PauseTime);
} 
function StopSwap() 
{
 clearTimeout(Timer1);
}