/*
tip_followscroll.js	v. 1.11

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

Initial author: Walter Zorn
Last modified: 3.6.2008

Extension for the tooltip library wz_tooltip.js.
Lets a "sticky" tooltip keep its position inside the clientarea if the window
is scrolled.
*/
// Make sure that the core file wz_tooltip.js is included first
typeof config=="undefined"&&alert("Error:\nThe core tooltip script file 'wz_tooltip.js' must be included first, before the plugin files!"),config.FollowScroll=!1;var fscrl=new tt_Extension;fscrl.OnShow=function(){if(tt_aV[FOLLOWSCROLL]){if(tt_aV[STICKY]){var a=tt_x-tt_GetScrollX(),b=tt_y-tt_GetScrollY();return tt_ie?(fscrl.MoveOnScrl.offX=a,fscrl.MoveOnScrl.offY=b,fscrl.AddRemEvtFncs(tt_AddEvtFnc)):(tt_SetTipPos(a,b),tt_aElt[0].style.position="fixed"),!0}tt_aV[FOLLOWSCROLL]=!1}return!1},fscrl.OnHide=function(){tt_aV[FOLLOWSCROLL]&&(tt_ie?fscrl.AddRemEvtFncs(tt_RemEvtFnc):tt_aElt[0].style.position="absolute")},fscrl.MoveOnScrl=function(){tt_SetTipPos(fscrl.MoveOnScrl.offX+tt_GetScrollX(),fscrl.MoveOnScrl.offY+tt_GetScrollY())},fscrl.AddRemEvtFncs=function(a){a(window,"resize",fscrl.MoveOnScrl),a(window,"scroll",fscrl.MoveOnScrl)}
