/*
    BANNER.JS
    The code for the banner script.
    You have to insert also the configuration here.

    ------------
    (c) for this script by Hinnerk Gnutzmann, 1998
    you can get more scripts @ home.pages.de/~hcg or listen.to/hgnutzmann
*/
function insert_banner() {
  var ba = new Array();
  /* config part
       Please insert HERE the preferences for your NEW webring
       system.
  */
  //the DESCRIPTION for your webring (maybe proud member of..)
  var ring = "";

  /*BANNER array
   form:
     1 (4,7..) : description for the linked page
     2 (5,8..) : the image
     3 (6,9..) : the link URL
  */
  ba[1]="";
  ba[2]="http://vas.ppro.de/view/825979";
  ba[3]="http://vas.ppro.de/click/825979";

  ba[4]="";
  ba[5]="http://vas.ppro.de/view/825979";
  ba[6]="http://vas.ppro.de/click/825979";

  ba[7]="";
  ba[8]="http://vas.ppro.de/view/825979";
  ba[9]="http://vas.ppro.de/click/825979";


  //the number of USERS in your ring
  var users = 3;
  /* END OF CONFIG */

  var dsp = Math.round(Math.random()*users-1);

  while (dsp==-1&&ba[dsp*2+1]==null) {
    dsp = Math.round(Math.random()*users-1);
  }

  //display it!
  //alert(ba[2*3+1]);

  document.writeln('<center><font face="arial"><small>'+ba[(dsp*3)+1]);
  document.writeln('<a href="'+ba[(dsp*3)+3]+'" target="_blank"><font color="#808080"><img src="'+ba[(dsp*3)+2]+'" border=0></a>');
  document.writeln(ring+'');
}