var imgUrl=new Array();
var imgLink=new Array();
var imgTitle=new Array();
adNum=0;
imgUrl[1] ='companyimage/2010070711461940625.jpg'; imgLink[1]='http://www.chuguo.org.cn/travel/destination/Cambodia/christinair/index.htm';imgTitle[1]='柬埔寨风情'
imgUrl[2] ='companyimage/2010070513470843750.jpg'; imgLink[2]='http://www.chuguo.org.cn/travel/destination/Zambia/Tozema/';imgTitle[2]='赞比亚风光'
imgUrl[3] ='companyimage/2010070513451050000.jpg'; imgLink[3]='http://www.chuguo.org.cn/travel/destination/maldives/BRIDAL/';imgTitle[3]='马尔代夫的婚礼'
imgUrl[4] ='companyimage/2010070513402159375.jpg'; imgLink[4]='http://www.chuguo.org.cn/travel/destination/CostaRica/MangoTree/index.html';imgTitle[4]='哥斯达黎加'
imgUrl[5] ='companyimage/2008111916043042187.jpg'; imgLink[5]='http://www.chuguo.cn/travel/116946.xhtml';imgTitle[5]='风光夏威夷岛'

var count=5;
var imgPre=new Array(); 
var j=0;
for (i=0;i<count;i++) {
if( (imgUrl[i]!='') && (imgLink[i]!='') ) {
j++; } else { break; } } 
 function playTran(){
 if (document.all) 
 document.getElementById('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.getElementById('imgInit').filters.revealTrans.Transition=10; 
  document.getElementById('imgInit').filters.revealTrans.apply(); 
  playTran();}  
 document.getElementById('imgInit').src=imgUrl[adNum];  
  document.getElementById('spanTitle').innerHTML=imgTitle[adNum]; 
 theTimer=setTimeout("nextAd()", 6000);} 
 function goUrl(){  
  jumpUrl=imgLink[adNum]; 
  jumpTarget='_blank'; 
 if (jumpUrl != ''){  
  if (jumpTarget != '') 
 window.open(jumpUrl,jumpTarget); 
  else location.href=jumpUrl; } }  
  function preloadPic() 
 { document.getElementById('imgInit').src=imgUrl[1]; 
  if (document.all)  
 { var imgPreload = new Image(); 
  for (i=0; i<imgUrl.length; i++) 
  { imgPreload.src = imgUrl[i] }  
  nextAd(); } 
  else { 
 theTimer = setTimeout("preloadPic()",50); } }  
document.write('<A href="javascript:goUrl()"><IMG id="imgInit" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; Z-INDEX: 103; FILTER: revealTrans(duration=1,transition=5); LEFT: 304px; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" height="192" src="javascript:preloadPic()" width="218" vspace="5" name="imgInit"></A>'); 
document.write('<br>');  
document.write('<A class="lan1" href="javascript:goUrl()">');
document.write('<span id="spanTitle" style="COLOR: red"></span></A>');  

