banner1 = "../bilder/mobileweb.gif";
banner2 = "../bilder/msweb.gif";
banner3 = "../bilder/busweb.gif";
banner4 = "../bilder/faq.gif";
banner4 = "../bilder/infinity.gif";
thisAd = 0;

if (document.images){
    
   adImages = new Array(banner1,
                        banner2,
                        banner3,                                                   
                        banner4);
                        
   adURLs = new Array("www.softwired-inc.com");

}

// The following function cycles through each banner image.
// Notice the use of the variable thisAd to go from 0 to 2 and then
// back to 0. JavaScript has an object called document whose
// member adBanner can be set to the current banner to display.

function cycleAds(){
 
 // change to next banner every 15 seconds
 cycleTime=4300
 
 if (document.all) {
    document.images.adBanner.style.filter="blendTrans(duration=2)";
    document.images.adBanner.filter="blendTrans(duration=crossFadeDuration)";
    document.images.adBanner.filters.blendTrans.Apply();
} 
 
 if (document.images){
   if (document.adBanner.complete){
      if (++thisAd == adImages.length)
         thisAd = 0;

        document.adBanner.src = adImages[thisAd];
      }
   }
   
   
  if (document.all) {
    document.images.adBanner.filters.blendTrans.Play();
  }

   
  setTimeout("cycleAds()", cycleTime);
}

// This function is used to direct the user to the website when
// the user clicks on a particular banner image.
function gotoAd(){
  document.location.href = "http://" + adURLs[thisAd];
}
                             
                             
