/***********************************************

* 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

***********************************************/



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= 200;

var offX= 10;	// how far from mouse to show tip

var offY= 8; 

var tipFontFamily= "Arial, helvetica, sans-serif";

var tipFontSize= "8pt";

// 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= "#FFFFFF";

var tipBgColor= "#000000"; 

var tipBorderColor= "#000000";

var tipBorderWidth= 1;

var tipBorderStyle= "ridge";

var tipPadding= 1;



// 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('y.gif','#FFFFFF');

messages[1] = new Array('y.gif','<B>ESPRESSO CUP w/SAUCER</B><BR>0.1 Qt./ 0.1 Ltr<BR>Condition: Excellent<BR>Order#: VALENCIA #1<BR>Price upon request <BR>12 sets available');
messages[2] = new Array('y.gif','<B>COFFEE CUP w/SAUCER</B><BR>0.15 Qt./ 0.15 Ltr<BR>Condition: Excellent<BR>Order#: VALENCIA #2<BR>Price upon request <BR>4 sets available');
messages[3] = new Array('y.gif','<B>TEA CUP w/SAUCER</B><BR>1/4 Qt./ 0.25 Ltr<BR>Condition: Excellent<BR>Order#: VALENCIA #3<BR>Price upon request <BR>2 sets available');
messages[4] = new Array('y.gif','<B>CREAMER</B><BR>5 Oz. / 0,15 Ltr<BR>Condition: Excellent<BR>Order#: VALENCIA #4<BR>Price upon request <BR>2 available');
messages[5] = new Array('y.gif','<B>SUGAR BOWL</B><BR>1/4 Qt. / 0,22 Ltr<BR>Condition: Excellent<BR>Order#: VALENCIA #5<BR>Price upon request <BR>1 available');
messages[6] = new Array('y.gif','<B>SUGAR BOWL / BONBONNIERE</B><BR>&Oslash; 2 3/4" / 7 cm <BR>H 3 3/4 /9,5 cm<BR>Condition: Unused, Excellent<BR>Order#: VALENCIA #6<BR>Price upon request <BR>2 available');
messages[7] = new Array('y.gif','<B>COVERED JAM JAR</B><BR>&Oslash; 2 3/4" / 10 cm<BR> H 3 3/4" (9,5 cm)<BR>1/4 Qt. /0.25 Ltr<BR>Condition: Excellent<BR>Order#: VALENCIA #7<BR>Price upon request <BR>0 available');

messages[8] = new Array('y.gif','<B>BREAD & BUTTER PLATE</B><BR>&Oslash; 6-3/4" /17,5 cm<BR>Condition: Excellent<BR>Order#: VALENCIA #8<BR>Price upon request <BR>9 available');
messages[9] = new Array('y.gif','<B>SALAD PLATE</B><BR>&Oslash; 7-3/4" /19,5 cm<BR>Condition: Excellent<BR>Order#: VALENCIA #9<BR>Price upon request <BR>6 available');
messages[10] = new Array('y.gif','<B>DINNER PLATE</B><BR>&Oslash; 10" /25,5 cm<BR>Condition: Unused, Excellent<BR>Order#: VALENCIA #10<BR>Price upon request <BR>6 available');
messages[11] = new Array('y.gif','<B>SOUP BOWL</B><BR>&Oslash;  9" / 22 cm<BR>Condition: Unused, Excellent<BR>Order#: VALENCIA #11<BR>Price upon request <BR>8 available');
messages[12] = new Array('y.gif','<B>CENTER PLATTER</B><BR>&Oslash; 13" / 33,5 cm<BR>Condition: Excellent<BR>Order#: VALENCIA #12<BR>Price upon request <BR>1 available');
messages[13] = new Array('y.gif','<B>TRAY</B><BR>&Oslash; 12" /31 cm<BR>Hand-signed "VALENCIA ARABIA FINLAND, IP"<BR>Condition: Excellent<BR>Order#: VALENCIA #13<BR>Price upon request <BR>0 available');

messages[14] = new Array('y.gif','<B>FOOTED TEAPOT<BR> Very rare, unusual form</B><BR>3/4 Qt. / 0,75 Ltr<BR>Unused, Excellent<BR>Order#: VALENCIA #14<BR>Price upon request <BR>1 available');
messages[15] = new Array('y.gif','<B>TEA POT</B><BR>1-3/4 Qt. / 1,15 Ltr<BR>Excellent<BR>Order#: VALENCIA #15<BR>Price upon request <BR>1 available');
messages[16] = new Array('y.gif','<B>COFFEE POT<BR> Very rare, unusual size</B><BR>1 1/2 Qt. / 1,5 Ltr<BR>Excellent<BR>Order#: VALENCIA #16<BR>Price upon request <BR>0 available');
messages[17] = new Array('y.gif','<B>PITCHER<BR> Very rare</B><BR>&Oslash; 5" / 12,5 cm<BR> H 6"/ 14,5 cm<BR>Vol:  1.2 Qt. / 1,2 Ltr<BR>Excellent<BR>Order#: VALENCIA #17<BR>Price upon request <BR>1 available');
messages[18] = new Array('y.gif','<B>FOOTED CENTER PIECE</B><BR>&Oslash; 11" / 26 cm + handles<BR>Condition: Excellent<BR>Order#: VALENCIA #18<BR>Price upon request <BR>1 available');
messages[19] = new Array('y.gif','<B>COVERED TUREEN ND 3</B><BR>2.8 Qt. / 2,85 Ltr<BR>&Oslash;  9-1/2" / 24,5 cm<BR>H 8" / 20,5 cm (w/lid)<BR>Condition: Excellent<BR>Order#: VALENCIA #19<BR>Price upon request <BR>1 available');

