// Global Variables
var nCurImg  = 0;
var aGallery = new Array(47);
var sViewerCode = new String(
'<img id="full" src="gallery/fulls/afa-101.jpg" title="" />' +
'<p>This is just one of the many fruit display designs created by our talented staff! </p>' +
'<a class="prev" href="javascript:prevImg();">PREV</a>' +
'<a class="next" href="javascript:nextImg();">PREV</a>');

// Create a Custom Image Object
function galleryImage(sName){ 
	var path = "";
	var caption = "";
}

// PreLoad Images Array
function loadImages() {
	for (i=0; i<25; i++)
	{
		sName = 'gallery/fulls/' + 'afa-' + (i + 101) + '.jpg';
		aGallery[i] = new Image();
		aGallery[i].path = sName;
		aGallery[i].caption = "";
	}
	j = 0;
	for (i=25; i<43; i++)
	{
		sName = 'gallery/fulls/' + 'AFA-' + (j + 201) + '.jpg';
		aGallery[i] = new Image();
		aGallery[i].path = sName;
		aGallery[i].caption = "";
		j++;
	}

	aGallery[0].caption  = 'This is just one of the many fruit display designs created by our talented staff! ';
	aGallery[1].caption  = 'We are the only person you need to contact to create a beautiful event from start to finish - we do complete set up, equipment rental, service, menus, linens, china, bartending, decor, etc. ';
	aGallery[2].caption  = 'This is a light afternoon wedding buffet at The Rose Lawn Museum in Cartersville, GA. ';
	aGallery[3].caption  = 'Themed events such as this Mediterranean themed luncheon for a birthday party are always fun for guests! ';
	aGallery[4].caption  = 'Corporate buffet and events are another one of our many specialties. ';
	aGallery[5].caption  = 'This is a wedding buffet with fresh fruits, vegetables, shrimp cocktail, and more!';
	aGallery[6].caption  = 'This is an intimate casual hors d&rsquo;oeuvre buffet on a home dining table created for a private family gathering. ';
	aGallery[7].caption  = 'Our carving station showcases many meats such as beef tenderloin, prime rib (pictured here), roast beef and beef briskets, pork loins, and more. ';
	aGallery[8].caption  = 'Our chocolate fountain can be filled with dark, white, or milk chocolate (pictured here) and are always a treat for guests! ';
	aGallery[9].caption  = 'This is an overhead view of a table full of fresh vegetables and cheeses for an afternoon reception. ';
	aGallery[10].caption = 'Our staff can create any look you are going for and can incorporate your party colors into the buffet so that we accomplish just the right look for your event! ';
	aGallery[11].caption = 'Here is our chocolate fountain at Cobblestone Rue in Chattanooga, TN making a debut at an open house! ';
	aGallery[12].caption = 'This is another themed buffet for an outdoor country barn wedding. ';
	aGallery[13].caption = 'This is a close up of our chicken skewers with vegetables creatively displayed with artistic skewers. ';
	aGallery[14].caption = 'Fruits, vegetables, and cheeses always make pretty displays for buffets and stations! ';
	aGallery[15].caption = 'This is an elaborate buffet created for a client at The Fox Theatre in downtown Atlanta, GA. ';
	aGallery[16].caption = 'This hors d&rsquo;oeuvre style breakfast created for a corporate client was a huge success for a nontraditional breakfast gathering. ';
	aGallery[17].caption = 'Here is an elaborate fruit display created for a dinner buffet. ';
	aGallery[18].caption = 'This is a corporate luncheon for 360 guests with an array of sandwiches in the background and featuring a garden salad and our Asian salad with sesame vinaigrette and mandarin oranges - it definitely was the favorite! ';
	aGallery[19].caption = 'This is a modern mini dessert display.';
	aGallery[20].caption = 'Our shrimp skewers are perfect for dipping in your favorite sauce!';
	aGallery[21].caption = 'These petite raspberry and french brie tartlets are equally good as an hors d&rsquo;oeuvre or a dessert!';
	aGallery[22].caption = 'This is our bruschetta chicken breasts topped with hand diced tomatoes, fresh basil leaves and a balsamic reduction.';
	aGallery[23].caption = 'We can come to your home and create a beautifully catered event every time!';
	aGallery[24].caption = 'Attention to detail is one of the many things that A Food Attitude prides itself on.';
	aGallery[25].caption = 'Our bartenders will work hard to ensure that your guests are well taken care of! ';
	aGallery[26].caption = 'Our shrimp tower is always a crowd favorite! ';
	aGallery[27].caption = 'Corporate events are one of our specialties! ';
	aGallery[28].caption = 'We also cater intimate affairs at private residences too! ';
	aGallery[29].caption = 'This is a bat mizvah celebration with our Asian Themed menu! ';
	aGallery[30].caption = 'We can match any theme - here is a country summer wedding! ';
	aGallery[31].caption = 'This a large event at the Gwinnett Environmental Center. ';
	aGallery[32].caption = 'In addition to food, we do linens, tablesettings, and more! ';
	aGallery[33].caption = 'Here is a casual 50th anniversary party at a local church. ';
	aGallery[34].caption = 'Catering to our customer\'s needs is our top priority! ';
	aGallery[35].caption = 'Let us cater your next breakfast! ';
	aGallery[36].caption = 'We offer all types of displays for all types of events! ';
	aGallery[37].caption = 'This is an elegant birthday party at a private residence. ';
	aGallery[38].caption = 'Have our sushi chef wow your guests with a beautiful display! ';
	aGallery[39].caption = 'We work with each individual client to discuss the look of their event, decor, etc. ';
	aGallery[40].caption = 'This is an outdoor nature themed wedding buffet in blue. ';
	aGallery[41].caption = 'Here is a holiday spread of delicious hors d&rsquo;oeuvre';
	aGallery[42].caption = 'No matter what the occasion, A Food Attitude will be your best planning decision yet!';
}

function showImg(n)
{
	nCurImg   = n;
	var sHTML = '';
	var divViewer = document.getElementById('viewer');
	sViewerCode = '' +
	'<img width="500" height="475" src="' + aGallery[n].path + '">\n' +
	'<p>' + aGallery[n].caption +'</p>\n' +
	'<a class="prev" href="javascript:prevImg();">PREV</a>' +
	'<a class="next" href="javascript:nextImg();">NEXT</a>'; 
	divViewer.innerHTML = sViewerCode;
}

function prevImg()
{
	if (nCurImg > 0) { showImg(nCurImg-1); }
}

function nextImg()
{
	if (nCurImg < 42) { showImg(nCurImg+1); }
}



