/***********************************************

* 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= 300;

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('images/y.gif','<b><center>BEAUTIFUL VINTAGE BROWN / WHITE "FINEL" ENAMEL PITCHER /JUG </b><br>designed by Kaj Franck (1911-1989), made in Finland by Arabia/Finel.<br></center><b>Material:</b> Enamelled iron<br><b>Maker:</b> Finel, Finland<br><b>In production: </b>sometimes between 1970-1980<br><b>Measures:</b> &Oslash; 6-1/4" inch ( 16 cm) diameter from spout to handle,<br>stands 7-1/2" (19 cm) tall<br><b>Capacity:</b> approximately 1.6 Qt. (1,6 ltr)<br><b>Condition:</b> in wonderful condition with only a slight scratch on the base and surface due to normal use. The enamel overall is clean and glossy.<br><b>Price:</b> $95<br><b>Item #:</b> FINEL_1');
messages[2] = new Array('images/y.gif','<b><center>BEAUTIFUL VINTAGE ARABIA/FINEL, FINLAND ENAMEL MUG IN DARK BROWN</b></center><b>Material:</b> Enamelled metal<br><b>Maker:</b> Wartsila Arabia Finel, Finland (the original foil label remain)<br><b>Measures:</b> Ø 5 1/2" (14 cm), and 2-1/2" (6 cm) high<br><b>Capacity:</b> 0.4 Qt. (0,4 Ltr)<br><b>Condition:</b> appears <U>unused</U>; in excellent condition with no damages or signs of wear<br><b>Price:</b> $25<br><b>Item #:</b> FINEL_2<br>1 available');
messages[3] = new Array('images/y.gif','<b><center>BEAUTIFUL 10" (27 cm) ENAMEL PLATE / PLATTER IN BROWN</b><br>designed by Kaj Franck, produced by Arabia/Finel in 1970´s.</b></center><br><b>Material:</b> Enamelled iron<br><b>In production: </b> from 1970s to 1980s<br><b>Dimensions:</b> Ø 10 1/2" // 27 cm, and 3/4" // 2 cm deep<br><b>Condition:</b> slightly used, in very good condition. There is minor enamel flaking around the rim, but that´s typical for Finel enamel ware even if the piece been unused.<br><b>Price:</b> $35<br><b>Item #:</b> FINEL_3<br>1 available');
messages[4] = new Array('images/y.gif','<b><center>BEAUTIFUL 10" (27 cm) ENAMEL PLATE / PLATTER IN WHITE</b><br>designed by Kaj Franck, produced by Arabia/Finel in 1970´s.</b></center><br><b>Material:</b> Enamelled iron<br><b>In production: </b> from 1970s to 1980s<br><b>Dimensions:</b> Ø 10 1/2" // 27 cm, and 3/4" // 2 cm deep<br><b>Condition:</b> slightly used, in very good condition. There is minor enamel flaking around the rim, but that´s typical for Finel enamel ware even if the piece been unused.<br><b>Price:</b> $45<br><b>Item #:</b> FINEL_4<br>1 available');
messages[5] = new Array('images/y.gif','<b><center>BEAUTIFUL 10" (27 cm) ENAMEL PLATE / PLATTER IN RED</b><br>designed by Kaj Franck, produced by Arabia/Finel in 1970´s.</b></center><br><b>Material:</b> Enamelled iron<br><b>In production: </b> from 1970s to 1980s<br><b>Dimensions:</b> Ø 10 1/2" // 27 cm, and 3/4" // 2 cm deep<br><b>Condition:</b> slightly used, in very good condition. There is minor enamel flaking around the rim, but that´s typical for Finel enamel ware even if the piece been unused.<br><b>Price:</b> $45<br><b>Item #:</b> FINEL_5<br>1 available');
messages[6] = new Array('images/y.gif','<b><center>BEAUTIFUL LARGE ENAMEL BOWL IN BLACK</b><br>designed by Kaj Franck (1911-1989)</center><br><b>Item:</b> Round mixing or serving bowl<br><b>Designer:</b> Kaj Franck (the shape)<br><b>Material:</b> Enamelled metal<br><b>Maker:</b> Temal Oy (formely Arabia Finel), Finland<br><b>Measures:</b> Ø 8-1/2" (21 cm), and 5-1/2" (14 cm) high<br><b>Capacity:</b> 4 Qt. (4 Ltr)<br><b>Condition:</b> in great <u>unused</u> condition with no dents or scratches<br>The enamel is glossy and gorgeous!<br><b>Price:</b> $85<br><b>Item #:</b>FINEL_6<br>2 available');
messages[7] = new Array('images/y.gif','<b><center>BEAUTIFUL, LARGE FINEL ENAMEL MIXING/SERVING BOWL IN WHITE</b><br>designed by Kaj Franck (1911-1989) for Finel Oy, Finland<br></center><b>Designer:</b> Kaj Franck<br><b>Material:</b> Enamelled iron<br><b>Maker:</b> Arabia Finel, Finland<br><b>Measures:</b> Ø 8-1/2" (21 cm), and 5-1/2" (14 cm) high<br><b>Capacity:</b> 4 Qt. (4 Ltr)<br><b>Condition:</b> in great condition. <u>Slightly used.</u> The enamel is glossy and gorgeous. There is some enamel flaking around the rim, but that´s typical for Finel enamel ware even if the piece been unused.<br><b>Price:</b> $85<br><b>Item #:</b> FINEL_7<br>1 available');
messages[8] = new Array('images/y.gif','<b><center>BEAUTIFUL, LARGE FINEL ENAMEL MIXING/SERVING BOWL IN RED</b><br>designed by Kaj Franck (1911-1989) for Finel Oy, Finland<br></center><b>Designer:</b> Kaj Franck<br><b>Material:</b> Enamelled iron<br><b>Maker:</b> Arabia Finel, Finland<br><b>Measures:</b> Ø 8-1/2" (21 cm), and 5-1/2" (14 cm) high<br><b>Capacity:</b> 4 Qt. (4 Ltr)<br><b>Condition:</b> in great condition. <u>Slightly used.</u> The enamel is glossy and gorgeous. There is some enamel flaking around the rim, but that´s typical for Finel enamel ware even if the piece been unused.<br><b>Price:</b> $85<br><b>Item #:</b> FINEL_8<br>1 available');
messages[9] = new Array('images/y.gif','<b><center>BEAUTIFUL, LARGE FINEL ENAMEL MIXING/SERVING BOWL IN WHITE w/BROWN DECORATION</b><br>designed by Kaj Franck (1911-1989) for Finel Oy, Finland<br></center><b>Designer:</b> Kaj Franck<br><b>Material:</b> Enamelled iron<br><b>Maker:</b> Arabia Finel, Finland<br><b>Measures:</b> Ø 8-1/2" (21 cm), and 5-1/2" (14 cm) high<br><b>Capacity:</b> 4 Qt. (4 Ltr)<br><b>Condition:</b> in great condition. <u>Slightly used.</u> The enamel is glossy and gorgeous. There is some enamel flaking around the rim, but that´s typical for Finel enamel ware even if the piece been unused.<br><b>Price:</b> $65<br><b>Item #:</b> FINEL_9<br>2 available');
messages[10] = new Array('images/y.gif','<b><center>BEAUTIFUL 2 Qt. (2 Ltr) BLACK ENAMEL BOWL</b><br>designed by Kaj Franck (1911-1989)</center><br><b>Item:</b> Round mixing or serving bowl<br><b>Designer:</b> Kaj Franck<br><b>Material:</b> Enamelled metal<br><b>Maker:</b> Temal Oy (formely Arabia Finel), Finland. Retains the metallic foil label.<br><b>Measures:</b> Ø 8" (20 cm), and 2-3/4" (7 cm) high<br><b>Capacity:</b> 2 Qt. (2 Ltr)<br><b>Condition:</b> in great <u>unused</u> condition with no dents or scratches.<br>The enamel is glossy and gorgeous. Minor enamel flaking around the rim, that´s typical for enamel ware even if the piece been unused.<br><b>Price:</b> $85<br><b>Item #:</b> FINEL_10<br>2 available');
messages[11] = new Array('images/y.gif','<b><center>BEAUTIFUL ENAMEL BOWL IN COBALT BLUE</b><br>designed by Kaj Franck (1911-1989)<br></center><b>Designer:</b> Kaj Franck for Arabia Finel, Finland<br><b>Material:</b> Enamelled metal<br><b>Maker:</b> Wartsila Arabia Finel, Finland<br><b>Measures:</b> Ø 5 1/2" (14 cm), and 2-1/2" (6 cm) high<br><b>Capacity:</b> 0.7 Qt. (0,75 Ltr)<br><b>Condition:</b> slightly used, very good<br> <b>Price:</b> $30<br><b>Item #:</b> FINEL_11<br>4 available');
messages[12] = new Array('images/y.gif','<b><center>BEAUTIFUL, LARGE FINEL ENAMEL MIXING/SERVING BOWL IN ORANGE</b><br>designed by Kaj Franck (1911-1989) for Finel Oy, Finland<br></center><b>Designer:</b> Kaj Franck<br><b>Material:</b> Enamelled iron<br><b>Maker:</b> Arabia Finel, Finland<br><b>Measures:</b> Ø 8-1/2" (21 cm), and 5-1/2" (14 cm) high<br><b>Capacity:</b> 4 Qt. (4 Ltr)<br><b>Condition:</b> in great condition. <u>Slightly used.</u> The enamel is glossy and gorgeous. There is some enamel flaking around the rim, but that´s typical for Finel enamel ware even if the piece been unused.<br><b>Price:</b> $85<br><b>Item #:</b> FINEL_12<br>1 available');
messages[13] = new Array('images/y.gif','<b><center>VINTAGE - RARE - UNUSED<br>SQUARE ENAMEL BAKING/SERVING BOWL</b><br>designed by Kaj Franck (1911-1989) for Arabia Wartsila/Finel Finland</center><br><b>Material:</b> Enamelled metal (iron) <br><b>Measures:</b> 6 1/2" by 6 1/2"  (16,5 cm x 16,5 cm), and 1-1/2" (3,8 cm) deep<br><b>Capacity:</b> 0.6 Qt. (0,6 Ltr)<br><b>Condition:</b> in excellent <U>unused</U> condition.<br>Even the silver/black "ARABIA WARTSILA FINLAND" label is still intact.<br><b>Price:</b> $50<br><b>Item #:</b> FINEL_13<br>4 available');
messages[14] = new Array('images/y.gif','<b><center>VINTAGE - RARE<br>SQUARE ENAMEL BAKING/SERVING BOWL</b><br>designed by Kaj Franck (1911-1989) for Arabia Wartsila/Finel Finland</center><br><b>Material:</b> Enamelled metal (iron) <br><b>Measures:</b> 6 1/2" by 6 1/2"  (16,5 cm x 16,5 cm), and 1-1/2" (3,8 cm) deep<br><b>Capacity:</b> 0.6 Qt. (0,6 Ltr)<br><b>Condition:</b> The green interior and black exterior are still clean and glossy. However the bowl shows utensil, the enamel - especially on the upper rim and the base is hairline scratched, and there´s also a few tiny enamel flacking around the rim visible. Sold as is.<br><b>Price:</b> $ 15<br><b>Item #:</b> FINEL_14<br>1 available');

////////////////////  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>')

