  // This file is used to rotate the top banner
   // To add new banner, do as follows-
   // 1. Add image path to the array bannerAD[n], where n is new serial number.
   // 2. Similarly add link-adress and alt-text to the arrays bannerADlink[n] and bannerADalt[n]. 
   // To increase/decrease the time interval set the new time in the fn setTimeout().
   
   
   var bannerAD=new Array();
   var bannerADlink=new Array();
   var bannerADalt = new Array();
   var adNum=0;
	
	
   bannerAD[0]="http://www.calicutcity.com/blooddonors/blood.gif";
   bannerADlink[0]="http://www.esynergysoft.com/calicutcity/blooddonors/";
   bannerADalt[0]="blood donors @ calicutcity.com";

   bannerAD[1]="http://www.calicutcity.com/images/vmrotate/nietbanner.gif";
   bannerADlink[1]="http://www.calicutcity.com";
   bannerADalt[1]="NIET";

   bannerAD[2]="http://www.calicutcity.com/images/vmrotate/arena.gif";
   bannerADlink[2]="http://www.arena-multimedia.com";
   bannerADalt[2]="ARENA Multimedia";

   bannerAD[3]="http://www.calicutcity.com/images/vmrotate/discussion.gif";
   bannerADlink[3]="http://people.calicutcity.com/commun_v3/scripts/topics.pl?NodeID=295988&ClientID=65253";
   bannerADalt[3]=" Discussion forum@ calicutcity.com";


   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];
   document.images.bannerADrotator.alt=bannerADalt[adNum];
   playTransition();
   theTimer=setTimeout("nextAd()", 6000);
}

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;
}
function displayStatusMsg1() { 
   status="";
   document.returnValue = true;
}
