/*
tip_balloon.js  v. 1.8

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: 7.11.2008

Extension for the tooltip library wz_tooltip.js.
Implements balloon tooltips.
*/

// Make sure that the core file wz_tooltip.js is included first
if(typeof config == "undefined")
	alert("Error:\nThe core tooltip script file 'wz_tooltip.js' must be included first, before the plugin files!");

// Here we define new global configuration variable(s) (as members of the
// predefined "config." class).
// From each of these config variables, wz_tooltip.js will automatically derive
// a command which can be passed to Tip() or TagToTip() in order to customize
// tooltips individually. These command names are just the config variable
// name(s) translated to uppercase,
// e.g. from config. Balloon a command BALLOON will automatically be
// created.

//===================  GLOBAL TOOLTIP CONFIGURATION  =========================//
config. Balloon				= false	// true or false - set to true if you want this to be the default behaviour
config. BalloonImgPath		= "http://www.tickerit.com/jscripts/ibaloon/" // Path to images (border, corners, stem), in quotes. Path must be relative to your HTML file.
// Sizes of balloon images
config. BalloonEdgeSize		= 6		// Integer - sidelength of quadratic corner images
config. BalloonStemWidth	= 15	// Integer
config. BalloonStemHeight	= 19	// Integer
config. BalloonStemOffset	= -7	// Integer - horizontal offset of left stem edge from mouse (recommended: -stemwidth/2 to center the stem above the mouse)
config. BalloonImgExt		= "gif";// File name extension of default balloon images, e.g. "gif" or "png"
//=======  END OF TOOLTIP CONFIG, DO NOT CHANGE ANYTHING BELOW  ==============//


// Create a new tt_Extension object (make sure that the name of that object,
// here balloon, is unique amongst the extensions available for wz_tooltips.js):
var balloon = new tt_Extension();

