/* This notice must be untouched at all times.

wz_tooltip.js    v. 3.45

The latest version is available at
http://www.walterzorn.com
or http://www.devira.com
or http://www.walterzorn.de

Copyright (c) 2002-2005 Walter Zorn. All rights reserved.
Created 1. 12. 2002 by Walter Zorn (Web: http://www.walterzorn.com )
Last modified: 22. 1. 2007

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
*/
var ttAbove=false,ttBgColor="#FFCC66",ttBgImg="",ttBorderColor="#003399",ttBorderWidth=1,ttClickClose=false,ttDelay=5,ttFontColor="#000066",ttFontFace="verdana,arial,helvetica,sans-serif",ttFontSize="11px",ttFontWeight="normal",ttLeft=false,ttOffsetX=10,ttOffsetY=10,ttOpacity=100,ttPadding=2,ttShadowColor="",ttShadowWidth=0,ttStatic=false,ttSticky=false,ttTemp=0,ttTextAlign="left",ttTitleColor="#ffffff",ttWidth=132,tt_tags=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","select","small","span","strike","strong","sub","sup","table","td","textarea","th","tr","tt","u","var","ul","layer"),tt_obj=null,tt_ifrm=null,tt_objW=0,tt_objH=0,tt_objX=0,tt_objY=0,tt_offX=0,tt_offY=0,xlim=0,ylim=0,tt_sup=false,tt_sticky=false,tt_wait=false,tt_act=false,tt_sub=false,tt_u="undefined",tt_mf=null,tt_tag=null,tt_db=document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body?
document.body:null,tt_n=navigator.userAgent.toLowerCase(),tt_nv=navigator.appVersion,tt_op=!!(window.opera&&document.getElementById),tt_op6=tt_op&&!document.defaultView,tt_op7=tt_op&&!tt_op6,tt_ie=tt_n.indexOf("msie")!=-1&&document.all&&tt_db&&!tt_op,tt_ie7=tt_ie&&typeof document.body.style.maxHeight!=tt_u,tt_ie6=tt_ie&&!tt_ie7&&parseFloat(tt_nv.substring(tt_nv.indexOf("MSIE")+5))>=5.5,tt_n4=document.layers&&typeof document.classes!=tt_u,tt_n6=!tt_op&&document.defaultView&&typeof document.defaultView.getComputedStyle!=
tt_u,tt_w3c=!tt_ie&&!tt_n6&&!tt_op&&document.getElementById,tt_ce=document.captureEvents&&!tt_n6;function tt_Int(a){var c;return isNaN(c=parseInt(a))?0:c}function wzReplace(a,c){for(var b="",e=this,d;(d=e.indexOf(a))!=-1;){b+=e.substring(0,d)+c;e=e.substring(d+a.length)}return b+e}String.prototype.wzReplace=wzReplace;
function tt_N4Tags(a,c,b){c=c||document;b=b||[];for(var e=a=="a"?c.links:c.layers,d=e.length;d--;)b[b.length]=e[d];for(d=c.layers.length;d--;)b=tt_N4Tags(a,c.layers[d].document,b);return b}
function tt_Htm(a,c,b){var e=typeof a.T_BGCOLOR!=tt_u?a.T_BGCOLOR:ttBgColor,d=typeof a.T_BGIMG!=tt_u?a.T_BGIMG:ttBgImg,f=typeof a.T_BORDERCOLOR!=tt_u?a.T_BORDERCOLOR:ttBorderColor,n=typeof a.T_BORDERWIDTH!=tt_u?a.T_BORDERWIDTH:ttBorderWidth,j=typeof a.T_FONTFACE!=tt_u?a.T_FONTFACE:ttFontFace,o=typeof a.T_FONTCOLOR!=tt_u?a.T_FONTCOLOR:ttFontColor,k=typeof a.T_FONTSIZE!=tt_u?a.T_FONTSIZE:ttFontSize,m=typeof a.T_FONTWEIGHT!=tt_u?a.T_FONTWEIGHT:ttFontWeight,h=typeof a.T_OPACITY!=tt_u?a.T_OPACITY:ttOpacity,
q=typeof a.T_PADDING!=tt_u?a.T_PADDING:ttPadding,l=typeof a.T_SHADOWCOLOR!=tt_u?a.T_SHADOWCOLOR:ttShadowColor||0,i=typeof a.T_SHADOWWIDTH!=tt_u?a.T_SHADOWWIDTH:ttShadowWidth||0,p=typeof a.T_TEXTALIGN!=tt_u?a.T_TEXTALIGN:ttTextAlign,r=typeof a.T_TITLE!=tt_u?a.T_TITLE:"",s=typeof a.T_TITLECOLOR!=tt_u?a.T_TITLECOLOR:ttTitleColor;a=typeof a.T_WIDTH!=tt_u?a.T_WIDTH:ttWidth;if(l||i){l=l||"#c0c0c0";i=i||5}if(tt_n4&&(k=="10px"||k=="11px"))k="12px";h=(tt_n4?"":tt_n6?"-moz-opacity:"+h/100:tt_ie?"filter:Alpha(opacity="+
h+")":"opacity:"+h/100)+";";var g='<div id="'+c+'" style="position:absolute;z-index:1010;';g+="left:0px;top:0px;width:"+(a+i)+"px;visibility:"+(tt_n4?"hide":"hidden")+";"+h+'"><table border="0" cellpadding="0" cellspacing="0"'+(f?' bgcolor="'+f+'" style="background:'+f+';"':"")+' width="'+a+'">';if(r)g+='<tr><td style="padding-left:3px;padding-right:3px;" align="'+p+'"><font color="'+s+'" face="'+j+'" style="color:'+s+";font-family:"+j+";font-size:"+k+';"><b>'+(tt_n4?"&nbsp;":"")+r+"</b></font></td></tr>";
g+='<tr><td><table border="0" cellpadding="'+q+'" cellspacing="'+n+'" width="100%"><tr><td'+(e?' bgcolor="'+e+'"':"")+(d?' background="'+d+'"':"")+' style="text-align:'+p+";";if(tt_n6)g+="padding:"+q+"px;";g+='" align="'+p+'"><font color="'+o+'" face="'+j+'" style="color:'+o+";font-family:"+j+";font-size:"+k+";font-weight:"+m+';">';if(m=="bold")g+="<b>";g+=b;if(m=="bold")g+="</b>";g+="</font></td></tr></table></td></tr></table>";if(i){b=Math.round(i*1.3);if(tt_n4)g+='<layer bgcolor="'+l+'" left="'+
a+'" top="'+b+'" width="'+i+'" height="0"></layer><layer bgcolor="'+l+'" left="'+b+'" align="bottom" width="'+(a-b)+'" height="'+i+'"></layer>';else{h=tt_n6?"-moz-opacity:0.85;":tt_ie?"filter:Alpha(opacity=85);":"opacity:0.85;";g+='<div id="'+c+'R" style="position:absolute;background:'+l+";left:"+a+"px;top:"+b+"px;width:"+i+"px;height:1px;overflow:hidden;"+h+'"></div><div style="position:relative;background:'+l+";left:"+b+"px;top:0px;width:"+(a-b)+"px;height:"+i+"px;overflow:hidden;"+h+'"></div>'}}return g+
"</div>"}function tt_EvX(a){a=tt_Int(a.pageX||a.clientX||0)+tt_Int(tt_ie?tt_db.scrollLeft:0)+tt_offX;if(a>xlim)a=xlim;var c=tt_Int(window.pageXOffset||(tt_db?tt_db.scrollLeft:0)||0);if(a<c)a=c;return a}function tt_EvY(a){a=tt_Int(a.pageY||a.clientY||0)+tt_Int(tt_ie?tt_db.scrollTop:0);if(tt_sup&&a-(tt_objH+tt_offY-15)>=tt_Int(window.pageYOffset||(tt_db?tt_db.scrollTop:0)||0))a-=tt_objH+tt_offY-15;else if(a>ylim||!tt_sub&&a>ylim-24){a-=tt_objH+5;tt_sub=false}else{a+=tt_offY;tt_sub=true}return a}
function tt_ReleasMov(){if(document.onmousemove==tt_Move){!tt_mf&&tt_ce&&document.releaseEvents(Event.MOUSEMOVE);document.onmousemove=tt_mf}}function tt_ShowIfrm(a){if(tt_obj&&tt_ifrm)if(a){tt_ifrm.style.width=tt_objW+"px";tt_ifrm.style.height=tt_objH+"px";tt_ifrm.style.display="block"}else tt_ifrm.style.display="none"}function tt_GetDiv(a){return tt_n4?document.layers[a]||null:tt_ie?document.all[a]||null:document.getElementById(a)||null}
function tt_GetDivW(){return tt_Int(tt_n4?tt_obj.clip.width: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.offsetHeight)}function tt_SetDivZ(){var a=tt_obj.style||tt_obj;if(a){if(window.dd&&dd.z)a.zIndex=Math.max(dd.z+1,a.zIndex);if(tt_ifrm)tt_ifrm.style.zIndex=a.zIndex-1}}
function tt_SetDivPos(a,c){var b=tt_obj.style||tt_obj,e=tt_op6||tt_n4?"":"px";b.left=(tt_objX=a)+e;b.top=(tt_objY=c)+e;if(window.tt_ifrm){tt_ifrm.style.left=b.left;tt_ifrm.style.top=b.top}}function tt_ShowDiv(a){tt_ShowIfrm(a);if(tt_n4)tt_obj.visibility=a?"show":"hide";else tt_obj.style.visibility=a?"visible":"hidden";tt_act=a}function tt_DeAlt(a){if(a){if(a.alt)a.alt="";if(a.title)a.title="";if(a=a.children||a.childNodes||null)for(var c=a.length;c;)tt_DeAlt(a[--c])}}
function tt_OpDeHref(a){if(a)for(a=a.target;a;){if(a.hasAttribute("href")){tt_tag=a;tt_tag.t_href=tt_tag.getAttribute("href");tt_tag.removeAttribute("href");tt_tag.style.cursor="hand";tt_tag.onmousedown=tt_OpReHref;tt_tag.stats=window.status;window.status=tt_tag.t_href;break}a=a.parentElement}}function tt_OpReHref(){if(tt_tag){tt_tag.setAttribute("href",tt_tag.t_href);window.status=tt_tag.stats;tt_tag=null}}
function tt_Show(a,c,b,e,d,f,n,j,o,k,m,h){tt_obj&&tt_Hide();tt_mf=document.onmousemove||null;if(!(window.dd&&(window.DRAG&&tt_mf==DRAG||window.RESIZE&&tt_mf==RESIZE)))if(tt_obj=tt_GetDiv(c)){a=a||window.event;tt_sub=!(tt_sup=b);tt_sticky=m;tt_objW=tt_GetDivW();tt_objH=tt_GetDivH();tt_offX=n?-(tt_objW+j):j;tt_offY=o;tt_op7&&tt_OpDeHref(a);if(tt_n4){if(tt_obj.document.layers.length){c=tt_obj.document.layers[0];c.clip.height=tt_objH-Math.round(c.clip.width*1.3)}}else if(c=tt_GetDiv(c+"R")){b=tt_objH-
tt_Int(c.style.pixelTop||c.style.top||0);if(typeof c.style.pixelHeight!=tt_u)c.style.pixelHeight=b;else c.style.height=b+"px"}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();f?tt_SetDivPos(tt_Int((f=f.split(","))[0]),tt_Int(f[1])):tt_SetDivPos(tt_EvX(a),tt_EvY(a));
a="tt_ShowDiv('true');";if(m)a+="{tt_ReleasMov();"+(e?"window.tt_upFunc = document.onmouseup || null;if(tt_ce) document.captureEvents(Event.MOUSEUP);document.onmouseup = new Function(\"window.setTimeout('tt_Hide();', 10);\");":"")+"}";else if(k)a+="tt_ReleasMov();";if(h>0)a+="window.tt_rtm = window.setTimeout('tt_sticky = false; tt_Hide();',"+h+");";window.tt_rdl=window.setTimeout(a,d);if(!f){tt_ce&&document.captureEvents(Event.MOUSEMOVE);document.onmousemove=tt_Move}}}var tt_area=false;
function tt_Move(a){if(tt_obj){if(tt_n6||tt_w3c){if(tt_wait)return;tt_wait=true;setTimeout("tt_wait = false;",5)}a=a||window.event;tt_SetDivPos(tt_EvX(a),tt_EvY(a));if(window.tt_op6)if(tt_area&&a.target.tagName!="AREA")tt_Hide();else if(a.target.tagName=="AREA")tt_area=true}}
function tt_Hide(){if(window.tt_obj){window.tt_rdl&&window.clearTimeout(tt_rdl);if(!tt_sticky||!tt_act){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_op7&&tt_OpReHref()}}
function tt_Init(){if(tt_op||tt_n4||tt_n6||tt_ie||tt_w3c){for(var a=tt_n4?'<div style="position:absolute;"></div>':"",c,b,e,d=tt_tags.length;d;){--d;c=tt_ie?document.all.tags(tt_tags[d])||1:document.getElementsByTagName?document.getElementsByTagName(tt_tags[d])||1:!tt_n4&&tt_tags[d]=="a"?document.links:1;if(tt_n4&&(tt_tags[d]=="a"||tt_tags[d]=="layer"))c=tt_N4Tags(tt_tags[d]);for(var f=c.length;f;){--f;if(typeof(b=c[f]).onmouseover=="function"&&b.onmouseover.toString().indexOf("return escape(")!=
-1&&!tt_n6||tt_n6&&(e=b.getAttribute("onmouseover"))&&e.indexOf("return escape(")!=-1){if(e)b.onmouseover=new Function(e);var n=unescape(b.onmouseover());a+=tt_Htm(b,"tOoLtIp"+d+""+f,n.wzReplace("& ","&"));b.onmouseover=new Function("e",'if(window.tt_Show && tt_Show) tt_Show(e,"tOoLtIp'+d+""+f+'",'+(typeof b.T_ABOVE!=tt_u?b.T_ABOVE:ttAbove)+","+(typeof b.T_CLICKCLOSE!=tt_u?b.T_CLICKCLOSE:ttClickClose)+","+(typeof b.T_DELAY!=tt_u?b.T_DELAY:ttDelay)+","+(typeof b.T_FIX!=tt_u?'"'+b.T_FIX+'"':'""')+","+
(typeof b.T_LEFT!=tt_u?b.T_LEFT:ttLeft)+","+(typeof b.T_OFFSETX!=tt_u?b.T_OFFSETX:ttOffsetX)+","+(typeof b.T_OFFSETY!=tt_u?b.T_OFFSETY:ttOffsetY)+","+(typeof b.T_STATIC!=tt_u?b.T_STATIC:ttStatic)+","+(typeof b.T_STICKY!=tt_u?b.T_STICKY:ttSticky)+","+(typeof b.T_TEMP!=tt_u?b.T_TEMP:ttTemp)+");");b.onmouseout=tt_Hide;tt_DeAlt(b)}}}if(tt_ie6)a+='<iframe id="TTiEiFrM" src="javascript:false" scrolling="no" frameborder="0" style="filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;"></iframe>';
if((c=document.getElementsByTagName?document.getElementsByTagName("body")[0]:tt_db)&&c.insertAdjacentHTML)c.insertAdjacentHTML("AfterBegin",a);else if(c&&typeof c.innerHTML!=tt_u&&document.createElement&&c.appendChild){b=document.createElement("div");c.appendChild(b);b.innerHTML=a}else document.write(a);if(document.getElementById)tt_ifrm=document.getElementById("TTiEiFrM")}}tt_Init();
