if(typeof config=="undefined"){
alert("Error:\nThe core tooltip script file 'wz_tooltip.js' must be included first, before the plugin files!");
}
config.Balloon=true;
config.BalloonImgPath="/asp/design/images/other/tooltip/";
config.BalloonEdgeSize=6;
config.BalloonStemWidth=15;
config.BalloonStemHeight=19;
config.BalloonStemOffset=-7;
config.BalloonImgExt="gif";
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 _1,_2,_3,_4,_5,_6;
if(tt_aV[BALLOONIMGPATH]==config.BalloonImgPath){
_1=balloon.aDefImg;
}else{
_1=Balloon_CacheImgs(tt_aV[BALLOONIMGPATH],tt_aV[BALLOONIMGEXT]);
}
_6="padding:0;margin:0;border:0;line-height:0;overflow:hidden;";
_3=" style=\"position:relative;width:"+tt_aV[BALLOONEDGESIZE]+"px;"+_6+"overflow:hidden;";
_4="vertical-align:top;\" valign=\"top\"";
_5="vertical-align:bottom;\" valign=\"bottom\"";
_2="\" style=\""+_6+"\" />";
tt_sContent="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:auto;padding:0;margin:0;left:0;top:0;\"><tr>"+"<td"+_3+_5+">"+"<img src=\""+_1[1].src+"\" width=\""+tt_aV[BALLOONEDGESIZE]+"\" height=\""+tt_aV[BALLOONEDGESIZE]+_2+"</td>"+"<td valign=\"bottom\" style=\"position:relative;"+_6+"\">"+"<img id=\"bALlOOnT\" style=\"position:relative;top:1px;z-index:1;display:none;"+_6+"\" src=\""+_1[9].src+"\" width=\""+tt_aV[BALLOONSTEMWIDTH]+"\" height=\""+tt_aV[BALLOONSTEMHEIGHT]+"\" />"+"<div style=\"position:relative;z-index:0;top:0;"+_6+"width:auto;height:"+tt_aV[BALLOONEDGESIZE]+"px;background-image:url("+_1[2].src+");\">"+"</div>"+"</td>"+"<td"+_3+_5+">"+"<img src=\""+_1[3].src+"\" width=\""+tt_aV[BALLOONEDGESIZE]+"\" height=\""+tt_aV[BALLOONEDGESIZE]+_2+"</td>"+"</tr><tr>"+"<td style=\"position:relative;background-repeat:repeat;"+_6+"width:"+tt_aV[BALLOONEDGESIZE]+"px;background-image:url("+_1[8].src+");\">"+"<img width=\""+tt_aV[BALLOONEDGESIZE]+"\" height=\"100%\" src=\""+_1[8].src+_2+"</td>"+"<td id=\"bALlO0nBdY\" style=\"position:relative;line-height:normal;background-repeat:repeat;"+";background-image:url("+_1[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;background-repeat:repeat;"+_6+"width:"+tt_aV[BALLOONEDGESIZE]+"px;background-image:url("+_1[4].src+");\">"+"<img width=\""+tt_aV[BALLOONEDGESIZE]+"\" height=\"100%\" src=\""+_1[4].src+_2+"</td>"+"</tr><tr>"+"<td"+_3+_4+">"+"<img src=\""+_1[7].src+"\" width=\""+tt_aV[BALLOONEDGESIZE]+"\" height=\""+tt_aV[BALLOONEDGESIZE]+_2+"</td>"+"<td valign=\"top\" style=\"position:relative;"+_6+"\">"+"<div style=\"position:relative;left:0;top:0;"+_6+"width:auto;height:"+tt_aV[BALLOONEDGESIZE]+"px;background-image:url("+_1[6].src+");\"></div>"+"<img id=\"bALlOOnB\" style=\"position:relative;top:-1px;left:2px;z-index:1;display:none;"+_6+"\" src=\""+_1[10].src+"\" width=\""+tt_aV[BALLOONSTEMWIDTH]+"\" height=\""+tt_aV[BALLOONSTEMHEIGHT]+"\" />"+"</td>"+"<td"+_3+_4+">"+"<img src=\""+_1[5].src+"\" width=\""+tt_aV[BALLOONEDGESIZE]+"\" height=\""+tt_aV[BALLOONEDGESIZE]+_2+"</td>"+"</tr></table>";
return true;
};
balloon.OnSubDivsCreated=function(){
if(tt_aV[BALLOON]){
var _7=tt_GetElt("bALlO0nBdY");
if(tt_t2t&&!tt_aV[COPYCONTENT]&&_7){
tt_MovDomNode(tt_t2t,tt_GetDad(tt_t2t),_7);
}
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(_7);
}
return true;
}
return false;
};
balloon.OnMoveAfter=function(){
if(tt_aV[BALLOON]){
var _8=(tt_aV[ABOVE]!=tt_bJmpVert)*1;
if(_8!=balloon.iStem){
balloon.aStem[balloon.iStem].style.display="none";
balloon.aStem[_8].style.display="inline";
balloon.iStem=_8;
}
balloon.aStem[_8].style.left=Balloon_CalcStemX()+"px";
return true;
}
return false;
};
function Balloon_CalcStemX(){
var x=tt_musX-tt_x+tt_aV[BALLOONSTEMOFFSET]-tt_aV[BALLOONEDGESIZE];
return Math.max(Math.min(x,tt_w-tt_aV[BALLOONSTEMWIDTH]-(tt_aV[BALLOONEDGESIZE]<<1)-2),2);
}
function Balloon_CacheImgs(_a,_b){
var _c=["background","lt","t","rt","r","rb","b","lb","l","stemt","stemb"],n=_c.length,_e=new Array(n),_f;
while(n){
--n;
_f=_e[n]=new Image();
_f.src=_a+_c[n]+"."+_b;
}
return _e;
}
function Balloon_MaxW(bdy){
if(bdy){
var _11=tt_bBoxOld?(balloon.padding<<1):0,w=tt_GetDivW(bdy);
if(w>-balloon.width+_11){
bdy.style.width=(-balloon.width+_11)+"px";
}
}
}
function Balloon_PreCacheDefImgs(){
if(config.BalloonImgPath.charAt(config.BalloonImgPath.length-1)!="/"){
config.BalloonImgPath+="/";
}
balloon.aDefImg=Balloon_CacheImgs(config.BalloonImgPath,config.BalloonImgExt);
}
Balloon_PreCacheDefImgs();


