var currentBowl = "";
var currentIndex = 0;
var lastHash = -1;
var currentPicture = 0;
var lastImage;
var dwin;

var bowlArray = new Array(
["Ash07-005","$60.00","6-1/2 inch Ash Bowl","A very nice deeper bowl.",""],
["Ash07-020","$65.00","7 inch Ash Bowl","Nice small bowl, with textured outside - great for nuts!",""],
["AshSc07-006","$75.00","7-1/2 inch Scorched Ash Bowl","Made of one piece of Ash, the outside has been scorched to add the rich black color, then sanded to allow the light of the Ash to show through. As a result of the uneven burning of the different parts of the wood, the grain lines have been raised to add a tactile experience.","A/NT"],
["AshSc07-007","$85.00","8 inch Scorched Ash Bowl","Made of one piece of Ash, the outside has been scorched to add the rich black color, then sanded to allow the light of the Ash to show through. As a result of the uneven burning of the different parts of the wood, the grain lines have been raised to add a tactile experience.",""],
["AshSc07-009","$95.00","7 inch Scorched Ash Bowl w/Lid","Look inside this bowl and it looks like it is made from 2 woods - it is really one piece of Ash, scorched on the outside to achieve a rich dark surface & a wonderful tactile experience.",""],
["AshSc07-010","$70.00","7 inch Scorched Ash Bowl","Interesting scorching  - mostly just on the grain lines - makes this small bowl stand out, and will be the attention grabber on any table.",""],
["AshSc07-012","$90.00","7 inch Scorched Ash Bowl","Made of one piece of Ash, the outside has been scorched to add the rich black color, then sanded to allow the light of the Ash to show through. As a result of the uneven burning of the different parts of the wood, the grain lines have been raised to add a tactile experience.",""],
["AshSc07-014","$75.00","7-1/2 inch Scorched Ash Bowl","Made of one piece of Ash, the outside has been scorched to add the rich black color, then sanded to allow the light of the Ash to show through. As a result of the uneven burning of the different parts of the wood, the grain lines have been raised to add a tactile experience.",""],
["AshSc07-015","$75.00","7-1/2 inch Scorched Ash Bowl","Made of one piece of Ash, the inside has been scorched to add the rich black color, then sanded to allow the light of the Ash to show through. As a result of the uneven burning of the different parts of the wood, the grain lines have been raised to add a tactile experience.","Richmond Beach"],
["AshSc07-016","$130.00","11 inch Scorched Ash Bowl","Scorched on the outside, this large serving bowl appears to be made of two kinds of wood. The dark outer surface presents a rich visual effect, and a strong tactile experience.",""],
["AshSc07-017","$120.00","11-1/2 inch Scorched Ash Bowl","Sorched both inside and outside, this deep bowl makes a stunning addition to any table.",""],
["AshSc07-018","$110.00","11 inch Scorched Ash Bowl","Scorched on the outside, left natural on the inside, this deep bowl will stand out on any table or buffet.",""],
["AshWenge07-001","$75.00","7 inch Ash bowl with Wenge rim. Hand rubbed gilded accent on outer surface","The open grain of Ash forms wonderful patterns in the exposed wood surfaces. Exotic Wenge adds a dark contrast on the rim.",""],
["AshWenge07-002","$75.00","7 inch Ash bowl with Wenge rim. Hand rubbed gilded accent on outer surface","The open grain of Ash forms wonderful patterns in the exposed wood surfaces. Exotic Wenge adds a dark contrast on the rim.",""],
["BlackLimba07-001","$130.00","11 inch Black Limba Bowl","Stunning contrast in this wood give the bowl a distinctive look that will make it a proud centerpiece on any table.",""],
["BlackLimba07-002","$130.00","11 inch Black Limba Platter","Stunning contrast in this wood give the platter a distinctive look that will make it a proud centerpiece on any table.",""],
["BlackLimba07-003","$70.00","7 inch Black Limba Bowl","Stunning contrast in this wood give the small bowl a distinctive look.",""],
["BubingaCopper06-001","$125.00","9-1/2 inch Bubinga Bowl. Edged with Copper Patina accent","Bubinga is a richly dark hardwood of high figure that comes from Africa. Favored for valued furniture, the wood adds a touch of elegance to table tops, bookcases – and turned objects. The patina effect on copper leaf is a technique learned from David Marks, a Master of the craft.",""],
["Cebil07-001","$70.00","6 inch Cebil Bowl","Also called 'Fake' Olivewood, Cebil adds a dark rich appearance to this small bowl.","Monsoon Books"],
["CedarRed07-001","$250.00","8 inch Red Cedar Burl Bowl","Unfinished to allow the deep scent of the Cedar to escape, this remarkable piece of burl has voids that add a touch of elegance to this deep bowl. Truly a treasure for many generations.","Richmond Beach"],
["Elm07-003","$125.00","7 inch Lidded Elm Bowl","Textured to reflect the Native American reed baskets, this lidded bowl is intended to hold a ball of yarn or twine accessible through the hole in the lid.","Monsoon Books"],
["Elm07-004","$70.00","7 inch Elm Dish","Interesting twist to this bowl, which was turned while the wood was still green, and took on it's own character - warping as it dried.",""],
["Elm07-007","$85.00","8-1/2 inch Elm Bowl","The lovely figured wood gives this bowl a unique character.",""],
["Elm07-008","$100.00","9 inch Elm Bowl","Turned while the wood was still green, this raised bowl has warped slightly as it dried, taking on it's own unique character. Showing the striking appearance that Elm can offer, it will serve nobly holding dinner rolls or hard fruit.",""],
["Elm07-009","$70.00","7 inch Lidded Elm Bowl","Textured to reflect the Native American reed baskets, this lidded bowl will serve well as a decoration - or to store small items or a ball of yarn.",""],
["Elm07-011","$60.00","6 inch Lidded Elm Bowl","Textured to reflect the Native American reed baskets, this lidded bowl is intended to hold a ball of yarn or twine accessible through the hole in the lid.","A/NT"],
["HollySp07-001","$110.00","10 inch Spalted Holly Bowl","Turned while still green, this lovely spalted bowl has warped slightly as it dried - which only adds to it's unique character.",""],
["HollySp07-002","$70.00","7 inch Splated Holly Bowl","Turned while still green, this lovely spalted bowl has warped slightly as it dried - which only adds to it's unique character.",""],
["Maple07-001","$90.00","8 inch Scorched Maple Dish","An experiment in changing the look of Maple - should draw a lot of questions from people who see it.",""],
["Maple07-009","$110.00","9 inch Deep Maple Bowl","Deep for chips or rolls, this Maple piece shows the range of colors and visual textures of the wood. A fine addition to any dining room.",""],
["Maple07-012","$45.00","5 inch Maple Bowl","Subtle twists of burl and a cluster of bird's-eyes combine to give this small bowl a character that will be cherished for a long time.",""],
["Maple07-015","$95.00","9 inch Maple Bowl","Showing the color of the burl, this will make a fine addition to any home.",""],
["MapleAm06-003","$65.00","5-1/2 inch Ambrosia Maple bowl Highly figured with soft color changes","The Ambrosia effect occurs when the wood has been attacked by the Ambrosia beetle, which leaves irregular dark trails through the wood, resulting in unique and random patterns.",""],
["MapleAm06-010","$55.00","6 inch Ambrosia Maple Bowl","The Ambrosia effect is the result of the tree being attacked by the Ambrosia Beetle, leaving random discolorations of the wood.",""],
["MapleBurl06-004","$85.00","8 inch Maple Burl Bowl","Highly figured with stunning color changes, a special small bowl long to be cherished.",""],
["MapleBurl06-005","$60.00","5 inch Maple Burl Bowl","A very unusual natural color for Maple.",""],
["MapleBurl07-004","$85.00","8 inch Maple Burl Bowl","Featuring bright flashes of light spalting on the wild red/brown background of the burl, this lovely bowl will grace any table or buffet.",""],
["MapleBurl07-008","$80.00","8 inch Maple Burl Bowl","This colorful bowl shows the swirls & colors of the Maple – with random stripes of black spalting and a small patch of “bird’s eyes” on the bottom adding accent to the pattern. It will serve well as a platter for grapes, rolls or candies, adding to any table or buffet.",""],
["MapleBurl07-019","$75.00","7 inch Maple Burl Bowl","Almost 4 inches deep, this is a fine bowl for a handful of cookies or candies. The rough texture adds a hint of strength and comfort.",""],
["MapleSp07-005","$95.00","9-1/2 inch Spalted Maple Bowl","A bowl with the lovely browns of the Maple, with a slight figure of spalting on one side. Deep enough for dinner rolls and fine breads, it will add a touch of elegance to a formal dinner.",""],
["MapleSp07-011","$70.00","7 inch Maple Burl Bowl","The subtle markings of spalting compliment the deep coloration of the Maple in this fine bowl, suitable for candies or dinner rolls.",""],
["MapleSp07-014","$120.00","9-1/2 inch Spalted Maple Bowl","A marvelous example of the color and twists of spalted Maple - sure to be the centerpiece at any table or sideboard.","Richmond Beach"],
["MapleSp07-020","$65.00","5 inch Spalted Maple Cup","Spalting, the result of the wood beginning to decompose, can leave interesting patterns and - in the case of this piece - rough wood that seems to give it a feeling of age.",""],
["MapleSp07-036","$95.00","9-1/2 inch Spalted Maple Bowl","Almost 4 inches deep, this nicely spalted bowl can hold rolls, chips or even popcorn. Very subtle figuring.",""],
["MapleSp07-050","$125.00","11 inch Spalted Maple Bowl","Delicate spalting running across the tiger surface of this bowl make it a special vessel for salads or breads.","A/NT"],
["MapleSp07-056","$115.00","9-1/2 inch Spalted Maple Bowl","A surprising amount of spalting in this bowl - perfect for any setting.","A/NT"],
["MapleSpTi07-022","$105.00","10 inch Spalted Tiger Maple Bowl","Lovely patterns from the spalting on this bowl are accented by the marvelous tigering effect of the Maple.",""],
["MapleSpTi07-025","$105.00","9 inch Spalted Tiger Maple Bowl","The gorgeous tigering of this surprisingly light weight bowl almost jumps out at the viewer, the surface seeming to be 3 dimensional - while the subtle spalting adds a warm pattern.","Monsoon Books"],
["MapleSpTi07-055","$125.00","9-1/2 inch Spalted Tiger Maple Bowl","The spalting on this maple gives the bowl a stunning array of color and figure. A winner at any table, casual or formal.","A/NT"],
["MapleTi06-008","$100.00","9 inch Tiger Maple Bowl","The short doughnut shape is unique and will make this a great conversation piece that can hold candies or even a single rose bud.",""],
["MapleTi06-009","$75.00","7 inch Tiger Maple Bowl","The soft - almost red - tomes of this bowl make an understated presence while containing candies or small flowers.",""],
["MapleTi06-011","$60.00","6 inch Tiger Maple Bowl","A quiet tigering adds character to this candy dish.",""],
["MapleTi07-006","$95.00","9-1/2 inch Tiger Maple Bowl","This lovely bowl displays a dramatic tiger pattern, with just a touch of the burl on one side – which is accented by lighter swirls of spalting. It will shine as the centerpiece on any table or buffet.",""],
["MapleTi07-007","$80.00","7-1/2 inch Tiger Maple Bowl","The gorgeous tigering of this bowl almost jumps out at the viewer, the surface seeming to be 3 dimensional.",""],
["MapleTi07-010","$80.00","7-1/2 inch Tiger Maple Bowl","The subtle tigering of this bowl, never seeming to be anchored in the wood, makes this a special addition to any home.","Richmond Beach"],
["MapleTi07-017","$100.00","9 inch Tiger Maple Bowl","The gorgeous tigering of this bowl almost jumps out at the viewer, the surface seeming to be 3 dimensional.",""],
["MapleTi07-021","$95.00","9 inch Tiger Maple Bowl","The gorgeous tigering of this bowl almost jumps out at the viewer, the surface seeming to be 3 dimensional.","Richmond Beach"],
["MapleTi07-024","$105.00","9-1/2 inch Spalted Tiger Maple Bowl","Lovely wood with swirls of spalting mixing with the tigering. A true visual effect in a lightweight serving bowl.","Richmond Beach"],
["MapleTi07-026","$75.00","7 inch Tiger Maple Bowl","The very muted tigering of this bowl on the inside contrasts nicely with the vibrant tigering on the outside.",""],
["MapleTi07-027","$105.00","10 inch Tiger Maple Bowl","The gorgeous tigering of this surprisingly light weight bowl almost jumps out at the viewer, the surface seeming to be 3 dimensional.",""],
["MapleTi07-028","$90.00","9 inch Tiger Maple Bowl","This surprisingly light weight bowl has a more defuse tigering than many bowls. Would serve well on any table or sideboard.",""],
["MapleTi07-029","$90.00","9 inch Tiger Maple Bowl","The gorgeous tigering of this  light weight bowl almost jumps out at the viewer, the surface seeming to be 3 dimensional.",""],
["MapleTi07-030","$100.00","9 inch Tiger Maple Bowl","Nice Tiger Maple bowl, soft finish inside with a vibrant tiger effect on the outside. Well suited for fruit or dinner rolls.","Richmond Beach"],
["MapleTi07-031","$95.00","9 inch Tiger Maple Bowl","Beautiful tigering on the outside of this bowl makes it perfect for presenting rolls or candy on a sideboard or the main dinner table. The lip is channeled for an added effect.","A/NT"],
["MapleTi07-032","$90.00","9 inch Tiger Maple Bowl","Nicely tigered, this shallow bowl will serve well to hold dinner rols, candy or even small fruit.",""],
["MapleTi07-033","$95.00","9-1/2 inch Tiger Maple Bowl","A nice bowl for rolls or small fruit. The tigering is subtle, and the is just a hint of spalting on the outside.",""],
["MapleTi07-034","$110.00","9-1/2 inch Tiger Maple Bowl","Vibrant tigering makes this shallow bowl shimmer in the right light, a perfect gift for that special friend - or for yourself.",""],
["MapleTi07-035","$85.00","8 inch Tiger Maple Bowl","A lovely example of tigered Maple, with just a hint of spalting. Shallow, it can serve as a candy dish or even a salad plate.",""],
["MapleTi07-037","$110.00","9 inch Tiger Maple Bowl","One of the best examples of tiger Maple I've seen - a very lovely shallow bowl that curves inward at the top to keep fruit or candy inside. A very special bowl.",""],
["MapleTi07-038","$70.00","7 inch Tiger Maple Bowl","An experimental piece - Tiger Maple tinted blue. The blue accents the natural highlights of the tigering, resulting in an interesting attention grabber.",""],
["MapleTi07-039","$75.00","7 inch Tiger Maple Bowl","Brilliently tigered on the outside, this lovely bowl has a softly figured inner surface.",""],
["MapleTi07-041","$85.00","7 inch Dyed Tiger Maple bowl","Stunning natural tigering accented by random shades of black make this a special bowl indeed - sure to be the centerpiece of any table.","Richmond Beach"],
["MapleTi07-043","$60.00","6 inch Tiger Maple Rice Bowl","Lightweight rice bowl dyed blue on the outside & red/orange inside with some hints of black. Lovely on it's own, or as a set.",""],
["MapleTi07-049","$85.00","8 inch Tiger Maple Bowl","Rolled edge, fine tigering, make this a great bowl for bread, fruit or nuts.","Richmond Beach"],
["MapleTi07-051","$90.00","9 inch Dyed Tiger Maple Bowl","A blue base color with a black wash makes this a very attractive bowl","A/NT"],
["MapleTi07-053","$40.00","8 inch tall Tiger Maple Vase","Tall and strange…Almost a classical look. Ideal for long stem silk flowers.",""],
["MapleTiCopper06-006","$112.00","7-1/2 inch Tiger Maple bowl. Edged with Copper Patina accent","Tiger Maple is figured maple that has striping that seems to “float” when looked at with a light that comes from over the shoulder. The patina effect on copper leaf is a technique learned from David Marks, a Master of the craft.",""],
["Myrtle06-003","$75.00","7 inch Myrtle Bowl","Myrtle comes from the woodlands of the Western Pacific coast, usually with subtle figuring that shows a range of color from reds & browns to yellows, and often exhibits tiger and burl characteristics. Myrtle is a wonderful wood to work with - often hiding it’s true beauty until uncovered by the woodworker.",""],
["Myrtle07-002","$85.00","8 inch Myrtle bowl","This bowl is a lovely example of the Myrtle that comes from the woodlands of the Western Pacific coast, with subtle figuring that shows a range of color from reds & browns to yellows.",""],
["Myrtle07-003","$100.00","10 inch Tiger Myrtle Bowl","This shallow bowl shows the tiger effect of the Myrtle – with subtle ribbing of dark brown across the dark tan surface of the wood. It will serve well for a platter of apples, or full of rolls and fine breads, adding a touch of elegance to a formal dinner.",""],
["Myrtle07-008","$50.00","6 inch Myrtle Bowl","Unique in shape, and some interesting voids left by rotted wood, this could serve as a candy dish.",""],
["Myrtle07-009","$70.00","7 inch Myrtle Bowl","A quiet deep bowl, with subtle colors. Great for holding dinner rolls.",""],
["Myrtle07-012","$75.00","7 inch Myrtle Bowl","The regular grain and fleeting spalting of this bowl form an appealing pattern.",""],
["Myrtle07-013","$80.00","8 inch Myrtle Bowl","Showing the full grained pattern common to Myrtle, this deep bowl will be a fine addition to any dining room.",""],
["Myrtle07-015","$120.00","11 inch Myrtle Serving Platter. with Dip Container","A simple platter for chips & dip, great for family gatherings or casual parties.",""],
["Myrtle07-016","$175.00","14 inch Myrtle Platter","Fine tracings of tigering cross the face of this platter - with the added texturing it becomes an exquisite addition to a formal dinner.",""],
["Myrtle07-017","$165.00","15 inch Figured Myrtle Platter","Absolutely gorgeous Figured Myrtle with tigering and a spot of Bird's Eye figure! Textured on the rim, this platter will be at home in any setting, from a party with intimate friends and family - or a formal dinner with honored guests.","A/NT"],
["MyrtleCopper07-001","$75.00","7 inch Myrtle flower arranger. Edged with Copper Patina accent","Presenting a solid base for those special flowers, this flower arranger makes a wonderful gift for Mother’s Day, birthdays, or simply to make any day special. The patina effect on copper leaf is a technique learned from David Marks, a Master of the craft.",""],
["MyrtleCopper07-011","$65.00","5-1/2 inch Myrtle Flower Arranger","Myrtle Burl adds a subtle visual texture to this flower arranger. The patina effect on copper leaf is a technique learned from David Marks, a Master of the craft.","Richmond Beach"],
["MyrtleTi07-006","$95.00","9 inch Tiger Myrtle Bowl","The wonderful patterns of the tiger effect merge with the slight spalting to create a very pleasing visual impact.","Richmond Beach"],
["MyrtleTi07-007","$120.00","10-1/2 inch Tiger Myrtle Raised Platter","Stunning tigering, and a well defined grain combine to make this a very attractive platter for dinner rolls or bread.",""],
["MyrtleTi07-010","$160.00","14 inch Myrtle Platter","The rich colors of Myrtle will make this platter the center of attention of any table or buffet.",""],
["MyrtleTiBurl07-005","$125.00","10 inchTiger Myrtle Burl Bowl","The stunning colors and swirls in the burl shown by this fine Myrtle makes it an exceptional piece for the table or on a fine sideboard. Full of rolls or fine bread, it will complement any setting it is used in.",""],
["OsageOrange05-001","$80.00","7 inch Osage Orange Bowl","Osage Orange, long prized by Native craftsmen, gives a warm glow to this small bowl - which could serve to hold candies or even a single rose bud.","Richmond Beach"],
["OsageOrange05-002","$85.00","7-1/2 inch Osage Orange Bowl","Osage Orange, long prized by Native craftsmen, gives a warm glow to this small bowl - which could serve to hold candies or even a single rose bud.","A/NT"],
["OsageOrange07-001","$60.00","6 inch Osage Orange Bowl","Osage Orange, long prized by Native craftsmen, gives a warm glow to this small bowl - which could serve to hold candies.",""],
["RosewoodEI07-005","$60.00","6 inch East Indian Rosewood Bowl","A nice dish for candy or even a Carnation bloom.",""],
["Sycamore07-001","$220.00","8 inch Warped Sycamore Bowl","Turned green, this charming bowl has warped as it dried, and has a small inclusion on one side that adds to it's uniqueness. Dyed to accent the grain of the wood.",""],
["Sycamore07-002","$300.00","10 inch Warped Sycamore Bowl","Turned Green, this lovely bowl has warped while drying, adding charm to function to make a great bowl for bread or rolls. Dyed to accent the grain, there is a whimsical inclusion on one side that tickles the imagination.",""],
["Walnut07-005","$65.00","7 inch Walnut Bowl","Dark, rich color in this small candy dish - or to hold business cards.",""],
["ZebraWood07-001","$60.00","6 inch Zebrawood Bowl","Small, but quite capable of serving as a candy dish - the striking pattern that gives this wood it's name promises to never be ignored.",""]
);

