var adNum=0;
function playTran()
{
 if (document.all)
    document.all.imgInit.filters.revealTrans.play();
}

var key=0;
function nextAd()
{
     if(adNum<j)adNum++ ;
     else adNum=1;
     
     if( key==0 )
     {
        key=1;
     } else if (document.all)
     {
         document.all.imgInit.filters.revealTrans.Transition=100;
         document.all.imgInit.filters.revealTrans.apply();
         playTran();

     }
     
     document.images.imgInit.src=imgUrl[adNum];
     
//     if(document.all.tdDes != null && typeof(document.all.tdDes) != "undefined")
//        document.all.tdDes.innerHTML = imgDes[adNum];
        
     theTimer=setTimeout("nextAd()", 3000);
}

function goUrl()
{
     jumpUrl=imgLink[adNum];
     jumpTarget='_blank';
     if (jumpUrl != '')
     {
     if (jumpTarget != '') 
     window.open(jumpUrl,jumpTarget);
     else
     location.href=jumpUrl;
     }
 }

document.write("<a href='javascript:goUrl()'><img width='240px' height='180px' style='FILTER: revealTrans(duration=2,transition=20);border-color:#000000;color:#000000' src='javascript:nextAd()' border=1 class=img01 name=imgInit></a>");