var bookNo=new Array();
bookNo[0]="0807743305";
bookNo[1]="013042319X";
bookNo[2]="0130484032";
bookNo[3]="0131136828";
bookNo[4]="0205380891"; 
bookNo[5]="0787960829";
bookNo[6]="0130979430";
bookNo[7]="0415256798";
bookNo[8]="0787960349";
bookNo[9]="1930708289";
bookNo[10]="1403960852";
bookNo[11]="0787960519";
bookNo[12]="0471203025";
bookNo[13]="0071362681";
bookNo[14]="1562863290";
bookNo[15]="0787956198";
bookNo[16]="0971508038";
bookNo[17]="1412904897";
bookNo[18]="1562863002";
bookNo[19]="0071418709";
bookNo[20]="0971508046";
bookNo[21]="1932159045";
bookNo[22]="0205375642";
bookNo[23]="0787971472";
bookNo[24]="0874257174";
numBooks=bookNo.length;

var textLink=new Array();
textLink[0]='<a href="http://www.amazon.com/exec/obidos/redirect?tag=newagespiritu-20&path=tg%2Fbrowse%2F-%2F4118%2Fref%3Ddp_brlad_entry">Web-Based Education</a>';
textLink[1]='<a href="http://www.amazon.com/exec/obidos/external-search?search-type=ss&tag=newagespiritu-20&keyword=e%20learning&mode=books">e-learning</a>';
textLink[2]='<a href="http://www.amazon.com/exec/obidos/external-search?search-type=ss&tag=newagespiritu-20&keyword=%20online%20learning%20&mode=books">online learning</a>';
textLink[3]='<a href="http://www.amazon.com/exec/obidos/external-search?search-type=ss&tag=newagespiritu-20&keyword=%20educational%20technology%20&mode=books">educational technology</a>';
textLink[4]='<a href="http://www.amazon.com/exec/obidos/external-search?search-type=ss&tag=newagespiritu-20&keyword=%20learning%20technology%20&mode=books">learning technology</a>';
textLink[5]='<a href="http://www.amazon.com/exec/obidos/external-search?search-type=ss&tag=newagespiritu-20&keyword=%20instructional%20technology%20&mode=books">instructional technology</a>';
numTLinks=textLink.length;

function bookads(numOfAds) {
  document.write('<div align="center">');
  document.write('<p style="font-size:12px; margin-bottom:2px"><strong>Suggested reading</strong></p>');
  for (i=0; i<numOfAds; i++) {
    swap=Math.round((numBooks-1)*Math.random());
	temp=bookNo[i];
	bookNo[i]=bookNo[swap];
	bookNo[swap]=temp;
  }
  for (i=0; i<numOfAds; i++) {
    document.write('<br><iframe src="http://rcm.amazon.com/e/cm?t=newagespiritu-20&o=1&p=8&l=as1&asins=');
	document.write(bookNo[i]);
    document.write('&fc1=000000&IS2=1&lc1=0000ff&bg1=ffffff&bc1=&lt1=_blank&f=ifr" width="120" height="240" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><br>');
  }
  document.write("<p><strong>More books on<br>"+textLink[Math.round((numTLinks-1)*Math.random())]+"<strong></p>");
  document.write("</div>")
}