var featuredImages = new Array(
["000-Cranbrook-Kent-bg-light-q53-500x375"],
["800px-Tsunami_by_hokusai_19th_century"],
["cezanne.roche-guyon"],
["monet.parasol"],
["monet_matin"],
["renoir.meadow"],
["renoir.women"],
["rubensdragon"],
["whistler_mother"]
);

function DisplayImage(thumb){
	currentImg = document.getElementById('display_field').src=thumb.src.replace("tmb.jpg",".jpg");
	currentBowl = currentImg;
	lastHash = currentBowl.lastIndexOf("/");
	currentBowl = currentBowl.substr(lastHash+1);
	currentBowl = currentBowl.replace(".jpg","");
	for(i=0; i<bowlArray.length; i++) {
		if(bowlArray[i][0] == currentBowl) { 
			currentIndex = i;
			i=bowlArray.length;
		}
	}
	document.getElementById('display_field').border="5px solid silver";
	document.getElementById('product').innerHTML="Product Code: "+bowlArray[currentIndex][0];
	document.getElementById('heading').innerHTML=bowlArray[currentIndex][2];
	document.getElementById('price').innerHTML=bowlArray[currentIndex][1];
	document.getElementById('details').innerHTML=bowlArray[currentIndex][3];
	if(bowlArray[currentIndex][4]=="")
	{
		document.getElementById('status').innerHTML="";
	}
	else
	{
		document.getElementById('status').innerHTML="Currently showing at "+bowlArray[currentIndex][4];
	}
}

