/***********************************************
* Image w/ description tooltip- By Dynamic Web Coding (www.dyn-web.com)
* Copyright 2002-2007 by Sharon Paine
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* IMPORTANT: Put script after tooltip div or 
	 put tooltip div just before </BODY>. */

var dom = (document.getElementById) ? true : false;
var ns5 = (!document.all && dom || window.opera) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ie4 && !ie5 && !dom) ? true : false;

var origWidth, origHeight;

// avoid error of passing event object in older browsers
if (nodyn) { event = "nope" }

///////////////////////  CUSTOMIZE HERE   ////////////////////
// settings for tooltip 
// Do you want tip to move when mouse moves over link?
var tipFollowMouse= true;	
// Be sure to set tipWidth wide enough for widest image
var tipWidth= 600;
var offX= 10;	// how far from mouse to show tip
var offY= 6; 
var tipFontFamily= "Verdana, arial, helvetica, sans-serif";
var tipFontSize= "10pt";
// set default text color and background color for tooltip here
// individual tooltips can have their own (set in messages arrays)
// but don't have to
var tipFontColor= "#005500";
var tipBgColor= "#BAD5BF"; 
var tipBorderColor= "#044404";
var tipBorderWidth= 2;
var tipBorderStyle= "ridge";
var tipPadding= 3;

