//*-------------------------------------------------------------------------------------------*
//*&10*  banners.js
//*&11*  type: JavaScript Document
//*&11*
//*&11*  Display a banner and change it in atuo-mode
//*&11*  Then open an URL of the clicked image
//*&11*  
//*&11*  Example to put into a html page
//*&11*  
//*&11*  Put this into the head:
//*&11*    <script type="text/javascript" src="js/banners.js"></script>
//*&11* 
//*&11*  Put this into the body at the place to diplay the banners:
//*&11*    <a href="http://www.luxforum.lu/" id="adLink1" target="_blank">
//*&11*    <img src="banners/luxforum_banner2_468x61.jpg" id="adBanner1" border="0" width="468" height="60"></a>
//*&11* 
//*&11*  Interval to display in milli seconds:
//*&11*    imgInterval
//*&11*
//*&11*  Comment:
//*&11*    you may change or add banners as you wish
//*&11* 
//*-------------------------------------------------------------------------------------------*
//*&20*  VERSION ! DATE       ! NAME        ! REMARK
//*&20*----------*------------*-------------*-------------------------------------------------*
//*&21*      001 * 01.10.2007 * FINK Claude * Creation for RadioROM
//*&21*      002 * 30.03.2008 * FINK Claude * New sponsor Cep d'Or
//*&21*      003 * 06.09.2008 * SIMON Serge * Removed Bruck, Ries. Added EzDJPro
//*&21*      004 * 18.11.2008 * SIMON Serge * Added Idealtec
//*&21*      005 * 06.05.2009 * SIMON Serge * Added mAirlist, removed GT2
//*&21*      006 * 05.11.2009 * SIMON Serge * Added rentme banner
//*-------------------------------------------------------------------------------------------*
// 

// declare the images
var aBanners1 = new Array("banners/luxforum_banner2_468x61.jpg",
                      "banners/RoadsterGate_logo_468x61.jpg",
                      "banners/mAirList_Banner_468x61.jpg",
                      "banners/Idealtec_banner_468x61.jpg",
                      "banners/Faber_banner_468x61.jpg",
                      "banners/Mazout_Schmit_banner_468x61.jpg",
                      "banners/CEPDOR_banner_468x61.jpg",
                      "banners/CFC_banner_468x61.jpg",
                      "banners/rentme_468x61.jpg",
		      "banners/EzDJPro_banner_468x61.jpg")
					  
// declare the links
var aLinks1 = new Array("http://www.luxforum.lu/",
                      "http://www.roadstergate.lu/",
                      "http://www.mairlist.com/",
                      "http://www.idealtec.lu/",
                      "http://faber.reseau.peugeot.lu/",
                      "http://www.mazout-schmit.info",
                      "http://www.cepdor.lu/",
                      "http://www.rom.lu/hosting/toiture_cfc.htm",
                      "http://www.rent-me.lu/",
		      "http://www.ezdjpro.com/")
                      
// declare the alternate names
var aAlt1 = new Array("LuxForum",
                     "RoadsterGate",
                     "mAirList",
                     "Idealtec",
                     "Garage Faber",
                     "Mazout Schmit Charel",
		     "Domaine Cep d'Or",
                     "Toiture C.F.C.",
                     "Rent Me",
		     "EzDJPro")
                     
var currentimg1 = 0;
var imgmax1     = aBanners1.length ;
// declare the interval to display each banner in milli seconds
var imgInterval = 10000;

function dispBanner1() {
  if (currentimg1 == imgmax1) {
      currentimg1 = 0;
  }
  var banner1 = document.getElementById('adBanner1');
  var link1   = document.getElementById('adLink1');
  banner1.src = aBanners1[currentimg1];
  banner1.alt = aAlt1[currentimg1];
  document.getElementById('adLink1').href=aLinks1[currentimg1];
  currentimg1++;
}

// call the output function
window.setInterval("dispBanner1()",imgInterval);


//*-------------------------------------------------------------------------------------------*
//*&99*  EOF (file)
//*-------------------------------------------------------------------------------------------*
