


var adblock=new Array()
adblock[0]='<a href="http://www.acehobby.com/"><img src="../advert/images/208x53/AceHobby.jpg" class="ad-border" alt="Ace Hobby Distributers"></a>'
adblock[1]='<a href="http://www.rcmodels.org/csm//"><img src="../advert/images/208x53/Csm.jpg" class="ad-border" alt="CSM LTD"></a>'
adblock[2]='<a href="http://www.heliproz.com/"><img src="../advert/images/208x53/MavrikkBladesG5_600.jpg" class="ad-border" alt="Heliproz"></a>'
adblock[3]='<a href="http://www.duralitebatteries.com/"><img src="../advert/images/208x53/DuraliteBatteries.jpg" class="ad-border" alt="Duralite Batteries"></a>'
adblock[4]='<a href="http://www.dimensionengineering.com/index.html"><img src="../advert/images/208x53/DimensionEngineering.jpg" class="ad-border" alt="Dimension Engineering"></a>'
adblock[5]='<a href="http://www.rcatsystems.com/index.php"><img src="../advert/images/208x53/Rcats.jpg" class="ad-border" alt="RCATS"></a>' 
adblock[5]='<a href="http://www.maxxprod.com"><img src="../advert/images/208x53/MPI.jpg" class="ad-border" alt="MPI"></a>' 
function randomorder(targetarray, spacing) {
  var randomorder=new Array()
  var the_one
  var z=2 //change this number, see note 3 below 
  for (i=0;i<targetarray.length;i++)
  randomorder[i]=i

  while (z<targetarray.length) {
    the_one=Math.floor(Math.random()*targetarray.length)
    if (targetarray[the_one]!="_selected!"){
      document.write(targetarray[the_one]+spacing)
      targetarray[the_one]="_selected!"
      z++
    }
  }
}


/*1. To show the ads vertically, change the script on the page to


<script type="text/javascript">
randomorder(adblock, '<br><br>')
</script>

2. To show the ads horizontally change the script on the page to


<script type="text/javascript">
randomorder(adblock, ' ')
</script>

3. The following portion of the code determines how many ads to display


var randomorder=new Array()
var the_one
var z=9
for (i=0;i<targetarray.length;i++)
randomorder[i]="i"

The value of the "z" variable is very important. If you have 20 ads but only want to display 4 ads at a time, you would change the value of the "z" variable to "z=16" (without the quotes). This means that out of 20 ads, 16 will be hidden.*/