// tooltip content goes here (image, description, optional bgColor, optional textcolor)
var messages = new Array();
// multi-dimensional arrays containing: 
// image and text for tooltip
// optional: bgColor and color to be sent to tooltip
messages[0] = new Array('booth/PhotoNote.gif',' ');
messages[1] = new Array('booth/Pic-1067.jpg','Donna Alkins, Stained Glass, E4-5');
messages[2] = new Array('booth/pic1828.jpg','Shannon Harris, Floral, A4');
messages[3] = new Array('booth/pic1620.jpg','Ruth Forney, Beaded Jewelry, D11');
messages[4] = new Array('booth/pic1774.jpg','Sue Homack, Painted Glass & Slate, Q37');
messages[5] = new Array('booth/Pic-1150.jpg','Danza Merritt, Bath & Body, E1');
messages[6] = new Array('booth/pic1894.jpg','LeeAnn Jardel, Glassware, Q15B');
messages[7] = new Array('booth/Pic-39s.jpg','Donna Borris, Painted Wood, D13-15');
messages[8] = new Array('booth/Pic-369s.jpg','Peg Brandley, Crochet Items, E6');
messages[9] = new Array('booth/Pic1172.jpg','Louis Cohen, Sports Products, Q28-30');
messages[10] = new Array('booth/Pic-340s.jpg','Karla Dean, Collectibles, I13-14');
messages[11] = new Array('booth/Pic-29s.jpg','Jeannett Bustard, Painted Porcelin, B11');
messages[12] = new Array('booth/Pic-55s.jpg','Donna Calderwood, Jewelry, Q3');
messages[13] = new Array('booth/Pic-87s.jpg','Susan Cook, Jewelry, Q19a');
messages[14] = new Array('booth/Dsc562.jpg','Tha Craft Room, Framed Pictures, I9-10');
messages[15] = new Array('booth/pic1724.jpg','Toyoko Alsto, Jewelry, B4');
messages[16] = new Array('booth/pic1734.jpg','Courtney Elefante, Purses, F4');
messages[17] = new Array('booth/pic1738.jpg','Jen Graber, Floral, G1-2');
messages[18] = new Array('booth/Pic-50s.jpg','Gwen Ann Emanuel, Cards, Q2');
messages[19] = new Array('booth/pic1733.jpg','Sandi Johnson, Throws, E15');
messages[20] = new Array('booth/pic1919.jpg','Donna Giorno, Cashmere Scarves, A10');
messages[21] = new Array('booth/Pic-1145.jpg','Margie Fluke, Crochet Items, D7');
messages[22] = new Array('booth/pic1837.jpg','Patti Seitz, Country Crafts, A1-2');
messages[23] = new Array('booth/pic1769.jpg','Sandy Mousseau, Christmas Collectibles, B3');
messages[24] = new Array('booth/pic1837.jpg','Rebecca Gilbert, Country Crafts, D3-4');
messages[25] = new Array('booth/Pic-64s.jpg','Kathryn Golembeski, Ceramics, E7');
messages[26] = new Array('booth/Pic1193.jpg','Marge Knoble, Country Floral, E17');
messages[27] = new Array('booth/pic1928-30.jpg','Theresa Horrox, Country Crafts, AA1-2');
messages[28] = new Array('booth/pic1748.jpg','Norma Grundersrom, Quilted Items, F0');
messages[29] = new Array('booth/pic1938.jpg','Linda Wack, Bags & Bibs, Q18');
messages[30] = new Array('booth/Dsc551.jpg','Janet Holmes, Jewelry, Q9');
messages[31] = new Array('booth/pic02597.jpg','Laura Chane, Doll CLothes, Q10');
messages[32] = new Array('booth/Pic-08s.jpg','Theresa Horrox, Candles/Collectibles, AA3-4,G13,H13');
messages[33] = new Array('booth/Dsc561.jpg','J & J Music Boxes, J9');
messages[34] = new Array('booth/Pic1173.jpg','Louis Cohen, Sports Products, F5-6-7');
messages[35] = new Array('booth/Pic-59s.jpg','Emma Kaplan, Jewelry, Q4');
messages[36] = new Array('booth/pic1783.jpg','Rose Rivera, Purses, Q34');
messages[37] = new Array('booth/Pic-1056.jpg','Marianne McConnell, Jewelry, Childrens, Q15a');
messages[38] = new Array('booth/Pic-21s.jpg','Dorothy Koziol, Floral, A5-6');
messages[39] = new Array('booth/Dsc532.jpg','Elaine Kravnick, Floral, F1-2');
messages[40] = new Array('booth/Dsc559.jpg','Anne E Kuhuth, Doll Clothes, J6');
messages[41] = new Array('booth/Pic-53s.jpg','Deborah Kulp, Candy, D1');
messages[42] = new Array('booth/pic1925.jpg','Sandy Mousseau, Slates, C7-8');
messages[43] = new Array('booth/pic02585.jpg','Lillian Mitchener, Paintings, C2');
messages[44] = new Array('booth/pic1630.jpg','Beth Flynn, Puppets, B7');
messages[45] = new Array('booth/Pic-1055.jpg','Gwen Gerhart, Jewelry, Q5');
messages[46] = new Array('booth/PNYA.jpg','Cari Zarka, Blown Glass Jewelry, D2');
messages[47] = new Array('booth/Dsc564-65.jpg','Jen McGraw, Collectibles, Q31 and Q39');
messages[48] = new Array('booth/Pic-752s.jpg','Sandy Mousseau, Heartwood Creek, C9-10');
messages[49] = new Array('booth/pic1243.jpg','Karen & John OConnor, Photography, Q19a');
messages[50] = new Array('booth/Pic-42s.jpg','Ken Miller, Country Crafts, C5');
messages[51] = new Array('booth/pic1768.jpg','Sandy Mousseau, KooKeys, A4');
messages[52] = new Array('booth/Pic-69s.jpg','Sandy Mousseau, Stars, L3-4');
messages[53] = new Array('booth/pic1924.jpg','Sandy Mousseau, Bags, A12-13');
messages[54] = new Array('booth/Dsc546.jpg','Sandy Mousseau, Books, H2-H7');
messages[55] = new Array('booth/Dsc545.jpg','Sandy Mousseau, Cards, H8-9');
messages[56] = new Array('booth/Pic-1162.jpg','Sandy Mousseau, Misc, Hand Bags Items, H1');
messages[57] = new Array('booth/pic1754.jpg','Edward Ragar, Collectibles, K1');
messages[58] = new Array('booth/Dsc555.jpg','Sandy Mousseau, Country Collectibles, I1');
messages[59] = new Array('booth/pic1237.jpg','Elizabeth Silcox, Avon Products, Q7');
messages[60] = new Array('booth/Dsc560.jpg','Sandy Mousseau, Dolls, J8');
messages[61] = new Array('booth/Pic-959.jpg','Patty McKissic, Doll Clothes, A8');
messages[62] = new Array('booth/pic1775.jpg','Sheree Moore, Floral Arrangements, G8');
messages[63] = new Array('booth/Dsc556.jpg','Sandy Mousseau, Floral Items, J3');
messages[64] = new Array('booth/pic1231.jpg','Lisa Siwert, Memory & Gift Books, Q33');
messages[65] = new Array('booth/Pic-71s.jpg','Sandy Mousseau, Flags, G6-7');
messages[66] = new Array('booth/Pic-1156.jpg','Sandy Mousseau, Scented Diffusers, E12');
messages[67] = new Array('booth/pic1887.jpg','Jim Poorman, Woodworking, D12');
messages[68] = new Array('booth/Pic-41s.jpg','Name Sakes, Children Names, C6');
messages[69] = new Array('booth/pic1840.jpg','Sue Gelb, Floral, I3');
messages[70] = new Array('booth/pic1741.jpg','Maria Porambo, Candles, A3');
messages[71] = new Array('booth/pic1618.jpg','Tracy Law, Wild Life Photography, C1');
messages[72] = new Array('booth/pic1888.jpg','Debra Meyer, Misc, Dog Bandanas, Q35');
messages[73] = new Array('booth/pic1890.jpg','Patti Watson, Coffees, Q28');
messages[74] = new Array('booth/pic1781.jpg','Kurt Wagner, collectible Lamps, Q20');
messages[75] = new Array('booth/pic1900.jpg','Susan Yohe, Button Crafts, K3');
messages[76] = new Array('booth/pic02579.jpg','Tammy Schane, Pressed Flowers, A9');
messages[77] = new Array('booth/Pic-79s.jpg','Sally Ann Sheldon, Antiques, K13');
messages[78] = new Array('booth/Pic-35s.jpg','Sally Sheldon, Quilted Items, Q25');
messages[79] = new Array('booth/Pic-844s.jpg','Deborah Hacker, Pottery, Q15c');
messages[80] = new Array('booth/pic1804.jpg','Tina Loux, Jewelry, Q11');
messages[81] = new Array('booth/pic1838.jpg','Linda Farrell, Doll Clothes, E1');
messages[82] = new Array('booth/pic02611.jpg','LuAnn Clardy, Floral Designs, F14');
messages[83] = new Array('booth/pic1893.jpg','Mercato Italiano, Handbags, G0');
messages[84] = new Array('booth/pic1758.jpg','Joan Sprigg, Country Crafts, Q17');
messages[85] = new Array('booth/pic1920.jpg','Mary E Springer, Winebottles, A11');
messages[86] = new Array('booth/pic1916.jpg','Carlene Souder, Candles, B4');
messages[87] = new Array('booth/Pic-1135.jpg','Grace Stevens, Floral, Q22-23-24');
messages[88] = new Array('booth/Pic-54s.jpg','Martha Stoller, Jewelry, AA7');
messages[89] = new Array('booth/Pic-240s.jpg','Helena Targett, Floral/Sewing, D5-6');
messages[90] = new Array('booth/pic1751.jpg','Marge Knobel, Floral, Country, G10');
messages[91] = new Array('booth/Pic-84-83.jpg','Marianne Thomas, Antiques, N3-4');
messages[92] = new Array('booth/Dsc538.jpg','Betty Lanyon, Doll Clothes, E9-11');
messages[93] = new Array('booth/pic02616.jpg','Bettymae Loose, Collectibles, N1');
messages[94] = new Array('booth/Pic-43s.jpg','Welcome Home Scents, Candles, C4');
messages[95] = new Array('booth/Pic-898.jpg','Martha Stoller, Sewn Items, I7');
messages[96] = new Array('booth/pic1731.jpg','Holly Albertio, Floral, Wood, E14');
messages[97] = new Array('booth/pic1884.jpg','Jim Poorman, Wooden Banks, D10');
messages[98] = new Array('booth/pic1931.jpg','David Allebach, Jewelry, E2');
messages[99] = new Array('booth/pic1933.jpg','Colleen Booth, Tupperware, F13');
messages[100] = new Array('booth/Pic-1153.jpg','Sandy Mousseau, Food, F8-9');
messages[101] = new Array('booth/pic1936.jpg','Bonnie Sague, Floral, Custom Silk, G5');
messages[102] = new Array('booth/pic02582.jpg','Rose Rivera, Jewelry, D16');
messages[103] = new Array('booth/pic1948.jpg','Blueberry Patch, Antiques, W5');
messages[104] = new Array('booth/Pic-1144.jpg','Sandy Mousseau, Wall Talk Posters, D8-9');
messages[105] = new Array('booth/pic1834.jpg','Helena Targett, Sewn Items, D3-4');
messages[106] = new Array('booth/pic1746.jpg','Donna Grezlak, XXXXXXXXXXXXXX, D2');
messages[107] = new Array('booth/pic1745.jpg','Diane Lynch, Knit Scarves, B8');
messages[108] = new Array('booth/Pic-656-57s.jpg','Candice Russell, Antiques/Country Crafts, AA2');
messages[109] = new Array('booth/pic1621.jpg','JR Creations, Hand Painted Items, F10');
messages[110] = new Array('booth/Pic-1158.jpg','Sandy Mousseau, Table Mats, G11-12');
messages[111] = new Array('booth/pic1939.jpg','Tina Loux, Collectibles, L1-2');
messages[112] = new Array('booth/pic1942.jpg','Marianne Thomas, Antiques, W9-10');
messages[113] = new Array('booth/Pic-1059.jpg','Barbara Clayton, Antiques, K10-12');
messages[114] = new Array('booth/pic1830.jpg','Various Vendors, Crafts & Wares, Q21');
messages[115] = new Array('booth/pic1904.jpg','Elaine Staunton, Cuto Loops/Headbands, E2');
messages[116] = new Array('booth/Pic-966.jpg','Kim McPoyle, Embrodery & Cards, XXX');
messages[117] = new Array('booth/Pic-840s.jpg','Maggie Delzotto, Cake Decorations, Q15b');
messages[118] = new Array('booth/Pic-840s.jpg','Sharon Stewart, Walking Canes, Q15b');
messages[119] = new Array('booth/pic1902.jpg','Tiffany Buoni, Jewlery, Q3');
messages[120] = new Array('booth/Pic-831s.jpg','Lisa Lewis, Jewelry, B2');
messages[121] = new Array('booth/Pic-831s.jpg','Barbara Zollers, Jewelry, B2');
messages[122] = new Array('booth/pic1784.jpg','Marie Bush, Sewn Items, A14');
messages[123] = new Array('booth/pic1786.jpg','Sandy Mousseau, Christmas Collectibles, A12-13');
messages[124] = new Array('booth/pic1239.jpg','Holly Albertio, Misc. Gifts, I3');
messages[125] = new Array('booth/Pic-893.jpg','Carol Brunner, Wood Paintings & Dolls, G4');
messages[126] = new Array('booth/Pic-1061.jpg','Andrea Linaberry, Ceramics, XXX');
messages[127] = new Array('booth/Pic-895.jpg','Paul Lewis, Wodden Toys, Q6');
messages[128] = new Array('booth/Pic-901.jpg','Pat Planders, Longaberger Baskets, K4');
messages[129] = new Array('booth/Pic-987.jpg','Liz Harm, Collectibles, K8-9');
messages[130] = new Array('booth/pic1899.jpg','Marion Galdieri, Stuffes Animals, K15');
messages[131] = new Array('booth/pic1728.jpg','JR Creations, Monogrammed Banks & Boxes, E13');
messages[132] = new Array('booth/Pic-990.jpg','Kim Oppenheim, Collectibles, K2-3');
messages[133] = new Array('booth/pic1631.jpg','Gloria Shaw, Crochet Items, Q19b');
messages[134] = new Array('booth/pic1883.jpg','Anna Servati, Jewelry, B4');
messages[135] = new Array('booth/Pic1214.jpg','Anna Servati, Jewelry, ZZZZZZZZZ');
messages[136] = new Array('booth/Pic1206.jpg','Mary Ellen Springer, Floral & Winebottles, B10');
messages[137] = new Array('booth/Pic1217.jpg','Mary Ellen Springer, Photo Frames, I6');
messages[138] = new Array('booth/pic1943.jpg','Ching Swarez, Victorian Collectibles, W1-2');
messages[139] = new Array('booth/pic02614.jpg','Ching Swarez, Victorian Crafts, I11-12');