function getRandomImage()
{
	var whichImage=get_random();
	var randomImage = "Images/Backgrounds/" + featuredImages[whichImage][0] + ".jpg";
	document.getElementById('content_background').src=randomImage;
	currentPicture = -1;
	nextImage();
	disablePrior(true);
}

function get_random()
{
    var ranNum= Math.floor(Math.random()*8);
    return ranNum;
}

function priorImage()
{
	disableNext(false);
	currentPicture--;
	if(currentPicture==0)
	{
		disablePrior(true);
	} 
	else
	{
		disablePrior(false);
	}
	var tmb = "Images/Photos/Bowls/" + featuredBowls[currentPicture+4][0] + "tmb.jpg";
	document.getElementById('thumb5').src=tmb;
	//document.getElementById('thumb5').alt=featuredBowls[currentPicture+4][0];
	document.getElementById('tmb5').innerHTML=featuredBowls[currentPicture+4][0];
	tmb = "Images/Photos/Bowls/" + featuredBowls[currentPicture+3][0] + "tmb.jpg";
	document.getElementById('thumb4').src=tmb;
	//document.getElementById('thumb4').alt=featuredBowls[currentPicture+3][0];
	document.getElementById('tmb4').innerHTML=featuredBowls[currentPicture+3][0];
	tmb = "Images/Photos/Bowls/" + featuredBowls[currentPicture+2][0] + "tmb.jpg";
	document.getElementById('thumb3').src=tmb;
	//document.getElementById('thumb3').alt=featuredBowls[currentPicture+2][0];
	document.getElementById('tmb3').innerHTML=featuredBowls[currentPicture+2][0];
	tmb = "Images/Photos/Bowls/" + featuredBowls[currentPicture+1][0] + "tmb.jpg";
	document.getElementById('thumb2').src=tmb;
	//document.getElementById('thumb2').alt=featuredBowls[currentPicture+1][0];
	document.getElementById('tmb2').innerHTML=featuredBowls[currentPicture+1][0];
	tmb = "Images/Photos/Bowls/" + featuredBowls[currentPicture][0] + "tmb.jpg";
	document.getElementById('thumb1').src=tmb;
	//document.getElementById('thumb1').alt=featuredBowls[currentPicture][0];
	document.getElementById('tmb1').innerHTML=featuredBowls[currentPicture][0];
}

