  //JavaScript Rotating Banners

  //copyright daxassist, 2000-2004

  //visit http://www.daxassist.com for this and other javascripts with full tutorials.



  //specify interval between rotating banners (in milli seconds)

  var currentlink = 0;

  var currentimage = 0;

  var delay = 3000;

  var newbrowser = true;

	

  //spécifiez les bannières

  if(document.images) {

    banpics = new Array();

    banpics[0] = new Image();

    banpics[0].src = "http://www.lexcel.be/sponsors/vSponsor-01.gif";

    banpics[1] = new Image();

    banpics[1].src = "http://www.lexcel.be/sponsors/vSponsor-03.gif";

    banpics[2] = new Image();

    banpics[2].src = "http://www.lexcel.be/sponsors/vSponsor-05.gif";

    banpics[3] = new Image();

    banpics[3].src = "http://www.lexcel.be/sponsors/vSponsor-06.gif";

    banpics[4] = new Image();

    banpics[4].src = "http://www.lexcel.be/sponsors/vSponsor-07.gif";

    banpics[5] = new Image();

    banpics[5].src = "http://www.lexcel.be/sponsors/vSponsor-08.gif";




    //spécifiez les liens de bannières

    banlinks = new Array();
	
	banlinks[0] = "http://www.tendancevins.lu/";

    banlinks[1] = "http://www.lefranklin.be/";
	
	banlinks[2] = "http://www.commercesvirton.be/membres/grandr.htm";

    banlinks[3] = "http://netfr.toyota.be/dealers/A5F3CB0D-E065-11D2-9822-006094F96CDD/";

    banlinks[4] = "http://www.commercesvirton.be/membres/mondialexpress.htm";

    banlinks[5] = "";

  }



  function getTirage(N) {

    return (Math.floor(N*Math.random()));

  }



  function bannerchanger(from) {

    if(document.images) {

      document.images[from].src = banpics[currentimage].src;

      currentlink = currentimage;			

      currentimage = getTirage(banpics.length);

      setTimeout("bannerchanger('" + from + "')", delay);

    }

  }

  

  function FollowLink() {

    if(document.images) {

      if (newbrowser == true) {

        window.open(banlinks[currentlink], 'newwindow', '', false);			

      } else

        document.location.href = banlinks[currentlink];

    }

  }