////////////////////  END OF CUSTOMIZATION AREA  ///////////////////

// preload images that are to appear in tooltip
// from arrays above
// Remove comments from 7 lines below this one
//if (document.images) {
//	var theImgs = new Array();
//	for (var i=0; i<messages.length; i++) {
//  	theImgs[i] = new Image();
//		theImgs[i].src = messages[i][0];
//  }
//}

// to layout image and text, 2-row table, image centered in top cell
// these go in var tip in doTooltip function
// startStr goes before image, midStr goes between image and text
var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%"><img src="';
var midStr = '" border="0"></td></tr><tr><td align="center" valign="top"><b>';
var endStr = '</b></td></tr></table>';

////////////////////////////////////////////////////////////
//  initTip	- initialization for tooltip.
//		Global variables for tooltip. 
//		Set styles
//		Set up mousemove capture if tipFollowMouse set true.
////////////////////////////////////////////////////////////
var tooltip, tipcss;
function initTip() {
	if (nodyn) return;
	tooltip = (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
	tipcss = tooltip.style;
	if (ie4||ie5||ns5) {	// ns4 would lose all this on rewrites
		tipcss.width = tipWidth+"px";
		tipcss.fontFamily = tipFontFamily;
		tipcss.fontSize = tipFontSize;
		tipcss.color = tipFontColor;
		tipcss.backgroundColor = tipBgColor;
		tipcss.borderColor = tipBorderColor;
		tipcss.borderWidth = tipBorderWidth+"px";
		tipcss.padding = tipPadding+"px";
		tipcss.borderStyle = tipBorderStyle;
	}
	if (tooltip&&tipFollowMouse) {
		document.onmousemove = trackMouse;
	}
}

window.onload = initTip;

/////////////////////////////////////////////////
//  doTooltip function
//			Assembles content for tooltip and writes 
//			it to tipDiv
/////////////////////////////////////////////////
var t1,t2;	// for setTimeouts
var tipOn = false;	// check if over tooltip link
function doTooltip(evt,num) {
	if (!tooltip) return;
	if (t1) clearTimeout(t1);	if (t2) clearTimeout(t2);
	tipOn = true;
	// set colors if included in messages array
	if (messages[num][2])	var curBgColor = messages[num][2];
	else curBgColor = tipBgColor;
	if (messages[num][3])	var curFontColor = messages[num][3];
	else curFontColor = tipFontColor;
	if (ie4||ie5||ns5) {
		var tip = startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr;
		tipcss.backgroundColor = curBgColor;
	 	tooltip.innerHTML = tip;
	}
	if (!tipFollowMouse) positionTip(evt);
	else t1=setTimeout("tipcss.visibility='visible'",100);
}

var mouseX, mouseY;
function trackMouse(evt) {
	standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
	mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
	mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
	if (tipOn) positionTip(evt);
}

/////////////////////////////////////////////////////////////
//  positionTip function
//		If tipFollowMouse set false, so trackMouse function
//		not being used, get position of mouseover event.
//		Calculations use mouseover event position, 
//		offset amounts and tooltip width to position
//		tooltip within window.
/////////////////////////////////////////////////////////////
function positionTip(evt) {
	if (!tipFollowMouse) {
		mouseX = (ns5)? evt.pageX: window.event.clientX + standardbody.scrollLeft;
		mouseY = (ns5)? evt.pageY: window.event.clientY + standardbody.scrollTop;
	}
	// tooltip width and height
	var tpWd = (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
	// document area in view (subtract scrollbar width for ns)
	var winWd = (ns5)? window.innerWidth-20+window.pageXOffset: standardbody.clientWidth+standardbody.scrollLeft;
	var winHt = (ns5)? window.innerHeight-20+window.pageYOffset: standardbody.clientHeight+standardbody.scrollTop;
	// check mouse position against tip and window dimensions
	// and position the tooltip 
	if ((mouseX+offX+tpWd)>winWd) 
		tipcss.left = mouseX-(tpWd+offX)+"px";
	else tipcss.left = mouseX+offX+"px";
	if ((mouseY+offY+tpHt)>winHt) 
		tipcss.top = winHt-(tpHt+offY)+"px";
	else tipcss.top = mouseY+offY+"px";
	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);
}

function hideTip() {
	if (!tooltip) return;
	t2=setTimeout("tipcss.visibility='hidden'",100);
	tipOn = false;
}

document.write('<div id="tipDiv" style="position:absolute; visibility:hidden; z-index:100"></div>')

