/*
Random Image Link Script
By Website Abstraction (http://www.wsabstract.com)
and Java-scripts.net (http://www.java-scripts.net)
*/

function random_imglink(){

  var adcode=new Array()
  //specify random images below. You can have as many as you wish
  adcode[1]="0756602807"
  adcode[2]="0753452545"
  adcode[3]="0375836977"
  adcode[4]="0312492472"


  
  //specify corresponding links below
  var adtitle=new Array()
  adtitle[1]="My First Colors Board Book"
  adtitle[2]="White Rabbit's Color Book"
  adtitle[3]="A Color of His Own"
  adtitle[4]="Bright Baby Colors"


  //specify corresponding links below
  var adescription=new Array()
  adescription[1]="Lifelike photos of flowers, fruits and vegetables, animals, toys, and children dressed in colorful costumes illustrate 'My First Colors Board Book'."
  adescription[2]="Cuddly rabbits help youngsters learn about the world in a Kingfisher-published series by Alan Baker."
  adescription[3]="Every animal has a color of its own. 'Parrots are green, elephants are gray, pigs are pink.' But chameleons change color wherever they go."
  adescription[4]="Perfect for babies and toddlers. The combination of colorful pictures and simple words help build a child's vocabulary."




  var ry=Math.floor(Math.random()*adcode.length)

  if (ry==0)
     ry=1
     document.write('<a href="http://www.amazon.com/exec/obidos/ASIN/'+adcode[ry]+'/littlefingers" target="_blank"><img src="../rotation/'+adcode[ry]+'.gif" alt="'+adtitle[ry]+'border="0" align="top"><\/a><\/TD>');
     document.write('<td align="left" valign="bottom">');
     document.write('<div class="adtop">If you liked our online storybook<br>take a look at this from Amazon...<\/div>');
     document.write('<div class="adheadline"><a href="http://www.amazon.com/exec/obidos/ASIN/'+adcode[ry]+'/littlefingers" target="_blank">'+adtitle[ry]+'<\/a><\/div>')
     document.write('<div class="adtext">'+adescription[ry]+'<\/div>');
   
}

