config.Balloon=false;config.BalloonImgPath="/js/tip_balloon/";config.BalloonTheme="default/";config.BalloonEdgeSize=5;config.BalloonStemWidth=15;config.BalloonStemHeight=19;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[BALLOONTHEME]){tt_aV[BALLOONTHEME]=tt_aV[BALLOONTHEME]+"/"}return true}return false};balloon.OnCreateContentString=function(){if(!tt_aV[BALLOON]){return false}var A;if(tt_aV[BALLOONIMGPATH]==config.BalloonImgPath){A=balloon.aDefImg}else{A=Balloon_CacheImgs(tt_aV[BALLOONIMGPATH])}sCssCorn_top='style="position:relative;width:'+tt_aV[BALLOONEDGESIZE]+'px;padding:0px;margin:0px;overflow:hidden;vertical-align:bottom;"';sCssCorn_bottom='style="position:relative;width:'+tt_aV[BALLOONEDGESIZE]+'px;padding:0px;margin:0px;overflow:hidden;vertical-align:top;"';tt_sContent='<table border="0" cellpadding="0" cellspacing="0" style="width:auto;padding:0px;margin:0px;left:0px;top:0px;"><tr><td '+sCssCorn_top+' valign="bottom"><img src="'+A[1].src+'" width="'+tt_aV[BALLOONEDGESIZE]+'" height="'+tt_aV[BALLOONEDGESIZE]+'" /></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;" src="'+A[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("+A[2].src+');"></div></td><td '+sCssCorn_top+' valign="bottom"><img src="'+A[3].src+'" width="'+tt_aV[BALLOONEDGESIZE]+'" height="'+tt_aV[BALLOONEDGESIZE]+'" /></td></tr><tr><td style="position:relative;padding:0px;margin:0px;width:'+tt_aV[BALLOONEDGESIZE]+"px;overflow:hidden;background-image:url("+A[8].src+');"><img width="'+tt_aV[BALLOONEDGESIZE]+'" height="100%" src="'+A[8].src+'" /></td><td style="position:relative;background-image:url('+A[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+";width:"+(balloon.width?(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("+A[4].src+');"><img width="'+tt_aV[BALLOONEDGESIZE]+'" height="100%" src="'+A[4].src+'" /></td></tr><tr><td valign="top" '+sCssCorn_bottom+'><img src="'+A[7].src+'" width="'+tt_aV[BALLOONEDGESIZE]+'" height="'+tt_aV[BALLOONEDGESIZE]+'" /></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("+A[6].src+');"></div><img id="bALlOOnB" style="position:relative;top:-1px;left:2px;z-index:1;display:none;" src="'+A[10].src+'" width="'+tt_aV[BALLOONSTEMWIDTH]+'" height="'+tt_aV[BALLOONSTEMHEIGHT]+'" /></td><td valign="top" '+sCssCorn_bottom+'><img src="'+A[5].src+'" width="'+tt_aV[BALLOONEDGESIZE]+'" height="'+tt_aV[BALLOONEDGESIZE]+'" /></td></tr></table>';return true};balloon.OnSubDivsCreated=function(){if(tt_aV[BALLOON]){balloon.iStem=tt_aV[ABOVE]*1;balloon.stem=[tt_GetElt("bALlOOnT"),tt_GetElt("bALlOOnB")];balloon.stem[balloon.iStem].style.display="inline";return true}return false};balloon.OnMoveAfter=function(){if(tt_aV[BALLOON]){var A=(tt_aV[ABOVE]!=tt_bJmpVert)*1;if(A!=balloon.iStem){balloon.stem[balloon.iStem].style.display="none";balloon.stem[A].style.display="inline";balloon.iStem=A}balloon.stem[A].style.left=Balloon_CalcStemX()+"px";return true}return false};function Balloon_CalcStemX(){var A=tt_musX-tt_x;return Math.max(Math.min(A,tt_w-tt_aV[BALLOONSTEMWIDTH]-(tt_aV[BALLOONEDGESIZE]<<1)-2),2)}function Balloon_CacheImgs(B,E){var D=["background","lt","t","rt","r","rb","b","lb","l","stemt","stemb"],F=D.length,C=new Array(F),A;while(F){--F;A=C[F]=new Image();A.src=B+E+D[F]+".gif"}return C}function Balloon_PreCacheDefImgs(){if(config.BalloonImgPath.charAt(config.BalloonImgPath.length-1)!="/"){config.BalloonImgPath+="/"}balloon.aDefImg=Balloon_CacheImgs(config.BalloonImgPath,config.BalloonTheme)}Balloon_PreCacheDefImgs();
