// Home Page onMouseOver Image gives different text.
	 function nav(page){
	 document.getElementById('stylebox'+page+'').style.border = "solid 2px brown";
		 
	 var describe = new Array(6);
	 describe[0]= "Wicker Basket&quot; £40. Popular design as a gift or for your own home.";
	 describe[1]= "Posy&quot; £20. The finishing touch for a special occasion.";
	 describe[2]= "Tabel Display&quot; £75. Large arrangement suitable for a wedding.";
	 describe[3]= "Tumbler&quot; £25. Starburst spray in a modern design glass base.";
	 describe[4]= "Tulip&quot; £15(each). Fits beautifully either side of focal point.";
	 describe[5]= "Bouquet in a Box&quot; £40. Popular design. Choose your own style.";
			 
	 switch (page){ //not pure number not a string value of a number
	 case 1 : document.getElementById('describe_home').innerHTML='&quot;' + describe[0]; break;
	 case 2 : document.getElementById('describe_home').innerHTML='&quot;' + describe[1]; break;
	 case 3 : document.getElementById('describe_home').innerHTML='&quot;' + describe[2]; break;
	 case 4 : document.getElementById('describe_home').innerHTML='&quot;' + describe[3]; break;
	 case 5 : document.getElementById('describe_home').innerHTML='&quot;' + describe[4]; break;
	 case 6 : document.getElementById('describe_home').innerHTML='&quot;' + describe[5]; break;
	 default : alert (page + ": error - please report it to Janina. Thank you.");
	 } // end switch
	 } // end function

// Home Page onMouseoff (get rid of the highlighted box)
	 function offbox(num){
	 document.getElementById('stylebox'+num+'').style.border = "dotted 2px green";}
			 
// Catalogue page
// pre-load the images and their descriptions
	 function loadimages(){
	 pic0 = new Image ; pic0.src="../catalogue/cat_0.jpg";
	 pic1 = new Image ; pic1.src="../catalogue/cat_1.jpg";
	 pic2 = new Image ; pic2.src="../catalogue/cat_2.jpg";
	 pic3 = new Image ; pic3.src="../catalogue/cat_3.jpg";
	 pic4 = new Image ; pic4.src="../catalogue/cat_4.jpg";
	 pic5 = new Image ; pic5.src="../catalogue/cat_5.jpg";
	 pic6 = new Image ; pic6.src="../catalogue/cat_6.jpg";
	 pic7 = new Image ; pic7.src="../catalogue/cat_7.jpg";
	 pic8 = new Image ; pic8.src="../catalogue/cat_8.jpg";
	 pic9 = new Image ; pic9.src="../catalogue/cat_9.jpg";
	 pic10 = new Image ; pic10.src="../catalogue/cat_10.jpg";
	 pic11 = new Image ; pic11.src="../catalogue/cat_11.jpg";
	 
	 pictures = new Array (pic0,pic1,pic2,pic3,pic4,pic5,pic6,pic7,pic8,pic9,pic10,pic11);
	 }
	
	 var myPix = new Array(12);
	 myPix[0]="245,320,Wicker basket base. Easy to carry. Approx 40cm wide. £40. Quote: A";
	 myPix[1]="215,320,Hand or table posy. The finishing touch. Approx 45cm. £25. Quote: B";
	 myPix[2]="250,320,Main display for a wedding table. A huge 1 metre long £75. Quote: C";
	 myPix[3]="244,320,Colours and flowers to your preference. 45cm tall. £40. Quote: D";
	 myPix[4]="320,279,Ideal display for a number of uses. 30cm tall. £15 (each). Quote: E";
	 myPix[5]="206,320,This show will fit any shape of base. Approx 50cm tall. £40. Quote: F";
	 myPix[6]="320,275,One example of the tumbler base. Approx 30cm tall. £30. Quote: G";
	 myPix[7]="320,213,Round tumbler for tall and narrow display. Approx 35cm. £35. Quote: H";
	 myPix[8]="320,202,Example of a special order taken from a photo. £25. Quote: I";
	 myPix[9]="320,237,Silk flowers adapt to unusual designs. Approx 50cm £50. Quote: J";
	 myPix[10]="320,277,Vibrant colours in any base. Approx 45cm. £45. Quote: K";
	 myPix[11]="224,320,Wide rather than tall. Approx 45cm wide. £45. Quote: L";

	 var thisPic = 0;
	 var count = 0;
	 while (count<12){
	 myPix[count]=myPix[count].split(",");
	 count++;}
	 
	 function checkload(){
	 if (pic11.complete == false){
	 document.getElementById("describe_home").innerHTML="Please wait: loading images for Catalogue";
	 setTimeout("checkload()", 100);}
	 else {document.getElementById("describe_home").innerHTML="Welcome";}
	 }
	 
	 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 = pictures[thisPic].src;
	 document.getElementById("myPicture").height = myPix[thisPic][0];
	 document.getElementById("myPicture").width = myPix[thisPic][1];
	 
	 document.getElementById("describe_catalogue").innerHTML = myPix[thisPic][2];
	 return false;}

	 function processNext() {
	 thisPic++;
	 if (thisPic == myPix.length) {thisPic = 0;}
 	 document.getElementById("myPicture").src = pictures[thisPic].src;
	 document.getElementById("myPicture").height = myPix[thisPic][0];
	 document.getElementById("myPicture").width = myPix[thisPic][1];
	 document.getElementById("describe_catalogue").innerHTML = myPix[thisPic][2];
	 return false;}
	
	
// OnLoad set show the index page
	 function loadindexpage(){
	 document.getElementById('index').style.display = "block";}
	 
// hide or display the different "pages"	 
	 function showPage(newPage, oldPage){
	 var objPage = null;
	 document.getElementById(oldPage).style.display = "none";
	 // if (objPage) objPage.style.display = "none"; // set current page to hide
	 objPage = document.getElementById(newPage);// set new page to show
	 objPage.style.display = "block";
	 initLinks();
	 } // end function	 
	 
			 
