
/*
* Ultimate Random Ads (http://javascript.internet.com/miscellaneous/random-ads.html)
* 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.
* Visit http://javascript.internet.com.
*/

var adblock=new Array()

adblock[0]='<a href="/19th-century-french-meridienne-i-22016-s-40.html"><img src="/img/home/antiques/pam.jpg" width="132" height="97" class="imgBorder" alt="Malleries"></a>'

adblock[1]='<a href="/fine-art-c-100-s-0.html"><img src="/templates/default/images/home/12/8.jpg" width="132" height="97" class="imgBorder" alt="Malleries"></a>'

adblock[2]='<a href="/italian-circa-1540-brocaded-silk-velvet-with-raised-metal-boucle-i-15572-s-120.html"><img src="/templates/default/images/home/12/3.jpg" width="132" height="97" class="imgBorder" alt="Malleries"></a>'

adblock[3]='<a href="/19th-century-triple-armoire-in-rosewood-i-4673-s-88.html"><img src="/img/home/antiques/circa_1.jpg" width="132" height="97" class="imgBorder" alt="Malleries"></a>'

adblock[4]='<a href="/italian-grotesque-style-recamier-i-21378-s-88.html"><img src="/img/home/antiques/circa_2.jpg" width="132" height="97" class="imgBorder" alt="Malleries"></a>'

adblock[5]='<a href="/napoleon-iii-slipper-chairs-i-22567-s-248.html"><img src="/img/home/antiques/mjh.jpg" width="132" height="97" class="imgBorder" alt="Malleries"></a>'

function randomorder(targetarray, spacing) {
  var randomorder=new Array()
  var the_one
  var z=3
  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++
    }
  }
}