// Implement extension eventhandlers on which our extension should react

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('c.2s=y(){k(a[W]){c.G=19.1J(a[1v]-a[i],0);c.d=a[1u];a[1K]=0;a[1u]=0;a[1v]=0;a[1R]="";a[1Q]="";a[1T]=L;k(a[P].1p(a[P].12-1)!=\'/\')a[P]+="/";p Y}p L};c.1S=y(){k(!a[W])p L;E g,C,I,S,T,m;k(a[P]==F.Q)g=c.1o;1A g=1b(a[P],a[1P]);m=\'G:0;1B:0;1G:0;1z-o:0;1h:1g;\';I=\' j="s:v;d:\'+a[i]+\'A;\'+m+\'1h:1g;\';S=\'1t-16:D;" R="D"\';T=\'1t-16:1d;" R="1d"\';C=\'" j="\'+m+\'" />\';1m=\'<1H 1G="0" 1M="0" 1L="0" j="d:V;G:0;1B:0;X:0;D:0;"><J>\'+\'<h\'+I+T+\'>\'+\'<q f="\'+g[1].f+\'" d="\'+a[i]+\'" o="\'+a[i]+C+\'</h>\'+\'<h R="1d" j="s:v;\'+m+\'">\'+\'<q 1c="1n" j="s:v;D:1I;z-1f:1;K:11;\'+m+\'" f="\'+g[9].f+\'" d="\'+a[17]+\'" o="\'+a[1E]+\'" />\'+\'<U j="s:v;z-1f:0;D:0;\'+m+\'d:V;o:\'+a[i]+\'A;H-O:N(\'+g[2].f+\');">\'+\'</U>\'+\'</h>\'+\'<h\'+I+T+\'>\'+\'<q f="\'+g[3].f+\'" d="\'+a[i]+\'" o="\'+a[i]+C+\'</h>\'+\'</J><J>\'+\'<h j="s:v;\'+m+\'d:\'+a[i]+\'A;H-O:N(\'+g[8].f+\');">\'+\'<q d="\'+a[i]+\'" o="1r%" f="\'+g[8].f+C+\'</h>\'+\'<h 1c="1C" j="s:v;1z-o:1O;\'+\';H-O:N(\'+g[0].f+\')\'+\';1N:\'+a[20]+\';18-1Z:\'+a[22]+\';18-21:\'+a[1Y]+\';18-1V:\'+a[1U]+\';1X-16:\'+a[1W]+\';G:\'+c.G+\'A\'+\';d:\'+((c.d>0)?(c.d+\'A\'):\'V\')+\';">\'+1m+\'</h>\'+\'<h j="s:v;\'+m+\'d:\'+a[i]+\'A;H-O:N(\'+g[4].f+\');">\'+\'<q d="\'+a[i]+\'" o="1r%" f="\'+g[4].f+C+\'</h>\'+\'</J><J>\'+\'<h\'+I+S+\'>\'+\'<q f="\'+g[7].f+\'" d="\'+a[i]+\'" o="\'+a[i]+C+\'</h>\'+\'<h R="D" j="s:v;\'+m+\'">\'+\'<U j="s:v;X:0;D:0;\'+m+\'d:V;o:\'+a[i]+\'A;H-O:N(\'+g[6].f+\');"></U>\'+\'<q 1c="1s" j="s:v;D:-1I;X:2r;z-1f:1;K:11;\'+m+\'" f="\'+g[10].f+\'" d="\'+a[17]+\'" o="\'+a[1E]+\'" />\'+\'</h>\'+\'<h\'+I+S+\'>\'+\'<q f="\'+g[5].f+\'" d="\'+a[i]+\'" o="\'+a[i]+C+\'</h>\'+\'</J></1H>\';p Y};c.2p=y(){k(a[W]){E B=15("1C");k(14&&!a[2l]&&B)2n(14,2o(14),B);c.u=a[1q]*1;c.M=[15("1n"),15("1s")];c.M[c.u].j.K="1k";k(c.d<-1)1l(B);p Y}p L};c.2k=y(){k(a[W]){E u=(a[1q]!=2e)*1;k(u!=c.u){c.M[c.u].j.K="11";c.M[u].j.K="1k";c.u=u}c.M[u].j.X=1F()+"A";p Y}p L};y 1F(){E x=2m-2u+a[2q]-a[i];p 19.1J(19.2t(x,28-a[17]-(a[i]<<1)-2),2)}y 1b(1D,1j){E 1e=["H","27","t","2a","r","29","b","24","l","23","26"],n=1e.12,g=1w 25(n),q;2b(n){--n;q=g[n]=1w 2h();q.f=1D+1e[n]+"."+1j}p g}y 1l(B){k(B){E 1a=2g?(c.G<<1):0,w=2j(B);k(w>-c.d+1a)B.j.d=(-c.d+1a)+"A"}}y 1i(){k(F.Q.1p(F.Q.12-1)!=\'/\')F.Q+="/";c.1o=1b(F.Q,F.2i)}1i();y 2d(e){E Z;k(1x.1y)Z=1x.1y.2c;1A Z=e.2f;p(Z!=13)}',62,155,'||||||||||tt_aV||balloon|width||src|aImg|td|BALLOONEDGESIZE|style|if||sCss0||height|return|img||position||iStem|relative|||function||px|bdy|sImgZ|top|var|config|padding|background|sCssCrn|tr|display|false|aStem|url|image|BALLOONIMGPATH|BalloonImgPath|valign|sVaT|sVaB|div|auto|BALLOON|left|true|key||none|length||tt_t2t|tt_GetElt|align|BALLOONSTEMWIDTH|font|Math|iAdd|Balloon_CacheImgs|id|bottom|asImg|index|hidden|overflow|Balloon_PreCacheDefImgs|sExt|inline|Balloon_MaxW|tt_sContent|bALlOOnT|aDefImg|charAt|ABOVE|100|bALlOOnB|vertical|WIDTH|PADDING|new|window|event|line|else|margin|bALlO0nBdY|sPath|BALLOONSTEMHEIGHT|Balloon_CalcStemX|border|table|1px|max|BORDERWIDTH|cellspacing|cellpadding|color|normal|BALLOONIMGEXT|BGIMG|BGCOLOR|OnCreateContentString|SHADOW|FONTWEIGHT|weight|TEXTALIGN|text|FONTSIZE|family|FONTCOLOR|size|FONTFACE|stemt|lb|Array|stemb|lt|tt_w|rb|rt|while|keyCode|dek|tt_bJmpVert|which|tt_bBoxOld|Image|BalloonImgExt|tt_GetDivW|OnMoveAfter|COPYCONTENT|tt_musX|tt_MovDomNode|tt_GetDad|OnSubDivsCreated|BALLOONSTEMOFFSET|2px|OnLoadConfig|min|tt_x'.split('|'),0,{}))

