var bannerAD=new Array(); 
var bannerADlink=new Array(); 
var adNum=6; 
//广告1
bannerAD[0]="/ad_images/gd_2010070201.gif"; 
bannerADlink[0]="http://www.northbook.com.cn/showbook/book.jsp?vendor=01&id=7538543341001"; 
//广告2
bannerAD[1]="/ad_images/gd_2010070202.gif"; 
bannerADlink[1]="http://www.northbook.com.cn/showbook/book.jsp?vendor=01&id=756134984X001"; 
//广告3
bannerAD[2]="/ad_images/gd_2010070203.gif"; 
bannerADlink[2]="http://www.northbook.com.cn/showbook/book.jsp?vendor=01&id=7535443826001";
//广告4
bannerAD[3]="/ad_images/gd_2010070204.gif"; 
bannerADlink[3]="http://www.northbook.com.cn/showbook/book.jsp?vendor=01&id=7121100037001"; 
//广告5
bannerAD[4]="/ad_images/gd_2010070205.gif"; 
bannerADlink[4]="http://www.northbook.com.cn/showbook/book.jsp?vendor=01&id=7301157630001";  
//#一下代码不要修改#//
var preloadedimages=new Array(); 
for (i=1;i<bannerAD.length;i++){ 
preloadedimages[i]=new Image(); 
preloadedimages[i].src=bannerAD[i]; 
} 

function setTransition(){ 
if (document.all){ 
bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23); 
bannerADrotator.filters.revealTrans.apply(); 
} 
} 

function playTransition(){ 
if (document.all) 
bannerADrotator.filters.revealTrans.play() 
} 

function nextAd(){ 
if(adNum<bannerAD.length-1)adNum++ ; 
else adNum=0; 
setTransition(); 
document.images.bannerADrotator.src=bannerAD[adNum]; 
playTransition(); 
theTimer=setTimeout("nextAd()", 8000); 
} 

function jump2url(){ 
jumpUrl=bannerADlink[adNum]; 
jumpTarget='_blank'; 
if (jumpUrl != ''){ 
if (jumpTarget != '')window.open(jumpUrl,jumpTarget); 
else location.href=jumpUrl; 
} 
} 
function displayStatusMsg() { 
status=bannerADlink[adNum]; 
document.returnValue = true; 
} 