document.write('<img align=center width=449 height=539 src=\"images/ita-senato.gif\" hspace="0" vspace="24" usemap=\"#politiche\" border=0><map name=\"politiche\">');
document.write('<area href=\"default.asp?go=trentino&cat=senato" onmouseover=\"return escape(tooltip(\'Trentino Alto-Adige\',\'trentino\'));\" shape=poly coords=\"141, 33, 144, 25, 138, 25, 139, 17, 144, 13, 151, 15, 160, 17, 170, 8, 181, 8, 196, 8, 206, 2, 205, 9, 208, 13, 215, 21, 216, 24, 213, 26, 205, 26, 197, 32, 194, 33, 193, 40, 198, 46, 195, 50, 190, 53, 188, 57, 188, 60, 183, 59, 179, 59, 176, 61, 172, 64, 168, 71, 164, 73, 158, 73, 157, 67, 153, 67, 149, 69, 144, 69, 142, 57, 145, 45, 146, 38\">');
document.write('<area href=\"default.asp?go=vaosta&cat=senato" onmouseover=\"return escape(tooltip(\'Valle d`Aosta\',\'vaosta\'));\" shape=poly coords=\"44, 63, 44, 70, 45, 77, 37, 81, 33, 79, 23, 82, 15, 85, 10, 80, 8, 74, 5, 70, 5, 66, 12, 61, 16, 64, 28, 60, 36, 58\">');
document.write('<area href=\"default.asp?go=abruzzo&cat=senato" onmouseover=\"return escape(tooltip(\'Abruzzo\',\'abruzzo\'));\" shape=poly coords=\"270,218,280,233,292,246,299,253,307,258,295,272,292,270,288,268,282,268,279,272,273,274,259,272,250,267,247,262,238,256,250,255,246,245,246,232,254,224\">');
document.write('<area href=\"default.asp?go=basilicata&cat=senato" onmouseover=\"return escape(tooltip(\'Basilicata\',\'basilicata\'));\" shape=poly coords=\"336,362,340,367,349,367,364,367,366,359,375,359,382,345,377,335,378,327,364,327,356,317,351,317,348,308,336,308,331,308,331,318,328,325,332,338,341,346,343,354\">');
document.write('<area href=\"default.asp?go=calabria&cat=senato" onmouseover=\"return escape(tooltip(\'Calabria\',\'calabria\'));\" shape=poly coords=\"339,366,344,381,350,399,353,413,359,421,356,427,349,428,344,433,346,439,343,452,337,453,339,465,350,469,357,458,363,447,370,446,372,428,378,419,390,417,394,417,394,401,395,392,384,385,372,383,370,377,371,368,374,358,366,358,366,366,353,367,345,365\">');
document.write('<area href=\"default.asp?go=campania&cat=senato" onmouseover=\"return escape(tooltip(\'Campania\',\'campania\'));\" shape=poly coords=\"302,328,288,331,291,326,285,321,281,321,275,321,266,299,276,289,284,289,291,293,303,292,313,289,312,295,319,300,323,305,329,309,333,315,328,318,330,329,331,335,336,340,340,351,338,359,331,361,326,362,320,357,313,353,309,350,310,342,309,334,305,326\">');
document.write('<area href=\"default.asp?go=emilia&cat=senato" onmouseover=\"return escape(tooltip(\'Emilia Romagna\',\'emilia\'));\" shape=poly coords=\"209,116,201,110,188,112,178,112,157,113,150,113,143,113,135,109,126,106,120,102,115,107,108,105,101,105,101,112,97,119,99,128,106,134,106,136,113,140,119,135,128,143,140,149,153,154,163,154,176,149,185,153,187,159,189,165,206,167,213,164,223,164,230,161,223,156,216,149,211,141,211,134,207,125\">');
document.write('<area href=\"default.asp?go=lazio&cat=senato" onmouseover=\"return escape(tooltip(\'Lazio\',\'lazio\'));\" shape=poly coords=\"195,219,188,222,192,229,184,232,183,238,177,242,191,256,191,260,199,261,207,274,223,289,237,295,238,300,251,297,258,301,265,300,273,291,274,275,263,272,257,272,251,269,250,263,242,260,235,256,238,254,251,256,248,251,243,241,247,232,251,229,247,222,239,228,231,235,224,239,220,244,215,242,210,235,208,228,204,228,199,228\">');
document.write('<area href=\"default.asp?go=liguria&cat=senato" onmouseover=\"return escape(tooltip(\'Liguria\',\'liguria\'));\" shape=poly coords=\"38,152,49,154,56,140,59,135,70,135,78,132,83,129,84,126,88,131,94,129,100,129,110,139,118,150,125,157,118,155,110,150,102,144,96,143,92,143,82,139,78,139,70,141,64,148,57,153,55,162,49,164,41,169,30,169,31,165,36,158\">');
document.write('<area href=\"default.asp?go=lombardia&cat=senato" onmouseover=\"return escape(tooltip(\'Lombardia\',\'lombardia\'));\" shape=poly coords=\"138,31,131,26,128,32,127,39,128,47,126,41,120,38,115,41,108,44,106,38,103,30,97,33,97,40,98,48,90,52,90,58,89,64,87,67,84,59,81,56,72,59,72,66,73,82,78,85,78,94,70,97,74,103,83,109,88,119,97,127,101,111,104,103,111,104,121,105,126,108,138,108,141,110,156,112,176,112,173,107,166,101,156,95,149,88,149,80,151,72,156,67,145,67,145,56,144,49,147,40,146,37,141,34,134,29\">');
document.write('<area href=\"default.asp?go=marche&cat=senato" onmouseover=\"return escape(tooltip(\'Marche\',\'marche\'));\" shape=poly coords=\"228,162,242,170,253,180,259,180,269,207,270,217,261,220,252,227,245,221,235,212,232,199,226,186,215,180,208,179,209,172,206,169,206,166,212,162,215,165,223,166\">');
document.write('<area href=\"default.asp?go=piemonte&cat=senato" onmouseover=\"return escape(tooltip(\'Piemonte\',\'piemonte\'));\" shape=poly coords=\"64,35,67,45,73,55,79,56,70,62,70,70,73,76,75,80,79,85,77,90,76,93,70,93,72,103,75,108,82,110,87,116,92,121,95,126,89,126,85,126,77,129,70,131,59,134,58,141,47,150,43,155,35,152,25,152,18,152,10,144,4,136,5,129,10,125,12,120,6,117,2,113,2,104,1,101,10,99,14,95,15,89,16,86,25,82,37,81,44,80,44,72,46,66,46,60,49,51,53,50,57,45,57,40\">');
document.write('<area href=\"default.asp?go=puglia&cat=senato" onmouseover=\"return escape(tooltip(\'Puglia\',\'puglia\'));\" shape=poly coords=\"318,265,354,264,359,273,349,277,347,284,363,297,403,316,423,329,433,339,446,356,440,372,427,365,419,349,404,346,398,342,391,336,383,342,376,332,378,325,364,327,353,313,349,305,343,306,334,308,327,308,324,306,321,299,316,298,311,290,313,286\">');
document.write('<area href=\"default.asp?go=toscana&cat=senato" onmouseover=\"return escape(tooltip(\'Toscana\',\'toscana\'));\" shape=poly coords=\"203,168,196,169,187,166,187,158,185,153,178,149,170,150,157,155,149,153,143,153,137,146,128,143,120,137,116,137,111,142,118,146,123,156,132,164,134,180,140,194,143,205,144,214,151,218,156,222,165,231,165,235,165,241,175,242,180,235,187,226,190,226,190,218,195,217,196,205,199,197,201,191,200,184,208,180\">');
document.write('<area href=\"default.asp?go=umbria&cat=senato" onmouseover=\"return escape(tooltip(\'Umbria\',\'umbria\'));\" shape=poly coords=\"206,181,199,185,206,196,197,202,196,216,197,222,197,226,207,227,215,239,215,244,222,243,222,238,236,229,247,221,234,211,225,185\">');
document.write('<area href=\"default.asp?go=veneto&cat=senato" onmouseover=\"return escape(tooltip(\'Veneto\',\'veneto\'));\" shape=poly coords=\"157,68,160,74,170,74,170,66,177,61,187,59,188,53,198,53,198,44,191,38,197,30,207,25,217,25,225,25,227,29,220,34,215,40,215,46,216,53,217,59,222,69,228,67,239,69,243,75,234,79,221,84,215,88,212,97,213,103,216,108,219,109,216,118,212,117,205,111,196,109,190,110,180,110,177,110,166,100,157,94,148,85,148,77,153,70\">');
document.write('<area href=\"default.asp?go=sardegna&cat=senato" onmouseover=\"return escape(tooltip(\'Sardegna\',\'sardegna\'));\" shape=poly coords=\"61,308,60,320,72,319,84,306,93,305,96,299,102,301,106,308,110,315,111,323,116,332,118,338,109,351,112,356,113,369,110,385,108,406,101,408,96,401,89,405,89,413,84,416,78,419,73,419,67,411,65,416,62,414,62,406,63,394,63,386,66,375,69,371,66,369,62,363,63,359,66,349,63,346,64,339,60,335,52,328,55,326,57,308\">');
document.write('<area href=\"default.asp?go=molise&cat=senato" onmouseover=\"return escape(tooltip(\'Molise\',\'molise\'));\" shape=poly coords=\"306,259,318,264,318,273,319,278,310,281,312,287,304,290,295,292,287,289,281,288,274,290,277,274,285,268,295,270\">');
document.write('<area href=\"default.asp?go=sicilia&cat=senato" onmouseover=\"return escape(tooltip(\'Sicilia\',\'sicilia\'));\" shape=poly coords=\"334,449,330,465,323,472,320,488,318,495,321,501,325,510,321,516,316,526,318,531,309,531,295,527,285,513,277,509,272,509,252,499,242,489,236,486,225,487,221,482,215,473,220,462,227,454,233,462,239,460,241,456,250,453,257,460,267,464,275,464,293,462,310,454,316,458\">');
document.write('<area href=\"default.asp?go=friuli&cat=senato" onmouseover=\"return escape(tooltip(\'Friuli Venezia Giulia\',\'friuli\'));\" shape=poly coords=\"226,25,239,30,260,31,264,31,264,37,259,38,253,41,253,45,262,49,256,57,261,59,261,64,261,70,256,73,251,73,247,71,243,71,236,67,227,67,224,67,218,57,214,46,220,37,223,30,226,28\">');
document.write('</map>');

