var bookNo=new Array();
var title=new Array();
var desc=new Array();
var ptr=new Array();

bookNo[0]="1419552791";
title[0]="Kaplan TOEFL iBT with CD-ROM 2008-2009";
desc[0]="Includes 4 practice tests on CD-ROM in iBT format; audio CD and transcripts of authentic-language conversations for listening comprehension; 8 comprehensive chapters of reading, writing, listening, and speaking practice; hundreds of strategies for answering  integrated skills questions.";

bookNo[1]="0764173693";
title[1]="American Accent Training (Book and Audio CD)";
desc[1]="Ann Cook. Through extensive intonation and pronunciation exercises, students learn how to speak with a standard American Accent. At the same time, listening comprehension improves dramatically. Supplementary materials included detailed nationality guides for eight languages (Chinese, Japanese, Indian, Spanish, French, German, Russian and Korean), access to a comprehensive website, and referral to a qualified telephone analyst for an individual diagnostic speech analysis.";

bookNo[2]="0521537622";
title[2]="English Grammar In Use with Answers and CD ROM";
desc[2]="Raymond Murphy. A Self-study Reference and Practice Book for Intermediate Students of English. This fully updated version of the world's bestselling grammar title includes extra practice on the interactive CD-ROM that accompanies the book.";

bookNo[3]="0470222689";
title[3]="The Blue Book of Grammar and Punctuation";
desc[3]="Jane Straus. The Blue Book of Grammar and Punctuation is filled with easy-to-understand rules,real-world examples, dozens of reproducible exercises, and pre- and post-tests. Valuable for anyone who takes tests or writes reports, letters, Web pages, e-mails, or blogs, The Blue Book offers instant answers to everyday English usage questions.";

bookNo[4]="0764177494";
title[4]="Pronounce It Perfectly in English with Audio CDs";
desc[4]="Jean Yates. ESL students, TOEFL and TOEIC test takers, and all others for whom English is a second language and who want to improve their pronunciation will find this book and compact disc combination especially instructive. The new second edition presents a significantly increased number of exercises, all of them providing practice in every sound that is specific to American-style English. Emphasis is on stress and intonation patterns in conversational English. Recognition of these patterns is essential to fluent speech and listening comprehension.";

bookNo[5]="0194700593";
title[5]="The Oxford Picture Dictionary";
desc[5]="Jayme Adelson-Goldstein, Norma Shapiro. A comprehensive, flexible, and up-to-date vocabulary reference for English language learning.";

bookNo[6]="0972530037";
title[6]="Speak English Like an American (Book & Audio CDs)";
desc[6]="Amy Gillett. If you already speak English, but now would like to start speaking even better, then Speak English Like an American is for you. This book and CD set is designed to help native speakers of any language speak better English. Over 300 of the most-used American English idioms and phrases are presented in engaging dialogue, with plenty of usage examples, illustrations, and lots of exercises - with convenient answer key - to help you learn the material. The audio CD includes all of the dialogues. Ideal for self-study. A fun and effective way to improve your conversational English!";

bookNo[7]="0130976059";
title[7]="Understanding and Using English Grammar";
desc[7]="Betty Schrampfer Azar. The classic text for intermediate through advanced students provides a clear, visual presentation of grammar in terms easily understandable to students. Grammar explanations teach situationally appropriate English, both formal and colloquial and make distinctions between British and American usage. Each presentation is followed by graded activities that promote speaking, listening, and writing skills.";

bookNo[8]="1887902899";
title[8]="Common Errors in English Usage";
desc[8]="Paul Brians. Mixed-up, mangled expressions; foreign-language faux pas; confused and confusing terms; commonly mispronounced words—they’re all explained in this useful and entertaining guide.";

bookNo[9]="1412020034";
title[9]="A Year In the Life of an ESL Student: Idioms and Vocabulary You Can't Live Without ";
desc[9]="Edward J. Francis. The book follows Andre, a student from Switzerland, as he spends a year completing his English studies at a private language school in North America: from his arrival at the airport, to getting around the city, to attending school, to hanging out with his classmates. All of the situations and corresponding language are real and directly relevant to adult ESL students. So join Andre on his one-year adventure. It's about to begin just outside the airport terminal.";

function bookAds(numOfAds) {
  numbooks=bookNo.length;
  for (i=0; i<numbooks; i++) {
    ptr[i]=i;
  }
  document.write('<p align="left"><strong>Our recommendations to help your English</strong></p>');
  for (i=0; i<3; i++) {
    swap=Math.floor(numbooks*Math.random());
    temp=ptr[i];
    ptr[i]=ptr[swap];
    ptr[swap]=temp;
  }
  for (i=0; i<3; i++) {
    document.write('<p><a href="http://www.amazon.com/exec/obidos/ASIN/'+bookNo[ptr[i]]+'/ref=nosim/newagespiritu-20" target="_blank">');
    document.write('<strong>'+title[ptr[i]]+'</strong></a> ');
    document.write(desc[ptr[i]]+'</p>');
  }
    document.write('<p>More books on '+
    '<a href="http://www.amazon.com/exec/obidos/redirect?tag=newagespiritu-20&path=tg/browse/-/497566" target="_blank"><strong>business English</strong></a>, '+
    '<a href="http://www.amazon.com/exec/obidos/redirect?tag=newagespiritu-20&path=tg/browse/-/497576" target="_blank"><strong>grammar</strong></a>, '+
    '<a href="http://www.amazon.com/exec/obidos/redirect?tag=newagespiritu-20&path=tg/browse/-/497596" target="_blank"><strong>listening comprehension</strong></a>, '+
    '<a href="http://www.amazon.com/exec/obidos/redirect?tag=newagespiritu-20&path=tg/browse/-/497578" target="_blank"><strong>idioms and slang</strong></a>, '+
    '<a href="http://www.amazon.com/exec/obidos/redirect?tag=newagespiritu-20&path=tg/browse/-/11655" target="_blank"><strong>TOEFL and TOEIC</strong></a>, '+
    '<a href="http://www.amazon.com/exec/obidos/redirect?tag=newagespiritu-20&path=tg/browse/-/497584" target="_blank"><strong>vocabulary</strong></a>.</p>');
}