if(typeof config=="undefined"){alert("Error:\nThe core tooltip script file 'wz_tooltip.js' must be included first, before the plugin files!")}config.Balloon=false;config.BalloonImgPath="/graphics/tip_balloon/";config.BalloonEdgeSize=6;config.BalloonStemWidth=15;config.BalloonStemHeight=19;config.BalloonStemOffset=-7;var balloon=new tt_Extension();balloon.OnLoadConfig=function(){if(tt_aV[BALLOON]){balloon.padding=Math.max(tt_aV[PADDING]-tt_aV[BALLOONEDGESIZE],0);balloon.width=tt_aV[WIDTH];tt_aV[BORDERWIDTH]=0;tt_aV[WIDTH]=0;tt_aV[PADDING]=0;tt_aV[BGCOLOR]="";tt_aV[BGIMG]="";tt_aV[SHADOW]=false;if(tt_aV[BALLOONIMGPATH].charAt(tt_aV[BALLOONIMGPATH].length-1)!="/"){tt_aV[BALLOONIMGPATH]+="/"}return true}return false};balloon.OnCreateContentString=function(){if(!tt_aV[BALLOON]){return false}var c,d,a,b,f,e;if(tt_aV[BALLOONIMGPATH]==config.BalloonImgPath){c=balloon.aDefImg}else{c=Balloon_CacheImgs(tt_aV[BALLOONIMGPATH])}a=' style="position:relative;width:'+tt_aV[BALLOONEDGESIZE]+"px;padding:0px;margin:0px;overflow:hidden;line-height:0px;";b='vertical-align:top;" valign="top"';f='vertical-align:bottom;" valign="bottom"';e="padding:0px;margin:0px;border:0px;";d='" style="'+e+'" />';tt_sContent='<table border="0" cellpadding="0" cellspacing="0" style="width:auto;padding:0px;margin:0px;left:0px;top:0px;"><tr><td'+a+f+'><img src="'+c[1].src+'" width="'+tt_aV[BALLOONEDGESIZE]+'" height="'+tt_aV[BALLOONEDGESIZE]+d+'</td><td valign="bottom" style="position:relative;padding:0px;margin:0px;overflow:hidden;"><img id="bALlOOnT" style="position:relative;top:1px;z-index:1;display:none;'+e+'" src="'+c[9].src+'" width="'+tt_aV[BALLOONSTEMWIDTH]+'" height="'+tt_aV[BALLOONSTEMHEIGHT]+'" /><div style="position:relative;z-index:0;padding:0px;margin:0px;overflow:hidden;width:auto;height:'+tt_aV[BALLOONEDGESIZE]+"px;background-image:url("+c[2].src+');"></div></td><td'+a+f+'><img src="'+c[3].src+'" width="'+tt_aV[BALLOONEDGESIZE]+'" height="'+tt_aV[BALLOONEDGESIZE]+d+'</td></tr><tr><td style="position:relative;padding:0px;margin:0px;width:'+tt_aV[BALLOONEDGESIZE]+"px;overflow:hidden;background-image:url("+c[8].src+');"><img width="'+tt_aV[BALLOONEDGESIZE]+'" height="100%" src="'+c[8].src+d+'</td><td id="bALlO0nBdY" style="position:relative;line-height:normal;;background-image:url('+c[0].src+");color:"+tt_aV[FONTCOLOR]+";font-family:"+tt_aV[FONTFACE]+";font-size:"+tt_aV[FONTSIZE]+";font-weight:"+tt_aV[FONTWEIGHT]+";text-align:"+tt_aV[TEXTALIGN]+";padding:"+balloon.padding+"px;width:"+((balloon.width>0)?(balloon.width+"px"):"auto")+';">'+tt_sContent+'</td><td style="position:relative;padding:0px;margin:0px;width:'+tt_aV[BALLOONEDGESIZE]+"px;overflow:hidden;background-image:url("+c[4].src+');"><img width="'+tt_aV[BALLOONEDGESIZE]+'" height="100%" src="'+c[4].src+d+"</td></tr><tr><td"+a+b+'><img src="'+c[7].src+'" width="'+tt_aV[BALLOONEDGESIZE]+'" height="'+tt_aV[BALLOONEDGESIZE]+d+'</td><td valign="top" style="position:relative;padding:0px;margin:0px;overflow:hidden;"><div style="position:relative;left:0px;top:0px;padding:0px;margin:0px;overflow:hidden;width:auto;height:'+tt_aV[BALLOONEDGESIZE]+"px;background-image:url("+c[6].src+');"></div><img id="bALlOOnB" style="position:relative;top:-1px;left:2px;z-index:1;display:none;'+e+'" src="'+c[10].src+'" width="'+tt_aV[BALLOONSTEMWIDTH]+'" height="'+tt_aV[BALLOONSTEMHEIGHT]+'" /></td><td'+a+b+'><img src="'+c[5].src+'" width="'+tt_aV[BALLOONEDGESIZE]+'" height="'+tt_aV[BALLOONEDGESIZE]+d+"</td></tr></table>";return true};balloon.OnSubDivsCreated=function(){if(tt_aV[BALLOON]){balloon.iStem=tt_aV[ABOVE]*1;balloon.aStem=[tt_GetElt("bALlOOnT"),tt_GetElt("bALlOOnB")];balloon.aStem[balloon.iStem].style.display="inline";if(balloon.width<-1){Balloon_MaxW()}return true}return false};balloon.OnMoveAfter=function(){if(tt_aV[BALLOON]){var a=(tt_aV[ABOVE]!=tt_bJmpVert)*1;if(a!=balloon.iStem){balloon.aStem[balloon.iStem].style.display="none";balloon.aStem[a].style.display="inline";balloon.iStem=a}balloon.aStem[a].style.left=Balloon_CalcStemX()+"px";return true}return false};function Balloon_CalcStemX(){var a=tt_musX-tt_x+tt_aV[BALLOONSTEMOFFSET]-tt_aV[BALLOONEDGESIZE];return Math.max(Math.min(a,tt_w-tt_aV[BALLOONSTEMWIDTH]-(tt_aV[BALLOONEDGESIZE]<<1)-2),2)}function Balloon_CacheImgs(b){var d=["background","lt","t","rt","r","rb","b","lb","l","stemt","stemb"],e=d.length,c=new Array(e),a;while(e){--e;a=c[e]=new Image();a.src=b+d[e]+".gif"}return c}function Balloon_MaxW(){var b=tt_GetElt("bALlO0nBdY");if(b){var c=tt_bBoxOld?(balloon.padding<<1):0,a=tt_GetDivW(b);if(a>-balloon.width+c){b.style.width=(-balloon.width+c)+"px"}}}function Balloon_PreCacheDefImgs(){if(config.BalloonImgPath.charAt(config.BalloonImgPath.length-1)!="/"){config.BalloonImgPath+="/"}balloon.aDefImg=Balloon_CacheImgs(config.BalloonImgPath)}Balloon_PreCacheDefImgs();
