/* slides p.96 + caption p330 */

window.onload = initLinks;

var myPix = new Array (
"shop/poster.jpg",
"shop/shelves.jpg",
"shop/welcome.jpg",
"shop/cards.jpg",
"shop/copier.jpg",
"shop/children.jpg",
"shop/sit.jpg",
"shop/bargin.jpg",
"shop/browse.jpg",
"shop/order.jpg");

var info = new Array (
"Christmas, birthdays or just a suprise gift to make someone smile",
"Books for a light hearted look at life or deep theological study",
"Friendly and helpful people who are familiar with what\'s in stock",
"Cards for every occasion with and without overtly Christian themes",
"Reasonably priced b/w and colour photocopier facilities available",
"Games, puzzles, colouring books, badges, stickers and pens",
"Relax. Cold snacks and a variety of drinks available in store",
"Upstairs there are many bargains with some books under £1",
"You\'re welcome to browse, take your time to see what\'s on offer",
"Check stock or order by phone. Email and internet ordering soon");

var thisPic = 0;

function initLinks(){
document.getElementById("prevLink").onclick = processPrevious;
document.getElementById("nextLink").onclick = processNext;}

function processPrevious(){
 if(thisPic==0) {thisPic = myPix.length;}
 thisPic--;
 document.getElementById("myPicture").src=myPix[thisPic];
 document.getElementById("caption").innerHTML=info[thisPic];
 return false;}
 
function processNext(){
 thisPic++;
 if(thisPic == myPix.length) {thisPic=0;}
  document.getElementById("myPicture").src=myPix[thisPic];
	document.getElementById("caption").innerHTML=info[thisPic];
 return false;}
 

 
/* select magazine alert box */ 
function selectmag(){
				 mag="SELECT is a full colour 50 page monthly magazine\n\r"
				 mag+= "packed with recommended books, CDs and DVDs. \n\r"
				 mag+= "You are bound to find something to entertain, educate\n\r"
				 mag+= "or inspire you. Collect yours from the shop soon."
				 alert(mag)}
 