messages[20] = new Array('y.gif','<B>FOOTED BOWL ND 3</B><BR>0.3 Qt. / 0,3 Ltr<BR>&Oslash;  4-1/2" / 11,5 cm<BR>H 2-1/4" / 5,8 cm<BR>Condition: Excellent<BR>Order#: VALENCIA #20<BR>Price upon request <BR>1 available');
messages[21] = new Array('y.gif','<B>COVERED TUREEN ND 3</B><BR>1.2 Qt. / 1,1 Ltr<BR>&Oslash;  7" / 17,5 cm<BR>H 6" / 15 cm (w/lid)<BR>Condition: Excellent<BR>Order#: VALENCIA #21<BR>Price upon request <BR>2 available');
messages[22] = new Array('y.gif','<B>SERVING BOWL (COMPOTE)</B><BR>&Oslash; 7" / 17,5 cm<BR>H 3 1/2" / 9 cm<BR>1,0 Qt. / 1,0 Ltr<BR>Condition: Very good<BR>Order#: VALENCIA #22<BR>Price upon request <BR>0 available');
messages[23] = new Array('y.gif','<B>SERVING BOWL (COMPOTE)</B><BR>&Oslash; 8 3/4" / 22,2 cm<BR>H 4 1/2" / 11,3 cm<BR>2,5 Qt. / 2,5 Ltr<BR>Condition: Excellent<BR>Order#: VALENCIA #23<BR>Price upon request <BR>2 available');
messages[24] = new Array('y.gif','<B>LOW EGG CUP</B><BR>Ø 2 3/8" / 6 cm<BR> H 1 3/4 / 4 cm<BR>Condition: Excellent<BR>Order#: VALENCIA #24<BR>Price upon request <BR>4 available');
messages[25] = new Array('y.gif','<B>TALL EGG-CUP</B><BR>H 4 1/2" / 11,5 cm<BR>Condition: Excellent<BR>Order#: VALENCIA #25<BR>Price upon request <BR>5 available');
messages[26] = new Array('y.gif','<B>LOW CANDLE STICK</B><BR>H 3 3/8" / 8,5 cm<BR>Condition: Excellent<BR>Order#: VALENCIA #26<BR>Price upon request <BR>0 available');

messages[27] = new Array('y.gif','<B>TALL CANDLE STICK</B><BR>H 8" / 20,5 cm<BR>Condition: Excellent<BR>Order#: VALENCIA #27<BR>Price upon request <BR>2 available');
messages[28] = new Array('y.gif','<B>CANDLE STICK</B><BR>H 5" / 12,5 cm<BR>Condition: Excellent<BR>Order#: VALENCIA #28<BR>Price upon request <BR>2 available');	
messages[29] = new Array('y.gif','<B>CHEESE BOARD, SQUARE</B><BR>4 1/2" by 8" (11,5 cm x 20 cm)<BR>Condition: Excellent<BR>Order#: VALENCIA #29<BR>Price upon request <BR>0 available');	
messages[30] = new Array('y.gif','<B>SERVING / CUTTING BOARD</B><BR>8" by 14" / 20 cm x 36 cm<BR>Condition: Excellent<BR>Order#: VALENCIA #30<BR>Price upon request <BR>1 available');
messages[31] = new Array('y.gif','<B>TRAY, SQUARE</B><BR>8" by 14" (20 cm x 36 cm)<BR>Hand-signed "VALENCIA ARABIA FINLAND, IP"<BR>Condition: Excellent<BR>Order#: VALENCIA #31<BR>Price upon request <BR>0 available');
messages[32] = new Array('y.gif','<B>CHEESE BOARD</B><BR>&Oslash; 8-3/4" / 22 cm w/handle<BR>Condition: Excellent<BR>Order#: VALENCIA #32<BR>Price upon request <BR>1 available');
messages[33] = new Array('y.gif','<B>HAND-PAINTED DECORATIVE MUG<BR>in Valencia pattern</B><BR>Designed by Gunvor Olin-Gronqvist<BR>Hand-signed: Arabia, Made in Finland, GOG/SL <BR>H 12 cm /4 3/4"<br>&Oslash; 13 cm /5"<BR>Vol.: 1.3 Qt. /1,35 Ltr<BR>Price upon request <BR>Order#: VALENCIA #33<BR>1 available','black','white');



////////////////////  END OF CUSTOMIZATION AREA  ///////////////////



// preload images that are to appear in tooltip

// from arrays above

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 valign="top">';

var endStr = '</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) {

		standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body

		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>')

