// books.js

// this is an array for the random book display, with name, description, image, url, width and height
var books = new Array(new Array(), new Array(), new Array(), new Array(), new Array(),new Array());

books[0][0]="Nepal (Enchantnent of the World Series)";
books[1][0]="0516026429";
books[0][1]="Lonely Planet Nepali Phrasebook";
books[1][1]="0864423454";
books[0][2]="Nepali for Trekkers : Language Tape and Phrase Book";
books[1][2]="0898863112";
books[0][3]="Altitude Illness : Prevention & Treatment";
books[1][3]="089886402X";
books[0][4]="High Altitude : Illness and Wellness";
books[1][4]="0934802726";
books[0][5]="Lonely Planet Trekking in the Nepal Himalaya";
books[1][5]="0864425112";
books[0][6]="Lonely Planet Nepal";
books[1][6]="0864427042";
books[0][7]="Trekking in Nepal : A Travelers Guide";
books[1][7]="0898865352";
books[0][8]="Frommers Nepal";
books[1][8]="0028606272";
books[0][9]="Insight Pocket Guides Nepal";
books[1][9]="0887299199";
books[0][10]="Nepal Handbook";
books[1][10]="1566910412";
books[0][11]="Nepal Handbook";
books[1][11]="0844249246";
books[0][12]="The Nepal Trekker's Handbook";
books[1][12]="0914457284";
books[0][13]="The Rough Guide to Nepal";
books[1][13]="1858281903";
books[0][14]="Lonely Planet Nepal (French Edition)";
books[1][14]="2840700522";
books[0][15]="Nepal : Traveler's Companion";
books[1][15]="0762702311";
books[0][16]="Annapurna, First Conquest of an 8000-Meter Peak : (26,493 Feet)";
books[1][16]="1558215492";
books[0][17]="Caravans of the Himalaya";
books[1][17]="079222793X";
books[0][18]="Everest : The History of the Himalayan Giant";
books[1][18]="0898865344";
books[0][19]="Lonely Planet : Journeys : Shopping for Buddhas";
books[1][19]="086442471X";
books[0][20]="People Within a Landscape : A Collection of Images of Nepal";
books[1][20]="0898863287";
books[0][21]="Power Places of Kathmandu : Hindu and Buddhist Holy Sites in the Sacred Valley of Nepal";
books[1][21]="089281540X";
books[0][22]="The Violet Shyness of Their Eyes : Notes from Nepal";
books[1][22]="0934971358";
books[0][23]="Travelers' Tales Nepal";
books[1][23]="1885211147";
books[0][24]="Art of the Himalayas : Treasures from Nepal and Tibet";
books[1][24]="1555950663";
books[0][25]="Claiming the High Ground : Sherpas, Subsistence, and Environmental Change in the Highest Himalaya";
books[1][25]="0520076990";
books[0][26]="Kathmandu Valley";
books[1][26]="1570624046";
books[0][27]="Sherpas : Reflections on Change in Himalayan Nepal";
books[1][27]="0520067703";
books[0][28]="Sherpas : Reflections on Change in Himalayan Nepal";
books[1][28]="0520069412";

var x;
var booknow;

x = Math.floor((books[0].length-1)*Math.random()+1);

if ((x == 17)||(x == 24)||(x == 26)||(x == 7)||(x == 11)||(x == 3)||(x == 18)||(x == 27)){
	booknow="<P><TABLE WIDTH=120 CELLPADDING=2 CELLSPACING=0 BORDER=0><TR><TD WIDTH=120><CENTER><FONT FACE='Arial, Helvetica' SIZE=1><STRONG>Our featured book:</STRONG><BR><IMG SRC='/books/images/"+ books[1][x] +".jpg' WIDTH=100 HEIGHT=149 BORDER=0 ALT='This book is offered in association with Amazon.com. A percentage of its purchase value will go towards our helping Yangrima Boarding School.'><BR>"+books[0][x]+"<BR><a href='http://www.amazon.com/exec/obidos/ASIN/"+books[1][x]+"/friendsofsermath'>Buy from Amazon.com</a></CENTER></FONT></TD></TR></TABLE></P>";
}
else{
	booknow="<P><TABLE WIDTH=120 CELLPADDING=2 CELLSPACING=0 BORDER=0><TR><TD WIDTH=120><CENTER><FONT FACE='Arial, Helvetica' SIZE=1><STRONG>Our featured book:</STRONG><BR><IMG SRC='/books/images/"+ books[1][x] +".jpg' WIDTH=100 HEIGHT=149 BORDER=0 ALT='This book is offered in association with Amazon.com and Amazon.co.uk. A percentage of its purchase value will go towards our helping Yangrima Boarding School.'><BR>"+books[0][x]+"<BR><a href='http://www.amazon.co.uk/exec/obidos/ASIN/"+books[1][x]+"/friendsofserma07'>Buy from Amazon.co.uk</a><br><a href='http://www.amazon.com/exec/obidos/ASIN/"+books[1][x]+"/friendsofsermath'>Buy from Amazon.com</a></CENTER></FONT></TD></TR></TABLE></P>";
}
