/*
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]="0060775858"
  adcode[2]="B000CC49GW"
  adcode[3]="0394856406"
  adcode[4]="141698447X"
  
  
  //specify corresponding links below
  var adtitle=new Array()
  adtitle[1]="Goodnight Moon"
  adtitle[2]="Bears"
  adtitle[3]="The Berenstain Bears and the Truth"
  adtitle[4]="Chicka Chicka ABC"
  

  //specify corresponding links below
  var adescription=new Array()
  adescription[1]="Perhaps the perfect children's bedtime book, Goodnight Moon is a short poem of goodnight wishes from a young rabbit preparing for--or attempting to postpone--his own slumber."
  adescription[2]="There's bears, bears everywheres! On the stairs and under chairs! Follow the rascally Max from Where the Wild Things Are in this new adventure about...Bears!"
  adescription[3]="When Brother and Sister Bear accidentally break Mama's favorite lamp, their little lie grows bigger and bigger, until Papa Bear helps them find the words that set everything right again."
  adescription[4]="A rollicking alphabet chant for the youngest child! All the letters of the alphabet race up the coconut tree in this colorful board book version of the award-winning Chicka Chicka Boom Boom."




  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>');
   
}

