<!--Random Image Loader With Links
<!--Programmed by William Tinney
<!--(C) 1999 TinneyCorp, Ltd.
<!--All rights reserved worldwide.

var sid="doesitmatterwhatthisis";

//--- Array for Netscape 2.0x and 3.0x
function MakeArray(n) 
{ this.length = n;
  
  for (var i = 1; i <= n; i++) 
  { this[i] = 0 }
  return this
}

//this produces a randomly generated HTML code that is inserted on your page 
function RandomNumber(sid) 
{ var today = new Date();
  var num= Math.abs(Math.sin(today.getTime()/1000));
  return num;  
}

function TipWizard() 
{ //tailor to the browser capabilities
  var appname= navigator.appName;             
  var appversion=parseInt(navigator.appVersion);

  if (appname == "Netscape" && appversion >= 3)
  { //( Netscape 3.0 or higher)
    var testNum = Math.random(); 
  }
  else 
  { //all others use this call       
    var testNum = RandomNumber(sid);
  }

  //remember to change this according to the 
  //number of tips in the array below
  var NoOfTips=11;

  //-- tips array --
  var x=0;
  var y=0;

  // the annoying quote character
  var q = '"'; 

  var images = new MakeArray(NoOfTips);
  images[0]=NoOfTips;

  var links = new MakeArray(NoOfTips);
  links[0]=NoOfTips;

  var messages = new MakeArray(NoOfTips);
  messages[0]=NoOfTips;

  var where = new MakeArray(NoOfTips);
  where[0]=NoOfTips;

  //load the images array with the name and
  //location of the image
  images[1]="/images/web/radio1.gif";
  images[2]="/images/web/radio2.gif";
  images[3]="/images/web/radio4.gif";
  images[4]="/images/web/radio6.jpg";
  images[5]="/images/web/radio7.gif";
  images[6]="/images/web/radio8.jpg";
  images[7]="/images/web/radio9.gif";
  images[8]="/images/web/bannerlra.jpg";
  images[9]="/images/web/banners/english/bannercensoeng.jpg";
  images[10]="/images/web/banners/english/participaeng.jpg";
  images[11]="/images/web/banners/english/anunciateeng.gif";


  //load the links array with the name and
  //link associated with the image
  links[1]="http://welcome.to/planetax";
  links[2]="mailto:judith8739@aol.com";
  links[3]="mailto:elgatopardo@hotmail.com";
  links[4]="http://www.cse.psu.edu/~molinero/rock.html";
  links[5]="http://www.zonagirante.com";
  links[6]="http://www7.ewebcity.com/agaveazul/";
  links[7]="http://chilena.vicio.org";
  links[8]="http://www.latinorockalliance.com";
  links[9]="http://www.re-usa.com/censorockeng.htm";
  links[10]="http://www.re-usa.com/quizeng.htm";
  links[11]="mailto:info@re-usa.com";


  //load the messages array with the correct message
  messages[1]="Planeta X";
  messages[2]="El Antro";
  messages[3]="La Plaga Productions";
  messages[4]="Penn State Student Radio";
  messages[5]="ZonaGirante";
  messages[6]="Revolución";
  messages[7]="Sound of Chile";
  messages[8]="Latino Rock Alliance";
  messages[9]="CensoRock 2000";
  messages[10]="Play and Win";
  messages[11]="Advertise in RE-USA.COM - Click Here!";


  //which window to open
  where[1]="_self";
  where[2]="_self";
  where[3]="_self";
  where[4]="_blank";
  where[5]="_blank";
  where[6]="_blank";
  where[7]="_blank";
  where[8]="_blank";
  where[9]="_self";
  where[10]="_self";
  where[11]="_self";


  //calculate the tip to show
  y=1/NoOfTips;
    
  for(x= 1; x <= NoOfTips; x++) 
  { while(sid!="doesitmatterwhatthisis"){};
    if ( testNum > ( NoOfTips  - x ) * y ) 
    { document.write("<a target="+q+where[x]+q+" href="+q+links[x]+q+"><img src="+q+images[x]+q+" alt="+q+messages[x]+q+" border="+q+"0"+q+"></a>");
      break; 
    }
  }	
}

TipWizard();