/* This notice must be untouched at all times.

wz_tooltip.js    v. 3.26

The latest version is available at
http://www.walterzorn.com
or http://www.devira.com
or http://www.walterzorn.de

Copyright (c) 2002-2004 Walter Zorn. All rights reserved.
Created 1. 12. 2002 by Walter Zorn (Web: http://www.walterzorn.com )
Last modified: 10. 10. 2004

Cross-browser tooltips working even in Opera 5 and 6,
as well as in NN 4, Gecko-Browsers, IE4+, Opera 7 and Konqueror.
No onmouseouts required.
Appearance of tooltips can be individually configured
via commands within the onmouseovers.

LICENSE: LGPL

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License (LGPL) as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

For more details on the GNU Lesser General Public License,
see http://www.gnu.org/copyleft/lesser.html
*/

function tooltip(state,src)
{
			return '<table cellpadding="1" cellspacing="2"><tr><td nowrap align=left><img src="images/b_'+src+'.gif" width=34 height=24></td><td nowrap align=left width=99%><font style="font-size: 18px;">'+state+'</font></td></tr><tr><td colspan="2" align="left"><font color=#000000 style="font-size: 11px;font-family:trebuchet ms;">Clicca qui per i risultati di circoscrizione</font></td></tr></table>';
}

////////////////  GLOBAL TOOPTIP CONFIGURATION  /////////////////////
var ttBgColor      = "#FFFFFF";
var ttBgImg        = "images/sfondo-senato.gif";           // path to background image;
var ttBorderColor  = "#991313";
var ttBorderWidth  = 2;
var ttDelay        = 000;          // time span until tooltip shows up [milliseconds]
var ttFontColor    = "#000000";
var ttFontFace     = "georgia,helvetica,sans-serif,arial";
var ttFontSize     = "9px";
var ttFontWeight   = "normal";     // alternative is "bold";
var ttOffsetX      = 8;            // horizontal offset of left-top corner from mousepointer
var ttOffsetY      = 19;           // vertical offset                   "
var ttPadding      = 3;            // spacing between border and content
var ttShadowColor  = "";
var ttShadowWidth  = 0;
var ttTemp         = 0;            // time span after which the tooltip disappears; 0 (zero) means "infinite timespan"
var ttTitleColor   = "#ffffff";    // color of caption text
var ttWidth        = 250;
////////////////////  END OF TOOLTIP CONFIG  ////////////////////////



