/*! This notice must be untouched at all times.

wz_tooltip.js	 v. 4.0

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

Copyright (c) 2002-2007 Walter Zorn. All rights reserved.
Created 1.12.2002 by Walter Zorn (Web: http://www.walterzorn.com )
Last modified: 28.5.2007

Easy-to-use cross-browser tooltips.
Just include the script at the beginning of the <body> section, and invoke
Tip('Tooltip text') from within the desired HTML onmouseover eventhandlers.
No container DIV, no onmouseouts required.
By default, width of tooltips is 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=new Object();var Debug=true;var TagsToTip=true;config.Above=false;config.BgColor="#FFFFFF";config.BgImg="";config.BorderColor="#992200";config.BorderStyle="solid";config.BorderWidth=1;config.CenterMouse=false;config.ClickClose=false;config.CloseBtn=false;config.CloseBtnColors=["#990000","#FFFFFF","#DD3333","#FFFFFF"];config.CloseBtnText="Close";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.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="";config.TitleFontFace="";config.TitleFontSize="";config.Width=300;function Tip(){tt_Tip(arguments)}function TagToTip(){var a=arguments,b;if(TagsToTip){b=tt_GetElt(a[0]);if(b){a[0]=b.innerHTML;tt_Tip(a)}}}var ONCONFIG=0,ONMOUSEMOVE=1,ONHIDEINIT=2,ONHIDE=3,tt_aElt=new Array(10),tt_aV=new Array(),tt_w,tt_h;function tt_AddExtension(){return(new tt_Extension(arguments)!=null)}function tt_SetTipPos(b,a){var d=tt_aElt[0].style;d.left=b+"px";d.top=a+"px";if(tt_ie56){var c=tt_aElt[tt_aElt.length-1];if(c){c.style.left=d.left;c.style.top=d.top}}}function tt_HideTip(){if(tt_db){tt_ExtCallFunc(0,ONHIDE);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_RemEvtFnc(document,"mouseup",tt_HideInit)}tt_AddRemEvtFncEx(1,false);tt_AddRemEvtFncEx(0,false);tt_b=false;tt_over=null;tt_ResetMainDiv();if(tt_aElt[tt_aElt.length-1]){tt_aElt[tt_aElt.length-1].style.display="none"}}}function tt_GetDivW(a){if(a){return(a.offsetWidth||a.style.pixelWidth||0)}return 0}function tt_GetDivH(a){if(a){return(a.offsetHeight||a.style.pixelHeight||0)}return 0}function tt_GetScrollX(){return((typeof(window.pageXOffset)!=tt_u)?window.pageXOffset:tt_db?(tt_db.scrollLeft||0):0)}function tt_GetScrollY(){return((typeof(window.pageYOffset)!=tt_u)?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_AddEvtFnc(b,c,a){if(b){if(b.addEventListener){b.addEventListener(c,a,false)}else{b.attachEvent("on"+c,a)}}}function tt_RemEvtFnc(b,c,a){if(b){if(b.removeEventListener){b.removeEventListener(c,a,false)}else{b.detachEvent("on"+c,a)}}}var tt_aExt=new Array(),tt_db,tt_op,tt_op78,tt_ie,tt_ie56,tt_bBoxOld,tt_body,tt_flagOpa,tt_scrlX,tt_scrlY,tt_maxPosX,tt_maxPosY,tt_b,tt_over,tt_opa,tt_bJmpVert,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_bMovFnc,tt_bOutFnc,tt_bWait=false,tt_u="undefined";function tt_Init(){tt_MkCmdEnum();if(!tt_Browser()||!tt_MkMainDiv()){return}tt_IsW3cBoxing();tt_OpaSupport();if(TagsToTip||Debug){tt_SetOnloadFnc()}tt_AddEvtFnc(window,"scroll",tt_HideOnScrl);tt_AddEvtFnc(window,"unload",tt_HideTip);tt_HideTip()}function tt_MkCmdEnum(){var t_n=0;for(var i in config){eval("window."+i.toString().toUpperCase()+" = "+t_n++)}tt_aV.length=t_n}function tt_Browser(){var t_n,t_nv,t_n6,t_w3c;t_n=navigator.userAgent.toLowerCase(),t_nv=navigator.appVersion;tt_op=(document.defaultView&&typeof(eval("window.opera"))!=tt_u);tt_op78=(tt_op&&!window.getSelection);tt_ie=t_n.indexOf("msie")!=-1&&document.all&&!tt_op;if(tt_ie){var t_ieOld=(!document.compatMode||document.compatMode=="BackCompat");tt_db=!t_ieOld?document.documentElement:(document.body||null);if(tt_db){tt_ie56=parseFloat(t_nv.substring(t_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){t_n6=document.defaultView&&typeof document.defaultView.getComputedStyle!=tt_u;t_w3c=!t_n6&&document.getElementById}}tt_body=(document.getElementsByTagName?document.getElementsByTagName("body")[0]:(document.body||null));if(tt_ie||t_n6||tt_op||t_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.")}}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" style="position:absolute;overflow:hidden;"></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 a;a=document.createElement("div");if(a){var b=a.style;a.id="WzTtDiV";b.position="absolute";b.overflow="hidden"}return a}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}}return(tt_aElt[0]!=null)}function tt_ResetMainDiv(){var a=tt_aElt[0].style;a.visibility="hidden";a.left="-9999px";tt_aElt[0].innerHTML="";a.width="9998px"}function tt_IsW3cBoxing(){var a=tt_aElt[0].style;a.padding="10px";a.width="40px";tt_bBoxOld=(tt_GetDivW(tt_aElt[0])==40);a.padding="0px";tt_ResetMainDiv()}function tt_OpaSupport(){var a=tt_body.style;tt_flagOpa=(typeof(a.filter)!=tt_u)?1:(typeof(a.KhtmlOpacity)!=tt_u)?2:(typeof(a.KHTMLOpacity)!=tt_u)?3:(typeof(a.MozOpacity)!=tt_u)?4:(typeof(a.opacity)!=tt_u)?5:0}function tt_SetOnloadFnc(){tt_AddEvtFnc(document,"DOMContentLoaded",tt_HideSrcTags);tt_AddEvtFnc(window,"load",tt_HideSrcTags);
/*@cc_on
	if(document.attachEvent)
		document.attachEvent("onreadystatechange",
			function(){ if(document.readyState == "complete") tt_HideSrcTags(); });
	document.write('<scr' + 'ipt id="TT_ie_onload" defer src="'
				   + ((location.protocol == "https:") ? '//0' : 'javascript:void(0)')
				   + '"><\/scr' + 'ipt>');
	var script = document.getElementById("TT_ie_onload");
	script.onreadystatechange = function() {
		if(this.readyState == "complete")
			tt_HideSrcTags();
	};
	@*/
