
		//The location of furniture pics goes here, if online this can just be "/furniture"
		var imageLocation = "furniture/dressers/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\">";

	 	// The information that matches the above images, i.e. info[1] is
	 	// the text that appears next to image i1 above. If you want to add
	 	// a new line of text to these just put another <br> (thats a break
	 	// line tag, to start a new line)followed by the text anywhere in the
	 	// strings below, as long as it is within the "quotes.

	 	// Remember to change to number of pieces below if some are added or
	 	// taken out.

	 	var numberOfPieces = 9;

	 	var info = new Array (numberOfPieces);
		info [1] = font +  "<ul><li>original old break front antique pine dresser<br>splits in the middle and there is a shelf inside the base also two serving  boards that slide out<li>height:77\"<li>width:58.5\"<li>depth:27\"<li>ref1  price:£695  sold  ";


                info [2] = font + "<ul><li>original restored glazed dresser<li>there are internal shelves top and bottom <br> its a restored dresser so the feet and some of the locks have been replaced <li>height:78\"<li>width:68\"<li>depth:20\" <li>ref 2 price:£745 now £695  sold";
	 	info [3] = font + "<ul><li>three door dresser base <li>height:37\"<li>width:58\"<li>depth:25\"<li>ref 3 finished and waxed price:£495";
	 	info [4] = font + "<ul><li><li>two door dresser base <li>height:36\"<li>width:46\"<li>depth:23\"<li>ref 4 price:£295 sold";
	 	info [5] = font + "<ul><li>painted distressed dresser/cabinet <li>height:83\"<li>width:48\"<li>depth:16\"<li>ref 5 price:£495 now 395 " ;
	 	info [6] = font + "<ul><li>bookcase <li>height:74\"<li>width:45\"<li>depth:18\"<li><li>ref 6 price:£460 sold";
	 	info [7] = font + "<ul><li>original  glazed dresser with spice drawers  <li>height:76\"<li>width:49\"<li>depth:23\" ref 7 £645 now £620 sold  ";
                info [8] = font + "<ul><li>restored dresser base with drawers  <li>height:35\"<li>width:59\"<li>depth:35\"<li>ref 8 waxed price:£495  ";
                info [9] = font + "<ul>restored dresser base <li> zoom the picture to get a better view<li><li>height:39\"<li>width:50\"<li>depth:20.5\"<li> ref 9 price £325 sold ";


	 	// The number of items in the gallery
	 	maxPic = numberOfPieces;

        var alt = new Array (numberOfPieces);

		alt[1] = "antique pine dresser";
		alt[2] = "antique pine dresser";
		alt[3] = "antique pine dresser";
        alt[4] = "antique pine dresser";
        alt[5] = "antique pine dresser";
        alt[6] = "antique pine dresser";
        alt[7] = "antique pine dresser";
        alt[8] = "antique pine dresser";
        alt[9] = "antique pine dresser";

		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);
			var filePath = altImage + "Alt.jpg";
			var checkFile = new Image;


			checkFile.onload = function () {
				window.open(filePath,'','width=400,height=500,scrollbars=yes,menubar=no,resizable=yes,toolbar=no,location=no,status=no');
			};
			checkFile.onerror = function () {
				window.open("fileNotFound.html")
			}
			checkFile.src = filePath;

		}

		function pausecomp(millis)
		{
			var date = new Date();
			var curDate = null;
			do { curDate = new Date(); }
			while(curDate-date < millis);
		}


  		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];
                       deleteCookie("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";
		    }
		}