//////////////  TAGS WITH TOOLTIP FUNCTIONALITY  ////////////////////
// List may be extended or shortened:
var tt_tags = new Array("a","area","b","big","caption","center","code","dd","div","dl","dt","em","h1","h2","h3","h4","h5","h6","i","img","input","li","map","ol","p","pre","s","small","span","strike","strong","sub","sup","table","td","th","tr","tt","u","var","ul","layer");
/////////////////////////////////////////////////////////////////////



///////// DON'T CHANGE ANYTHING BELOW THIS LINE /////////////////////
var tt_obj,                // current tooltip
tt_objW = 0, tt_objH = 0,  // width and height of tt_obj
tt_objX = 0, tt_objY = 0,
tt_offX = 0, tt_offY = 0,
xlim = 0, ylim = 0,        // right and bottom borders of visible client area
tt_above = false,          // true if T_ABOVE cmd
tt_sticky = false,         // tt_obj sticky?
tt_wait = false,
tt_vis = false,            // tooltip visibility flag
tt_dwn = false,            // true while tooltip below mousepointer
tt_u = "undefined",
tt_inputs = new Array();   // drop-down-boxes to be hidden in IE


var tt_db = (document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body? document.body : null,
tt_n = navigator.userAgent.toLowerCase();

// Browser flags
var tt_op = !!(window.opera && document.getElementById),
tt_op6 = tt_op && !document.defaultView,
tt_ie = tt_n.indexOf("msie") != -1 && document.all && tt_db && !tt_op,
tt_n4 = (document.layers && typeof document.classes != "undefined"),
tt_n6 = (!tt_op && document.defaultView && typeof document.defaultView.getComputedStyle != "undefined"),
tt_w3c = !tt_ie && !tt_n6 && !tt_op && document.getElementById;

tt_n = "";


function tt_Int(t_x)
{
	var t_y;
	return isNaN(t_y = parseInt(t_x))? 0 : t_y;
}

function wzReplace(t_x, t_y)
{
	var t_ret = "",
	t_str = this,
	t_xI;
	while ((t_xI = t_str.indexOf(t_x)) != -1)
	{
		t_ret += t_str.substring(0, t_xI) + t_y;
		t_str = t_str.substring(t_xI + t_x.length);
	}
	return t_ret+t_str;
}
String.prototype.wzReplace = wzReplace;

function tt_N4Tags(tagtyp, t_d, t_y)
{
	t_d = t_d || document;
	t_y = t_y || new Array();
	var t_x = (tagtyp=="a")? t_d.links : t_d.layers;
	for (var z = t_x.length; z--;) t_y[t_y.length] = t_x[z];
	for (var z = t_d.layers.length; z--;) t_y = tt_N4Tags(tagtyp, t_d.layers[z].document, t_y);
	return t_y;
}

function tt_GetSelects()
{
	if (!tt_op6 && !tt_ie) return;
	var t_s = tt_op6? "input" : "select";
	if (document.all)
	{
		var t_i = document.all.tags(t_s).length; while (t_i--)
			tt_inputs[t_i] = document.all.tags(t_s)[t_i];
	}
	else if (document.getElementsByTagName)
	{
		var t_i = document.getElementsByTagName(t_s).length; while (t_i--)
			tt_inputs[t_i] = document.getElementsByTagName(t_s)[t_i];
	}
	var t_i = tt_inputs.length; while (t_i--)
	{
		tt_inputs[t_i].x = 0;
		tt_inputs[t_i].y = 0;
		var t_o = tt_inputs[t_i];
		while (t_o)
		{
			tt_inputs[t_i].x += t_o.offsetLeft || 0;
			tt_inputs[t_i].y += t_o.offsetTop|| 0;
			t_o = t_o.offsetParent;
		}
	}
}

function tt_Htm(tt, t_id, txt)
{
	var t_bgc = (typeof tt.T_BGCOLOR != tt_u)? tt.T_BGCOLOR : ttBgColor,
	t_bgimg   = (typeof tt.T_BGIMG != tt_u)? tt.T_BGIMG : ttBgImg,
	t_bc      = (typeof tt.T_BORDERCOLOR != tt_u)? tt.T_BORDERCOLOR : ttBorderColor,
	t_bw      = (typeof tt.T_BORDERWIDTH != tt_u)? tt.T_BORDERWIDTH : ttBorderWidth,
	t_ff      = (typeof tt.T_FONTFACE != tt_u)? tt.T_FONTFACE : ttFontFace,
	t_fc      = (typeof tt.T_FONTCOLOR != tt_u)? tt.T_FONTCOLOR : ttFontColor,
	t_fsz     = (typeof tt.T_FONTSIZE != tt_u)? tt.T_FONTSIZE : ttFontSize,
	t_fwght   = (typeof tt.T_FONTWEIGHT != tt_u)? tt.T_FONTWEIGHT : ttFontWeight,
	t_padd    = (typeof tt.T_PADDING != tt_u)? tt.T_PADDING : ttPadding,
	t_shc     = (typeof tt.T_SHADOWCOLOR != tt_u)? tt.T_SHADOWCOLOR : (ttShadowColor || 0),
	t_shw     = (typeof tt.T_SHADOWWIDTH != tt_u)? tt.T_SHADOWWIDTH : (ttShadowWidth || 0),
	t_tit     = (typeof tt.T_TITLE != tt_u)? tt.T_TITLE : "",
	t_titc    = (typeof tt.T_TITLECOLOR != tt_u)? tt.T_TITLECOLOR : ttTitleColor,
	t_w       = (typeof tt.T_WIDTH != tt_u)? tt.T_WIDTH  : ttWidth;
	if (t_shc || t_shw)
	{
		t_shc = t_shc || "#cccccc";
		t_shw = t_shw || 3;
	}
	if (tt_n4 && (t_fsz == "10px" || t_fsz == "11px")) t_fsz = "12px";


	var t_y = '<div id="' + t_id + '" style="position:absolute;z-index:1010;';
	t_y += 'left:0px;top:0px;width:' + (t_w+t_shw) + 'px;visibility:' + (tt_n4? 'hide' : 'hidden') + ';">';
	t_y += '<table border="0" cellpadding="0" cellspacing="0"' + (t_bc? (' bgcolor="' + t_bc + '"') : '') + ' width="' + t_w + '">';
	if (t_tit)
	{
		t_y += '<tr><td style="padding-left:3px;"><font color="' + t_titc + '" face="' + t_ff + '" ';
		t_y += 'style="color:' + t_titc + ';font-family:' + t_ff + ';font-size:' + t_fsz + ';"><b>';
		t_y += (tt_n4? '&nbsp;' : '') + t_tit + '<\/b><\/font><\/td><\/tr>';
	}
	t_y += '<tr><td><table border="0" cellpadding="' + t_padd + '" cellspacing="' + t_bw + '" width="100%">';
	t_y += '<tr><td' + (t_bgc? (' bgcolor="' + t_bgc + '"') : '') + (t_bgimg? ' background="' + t_bgimg + '"' : '');
	if (tt_n6) t_y += ' style="padding:' + t_padd + 'px;"';
	t_y += '><font color="' + t_fc + '" face="' + t_ff + '"';
	t_y += ' style="color:' + t_fc + ';font-family:' + t_ff + ';font-size:' + t_fsz + ';font-weight:' + t_fwght + ';">';
	if (t_fwght == 'bold') t_y += '<b>';
	t_y += txt;
	if (t_fwght == 'bold') t_y += '<\/b>';
	t_y += '<\/font><\/td><\/tr><\/table><\/td><\/tr><\/table>';
	if (t_shw)
	{
		var t_spct = Math.round(t_shw*1.3);
		if (tt_n4)
		{
			t_y += '<layer bgcolor="' + t_shc + '" left="' + t_w + '" top="' + t_spct + '" width="' + t_shw + '" height="0"><\/layer>';
			t_y += '<layer bgcolor="' + t_shc + '" left="' + t_spct + '" align="bottom" width="' + (t_w-t_spct) + '" height="' + t_shw + '"><\/layer>';
		}
		else
		{
			var t_opa = tt_n6? '-moz-opacity:0.85;' : tt_ie? 'filter:Alpha(opacity=85);' : '';
			t_y += '<div id="' + t_id + 'R" style="position:absolute;background:' + t_shc + ';left:' + t_w + 'px;top:' + t_spct + 'px;width:' + t_shw + 'px;height:1px;overflow:hidden;' + t_opa + '"><\/div>';
			t_y += '<div style="position:relative;background:' + t_shc + ';left:' + t_spct + 'px;top:0px;width:' + (t_w-t_spct) + 'px;height:' + t_shw + 'px;overflow:hidden;' + t_opa + '"><\/div>';
		}
	}
	t_y += '<\/div>';
	return t_y;
}

function tt_Init()
{
	if (!(tt_op || tt_n4 || tt_n6 || tt_ie || tt_w3c)) return;

	var htm = tt_n4? '<div style="position:absolute;"><\/div>' : '',
	tags,
	t_tj,
	over,
	esc = 'return escape(';
	var i = tt_tags.length; while (i--)
	{
		tags = tt_ie? (document.all.tags(tt_tags[i]) || 1)
			: document.getElementsByTagName? (document.getElementsByTagName(tt_tags[i]) || 1)
			: (!tt_n4 && tt_tags[i]=="a")? document.links
			: 1;
		if (tt_n4 && (tt_tags[i] == "a" || tt_tags[i] == "layer")) tags = tt_N4Tags(tt_tags[i]);
		var j = tags.length; while (j--)
		{
			if (typeof (t_tj = tags[j]).onmouseover == "function" && t_tj.onmouseover.toString().indexOf(esc) != -1 && !tt_n6 || tt_n6 && (over = t_tj.getAttribute("onmouseover")) && over.indexOf(esc) != -1)
			{
				if (over) t_tj.onmouseover = new Function(over);
				var txt = unescape(t_tj.onmouseover());
				htm += tt_Htm(
					t_tj,
					"tOoLtIp"+i+""+j,
					txt.wzReplace("& ","&")
				);

				t_tj.onmouseover = new Function('e',
					'tt_Show(e,'+
					'"tOoLtIp' +i+''+j+ '",'+
					(typeof t_tj.T_ABOVE != tt_u) + ','+
					((typeof t_tj.T_DELAY != tt_u)? t_tj.T_DELAY : ttDelay) + ','+
					((typeof t_tj.T_FIX != tt_u)? '"'+t_tj.T_FIX+'"' : '""') + ','+
					(typeof t_tj.T_LEFT != tt_u) + ','+
					((typeof t_tj.T_OFFSETX != tt_u)? t_tj.T_OFFSETX : ttOffsetX) + ','+
					((typeof t_tj.T_OFFSETY != tt_u)? t_tj.T_OFFSETY : ttOffsetY) + ','+
					(typeof t_tj.T_STATIC != tt_u) + ','+
					(typeof t_tj.T_STICKY != tt_u) + ','+
					((typeof t_tj.T_TEMP != tt_u)? t_tj.T_TEMP : ttTemp)+
					');'
				);
				t_tj.onmouseout = tt_Hide;
				if (t_tj.alt) t_tj.alt = "";
				if (t_tj.title) t_tj.title = "";
			}
		}
	}
	document.write(htm);
}

function tt_EvX(t_e)
{
	var t_y = tt_Int(t_e.pageX || t_e.clientX || 0) +
		tt_Int(tt_ie? tt_db.scrollLeft : 0) +
		tt_offX;
	if (t_y > xlim) t_y = xlim;
	var t_scr = tt_Int(window.pageXOffset || (tt_db? tt_db.scrollLeft : 0) || 0);
	if (t_y < t_scr) t_y = t_scr;
	return t_y;
}

function tt_EvY(t_e)
{
	var t_y = tt_Int(t_e.pageY || t_e.clientY || 0) +
		tt_Int(tt_ie? tt_db.scrollTop : 0);
	if (tt_above) t_y -= (tt_objH + tt_offY - (tt_op? 31 : 15));
	else if (t_y > ylim || !tt_dwn && t_y > ylim-24)
	{
		t_y -= (tt_objH + 5);
		tt_dwn = false;
	}
	else
	{
		t_y += tt_offY;
		tt_dwn = true;
	}
	return t_y;
}

function tt_ReleasMov()
{
	if (document.onmousemove == tt_Move)
	{
		if (document.releaseEvents) document.releaseEvents(Event.MOUSEMOVE);
		document.onmousemove = null;
	}
}

function tt_HideInput()
{
	if (!(tt_ie || tt_op6) || !tt_inputs) return;
	var t_o;
	var t_i = tt_inputs.length; while (t_i--)
	{
		t_o = tt_inputs[t_i];
		if (tt_vis && tt_objX+tt_objW > t_o.x && tt_objX < t_o.x+t_o.offsetWidth && tt_objY+tt_objH > t_o.y && tt_objY < t_o.y+t_o.offsetHeight)
			t_o.style.visibility = 'hidden';
		else t_o.style.visibility = 'visible';
	}
}

function tt_GetDiv(t_id)
{
	return (
		tt_n4? (document.layers[t_id] || null)
		: tt_ie? (document.all[t_id] || null)
		: (document.getElementById(t_id) || null)
	);
}

function tt_GetDivW()
{
	return tt_Int(
		tt_n4? tt_obj.clip.width
		: tt_obj.style.pixelWidth? tt_obj.style.pixelWidth
		: tt_obj.offsetWidth
	);
}

function tt_GetDivH()
{
	return tt_Int(
		tt_n4? tt_obj.clip.height
		: tt_obj.style.pixelHeight? tt_obj.style.pixelHeight
		: tt_obj.offsetHeight
	);
}

// Compat with DragDrop Lib: Ensure that z-index of tooltip is lifted beyond toplevel dragdrop element
function tt_SetDivZ()
{
	var t_i = tt_obj.style || tt_obj;
	if (window.dd && dd.z)
		t_i.zIndex = Math.max(dd.z+1, t_i.zIndex);
}

function tt_SetDivPos(t_x, t_y)
{
	var t_i = tt_obj.style || tt_obj;
	var t_px = (tt_op6 || tt_n4)? '' : 'px';
	t_i.left = (tt_objX = t_x) + t_px;
	t_i.top = (tt_objY = t_y) + t_px;
	tt_HideInput();
}

function tt_ShowDiv(t_x)
{
	if (tt_n4) tt_obj.visibility = t_x? 'show' : 'hide';
	else tt_obj.style.visibility = t_x? 'visible' : 'hidden';
	tt_vis = t_x;
	tt_HideInput();
}

function tt_Show(t_e, t_id, t_above, t_delay, t_fix, t_left, t_offx, t_offy, t_static, t_sticky, t_temp)
{
	if (tt_obj) tt_Hide();
	var t_mf = document.onmousemove || null;
	if (window.dd && (window.DRAG && t_mf == DRAG || window.RESIZE && t_mf == RESIZE)) return;
	var t_uf = document.onmouseup || null;
	if (t_mf && t_uf) t_uf(t_e);

	tt_obj = tt_GetDiv(t_id);
	if (tt_obj)
	{
		tt_dwn = !(tt_above = t_above);
		tt_sticky = t_sticky;
		tt_objW = tt_GetDivW();
		tt_objH = tt_GetDivH();
		tt_offX = t_left? -(tt_objW+t_offx) : t_offx;
		tt_offY = t_offy;
		if (tt_op) tt_offY += 21;
		if (tt_n4)
		{
			if (tt_obj.document.layers.length)
			{
				var t_sh = tt_obj.document.layers[0];
				t_sh.clip.height = tt_objH - Math.round(t_sh.clip.width*1.3);
			}
		}
		else
		{
			var t_sh = tt_GetDiv(t_id+'R');
			if (t_sh)
			{
				var t_h = tt_objH - tt_Int(t_sh.style.pixelTop || t_sh.style.top || 0);
				if (typeof t_sh.style.pixelHeight != tt_u) t_sh.style.pixelHeight = t_h;
				else t_sh.style.height = t_h + 'px';
			}
		}

		tt_GetSelects();

		xlim = tt_Int((tt_db && tt_db.clientWidth)? tt_db.clientWidth : window.innerWidth) +
			tt_Int(window.pageXOffset || (tt_db? tt_db.scrollLeft : 0) || 0) -
			tt_objW -
			(tt_n4? 21 : 0);
		ylim = tt_Int(window.innerHeight || tt_db.clientHeight) +
			tt_Int(window.pageYOffset || (tt_db? tt_db.scrollTop : 0) || 0) -
			tt_objH - tt_offY;

		tt_SetDivZ();
		t_e = t_e || window.event;
		if (t_fix) tt_SetDivPos(tt_Int((t_fix = t_fix.split(','))[0]), tt_Int(t_fix[1]));
		else tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e));

		var t_txt = 'tt_ShowDiv(\'true\');';
		if (t_sticky) t_txt += '{'+
				'tt_ReleasMov();'+
				'window.tt_upFunc = document.onmouseup || null;'+
				'if (document.captureEvents) document.captureEvents(Event.MOUSEUP);'+
				'document.onmouseup = new Function("window.setTimeout(\'tt_Hide();\', 10);");'+
			'}';
		else if (t_static) t_txt += 'tt_ReleasMov();';
		if (t_temp > 0) t_txt += 'window.tt_rtm = window.setTimeout(\'tt_sticky = false; tt_Hide();\','+t_temp+');';
		window.tt_rdl = window.setTimeout(t_txt, t_delay);

		if (!t_fix)
		{
			if (document.captureEvents) document.captureEvents(Event.MOUSEMOVE);
			document.onmousemove = tt_Move;
		}
	}
}

var tt_area = false;
function tt_Move(t_ev)
{
	if (!tt_obj) return;
	if (tt_n6 || tt_w3c)
	{
		if (tt_wait) return;
		tt_wait = true;
		setTimeout('tt_wait = false;', 5);
	}
	var t_e = t_ev || window.event;
	tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e));
	if (tt_op6)
	{
		if (tt_area && t_e.target.tagName != 'AREA') tt_Hide();
		else if (t_e.target.tagName == 'AREA') tt_area = true;
	}
}

function tt_Hide()
{
	if (window.tt_obj)
	{
		if (window.tt_rdl) window.clearTimeout(tt_rdl);
		if (!tt_sticky || tt_sticky && !tt_vis)
		{
			if (window.tt_rtm) window.clearTimeout(tt_rtm);
			tt_ShowDiv(false);
			tt_SetDivPos(-tt_objW, -tt_objH);
			tt_obj = null;
			if (typeof window.tt_upFunc != tt_u) document.onmouseup = window.tt_upFunc;
		}
		tt_sticky = false;
		if (tt_op6 && tt_area) tt_area = false;
		tt_ReleasMov();
		tt_HideInput();
	}
}

tt_Init();