function nextImage()
{
	disablePrior(false);
	lastImage = featuredBowls.length;
	lastImage = lastImage-5;
	currentPicture++;
	if(currentPicture>lastImage)
	{
		disableNext(true);
		
	} 
	else
	{
		disableNext(false);
	}
	var tmb = "Images/Photos/Bowls/" + featuredBowls[currentPicture][0] + "tmb.jpg";
	document.getElementById('thumb1').src=tmb;
	//document.getElementById('thumb1').alt=featuredBowls[currentPicture][0];
	document.getElementById('tmb1').innerHTML=featuredBowls[currentPicture][0];
	tmb = "Images/Photos/Bowls/" + featuredBowls[currentPicture+1][0] + "tmb.jpg";
	document.getElementById('thumb2').src=tmb;
	//document.getElementById('thumb2').alt=featuredBowls[currentPicture+1][0];
	document.getElementById('tmb2').innerHTML=featuredBowls[currentPicture+1][0];
	tmb = "Images/Photos/Bowls/" + featuredBowls[currentPicture+2][0] + "tmb.jpg";
	document.getElementById('thumb3').src=tmb;
	//document.getElementById('thumb3').alt=featuredBowls[currentPicture+2][0];
	document.getElementById('tmb3').innerHTML=featuredBowls[currentPicture+2][0];
	tmb = "Images/Photos/Bowls/" + featuredBowls[currentPicture+3][0] + "tmb.jpg";
	document.getElementById('thumb4').src=tmb;
	//document.getElementById('thumb4').alt=featuredBowls[currentPicture+3][0];
	document.getElementById('tmb4').innerHTML=featuredBowls[currentPicture+3][0];
	tmb = "Images/Photos/Bowls/" + featuredBowls[currentPicture+4][0] + "tmb.jpg";
	document.getElementById('thumb5').src=tmb;
	//document.getElementById('thumb5').alt=featuredBowls[currentPicture+4][0];
	document.getElementById('tmb5').innerHTML=featuredBowls[currentPicture+4][0];
}

