
		//The location of furniture pics goes here, if online this can just be "/furniture"
		var imageLocation = "furniture/wardrobes/image";

		//The other image location goes here, i.e. any pic not of furniture, like
		//the title or the button images, if online this can just be "/images"
		var animationStills = "images/";

		//The font in which the information text appears
		var font = "<font face=\"Cataneo BT\">";

	 	// Remember to change to number of pieces below if some are added or
	 	

	 	
	 	
	 	// taken out.

	 	var numberOfPieces = 21;
	 	var info = new Array (numberOfPieces);
	 	 info [1] = font + "<ul><li>original old antique pine three door <br>breakdown or knockdown wardrobe  <li>working lock and keys <li>click zoom for a larger picture or inside for an open view <li>height:85\"<li>width:72.5\"<li>depth:24\"<li>waxed  price :£850 ref 1 ";

 	    info [2] = font + "<ul><li>original three door breakdown wardrobe <br><li> breakdown<li>height:79\"<li>width:71.5\"<li>depth:23\"<li>waxed price:£850 ref 2  ";
		info [3] = font + "<ul><li>original three door  wardrobe   <br><li> breakdown<li> just been restored with shelves and hanging inside<br> click  inside or zoom for a bigger picture<br><li> height:81\"<li>width:71\"<li>depth:21\"<li>waxed price:£850 ref 3 ";
	 	info [4] = font + "<ul><li>one door breakdown <br>wardrobe  <li>height:73\"<li>width:46\"<li>depth:2\"<li>waxed and  polished price:£550 ref 4  ";
        info [5] = font + "<ul><li>triple wardrobe with shelves and hanging  <li>height:78\"<li>width:73\"<li>depth:24\"<li>waxed and polished price:£795 ref 5";
        info [6] = font + "<ul><li>original  two door breakdown wardrobe  click on inside for an open view <li>height:83\"<li>width:55\"<li>depth:22\"<li>waxed and  polished price :£650    ref 6  ";
        info [7] = font + "<ul><li> original restored  two door wardrobe <br>click inside view<li> breakdown means they come apart there is a link (breakdown) on the other side of the page which shows how<li>height:77\"<li>width:55\"<li>depth:22\"<li>waxed and  polished price:£650 ref 7 ";
        info [8] = font + "<ul><li>original two door wardrobe <li>click zoom for a larger picture or inside for an open view <li> breakdown<li>height:76\"<li>width:52\"<li>depth:22\"<li> waxed price:£650 ref 8 ";
        info [9] = font +  "<ul><li>nice original two door  wardrobe   <li> breakdown<li>height:78\"<li>width:56\"<li>depth:23\"<li>waxed and  polished price:£650 ref 9  ";
        info [10] = font + "<ul><li>original two door wardrobe <li> breakdown<li>height:84\"<li>width:68\"<li>depth:22\"<li>waxed price :£695  ref 10 ";
        info [11] = font + "<ul><li>original two door static wardrobe <li>height:75\"<li>width:45\"<li>depth:20.5\"<li>waxed price:£485 ref 11 ";
        info [12] = font + "<ul><li><li>original triple wardrobe all hanging  click zoom for a better view <br><li>height:78\"<li>width:66\"<li>depth:24\"<li>waxed and  polished price: £775 ref 12 ";
		info [13] = font + "<ul><li> two door breakdown wardrobe <li>height:81\"<li>width:61.5\"<li>depth:22\"<li>waxed and polished price:£695  ref 13 ";
		info [14] = font + "<ul><li> two door breakdown wardrobe click zoom for a larger picture or inside for an open view <li>height:79.5\"<li>width:56\"<li>depth:20\"<li>  price:£650 ref 14  ";
	 	info [15] = font + "<ul><li><li>two door wardrobe <br> breakdown  <li>height:74\"<li>width:44\"<li>depth:24\"<li>waxed and  polished price  :£625 ref 15 ";
        info [16] = font + "<ul><li>original two  door flat top split wardrobe <li>height:73\"<li>width:48.5\"<li>depth:21\"<li> price:£550 ref 16 ";
        info [17] = font + "<ul><li>two  door breakdown wardrobe <li>height:77\"<li>width:53\"<li>depth:21.5\"<li>waxed price:£625  ref 17  ";
        info [18] = font + "<ul>two door  breakdown wardrobe <li>height:78\"<li>width:51\"<li>depth:24\"<li>price: waxed £650 unwaxed £595 ref 18  ";
        info [19] = font + "<ul><li>original two door wardrobe  \"breakdown\" <br>just been restored <li>height:78\"<li>width:62\"<li>depth:20\"<li>waxed price:£650 ref 19 ";
        info [20] = font + "<ul><li>original two door wardrobe  \"breakdown\" <br>totaly original just been restored <li>height:72\"<li>width:43.5\"<li>depth:21\"<li>waxed  price:£625 ref 20 ";
        info [21] = font + "<ul><li>original two door wardrobe  \"breakdown\" <br>totaly original just been restored with shelves and hanging inside<li>height:76.5\"<li>width:55.5\"<li>depth:24.5\"<li>waxed  price:£650 ref 21  ";
        
	 	// The number of items in the gallery
	 	maxPic = numberOfPieces;

                var alt = new Array (numberOfPieces);

		alt[1] = "antique pine wardrobe";
		alt[2] = "antique pine wardrobe";
		alt[3] = "antique pine wardrobe";
        alt[4] = "antique pine wardrobe";
        alt[5] = "antique pine wardrobe";
        alt[6] = "antique pine wardrobe";
        alt[7] = "antique pine wardrobe";
        alt[8] = "antique pine wardrobe";
        alt[9] = "antique pine wardrobe";
        alt[10] = "antique pine wardrobe";
        alt[11] = "antique pine wardrobe";
        alt[12] = "antique pine wardrobe";
        alt[13] = "antique pine wardrobe";
        alt[14] = "antique pine wardrobe";
        alt[15] = "antique pine wardrobe";
        alt[16] = "antique pine wardrobe";
        alt[17] = "antique pine wardrobe";
        alt[18] = "antique pine wardrobe";
           alt[19] = "antique pine wardrobe";
           alt[20] = "antique pine wardrobe";
            alt[21] = "antique pine wardrobe";
		count = 1;
		function next() {
			count++;
			if (count > maxPic) {
				count = 1;
			}
			eval("document.p.src=\"" + imageLocation + count + ".jpg\"");
			eval("document.p.alt=\"" + alt[count] + "\"");
                        target = document.getElementById("info");
                        target.innerHTML=info[count];
		}

		function back() {
			count--;
			if (count <= 0) {
				count = maxPic;
			}
                        eval("document.p.src=\"" + imageLocation + count + ".jpg\"");
                        eval("document.p.alt=\"" + alt[count] + "\"");
			target = document.getElementById("info");
                        target.innerHTML=info[count];
		}

		function link() {
			window.open(document.p.src,'','width=400,height=500,scrollbars=yes,menubar=no,resizable=yes,toolbar=no,location=no,status=no');
		}

		function alternative() {
                        var stringIndex = document.p.src.indexOf("jpg") - 1;
			var altImage = document.p.src.substring(0,stringIndex);
			window.open(altImage + "Alt.jpg",'','width=400,height=500,scrollbars=yes,menubar=no,resizable=yes,toolbar=no,location=no,status=no');
		}

  		function changeURL(target){
 			document.URL=target;
		}

                function checkCookie(name)
                {
                       var dc = document.cookie;
		       var prefix = name + "=";
                       var begin = dc.indexOf("; " + prefix);
                       if (begin == -1)
                       {
                           begin = dc.indexOf(prefix);
                           if (begin != 0) return null;
                       }
                       else
                       {
                           begin += 2;
                       }
                       var end = document.cookie.indexOf(";", begin);
                       if (end == -1)
                       {
                           end = dc.length;
                       }

                       var index = unescape(dc.substring(begin + prefix.length, end));

                       eval("document.p.src=\"" + imageLocation + index + ".jpg\"");
		       eval("document.p.alt=\"" + alt[index] + "\"");
		       target = document.getElementById("info");
                       target.innerHTML=info[index];
                }

		function deleteCookie(name, path, domain)
		{
		    if (getCookie(name))
		    {
		        document.cookie = name + "=" +
		            ((path) ? "; path=" + path : "") +
		            ((domain) ? "; domain=" + domain : "") +
		            "; expires=Thu, 01-Jan-70 00:00:01 GMT";
		    }
		}
