

/***********************************************
* 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= 261;
var offX= -10;	// how far from mouse to show tip
var offY= 5; 
var tipFontFamily= "Verdana, arial, helvetica, sans-serif";
var tipFontSize= "7pt";
// 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= "#000000";
var tipBgColor= "#DDECFF"; 
var tipBorderColor= "#00336f";
var tipBorderWidth= 1;
var tipBorderStyle= "ridge";
var tipPadding= 0;

// 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('scripts/linkrollover/map_nyito_eng_gy.jpg','<h3>Experience high quality dental services in Hungary</h3>',"#ffffff",'#770e0f');
messages[1] = new Array('scripts/linkrollover/map_nyito_eng_bp.jpg','<h3>Experience high quality dental services in Hungary</h3>',"#ffffff",'#770e0f');
messages[2] = new Array('scripts/linkrollover/map_nyito_eng_hv.jpg','<h3>Experience high quality dental services in Hungary</h3>',"#ffffff",'#770e0f');

messages[3] = new Array('scripts/linkrollover/map_nyito_esp_gy.jpg','<h3>Experimente los servicios dentales de altísima calidad en Hungría</h3>','#ffffff','#770e0f');
messages[4] = new Array('scripts/linkrollover/map_nyito_esp_bp.jpg','<h3>Experimente los servicios dentales de altísima calidad en Hungría</h3>','#ffffff','#770e0f');
messages[5] = new Array('scripts/linkrollover/map_nyito_esp_hv.jpg','<h3>Experimente los servicios dentales de altísima calidad en Hungría</h3>','#ffffff','#770e0f');

messages[6] = new Array('scripts/linkrollover/map_nyito_ita_gy.jpg','<h3>Provate i servizi dentistici di altissima qualitá in Ungheria</h3>',"#ffffff",'#770e0f');
messages[7] = new Array('scripts/linkrollover/map_nyito_ita_bp.jpg','<h3>Provate i servizi dentistici di altissima qualitá in Ungheria</h3>',"#ffffff",'#770e0f');
messages[8] = new Array('scripts/linkrollover/map_nyito_ita_hv.jpg','<h3>Provate i servizi dentistici di altissima qualitá in Ungheria</h3>',"#ffffff",'#770e0f');

messages[9] = new Array('scripts/linkrollover/high/gy_doktor.png','<h3>Experience high quality dental services in Hungary</h3>',"#ffffff",'#770e0f');
messages[10] = new Array('scripts/linkrollover/high/hv_doktor.png','<h3>Experience high quality dental services in Hungary</h3>',"#ffffff",'#770e0f');
messages[11] = new Array('scripts/linkrollover/high/bp1_doktor.png','<h3>Experience high quality dental services in Hungary</h3>',"#ffffff",'#770e0f');
messages[12] = new Array('scripts/linkrollover/high/bp2_doktor.png','<h3>Experience high quality dental services in Hungary</h3>',"#ffffff",'#770e0f');

messages[13] = new Array('scripts/linkrollover/high/gy_doktor.png','<h3>Provate i servizi dentistici di altissima qualitá in Ungheria</h3>',"#ffffff",'#770e0f');
messages[14] = new Array('scripts/linkrollover/high/hv_doktor.png','<h3>Provate i servizi dentistici di altissima qualitá in Ungheria</h3>',"#ffffff",'#770e0f');
messages[15] = new Array('scripts/linkrollover/high/bp1_doktor.png','<h3>Provate i servizi dentistici di altissima qualitá in Ungheria</h3>','#ffffff','#770e0f');
messages[16] = new Array('scripts/linkrollover/high/bp2_doktor.png','<h3>Provate i servizi dentistici di altissima qualitá in Ungheria</h3>','#ffffff','#770e0f');

messages[17] = new Array('scripts/linkrollover/high/gy_doktor.png','<h3>Experimente los servicios dentales de altísima calidad en Hungría</h3>','#ffffff','#770e0f');
messages[18] = new Array('scripts/linkrollover/high/hv_doktor.png','<h3>Experimente los servicios dentales de altísima calidad en Hungría</h3>','#ffffff','#770e0f');
messages[19] = new Array('scripts/linkrollover/high/bp1_doktor.png','<h3>Experimente los servicios dentales de altísima calidad en Hungría</h3>','#ffffff','#770e0f');
messages[20] = new Array('scripts/linkrollover/high/bp2_doktor.png','<h3>Experimente los servicios dentales de altísima calidad en Hungría</h3>','#ffffff','#770e0f');


messages[21] = new Array('../../../scripts/linkrollover/treatment_images/dental_implants.jpg','<h3>Dental implants are surgically fixed substitutions for roots of missing teeth. Embedded in the jawbone, they act as anchors for a replacement tooth, also known as a crown, or a full set of replacement teeth.</h3>','#ffffff','#00336F');
messages[22] = new Array('../../../scripts/linkrollover/treatment_images/veneer.jpg','<h3>A layer of tooth-colored material, usually porcelain or acrylic resin, attached to and covering the surface of a metal crown or natural tooth structure.</h3>','#ffffff','#00336F');
messages[23] = new Array('../../../scripts/linkrollover/treatment_images/crown.jpg','<h3>Full-coverage restoration (sometimes incorrectly called a cap) is a prosthetic tooth, designed by a dentist and usually created by a lab technician.</h3>','#ffffff','#00336F');
messages[24] = new Array('../../../scripts/linkrollover/treatment_images/bridges.jpg','<h3>A dental bridge is a prosthesis used in place of missing teeth and may be removable or permanently attached.</h3>','#ffffff','#00336F');
messages[25] = new Array('../../../scripts/linkrollover/treatment_images/fillings.jpg','<h3>Dental fillings are inserted as restorations in the treatment of dental cavities, after drilling out the cavities.</h3>','#ffffff','#00336F');
messages[26] = new Array('../../../scripts/linkrollover/treatment_images/porcelain.jpg','<h3>A hard, white, translucent ceramic made by firing a pure clay and then glazing it with variously colored fusible materials.</h3>','#ffffff','#00336F');
messages[27] = new Array('../../../scripts/linkrollover/treatment_images/dentures.jpg','<h3>Removable complete dentures are full-mouth false teeth, which are used when a patient has no teeth left on either the mandibular arch, the maxillary arch, or both.</h3>','#ffffff','#00336F');
messages[28] = new Array('../../../scripts/linkrollover/treatment_images/anasthesia.jpg','<h3><ul><li>Total or partial loss of sensation, especially tactile sensibility, induced by disease, injury, acupuncture, or an anesthetic, such as chloroform or nitrous oxide.<li>Local or general insensibility to pain with or without the loss of consciousness, induced by an anesthetic.<li>A drug, administered for medical or surgical purposes, that induces partial or total loss of sensation and may be topical, local, regional, or general, depending on the method of administration and area of the body affected.</ul></h3>','#ffffff','#00336F');
messages[29] = new Array('../../../scripts/linkrollover/treatment_images/dentures.jpg','<h3><ul><li>The formation of cavities in the teeth by the action of bacteria; tooth decay.<li>Also known colloquially as tooth decay.</ul></h3>','#ffffff','#00336F');
messages[30] = new Array('../../../scripts/linkrollover/treatment_images/stomathology.jpg','<h3>The medical study of the mouth and its diseases.</h3>','#ffffff','#00336F');
messages[31] = new Array('../../../scripts/linkrollover/treatment_images/whitening.jpg','<h3>Also known as tooth whitening.</h3>','#ffffff','#00336F');

messages[32] = new Array('../../../scripts/linkrollover/treatment_images/dental_implants.jpg','<h3>Los implantes dentales son substitutos quirúrgico fijados para las raíces de dientes que falta. Encajado en la mandíbola, actúan como anclas para un diente del reemplazo, también conocidas como corona, o sistema completo de dientes del reemplazo.</h3>','#ffffff','#00336F');
messages[33] = new Array('../../../scripts/linkrollover/treatment_images/veneer.jpg','<h3>Una capa de material diente-coloreado, eneralmente porcelana o resina de acrílico, unido y cubriendo la superficie de una corona del metal o de una estructura natural del diente.</h3>','#ffffff','#00336F');
messages[34] = new Array('../../../scripts/linkrollover/treatment_images/crown.jpg','<h3>La restauración de la lleno-cobertura (a veces incorrectamente llamada un casquillo) es un diente prostético disenado por un dentista y creado generalmente por un técnico de laboratorio.</h3>','#ffffff','#00336F');
messages[35] = new Array('../../../scripts/linkrollover/treatment_images/bridges.jpg','<h3>Un puente dental es una prótesis usada en lugar de los dientes que faltan y puede ser desmontable o unido permanentemente.</h3>','#ffffff','#00336F');
messages[36] = new Array('../../../scripts/linkrollover/treatment_images/fillings.jpg','<h3>Los rellenos dentales se insertan como restauraciones en el tratamiento de cavidades dentales, después de taladrar las cavidades.</h3>','#ffffff','#00336F');
messages[37] = new Array('../../../scripts/linkrollover/treatment_images/porcelain.jpg','<h3>Un material de cerámica, duro, blanco, translúcido hecha encendiendo una arcilla pura y después esmaltándola con los materiales fusibles varios colores.</h3>','#ffffff','#00336F');
messages[38] = new Array('../../../scripts/linkrollover/treatment_images/dentures.jpg','<h3>Las dentaduras completas desprendibles son los dientes artificiales en la boca , se utilizan que cuando un paciente no tiene ningún diente a la izquierda en el arco de la mandíbula, el arco maxillary, o ambos.</h3>','#ffffff','#00336F');
messages[39] = new Array('../../../scripts/linkrollover/treatment_images/anasthesia.jpg','<h3><ul><li>Pérdida total o parcial de sensación, especialmente sensibilidad táctil, inducida por enfermedad, lesión, acupuntura, o un anestésico, tal como cloroformo o óxido nitroso.<li>Insensibilidad local o general al dolor con o sin la pérdida de sentido, inducida por un anestésico.<li>Una droga, administrada para los propósitos médicos o quirúrgicos, que induce la pérdida parcial o total de sensación y puede ser tópico, local, regional, o general, dependiendo del método de administración y del área del cuerpo afectado.</ul></h3>','#ffffff','#00336F');
messages[40] = new Array('../../../scripts/linkrollover/treatment_images/dentures.jpg','<h3><ul><li>La formación de cavidades en los dientes por la acción de bacterias, caries.<li>También conocido familiar como caries.</ul></h3>','#ffffff','#00336F');
messages[41] = new Array('../../../scripts/linkrollover/treatment_images/stomathology.jpg','<h3>El estudio médico de la boca y de sus enfermedades.</h3>','#ffffff','#00336F');
messages[42] = new Array('../../../scripts/linkrollover/treatment_images/whitening.jpg','<h3>También conocido como el blanquear del diente.</h3>','#ffffff','#00336F');

messages[43] = new Array('../../../scripts/linkrollover/treatment_images/dental_implants.jpg','<h3>Gli impianti dentali sono sostituti chirurgicamente fissati al posto delle radici dei denti mancanti. Incastonati nell\'osso della mandibola, fungono da ancoraggio per corone e ponti.</h3>','#ffffff','#00336F');
messages[44] = new Array('../../../scripts/linkrollover/treatment_images/veneer.jpg','<h3>Uno strato di materiale color dente, solitamente fatto di porcellana o di resina acrilica, fissato per coprire la struttura naturale del dente.</h3>','#ffffff','#00336F');
messages[45] = new Array('../../../scripts/linkrollover/treatment_images/crown.jpg','<h3>É una copertura completa che é un dente prostetico, progettato dal dentista e reallizato da un laboratorio tecnico. Generalmente viene fatto da ceramica e da un metallo (p.es. metallo senza nichelio, oro, ecc.)</h3>','#ffffff','#00336F');
messages[46] = new Array('../../../scripts/linkrollover/treatment_images/bridges.jpg','<h3>É una protesi fissata al posto dei denti mancanti che puó essere smontabile o permanente. Generalmente viene fatto da ceramica e da un metallo (p.es. metallo senza nichelio, oro, ecc.)</h3>','#ffffff','#00336F');
messages[47] = new Array('../../../scripts/linkrollover/treatment_images/fillings.jpg','<h3>Materiali da otturazione color dente vengono inseriti nella cavitá dentale precedentemente pulita.</h3>','#ffffff','#00336F');
messages[48] = new Array('../../../scripts/linkrollover/treatment_images/porcelain.jpg','<h3>É un materiale di ceramica dura, bianca e traslucida fatta da un\'argilla pura infornata e lustrata.</h3>','#ffffff','#00336F');
messages[49] = new Array('../../../scripts/linkrollover/treatment_images/dentures.jpg','<h3>Le dentiere complete smontabili sono denti artificiali che vengono utilizzati quando al paziente mancano i denti della mandibola superiore, di quella inferiore o di entrambi.</h3>','#ffffff','#00336F');
messages[50] = new Array('../../../scripts/linkrollover/treatment_images/anasthesia.jpg','<h3>Puó essere generale o locale che induce la perdita totale o parziale della sensibilitá dopo la somministrazione di un farmaco.</h3>','#ffffff','#00336F');
messages[51] = new Array('../../../scripts/linkrollover/treatment_images/dentures.jpg','<h3>Colloquialmente conosciute anche come carie dentarie, la loro formazione é dovuta all\'azione di batteri.</h3>','#ffffff','#00336F');
messages[52] = new Array('../../../scripts/linkrollover/treatment_images/stomathology.jpg','<h3>É lo studio medico dentistico che si occupa della bocca e delle relative malattie.</h3>','#ffffff','#00336F');
messages[53] = new Array('../../../scripts/linkrollover/treatment_images/whitening.jpg','<h3>É un trattamento di circa un\'ora durante il quale i denti diventano piú bianchi anche di varie tonalitá.</h3>','#ffffff','#00336F');

//Dental implants dental_implants.jpg
//Veneer veneer.jpg
//Dental crown crown.jpg
//Bridge bridges.jpg
//Dental fillings fillings.jpg
//Porcelain porcelain.jpg
//Dentures dentures.jpg
//Anesthesia anasthesia.jpg
//Dental cavities dentures.jpg
//Stomatology stomathology.jpg
//Tooth bleaching whitening.jpg

////////////////////  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++) {
	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) {
		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>')