function disablePrior(state)
{
	document.getElementById('priorbtn').disabled=state;
	if(state)
	{
		currentPicture = 0;
		document.getElementById('priorGif').src="Images/Logos/disabled.gif";
	}
	else
	{
		document.getElementById('priorGif').src="Images/Logos/smLeftArrow.gif";
	}
}

function disableNext(state)
{
	document.getElementById('nextbtn').disabled=state;
	if(state)
	{
		currentPicture = lastImage;
		document.getElementById('nextGif').src="Images/Logos/disabled.gif";
	}
	else
	{
		document.getElementById('nextGif').src="Images/Logos/smRightArrow.gif";
	}
}

function OpenDisplay()
{
	bowlDisplay();
}

function CloseDisplay()
{
	dwin.close();
}

function bowlDisplay() 
{
	dwin = window.open( "", "bowls", "width=600,height=650,status,scrollbars,resizable,screenX=20,screenY=40,left=20,top=10");
	dwin.document.write('<html><head><title>' + currentBowl + '</title></head>');	
	dwin.document.write('<link rel="stylesheet" type="text/css" href="Splinters_basic_styles.css"/>');
	dwin.document.write('<script src="Splinters_basic_script.js" type="text/javascript"></script>');
	dwin.document.write('<BODY>');
	dwin.document.write('<center><br />');
	dwin.document.write('<font weight=bold face="arial,helvetica"><h3>' + currentBowl + '</h3></font><br />');
	dwin.document.write('<img id="display_bowl" src="Images/Photos/Bowls/' + currentBowl + '.jpg"></img>');
	dwin.document.write('<img id="displayTile1" src="Images/Photos/Bowls/' + currentBowl + 'tmb.jpg" onClick="tile1();"></img>');
	dwin.document.write('<img id="displayTile2" src="Images/Photos/Bowls/' + currentBowl + '_atmb.jpg" onClick="tile2();"></img>');
	dwin.document.write('<img id="displayTile3" src="Images/Photos/Bowls/' + currentBowl + '_btmb.jpg" onClick="tile3();"></img>');
	dwin.document.write('<img id="displayTile4" src="Images/Photos/Bowls/' + currentBowl + '_ctmb.jpg" onClick="tile4();"></img>');
	dwin.document.write('</body></html>');
	dwin.document.close();	
	
	// If we are on NetScape, we can bring the window to the front
	if (navigator.appName.substring(0,8) == "Netscape") dwin.focus();

}

function tile1()
{
	bowl=document.getElementById("displayTile1").src;
	bowlID=bowl.replace("tmb.jpg",".jpg");
	document.getElementById("display_bowl").src=bowlID;
}
function tile2()
{
	bowl=document.getElementById("displayTile2").src;
	bowlID=bowl.replace("tmb.jpg",".jpg");
	document.getElementById("display_bowl").src=bowlID;
}
function tile3()
{
	bowl=document.getElementById("displayTile3").src;
	bowlID=bowl.replace("tmb.jpg",".jpg");
	document.getElementById("display_bowl").src=bowlID;
}
function tile4()
{
	bowl=document.getElementById("displayTile4").src;
	bowlID=bowl.replace("tmb.jpg",".jpg");
	document.getElementById("display_bowl").src=bowlID;
}