function lwToolTip(C,B,J,E,M){this.debugMode=M;this.width=C;this.parent=B;this.content=J;this.toolTipNodeId=B+"-toolTip";this.tipPosition=E;this.useIFrameMask=false;if(navigator.appName=="Microsoft Internet Explorer"&&navigator.appVersion.indexOf("MSIE 6")>-1){this.useIFrameMask=true}this.setToolTipNodeHandle=D;this.buildToolTip=G;this.showToolTip=K;this.hideToolTip=I;this.getDebugCSS=F;this.findCoords=H;this.setUseIFrameMask=L;this.toggleIFrameMask=A;function D(){this.toolTipNodeHandle=document.getElementById(this.toolTipNodeId);if(!this.toolTipNodeHandle){if(this.debugMode){alert("setToolTipNodeHandle(): toolTipNodeHandle does not exist; see method setToolTipodeId()")}return false}else{return true}}function G(){middleWidth=parseInt(this.width)-40;if(this.useIFrameMask==true){var N='<div class="iframe-mask-toolTip-container" id="'+this.toolTipNodeId+'" style="width: '+this.width+'px;"><div class="iframe-mask-tooltip-body" id="'+this.toolTipNodeId+'-body">'+this.content+"</div></div>"}else{var N='<table class="toolTip-container '+E+'" id="'+this.toolTipNodeId+'" border="0" cellpadding="0" cellspacing="0" width="'+this.width+'" style="width: '+this.width+'; background-color: transparent;"><tr><td class="ul"> </td><td class="top-center" style="width: '+middleWidth+'px;"> </td><td class="ur"> </td></tr><tr><td class="tooltip-left"> </td><td class="tooltip-body" style="width: '+middleWidth+'px;" id="'+this.toolTipNodeId+'-body">'+this.content+'</td><td class="tooltip-right"> </td></tr><tr><td class="ll"> </td><td class="bottom-center"> </td><td class="lr"> </td></tr></table>'}parentNode=document.getElementById(this.parent);if(parentNode){parentNode.innerHTML=parentNode.innerHTML+N;if(this.debugMode){parentNode.innerHTML=parentNode.innerHTML+this.getDebugCSS()}}else{if(this.debugMode){alert("buildToolTip(): no parent node!!!")}}this.setToolTipNodeHandle()}function K(){if(this.toolTipNodeHandle){var P;var Q;var O;var N;switch(this.tipPosition){case"bottom-right":P=-this.width;Q=-document.getElementById(this.toolTipNodeId).clientHeight;break;case"top-right":P=-this.width;Q=5;break;case"bottom-left":P=5;Q=-document.getElementById(this.toolTipNodeId).clientHeight;break;default:P=5;Q=5;break}O=new Number(document.getElementById(this.toolTipNodeId).style.left.replace("px",""));N=new Number(document.getElementById(this.toolTipNodeId).style.top.replace("px",""));document.getElementById(this.toolTipNodeId).style.left=O+P;document.getElementById(this.toolTipNodeId).style.top=N+Q;this.toolTipNodeHandle.style.visibility="visible";if(this.useIFrameMask==true){this.toggleIFrameMask(this.toolTipNodeId,true,O+P,N+Q)}}else{if(this.debugMode){alert("showToolTip(): No toolTipNodeHandle!")}}}function I(){if(this.toolTipNodeHandle){if(this.useIFrameMask==true){this.toggleIFrameMask(this.toolTipNodeId,false,0,0)}this.toolTipNodeHandle.style.visibility="hidden"}else{if(this.debugMode){alert("hideToolTip(): No toolTipNodeHandle!")}}}function F(){debugCSS='<style type="text/css">		.top-row {				border: 1px solid purple;			}				.ul{					border: 1px solid red;				}				.top-center {					border: 1px solid blue;				}				.ur {					border: 1px solid green;				}			.middle-row {				border: 1px solid yellow;			}				.tooltip-left {					border: 1px solid orange;				}				.tooltip-body {					border: 1px solid brown;				}				.tooltip-right {					border: 1px solid black;				}			.bottom-row {				border: 1px solid teal;			}				.ll {					border: 1px solid red;				}				.bottom-center {					border: 1px solid blue;				}				.lr {					border: 1px solid green;				}		</style>';return debugCSS}function H(N){var P=0;var O=0;if(!N){N=window.event}if(!N){return[0,0]}if(typeof (N.pageX)=="number"){P=N.pageX;O=N.pageY}else{if(typeof (N.clientX)=="number"){P=N.clientX;O=N.clientY;if(document.body&&!(window.opera||window.debug||navigator.vendor=="KDE")){if(typeof (document.body.scrollTop)=="number"){P+=document.body.scrollLeft;O+=document.body.scrollTop}}if(document.documentElement&&!(window.opera||window.debug||navigator.vendor=="KDE")){if(typeof (document.documentElement.scrollTop)=="number"){P+=document.documentElement.scrollLeft;O+=document.documentElement.scrollTop}}}}document.getElementById(this.toolTipNodeId).style.left=P;document.getElementById(this.toolTipNodeId).style.top=O}function L(N){this.useIFrameMask=N}function A(N,O,U,T){var R="boxHide"+N;var S=document.getElementById(N);if(this.debugMode==true){alert("on: "+N+" "+O+" "+line)}if(O==false){if(document.getElementById(R)){var P=document.getElementById(R);P.style.display="none"}}else{if(document.getElementById(R)){var Q=document.getElementById(R);Q.style.display="block";Q.style.top=T;Q.style.left=U}else{var Q=document.createElement("iframe");Q.setAttribute("id",R);Q.setAttribute("src","about:blank");Q.setAttribute("scrolling","no");Q.setAttribute("frameBorder","0");Q.style.display="block";Q.style.position="absolute";navmommy=S.parentNode;navmommy.appendChild(Q);Q.style.top=T;Q.style.left=U;Q.style.width=S.offsetWidth;Q.style.height=S.offsetHeight;S.style.zIndex=100;Q.style.zIndex=S.style.zIndex-1}}}};