/**
 * Image Background Replacer via CSS - http://www.qasimamad.co.uk/
 *
 * Image Background Replacer via CSS (c) 2011 Qasim Amad
 * http://www.qasimamad.co.uk
 * This Source may be used for personal and commercial use as long at the author (Qasim Amad) and the website 
   (http://www.qasimamad.co.uk) is referenced 
 *
*/

function random_imglink(){
  var myimages=new Array()
 
  myimages[1]="images/backgrounds/bg.jpg"
  myimages[2]="images/backgrounds/applepies.jpg"
  myimages[3]="images/backgrounds/Chocchip-.jpg"
  myimages[4]="images/backgrounds/CherryBakewells.jpg"
  

    var ry=Math.floor(Math.random()*myimages.length)

  if (ry==0)
     ry=1
     document.write('<div class="container" style="width:800px;min-height: 	499px;margin-right:auto;margin-left:auto;margin-top:8%;background-image: url('+myimages[ry]+');background-repeat: no-repeat;">')
}

  random_imglink()

/**
 * Image Background Replacer via CSS - http://www.qasimamad.co.uk/
 *
 * Image Background Replacer via CSS (c) 2011 Qasim Amad
 * http://www.qasimamad.co.uk
 * This Source may be used for personal and commercial use as long at the author (Qasim Amad) and the website 
   (http://www.qasimamad.co.uk) is referenced 
 *
*/

