/*
    rezepte.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]="Vegetarische Maultaschen";
  ba[2]="/files/Image/done/maultaschen-vegetarisch.jpg";
  ba[3]="/static/55/vegetarische_maultaschen.html";

  ba[4]="Mostbowle";
  ba[5]="/files/Image/done/mostbowle.jpg";
  ba[6]="/static/98/mostbowle.html";
  
  ba[7]="Nudelteig";
  ba[8]="/files/Image/done/nudelteig.jpg";
  ba[9]="/static/42/nudelteig.html";
    
  ba[10]="Schwäbischer Wurstsalat";
  ba[11]="/files/Image/done/wurstsalat.jpg";
  ba[12]="/static/12/schwaebischer_wurstsalat.html";
  
  //the number of USERS in your ring
  
  var users = 4
  
  /* END OF CONFIG */

  var dsp = Math.round(Math.random()*users-1);

  while (dsp==-1&&ba[dsp*3+1]==null) {
    dsp = Math.round(Math.random()*users-1);
  }

  //display it!
  //alert(ba[2*3+1]);

  document.writeln('<left><font face="Candara, Arial, Helvetica, sans-serif"><font size="3" color="#006666">'+ba[(dsp*3)+1]);
  document.writeln('<br><a href="'+ba[(dsp*3)+3]+'"><img src="'+ba[(dsp*3)+2]+'" border="0"></a><br>');
  document.writeln(ring+'</font></font></left>');
}
