<!-- // BannerAD

   // Modified by Hoi (6 Feb 2001).

   var bannerAD=new Array();
   var bannerADlink=new Array();
   var currentLink = null;
   var adNum=0;

   // the followings can be modify.
   var adPath="http://www.digitalhongkong.com/banners/";
   var adDelay=8;    // Rotation delay second(s)

   bannerADlink[0]="http://www.100bestrestaurants.com";
   bannerAD[0]=adPath + "468/100restaurants.jpg";
   bannerADlink[1]="http://www.iatdesign.com";
   bannerAD[1]=adPath + "468/iatdesign.gif"; 
   bannerADlink[2]="http://www.tcmhk.com";
   bannerAD[2]=adPath + "468/tcmhk.jpg";
   bannerADlink[3]="http://www.tcmresearch.com";
   bannerAD[3]=adPath + "468/tcmresearch.gif";
   bannerADlink[4]="http://www.y28.com";
   bannerAD[4]=adPath + "468/y28.gif";



   lengtha = bannerADlink.length;
   var preloadedimages=new Array();
   for (i=1;i<bannerAD.length;i++){
      preloadedimages[i]=new Image();
      preloadedimages[i].src=bannerAD[i];
   }

// Detect if bannerAdrotator is not defined, auto-create it.
showAd();

function setTransition(){
   if (document.all){
      bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*lengtha);
      bannerADrotator.filters.revealTrans.apply();
   }
}

function playTransition(){
   if (document.all)
      bannerADrotator.filters.revealTrans.play()
}

function nextAd(){
   adNum = Math.floor(Math.random()*lengtha);
   if (adNum >= bannerAD.length-1) adNum=0;
   setTransition();
   document.images.bannerADrotator.src=bannerAD[adNum];
   document.images.bannerADrotator.alt=bannerADlink[adNum];
   currentLink = bannerADlink[adNum];
   playTransition();
   theTimer=setTimeout("nextAd()", (adDelay*1000));
}

/*function nextAd(){
   if (adNum == bannerAD.length-1) adNum=0;
   setTransition();
   document.images.bannerADrotator.src=bannerAD[adNum];
   document.images.bannerADrotator.alt=bannerADlink[adNum];
   currentLink = bannerADlink[adNum];
   playTransition();
   theTimer=setTimeout("nextAd()", (adDelay*1000));
   adNum++;
}
*/

function jump2url(){
   jumpUrl=currentLink;
   jumpTarget='_blank';
   if (jumpUrl != ''){
      if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
      else location.href=jumpUrl;
   }
}

function displayStatusMsg() {
	status=currentLink;
	document.returnValue = true;
}

function resetStatusMsg() {
	status='';
}

function showAd() {
	document.write('<table border="0" cellspacing="0" cellpadding="0"><tr><td><a href="#" onClick="jump2url()" onMouseOver="displayStatusMsg(); return document.returnValue" onMouseOut="resetStatusMsg()"><img width="468" height="60" src="' + bannerAD[0] + '" name="bannerADrotator" border="0" style="filter:revealTrans(duration=2,transition=20)"></a></td></tr></table>');
    nextAd();
}

//-->