var bannerAD=new Array(); 
var bannerADlink=new Array(); 
var adNum=6; 
//广告1
bannerAD[0]="/ad_images/gd_2011031011.gif"; 
bannerADlink[0]="http://www.northbook.com.cn/showbook/book.jsp?vendor=01&id=7544335984001"; 
//广告2
bannerAD[1]="/ad_images/gd_2011031012.gif"; 
bannerADlink[1]="http://www.northbook.com.cn/showbook/book.jsp?vendor=01&id=7802517494001"; 
//广告3
bannerAD[2]="/ad_images/gd_2011031013.gif"; 
bannerADlink[2]="http://www.northbook.com.cn/showbook/book.jsp?vendor=01&id=780249768X001";
//广告4
bannerAD[3]="/ad_images/gd_2011031014.gif"; 
bannerADlink[3]="http://www.northbook.com.cn/showbook/book.jsp?vendor=01&id=7108035758001"; 
//广告5
bannerAD[4]="/ad_images/gd_2011031015.gif"; 
bannerADlink[4]="http://www.northbook.com.cn/showbook/book.jsp?vendor=01&id=7538732071001";  
//#一下代码不要修改#//
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; 
} 
