/* This notice must be untouched at all times.
Copyright (c) 2002-2008 Walter Zorn. All rights reserved.

wz_tooltip.js	 v. 5.01

The latest version is available at
http://www.walterzorn.com
or http://www.devira.com
or http://www.walterzorn.de

Created 1.12.2002 by Walter Zorn (Web: http://www.walterzorn.com )
Last modified: 26.3.2008

Easy-to-use cross-browser tooltips.
Just include the script at the beginning of the <body> section, and invoke
Tip('Tooltip text') from the desired HTML onmouseover eventhandlers,
and UnTip(), usually from the onmouseout eventhandlers, to hide the tip.
No container DIV required.
By default, width and height of tooltips are automatically adapted to content.
Is even capable of dynamically converting arbitrary HTML elements to tooltips
by calling TagToTip('ID_of_HTML_element_to_be_converted') instead of Tip(),
which means you can put important, search-engine-relevant stuff into tooltips.
Appearance of tooltips can be individually configured
via commands passed to Tip() or TagToTip().

Tab Width: 4
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 config={};var tt_Debug=false,tt_Enabled=true,TagsToTip=true;config.Above=false
config.BgColor='#E2E7FF'
config.BgImg=''
config.BorderColor='#003099'
config.BorderStyle='solid'
config.BorderWidth=1
config.CenterMouse=false
config.ClickClose=false
config.ClickSticky=false
config.CloseBtn=false
config.CloseBtnColors=['#990000','#FFFFFF','#DD3333','#FFFFFF']
config.CloseBtnText='&nbsp;X&nbsp;'
config.CopyContent=true
config.Delay=400
config.Duration=0
config.FadeIn=0
config.FadeOut=0
config.FadeInterval=30
config.Fix=null
config.FollowMouse=true
config.FontColor='#000044'
config.FontFace='Verdana,Geneva,sans-serif'
config.FontSize='8pt'
config.FontWeight='normal'
config.Height=0
config.JumpHorz=false
config.JumpVert=true
config.Left=false
config.OffsetX=14
config.OffsetY=8
config.Opacity=100
config.Padding=3
config.Shadow=false
config.ShadowColor='#C0C0C0'
config.ShadowWidth=5
config.Sticky=false
config.TextAlign='left'
config.Title=''
config.TitleAlign='left'
config.TitleBgColor=''
config.TitleFontColor='#FFFFFF'
config.TitleFontFace=''
config.TitleFontSize=''
config.Width=0
function Tip(){tt_Tip(arguments,null)}
function TagToTip(){var i=tt_GetElt(arguments[0]);if(i)tt_Tip(arguments,i)}
function UnTip(){tt_OpReHref();if(tt_aV[DURATION]<0)tt_tDurt.Timer("tt_HideInit()",-tt_aV[DURATION],true);else if(!(tt_aV[STICKY]&&(tt_iState&0x2)))tt_HideInit()}
var tt_aElt=new Array(10),tt_aV=[],tt_sContent,tt_scrlX=0,tt_scrlY=0,tt_musX,tt_musY,tt_over,tt_x,tt_y,tt_w,tt_h;function tt_Extension(){var i=this;tt_ExtCmdEnum();tt_aExt[tt_aExt.length]=i;return i}
function tt_SetTipPos(l,o){var I=tt_aElt[0].style;tt_x=l;tt_y=o;I.left=l+"px";I.top=o+"px";if(tt_ie56){var i=tt_aElt[tt_aElt.length-1];if(i){i.style.left=I.left;i.style.top=I.top}}}
function tt_HideInit(){if(tt_iState){tt_ExtCallFncs(0,"HideInit");tt_iState&=~0x4;if(tt_flagOpa&&tt_aV[FADEOUT]){tt_tFade.EndTimer();if(tt_opa){var i=Math.round(tt_aV[FADEOUT]/(tt_aV[FADEINTERVAL]*(tt_aV[OPACITY]/tt_opa)));tt_Fade(tt_opa,tt_opa,0,i);return}}
tt_tHide.Timer("tt_Hide();",1,false)}}
function tt_Hide(){if(tt_db&&tt_iState){tt_OpReHref();if(tt_iState&0x2){tt_aElt[0].style.visibility="hidden";tt_ExtCallFncs(0,"Hide")}
tt_tShow.EndTimer();tt_tHide.EndTimer();tt_tDurt.EndTimer();tt_tFade.EndTimer();if(!tt_op&&!tt_ie){tt_tWaitMov.EndTimer();tt_bWait=false}
if(tt_aV[CLICKCLOSE]||tt_aV[CLICKSTICKY])tt_RemEvtFnc(document,"mouseup",tt_OnLClick);tt_ExtCallFncs(0,"Kill");if(tt_t2t&&!tt_aV[COPYCONTENT]){tt_t2t.style.display="none";tt_MovDomNode(tt_t2t,tt_aElt[6],tt_t2tDad)}
tt_iState=0;tt_over=null;tt_ResetMainDiv();if(tt_aElt[tt_aElt.length-1])tt_aElt[tt_aElt.length-1].style.display="none"}}
function tt_GetElt(i){return(document.getElementById?document.getElementById(i):document.all?document.all[i]:null)}
function tt_GetDivW(i){return(i?(i.offsetWidth||i.style.pixelWidth||0):0)}
function tt_GetDivH(i){return(i?(i.offsetHeight||i.style.pixelHeight||0):0)}
function tt_GetScrollX(){return(window.pageXOffset||(tt_db?(tt_db.scrollLeft||0):0))}
function tt_GetScrollY(){return(window.pageYOffset||(tt_db?(tt_db.scrollTop||0):0))}
function tt_GetClientW(){return(document.body&&(typeof(document.body.clientWidth)!=tt_u)?document.body.clientWidth:(typeof(window.innerWidth)!=tt_u)?window.innerWidth:tt_db?(tt_db.clientWidth||0):0)}
function tt_GetClientH(){return(document.body&&(typeof(document.body.clientHeight)!=tt_u)?document.body.clientHeight:(typeof(window.innerHeight)!=tt_u)?window.innerHeight:tt_db?(tt_db.clientHeight||0):0)}
function tt_GetEvtX(i){return(i?((typeof(i.pageX)!=tt_u)?i.pageX:(i.clientX+tt_scrlX)):0)}
function tt_GetEvtY(i){return(i?((typeof(i.pageY)!=tt_u)?i.pageY:(i.clientY+tt_scrlY)):0)}
function tt_AddEvtFnc(l,I,i){if(l){if(l.addEventListener)l.addEventListener(I,i,false);else
l.attachEvent("on"+I,i)}}
function tt_RemEvtFnc(l,I,i){if(l){if(l.removeEventListener)l.removeEventListener(I,i,false);else
l.detachEvent("on"+I,i)}}
var tt_aExt=[],tt_db,tt_op,tt_ie,tt_ie56,tt_bBoxOld,tt_body,tt_ovr_,tt_flagOpa,tt_maxPosX,tt_maxPosY,tt_iState=0,tt_opa,tt_bJmpVert,tt_bJmpHorz,tt_t2t,tt_t2tDad,tt_elDeHref,tt_tShow=new Number(0),tt_tHide=new Number(0),tt_tDurt=new Number(0),tt_tFade=new Number(0),tt_tWaitMov=new Number(0),tt_bWait=false,tt_u="undefined";function tt_Init(){tt_MkCmdEnum();if(!tt_Browser()||!tt_MkMainDiv())return;tt_IsW3cBox();tt_OpaSupport();tt_AddEvtFnc(window,"scroll",tt_OnScrl);tt_AddEvtFnc(window,"resize",tt_OnScrl);tt_AddEvtFnc(document,"mousemove",tt_Move);if(TagsToTip||tt_Debug)tt_SetOnloadFnc();tt_AddEvtFnc(window,"unload",tt_Hide)}
function tt_MkCmdEnum(){var n=0;for(var i in config)eval("window."+i.toString().toUpperCase()+" = "+n++);tt_aV.length=n}
function tt_Browser(){var n,nv,n6,w3c;n=navigator.userAgent.toLowerCase(),nv=navigator.appVersion;tt_op=(document.defaultView&&typeof(eval("w"+"indow"+"."+"o"+"p"+"er"+"a"))!=tt_u);tt_ie=n.indexOf("msie")!=-1&&document.all&&!tt_op;if(tt_ie){var ieOld=(!document.compatMode||document.compatMode=="BackCompat");tt_db=!ieOld?document.documentElement:(document.body||null);if(tt_db)tt_ie56=parseFloat(nv.substring(nv.indexOf("MSIE")+5))>=5.5&&typeof document.body.style.maxHeight==tt_u}else{tt_db=document.documentElement||document.body||(document.getElementsByTagName?document.getElementsByTagName("body")[0]:null);if(!tt_op){n6=document.defaultView&&typeof document.defaultView.getComputedStyle!=tt_u;w3c=!n6&&document.getElementById}}
tt_body=(document.getElementsByTagName?document.getElementsByTagName("body")[0]:(document.body||null));if(tt_ie||n6||tt_op||w3c){if(tt_body&&tt_db){if(document.attachEvent||document.addEventListener)return true}else
tt_Err("wz_tooltip.js must be included INSIDE the body section,"+" immediately after the opening <body> tag.",false)}
tt_db=null;return false}
function tt_MkMainDiv(){if(tt_body.insertAdjacentHTML)tt_body.insertAdjacentHTML("afterBegin",tt_MkMainDivHtm());else if(typeof tt_body.innerHTML!=tt_u&&document.createElement&&tt_body.appendChild)tt_body.appendChild(tt_MkMainDivDom());if(window.tt_GetMainDivRefs&&tt_GetMainDivRefs())return true;tt_db=null;return false}
function tt_MkMainDivHtm(){return('<div id="WzTtDiV"></div>'+(tt_ie56?('<iframe id="WzTtIfRm" src="javascript:false" scrolling="no" frameborder="0" style="filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;"></iframe>'):''))}
function tt_MkMainDivDom(){var i=document.createElement("div");if(i)i.id="WzTtDiV";return i}
function tt_GetMainDivRefs(){tt_aElt[0]=tt_GetElt("WzTtDiV");if(tt_ie56&&tt_aElt[0]){tt_aElt[tt_aElt.length-1]=tt_GetElt("WzTtIfRm");if(!tt_aElt[tt_aElt.length-1])tt_aElt[0]=null}
if(tt_aElt[0]){var i=tt_aElt[0].style;i.visibility="hidden";i.position="absolute";i.overflow="hidden";return true}
return false}
function tt_ResetMainDiv(){var i=(window.screen&&screen.width)?screen.width:10000;tt_SetTipPos(-i,0);tt_aElt[0].innerHTML="";tt_aElt[0].style.width=(i-1)+"px";tt_h=0}
function tt_IsW3cBox(){var i=tt_aElt[0].style;i.padding="10px";i.width="40px";tt_bBoxOld=(tt_GetDivW(tt_aElt[0])==40);i.padding="0px";tt_ResetMainDiv()}
function tt_OpaSupport(){var i=tt_body.style;tt_flagOpa=(typeof(i.filter)!=tt_u)?1:(typeof(i.KhtmlOpacity)!=tt_u)?2:(typeof(i.KHTMLOpacity)!=tt_u)?3:(typeof(i.MozOpacity)!=tt_u)?4:(typeof(i.opacity)!=tt_u)?5:0}
function tt_SetOnloadFnc(){tt_AddEvtFnc(document,"DOMContentLoaded",tt_HideSrcTags);tt_AddEvtFnc(window,"load",tt_HideSrcTags);if(tt_body.attachEvent)tt_body.attachEvent("onreadystatechange",function(){if(tt_body.readyState=="complete")tt_HideSrcTags()});if(/WebKit|KHTML/i.test(navigator.userAgent)){var t=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(t);tt_HideSrcTags()}},10)}}
function tt_HideSrcTags(){if(!window.tt_HideSrcTags||window.tt_HideSrcTags.done)return;window.tt_HideSrcTags.done=true;if(!tt_HideSrcTagsRecurs(tt_body))tt_Err("There are HTML elements to be converted to tooltips.\nIf you"+" want these HTML elements to be automatically hidden, you"+" must edit wz_tooltip.js, and set TagsToTip in the global"+" tooltip configuration to true.",true)}
function tt_HideSrcTagsRecurs(l){var I,i,O=l.childNodes||l.children||null;for(var o=O?O.length:0;o;){--o;if(!tt_HideSrcTagsRecurs(O[o]))return false;I=O[o].getAttribute?(O[o].getAttribute("onmouseover")||O[o].getAttribute("onclick")):(typeof O[o].onmouseover=="function")?(O[o].onmouseover||O[o].onclick):null;if(I){i=I.toString().match(/TagToTip\s*\(\s*'[^'.]+'\s*[\),]/);if(i&&i.length){if(!tt_HideSrcTag(i[0]))return false}}}
return true}
function tt_HideSrcTag(i){var l,I;l=i.replace(/.+'([^'.]+)'.+/,"$1");I=tt_GetElt(l);if(I){if(tt_Debug&&!TagsToTip)return false;else
I.style.display="none"}else
tt_Err("Invalid ID\n'"+l+"'\npassed to TagToTip()."+" There exists no HTML element with that ID.",true);return true}
function tt_Tip(i,I){if(!tt_db)return;if(tt_iState)tt_Hide();if(!tt_Enabled)return;tt_t2t=I;if(!tt_ReadCmds(i))return;tt_iState=0x1|0x4;tt_AdaptConfig1();tt_MkTipContent(i);tt_MkTipSubDivs();tt_FormatTip();tt_bJmpVert=false;tt_bJmpHorz=false;tt_maxPosX=tt_GetClientW()+tt_scrlX-tt_w-1;tt_maxPosY=tt_GetClientH()+tt_scrlY-tt_h-1;tt_AdaptConfig2();tt_OverInit();tt_ShowInit();tt_Move()}
function tt_ReadCmds(l){var i;i=0;for(var I in config)tt_aV[i++]=config[I];if(l.length&1){for(i=l.length-1;i>0;i-=2)tt_aV[l[i-1]]=l[i];return true}
tt_Err("Incorrect call of Tip() or TagToTip().\n"+"Each command must be followed by a value.",true);return false}
function tt_AdaptConfig1(){tt_ExtCallFncs(0,"LoadConfig");if(!tt_aV[TITLEBGCOLOR].length)tt_aV[TITLEBGCOLOR]=tt_aV[BORDERCOLOR];if(!tt_aV[TITLEFONTCOLOR].length)tt_aV[TITLEFONTCOLOR]=tt_aV[BGCOLOR];if(!tt_aV[TITLEFONTFACE].length)tt_aV[TITLEFONTFACE]=tt_aV[FONTFACE];if(!tt_aV[TITLEFONTSIZE].length)tt_aV[TITLEFONTSIZE]=tt_aV[FONTSIZE];if(tt_aV[CLOSEBTN]){if(!tt_aV[CLOSEBTNCOLORS])tt_aV[CLOSEBTNCOLORS]=new Array("","","","");for(var i=4;i;){--i;if(!tt_aV[CLOSEBTNCOLORS][i].length)tt_aV[CLOSEBTNCOLORS][i]=(i&1)?tt_aV[TITLEFONTCOLOR]:tt_aV[TITLEBGCOLOR]}
if(!tt_aV[TITLE].length)tt_aV[TITLE]=" "}
if(tt_aV[OPACITY]==100&&typeof tt_aElt[0].style.MozOpacity!=tt_u&&!Array.every)tt_aV[OPACITY]=99;if(tt_aV[FADEIN]&&tt_flagOpa&&tt_aV[DELAY]>100)tt_aV[DELAY]=Math.max(tt_aV[DELAY]-tt_aV[FADEIN],100)}
function tt_AdaptConfig2(){if(tt_aV[CENTERMOUSE]){tt_aV[OFFSETX]-=((tt_w-(tt_aV[SHADOW]?tt_aV[SHADOWWIDTH]:0))>>1);tt_aV[JUMPHORZ]=false}}
function tt_MkTipContent(i){if(tt_t2t){if(tt_aV[COPYCONTENT])tt_sContent=tt_t2t.innerHTML;else
tt_sContent=""}else
tt_sContent=i[0];tt_ExtCallFncs(0,"CreateContentString")}
function tt_MkTipSubDivs(){var i='position:relative;margin:0px;padding:0px;border-width:0px;left:0px;top:0px;line-height:normal;width:auto;',I=' cellspacing="0" cellpadding="0" border="0" style="'+i+'"><tbody style="'+i+'"><tr><td ';tt_aElt[0].innerHTML=(''+(tt_aV[TITLE].length?('<div id="WzTiTl" style="position:relative;z-index:1;">'+'<table id="WzTiTlTb"'+I+'id="WzTiTlI" style="'+i+'">'+tt_aV[TITLE]+'</td>'+(tt_aV[CLOSEBTN]?('<td align="right" style="'+i+'text-align:right;">'+'<span id="WzClOsE" style="padding-left:2px;padding-right:2px;'+'cursor:'+(tt_ie?'hand':'pointer')+';" onmouseover="tt_OnCloseBtnOver(1)" onmouseout="tt_OnCloseBtnOver(0)" onclick="tt_HideInit()">'+tt_aV[CLOSEBTNTEXT]+'</span></td>'):'')+'</tr></tbody></table></div>'):'')+'<div id="WzBoDy" style="position:relative;z-index:0;">'+'<table'+I+'id="WzBoDyI" style="'+i+'">'+tt_sContent+'</td></tr></tbody></table></div>'+(tt_aV[SHADOW]?('<div id="WzTtShDwR" style="position:absolute;overflow:hidden;"></div>'+'<div id="WzTtShDwB" style="position:relative;overflow:hidden;"></div>'):''));tt_GetSubDivRefs();if(tt_t2t&&!tt_aV[COPYCONTENT]){tt_t2tDad=tt_t2t.parentNode||tt_t2t.parentElement||tt_t2t.offsetParent||null;if(tt_t2tDad){tt_MovDomNode(tt_t2t,tt_t2tDad,tt_aElt[6]);tt_t2t.style.display="block"}}
tt_ExtCallFncs(0,"SubDivsCreated")}
function tt_GetSubDivRefs(){var i=new Array("WzTiTl","WzTiTlTb","WzTiTlI","WzClOsE","WzBoDy","WzBoDyI","WzTtShDwB","WzTtShDwR");for(var I=i.length;I;--I)tt_aElt[I]=tt_GetElt(i[I-1])}
function tt_FormatTip(){var i,O,c,l,I,o=(tt_aV[PADDING]+tt_aV[BORDERWIDTH])<<1;if(tt_aV[TITLE].length){i=tt_aElt[1].style;i.background=tt_aV[TITLEBGCOLOR];i.paddingTop=(tt_aV[CLOSEBTN]?2:0)+"px";i.paddingBottom="1px";i.paddingLeft=i.paddingRight=tt_aV[PADDING]+"px";i=tt_aElt[3].style;i.color=tt_aV[TITLEFONTCOLOR];if(tt_aV[WIDTH]==-1)i.whiteSpace="nowrap";i.fontFamily=tt_aV[TITLEFONTFACE];i.fontSize=tt_aV[TITLEFONTSIZE];i.fontWeight="bold";i.textAlign=tt_aV[TITLEALIGN];if(tt_aElt[4]){i.paddingRight=(tt_aV[PADDING]<<1)+"px";i=tt_aElt[4].style;i.background=tt_aV[CLOSEBTNCOLORS][0];i.color=tt_aV[CLOSEBTNCOLORS][1];i.fontFamily=tt_aV[TITLEFONTFACE];i.fontSize=tt_aV[TITLEFONTSIZE];i.fontWeight="bold"}
if(tt_aV[WIDTH]>0)tt_w=tt_aV[WIDTH];else{tt_w=tt_GetDivW(tt_aElt[3])+tt_GetDivW(tt_aElt[4]);if(tt_aElt[4])tt_w+=tt_aV[PADDING];if(tt_aV[WIDTH]<-1&&tt_w>-tt_aV[WIDTH])tt_w=-tt_aV[WIDTH]}
l=-tt_aV[BORDERWIDTH]}else{tt_w=0;l=0}
i=tt_aElt[5].style;i.top=l+"px";if(tt_aV[BORDERWIDTH]){i.borderColor=tt_aV[BORDERCOLOR];i.borderStyle=tt_aV[BORDERSTYLE];i.borderWidth=tt_aV[BORDERWIDTH]+"px"}
if(tt_aV[BGCOLOR].length)i.background=tt_aV[BGCOLOR];if(tt_aV[BGIMG].length)i.backgroundImage="url("+tt_aV[BGIMG]+")";i.padding=tt_aV[PADDING]+"px";i.textAlign=tt_aV[TEXTALIGN];if(tt_aV[HEIGHT]){i.overflow="auto";if(tt_aV[HEIGHT]>0)i.height=(tt_aV[HEIGHT]+o)+"px";else
tt_h=o-tt_aV[HEIGHT]}
i=tt_aElt[6].style;i.color=tt_aV[FONTCOLOR];i.fontFamily=tt_aV[FONTFACE];i.fontSize=tt_aV[FONTSIZE];i.fontWeight=tt_aV[FONTWEIGHT];i.background="";i.textAlign=tt_aV[TEXTALIGN];if(tt_aV[WIDTH]>0)O=tt_aV[WIDTH];else if(tt_aV[WIDTH]==-1&&tt_w)O=tt_w;else{O=tt_GetDivW(tt_aElt[6]);if(tt_aV[WIDTH]<-1&&O>-tt_aV[WIDTH])O=-tt_aV[WIDTH]}
if(O>tt_w)tt_w=O;tt_w+=o;if(tt_aV[SHADOW]){tt_w+=tt_aV[SHADOWWIDTH];I=Math.floor((tt_aV[SHADOWWIDTH]*4)/3);i=tt_aElt[7].style;i.top=l+"px";i.left=I+"px";i.width=(tt_w-I-tt_aV[SHADOWWIDTH])+"px";i.height=tt_aV[SHADOWWIDTH]+"px";i.background=tt_aV[SHADOWCOLOR];i=tt_aElt[8].style;i.top=I+"px";i.left=(tt_w-tt_aV[SHADOWWIDTH])+"px";i.width=tt_aV[SHADOWWIDTH]+"px";i.background=tt_aV[SHADOWCOLOR]}else
I=0;tt_SetTipOpa(tt_aV[FADEIN]?0:tt_aV[OPACITY]);tt_FixSize(l,I)}
function tt_FixSize(o,l){var I,i,C,O,c;tt_aElt[0].style.width=tt_w+"px";tt_aElt[0].style.pixelWidth=tt_w;i=tt_w-((tt_aV[SHADOW])?tt_aV[SHADOWWIDTH]:0);I=i;if(!tt_bBoxOld)I-=(tt_aV[PADDING]+tt_aV[BORDERWIDTH])<<1;tt_aElt[5].style.width=I+"px";if(tt_aElt[1]){I=i-(tt_aV[PADDING]<<1);if(!tt_bBoxOld)i=I;tt_aElt[1].style.width=i+"px";tt_aElt[2].style.width=I+"px"}
if(tt_h){C=tt_GetDivH(tt_aElt[5]);if(C>tt_h){if(!tt_bBoxOld)tt_h-=(tt_aV[PADDING]+tt_aV[BORDERWIDTH])<<1;tt_aElt[5].style.height=tt_h+"px"}}
tt_h=tt_GetDivH(tt_aElt[0])+o;if(tt_aElt[8])tt_aElt[8].style.height=(tt_h-l)+"px";c=tt_aElt.length-1;if(tt_aElt[c]){tt_aElt[c].style.width=tt_w+"px";tt_aElt[c].style.height=tt_h+"px"}}
function tt_DeAlt(I){var i;if(I){if(I.alt)I.alt="";if(I.title)I.title="";i=I.childNodes||I.children||null;if(i){for(var l=i.length;l;)tt_DeAlt(i[--l])}}}
function tt_OpDeHref(i){if(!tt_op)return;if(tt_elDeHref)tt_OpReHref();while(i){if(i.hasAttribute("href")){i.t_href=i.getAttribute("href");i.t_stats=window.status;i.removeAttribute("href");i.style.cursor="hand";tt_AddEvtFnc(i,"mousedown",tt_OpReHref);window.status=i.t_href;tt_elDeHref=i;break}
i=i.parentElement}}
function tt_OpReHref(){if(tt_elDeHref){tt_elDeHref.setAttribute("href",tt_elDeHref.t_href);tt_RemEvtFnc(tt_elDeHref,"mousedown",tt_OpReHref);window.status=tt_elDeHref.t_stats;tt_elDeHref=null}}
function tt_OverInit(){if(window.event)tt_over=window.event.target||window.event.srcElement;else
tt_over=tt_ovr_;tt_DeAlt(tt_over);tt_OpDeHref(tt_over)}
function tt_ShowInit(){tt_tShow.Timer("tt_Show()",tt_aV[DELAY],true);if(tt_aV[CLICKCLOSE]||tt_aV[CLICKSTICKY])tt_AddEvtFnc(document,"mouseup",tt_OnLClick)}
function tt_Show(){var i=tt_aElt[0].style;i.zIndex=Math.max((window.dd&&dd.z)?(dd.z+2):0,1010);if(tt_aV[STICKY]||!tt_aV[FOLLOWMOUSE])tt_iState&=~0x4;if(tt_aV[DURATION]>0)tt_tDurt.Timer("tt_HideInit()",tt_aV[DURATION],true);tt_ExtCallFncs(0,"Show")
i.visibility="visible";tt_iState|=0x2;if(tt_aV[FADEIN])tt_Fade(0,0,tt_aV[OPACITY],Math.round(tt_aV[FADEIN]/tt_aV[FADEINTERVAL]));tt_ShowIfrm()}
function tt_ShowIfrm(){if(tt_ie56){var i=tt_aElt[tt_aElt.length-1];if(i){var I=i.style;I.zIndex=tt_aElt[0].style.zIndex-1;I.display="block"}}}
function tt_Move(I){if(I)tt_ovr_=I.target||I.srcElement;I=I||window.event;if(I){tt_musX=tt_GetEvtX(I);tt_musY=tt_GetEvtY(I)}
if(tt_iState&0x04){if(!tt_op&&!tt_ie){if(tt_bWait)return;tt_bWait=true;tt_tWaitMov.Timer("tt_bWait = false;",1,true)}
if(tt_aV[FIX]){var i=tt_aV[FIX][1];if(tt_aV[ABOVE])i-=tt_h;tt_iState&=~0x4;tt_SetTipPos(tt_aV[FIX][0],tt_aV[FIX][1])}else if(!tt_ExtCallFncs(I,"MoveBefore"))tt_SetTipPos(tt_Pos(0),tt_Pos(1));tt_ExtCallFncs([tt_musX,tt_musY],"MoveAfter")}}
function tt_Pos(l){var V,i,I,o,x,c,O,v,C;if(l){i=tt_aV[JUMPVERT];I=ABOVE;o=OFFSETY;x=tt_h;c=tt_maxPosY;O=tt_scrlY;v=tt_musY;C=tt_bJmpVert}else{i=tt_aV[JUMPHORZ];I=LEFT;o=OFFSETX;x=tt_w;c=tt_maxPosX;O=tt_scrlX;v=tt_musX;C=tt_bJmpHorz}
if(i){if(tt_aV[I]&&(!C||tt_CalcPosAlt(l)>=O+16))V=tt_PosAlt(l);else if(!tt_aV[I]&&C&&tt_CalcPosDef(l)>c-16)V=tt_PosAlt(l);else
V=tt_PosDef(l)}else{V=v;if(tt_aV[I])V-=x+tt_aV[o]-(tt_aV[SHADOW]?tt_aV[SHADOWWIDTH]:0);else
V+=tt_aV[o]}
if(V>c)V=i?tt_PosAlt(l):c;if(V<O)V=i?tt_PosDef(l):O;return V}
function tt_PosDef(i){if(i)tt_bJmpVert=tt_aV[ABOVE];else
tt_bJmpHorz=tt_aV[LEFT];return tt_CalcPosDef(i)}
function tt_PosAlt(i){if(i)tt_bJmpVert=!tt_aV[ABOVE];else
tt_bJmpHorz=!tt_aV[LEFT];return tt_CalcPosAlt(i)}
function tt_CalcPosDef(i){return i?(tt_musY+tt_aV[OFFSETY]):(tt_musX+tt_aV[OFFSETX])}
function tt_CalcPosAlt(I){var i=I?OFFSETY:OFFSETX,l=tt_aV[i]-(tt_aV[SHADOW]?tt_aV[SHADOWWIDTH]:0);if(tt_aV[i]>0&&l<=0)l=1;return((I?(tt_musY-tt_h):(tt_musX-tt_w))-l)}
function tt_Fade(l,i,I,o){if(o){i+=Math.round((I-i)/o);if((I>l)?(i>=I):(i<=I))i=I;else
tt_tFade.Timer("tt_Fade("+l+","+i+","+I+","+(o-1)+")",tt_aV[FADEINTERVAL],true)}
i?tt_SetTipOpa(i):tt_Hide()}
function tt_SetTipOpa(i){tt_SetOpa(tt_aElt[5],i);if(tt_aElt[1])tt_SetOpa(tt_aElt[1],i);if(tt_aV[SHADOW]){i=Math.round(i*0.8);tt_SetOpa(tt_aElt[7],i);tt_SetOpa(tt_aElt[8],i)}}
function tt_OnScrl(){tt_scrlX=tt_GetScrollX();tt_scrlY=tt_GetScrollY()}
function tt_OnCloseBtnOver(i){var I=tt_aElt[4].style;i<<=1;I.background=tt_aV[CLOSEBTNCOLORS][i];I.color=tt_aV[CLOSEBTNCOLORS][i+1]}
function tt_OnLClick(i){i=i||window.event;if(!((i.button&&i.button&2)||(i.which&&i.which==3))){if(tt_aV[CLICKSTICKY]&&(tt_iState&0x4)){tt_aV[STICKY]=true;tt_iState&=~0x4}else if(tt_aV[CLICKCLOSE])tt_HideInit()}}
function tt_Int(I){var i;return(isNaN(i=parseInt(I))?0:i)}
Number.prototype.Timer=function(s,iT,bUrge){if(!this.value||bUrge)this.value=window.setTimeout(s,iT)}
Number.prototype.EndTimer=function(){var i=this;if(i.value){window.clearTimeout(i.value);i.value=0}}
function tt_SetOpa(o,I){var i=o.style;tt_opa=I;if(tt_flagOpa==1){if(I<100){if(typeof(o.filtNo)==tt_u)o.filtNo=i.filter;var l=i.visibility!="hidden";i.zoom="100%";if(!l)i.visibility="visible";i.filter="alpha(opacity="+I+")";if(!l)i.visibility="hidden"}else if(typeof(o.filtNo)!=tt_u)
i.filter=o.filtNo}else{I/=100.0;switch(tt_flagOpa){case 2:i.KhtmlOpacity=I;break;case 3:i.KHTMLOpacity=I;break;case 4:i.MozOpacity=I;break;case 5:i.opacity=I;break}}}
function tt_MovDomNode(l,i,I){if(i)i.removeChild(l);if(I)I.appendChild(l)}
function tt_Err(I,i){if(tt_Debug||!i)alert("Tooltip Script Error Message:\n\n"+I)}
function tt_ExtCmdEnum(){var s;for(var i in config){s="window."+i.toString().toUpperCase();if(eval("typeof("+s+") == tt_u")){eval(s+" = "+tt_aV.length);tt_aV[tt_aV.length]=null}}}
function tt_ExtCallFncs(l,I){var O=false;for(var o=tt_aExt.length;o;){--o;var i=tt_aExt[o]["On"+I];if(i&&i(l))O=true}
return O}
tt_Init();