function Hint_SetData(d,c,b){this.sName=d;this.sText=ReplaceAll(b,/\n/,"<br>");this.sImgUrl="";if(""!=c){var a=(c.indexOf("://")<0)?this.sPictureBase+"/":"";this.sImgUrl=a+c;loadImage(this.sImgUrl)}this.bNeedUpdate=true}function Hint_SetPictureBase(a){if((""==a)||(this.sPictureBase==a)){return}if("/"==a.substr(a.length-1,1)){a=a.substr(0,a.length-1)}this.sPictureBase=a}function Hint_ContentHtml(){var a="";if(""!=this.sImgUrl){a+="<img src='"+this.sImgUrl+"' alt='"+this.sName+"'>"}a+="<H3>"+this.sName+"</H3>"+this.sText;var b="";b+="<div class='hintcaption'>";b+=this.sCaptionText;b+="</div>";b+="<div class='hintclose'><a href='javascript:hide( \""+this.layername+"\");'>";b+="<img src='"+this.sPictureBase+"/hint_close.gif' alt='close'>";b+="</a></div>";b+="<table>";b+="<tr class='ob'>"+this.Cell("ob","ObLi","")+this.Cell("ok","Oben","")+this.Cell("or","ObRe","")+"</tr>";b+="<tr class='mi'>"+this.Cell("lk","Links","")+this.Cell("mi","Mitte",a)+this.Cell("rk","Rechts","")+"</tr>";b+="<tr class='un'>"+this.Cell("ul","UnLi","")+this.Cell("uk","Unten","")+this.Cell("ur","UnRe","")+"</tr>";b+="</table>";return b}function Hint_Cell(b,a,e){var d="";d+="<td class='"+b+"'";var c=".gif";switch(a.toLowerCase()){case"obli":case"obre":case"unli":case"unre":c=".gif";break;default:break}if(""!=a){d+="  style='background-image:url("+this.sPictureBase+"/hint_"+a+c+")'"}d+=">";if(""!=e){d+=e}d+="</td>";return d}function Hint_CreateHtml(b){var a="";if(""!=b){a+="<span class='"+b+"'>"}a+=this.ContentHtml();if(""!=b){a+="</span>"}return a}function Hint_LockVisible(){++this.nLockVisible}function Hint_UnlockVisible(){--this.nLockVisible;if(0<this.nLockVisible){return}if(0>this.nLockVisible){ErrorBox("Hint_UnlockVisible: call mismatch detected");this.nLockVisible=0}if(!this.bVisible){this.bVisible=true;this.HideDelayed(100)}}function Hint_Show(){this.ClearTimeout();if((null==this.document)||(""==this.layername)){this.bNeedUpdate=true;return}if(!this.bVisible){this.SetMouseHandler();showLayer(this.layername,true)}if(this.bNeedUpdate){SetLayerHtml(this.document,this.layername,this.CreateHtml(this.sStyleName))}this.bNeedUpdate=false;this.bVisible=true}function Hint_Hide(){this.ClearTimeout();if(this.bVisible){if(0>=this.nLockVisible){showLayer(this.layername,false)}this.bVisible=false}}function Hint_ShowTimeout(a){this.Show();this.HideDelayed(a)}function Hint_HideDelayed(a){ASSERT(""!=this.sVariable);if(""!=this.sVariable){this.ClearTimeout();this.timer=window.setTimeout(this.sVariable+".Hide();",a)}}function Hint_ClearTimeout(){if("number"==typeof this.timer){window.clearTimeout(this.timer);this.timer=null}}function Hint_SetMouseHandler(){var a=findLayer(document,this.layername);if((null!=a)&&(""!=this.sVariable)){a.hintObj=this;a.onmouseover=function(){this.hintObj.LockVisible()};a.onmouseout=function(){this.hintObj.UnlockVisible()}}}function VsxHint(a,c,b,d){this.document=a;this.layername=c;ASSERT(""!=b);this.sVariable=("string"==typeof b)?b:"";this.sName="";this.sImgUrl="";this.sText="";this.bNeedUpdate=false;this.bVisible=false;this.timer=null;this.nLockVisible=0;this.sCaptionText="Info";this.sStyleName="hint";if("undefined"!=typeof d){this.sPictureBase=d}else{this.sPictureBase="../html/layout/default/picture"}this.ContentHtml=Hint_ContentHtml;this.SetData=Hint_SetData;this.CreateHtml=Hint_CreateHtml;this.Show=Hint_Show;this.Hide=Hint_Hide;this.SetPictureBase=Hint_SetPictureBase;this.Cell=Hint_Cell;this.ShowTimeout=Hint_ShowTimeout;this.HideDelayed=Hint_HideDelayed;this.ClearTimeout=Hint_ClearTimeout;this.SetMouseHandler=Hint_SetMouseHandler;this.LockVisible=Hint_LockVisible;this.UnlockVisible=Hint_UnlockVisible};