if(/WebKit|KHTML/i.test(navigator.userAgent)){var t_t=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(t_t);tt_HideSrcTags()}},10)}}function tt_HideSrcTags(){if(!window.tt_HideSrcTags||window.tt_HideSrcTags.t_done){return}window.tt_HideSrcTags.t_done=true;if(!tt_HideSrcTagsRecurs(tt_body)){tt_Err("To enable the capability to convert HTML elements to tooltips, you must set TagsToTip in the global tooltip configuration to true.")}}function tt_HideSrcTagsRecurs(d){var b,a,e;b=d.children||d.childNodes||null;for(var c=b?b.length:0;c;){--c;if(!tt_HideSrcTagsRecurs(b[c])){return false}a=b[c].getAttribute?b[c].getAttribute("onmouseover"):(typeof b[c].onmouseover=="function")?b[c].onmouseover:null;if(a){e=a.toString().match(/TagToTip\s*\(\s*'[^'.]+'\s*[\),]/);if(e&&e.length){if(!tt_HideSrcTag(e[0])){return false}}}}return true}function tt_HideSrcTag(a){var c,b;c=a.replace(/.+'([^'.]+)'.+/,"$1");b=tt_GetElt(c);if(b){if(Debug&&!TagsToTip){return false}else{b.style.display="none"}}else{tt_Err("Invalid ID\n'"+c+"'\npassed to TagToTip(). There exists no HTML element with that ID.")}return true}function tt_Tip(a){if(!tt_db){return}if(tt_over){tt_HideTip()}if(!tt_ReadCmds(a)){return}tt_b=true;tt_AdaptConfig1();tt_MkTipSubDivs(a[0]);tt_FormatTip();tt_AddRemEvtFncEx(0,true);tt_bJmpVert=false;tt_scrlX=tt_GetScrollX();tt_scrlY=tt_GetScrollY();tt_maxPosX=tt_GetClientW()+tt_scrlX-tt_w-1;tt_maxPosY=tt_GetClientH()+tt_scrlY-tt_h-1;tt_AdaptConfig2();if(window.event){tt_Move(window.event)}}function tt_ReadCmds(a){var c;c=0;for(var b in config){tt_aV[c++]=config[b]}if(a.length&1){for(c=a.length-1;c>0;c-=2){tt_aV[a[c-1]]=a[c]}return true}tt_Err("Incorrect call of Tip() or TagToTip().\nEach command must be followed by a value.");return false}function tt_AdaptConfig1(){tt_ExtCallFunc(0,ONCONFIG);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 a=4;a;){--a;if(!tt_aV[CLOSEBTNCOLORS][a].length){tt_aV[CLOSEBTNCOLORS][a]=(a&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){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)}}function tt_MkTipSubDivs(c){var a=' cellpadding="0" cellspacing="0" border="0" style="position:relative;margin:0px;border-width:0px;"><tr>',b="position:relative;margin:0px;padding:0px;border-width:0px;";tt_aElt[0].innerHTML=(""+(tt_aV[TITLE].length?('<div id="WzTiTl" style="position:relative;z-index:1;"><table id="WzTiTlTb"'+a+'<td id="WzTiTlI" style="'+b+'">'+tt_aV[TITLE]+"</td>"+(tt_aV[CLOSEBTN]?('<td align="right" style="'+b+';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></table></div>"):"")+'<div id="WzBoDy" style="position:relative;z-index:0;"><table'+a+'<td id="WzBoDyI" style="'+b+'">'+c+"</td></tr></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()}function tt_GetSubDivRefs(){var a=new Array("WzTiTl","WzTiTlTb","WzTiTlI","WzClOsE","WzBoDy","WzBoDyI","WzTtShDwB","WzTtShDwR");for(var b=a.length;b;--b){tt_aElt[b]=tt_GetElt(a[b-1])}return true}function tt_FormatTip(){var d,a,c;if(tt_aV[TITLE].length){d=tt_aElt[1].style;d.background=tt_aV[TITLEBGCOLOR];d.paddingTop=(tt_aV[CLOSEBTN]?2:0)+"px";d.paddingBottom="1px";d.paddingLeft=d.paddingRight=tt_aV[PADDING]+"px";d=tt_aElt[3].style;d.color=tt_aV[TITLEFONTCOLOR];d.fontFamily=tt_aV[TITLEFONTFACE];d.fontSize=tt_aV[TITLEFONTSIZE];d.fontWeight="bold";d.textAlign=tt_aV[TITLEALIGN];if(tt_aElt[4]){d.paddingRight=(tt_aV[PADDING]<<1)+"px";d=tt_aElt[4].style;d.background=tt_aV[CLOSEBTNCOLORS][0];d.color=tt_aV[CLOSEBTNCOLORS][1];d.fontFamily=tt_aV[TITLEFONTFACE];d.fontSize=tt_aV[TITLEFONTSIZE];d.fontWeight="bold"}if(tt_aV[WIDTH]>0){tt_w=tt_aV[WIDTH]+((tt_aV[PADDING]+tt_aV[BORDERWIDTH])<<1)}else{tt_w=tt_GetDivW(tt_aElt[3])+tt_GetDivW(tt_aElt[4]);if(tt_aElt[4]){tt_w+=tt_aV[PADDING]}}a=-tt_aV[BORDERWIDTH]}else{tt_w=0;a=0}d=tt_aElt[5].style;d.top=a+"px";if(tt_aV[BORDERWIDTH]){d.borderColor=tt_aV[BORDERCOLOR];d.borderStyle=tt_aV[BORDERSTYLE];d.borderWidth=tt_aV[BORDERWIDTH]+"px"}if(tt_aV[BGCOLOR].length){d.background=tt_aV[BGCOLOR]}if(tt_aV[BGIMG].length){d.backgroundImage="url("+tt_aV[BGIMG]+")"}d.padding=tt_aV[PADDING]+"px";d.textAlign=tt_aV[TEXTALIGN];d=tt_aElt[6].style;d.color=tt_aV[FONTCOLOR];d.fontFamily=tt_aV[FONTFACE];d.fontSize=tt_aV[FONTSIZE];d.fontWeight=tt_aV[FONTWEIGHT];d.background="";d.textAlign=tt_aV[TEXTALIGN];if(tt_aV[WIDTH]>0){c=tt_aV[WIDTH]+((tt_aV[PADDING]+tt_aV[BORDERWIDTH])<<1)}else{c=tt_GetDivW(tt_aElt[6])+((tt_aV[PADDING]+tt_aV[BORDERWIDTH])<<1)}if(c>tt_w){tt_w=c}if(tt_aV[SHADOW]){var b;tt_w+=tt_aV[SHADOWWIDTH];b=tt_CalcShadowOffset();d=tt_aElt[7].style;d.top=a+"px";d.left=b+"px";d.width=(tt_w-b-tt_aV[SHADOWWIDTH])+"px";d.height=tt_aV[SHADOWWIDTH]+"px";d.background=tt_aV[SHADOWCOLOR];d=tt_aElt[8].style;d.top=b+"px";d.left=(tt_w-tt_aV[SHADOWWIDTH])+"px";d.width=tt_aV[SHADOWWIDTH]+"px";d.background=tt_aV[SHADOWCOLOR]}tt_SetTipOpa(tt_aV[FADEIN]?0:tt_aV[OPACITY]);tt_FixSize(a)}function tt_FixSize(c){var a,d,b;tt_aElt[0].style.width=tt_w+"px";tt_aElt[0].style.pixelWidth=tt_w;tt_h=tt_GetDivH(tt_aElt[0])+c;d=tt_w-((tt_aV[SHADOW])?tt_aV[SHADOWWIDTH]:0);if(tt_bBoxOld){a=d}else{a=d-((tt_aV[PADDING]+tt_aV[BORDERWIDTH])<<1)}tt_aElt[5].style.width=a+"px";if(tt_aElt[1]){if(tt_bBoxOld){a=d-(tt_aV[PADDING]<<1)}else{d-=(tt_aV[PADDING]<<1);a=d}tt_aElt[1].style.width=d+"px";tt_aElt[2].style.width=a+"px"}if(tt_aElt[8]){tt_aElt[8].style.height=(tt_h-tt_CalcShadowOffset())+"px"}b=tt_aElt.length-1;if(tt_aElt[b]){tt_aElt[b].style.width=tt_w+"px";tt_aElt[b].style.height=tt_h+"px"}}function tt_CalcShadowOffset(){return(Math.floor((tt_aV[SHADOWWIDTH]*4)/3))}function tt_StartMov(){var a;tt_DeAlt(tt_over);tt_OpDeHref(tt_over);a="tt_ShowTip();";if(tt_aV[STICKY]||!tt_aV[FOLLOWMOUSE]){a+="tt_AddRemEvtFncEx(0, false);"}if(tt_aV[DURATION]>0){a+='tt_tDurt.Timer("tt_HideInit();",'+tt_aV[DURATION]+", true);"}tt_tShow.Timer(a,tt_aV[DELAY],true);tt_AddRemEvtFncEx(1,true);if(tt_aV[CLICKCLOSE]){tt_AddEvtFnc(document,"mouseup",tt_HideInit)}}function tt_DeAlt(a){var c;if(a.alt){a.alt=""}if(a.title){a.title=""}c=a.children||a.childNodes||null;if(c){for(var b=c.length;b;){tt_DeAlt(c[--b])}}}function tt_OpDeHref(a){if(!tt_op78){return}if(tt_elDeHref){tt_OpReHref()}while(a){if(a.hasAttribute("href")){a.t_href=a.getAttribute("href");a.t_stats=window.status;a.removeAttribute("href");a.style.cursor="hand";tt_AddEvtFnc(a,"mousedown",tt_OpReHref);window.status=a.t_href;tt_elDeHref=a;break}a=a.parentElement}}function tt_ShowTip(){var a=tt_aElt[0].style;a.zIndex=Math.max((window.dd&&dd.z)?(dd.z+2):0,1010);a.visibility="visible";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 a=tt_aElt[tt_aElt.length-1];if(a){var b=a.style;b.zIndex=tt_aElt[0].style.zIndex-1;b.width=tt_w+"px";b.height=tt_h+"px";b.display="block"}}}function tt_Move(a){a=a||window.event||null;if(!tt_op&&!tt_ie){if(tt_bWait){return}tt_bWait=true;tt_tWaitMov.Timer("tt_bWait = false;",1,true)}if(tt_aV[FIX]){tt_AddRemEvtFncEx(0,false);tt_SetTipPos(tt_aV[FIX][0],tt_aV[FIX][1])}else{if(!tt_ExtCallFunc(a,ONMOUSEMOVE)){tt_SetTipPos(tt_PosX(a),tt_PosY(a))}}if(!tt_over){tt_over=a.target||a.srcElement;if(tt_over){tt_StartMov()}}}function tt_PosX(b){var a;a=(typeof(b.pageX)!=tt_u)?b.pageX:(b.clientX+tt_scrlX);if(tt_aV[LEFT]){a-=tt_w+tt_aV[OFFSETX]-(tt_aV[SHADOW]?tt_aV[SHADOWWIDTH]:0)}else{a+=tt_aV[OFFSETX]}if(a>tt_maxPosX){a=tt_maxPosX}return((a<tt_scrlX)?tt_scrlX:a)}function tt_PosY(c){var b,a;b=(typeof(c.pageY)!=tt_u)?c.pageY:(c.clientY+tt_scrlY);if(tt_aV[ABOVE]&&(!tt_bJmpVert||tt_CalcPosYAbove(b)>=tt_scrlY+16)){a=tt_DoPosYAbove(b)}else{if(!tt_aV[ABOVE]&&tt_bJmpVert&&tt_CalcPosYBeneath(b)>tt_maxPosY-16){a=tt_DoPosYAbove(b)}else{a=tt_DoPosYBeneath(b)}}if(a>tt_maxPosY){a=tt_DoPosYAbove(b)}if(a<tt_scrlY){a=tt_DoPosYBeneath(b)}return a}function tt_DoPosYBeneath(a){tt_bJmpVert=tt_aV[ABOVE];return tt_CalcPosYBeneath(a)}function tt_DoPosYAbove(a){tt_bJmpVert=!tt_aV[ABOVE];return tt_CalcPosYAbove(a)}function tt_CalcPosYBeneath(a){return(a+tt_aV[OFFSETY])}function tt_CalcPosYAbove(a){var b=tt_aV[OFFSETY]-(tt_aV[SHADOW]?tt_aV[SHADOWWIDTH]:0);if(tt_aV[OFFSETY]>0&&b<=0){b=1}return(a-tt_h-b)}function tt_OnOut(){tt_AddRemEvtFncEx(1,false);if(!(tt_aV[STICKY]&&tt_aElt[0].style.visibility=="visible")){tt_HideInit()}}function tt_HideOnScrl(){if(tt_b&&!(tt_aV[STICKY]&&tt_aElt[0].style.visibility=="visible")){tt_HideInit()}}function tt_HideInit(){tt_ExtCallFunc(0,ONHIDEINIT);tt_AddRemEvtFncEx(0,false);if(tt_flagOpa&&tt_aV[FADEOUT]){tt_tFade.EndTimer();if(tt_opa){var a=Math.round(tt_aV[FADEOUT]/(tt_aV[FADEINTERVAL]*(tt_aV[OPACITY]/tt_opa)));tt_Fade(tt_opa,tt_opa,0,a);return}}tt_tHide.Timer("tt_HideTip();",1,false)}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_Fade(b,c,d,a){if(a){c+=Math.round((d-c)/a);if((d>b)?(c>=d):(c<=d)){c=d}else{tt_tFade.Timer("tt_Fade("+b+","+c+","+d+","+(a-1)+")",tt_aV[FADEINTERVAL],true)}}if(!c){tt_HideTip()}else{tt_SetTipOpa(c)}}function tt_SetTipOpa(a){tt_SetOpa(tt_aElt[5].style,a);if(tt_aElt[1]){tt_SetOpa(tt_aElt[1].style,a)}if(tt_aV[SHADOW]){a=Math.round(a*0.8);tt_SetOpa(tt_aElt[7].style,a);tt_SetOpa(tt_aElt[8].style,a)}}function tt_OnCloseBtnOver(a){var b=tt_aElt[4].style;a<<=1;b.background=tt_aV[CLOSEBTNCOLORS][a];b.color=tt_aV[CLOSEBTNCOLORS][a+1]}function tt_Int(b){var a;return(isNaN(a=parseInt(b))?0:a)}function tt_GetElt(a){return(document.getElementById?document.getElementById(a):document.all?document.all[a]:null)}function tt_AddRemEvtFncEx(c,a){var b=a?tt_AddEvtFnc:tt_RemEvtFnc;if(c){if(a!=tt_bOutFnc){b(tt_over,"mouseout",tt_OnOut);tt_bOutFnc=a;if(!a){tt_OpReHref()}}}else{if(a!=tt_bMovFnc){b(document,"mousemove",tt_Move);tt_bMovFnc=a}}}Number.prototype.Timer=function(b,a,c){if(!this.value||c){this.value=window.setTimeout(b,a)}};Number.prototype.EndTimer=function(){if(this.value){window.clearTimeout(this.value);this.value=0}};function tt_SetOpa(c,b){tt_opa=b;if(tt_flagOpa==1){if(b<100){var a=c.visibility!="hidden";c.zoom="100%";if(!a){c.visibility="visible"}c.filter="alpha(opacity="+b+")";if(!a){c.visibility="hidden"}}else{c.filter=""}}else{b/=100;switch(tt_flagOpa){case 2:c.KhtmlOpacity=b;break;case 3:c.KHTMLOpacity=b;break;case 4:c.MozOpacity=b;break;case 5:c.opacity=b;break}}}function tt_Err(a){if(Debug){alert("Tooltip Script Error Message:\n\n"+a)}}function tt_Extension(b){var a=b.length;if(a&1){tt_Err("Number of arguments passed to 'new tt_Extension()' must be even.");return null}tt_ExtCmdEnum();this.aPFnc=new Array();for(--a;a>0;a-=2){this.aPFnc[b[a-1]]=b[a]}tt_aExt[tt_aExt.length]=this;return this}function tt_ExtCmdEnum(){var t_s;for(var i in config){t_s="window."+i.toString().toUpperCase();if(eval("typeof("+t_s+") == tt_u")){eval(t_s+" = "+tt_aV.length);tt_aV[tt_aV.length]=null}}}function tt_ExtCallFunc(c,a){var d;for(var b=tt_aExt.length;b;){--b;d=tt_aExt[b];if(d.aPFnc[a]&&d.aPFnc[a](c)){return true}}return false}tt_Init();
