config. Above			     = false 	// false or true - tooltip above mousepointer?
config. BgColor 		   = '#f9f9ad' // Background color
config. BgImg			     = ''		// Path to background image, none if empty string ''
config. BorderColor 	 = '#002299'
config. BorderStyle 	 = 'solid'	// Any permitted CSS value, but I recommend 'solid', 'dotted' or 'dashed'
config. BorderWidth 	 = 0
config. CenterMouse 	 = false 	// false or true - center the tip horizontally below (or above) the mousepointer
config. ClickClose		 = false 	// false or true - close tooltip if the user clicks somewhere
config. CloseBtn		   = false 	// false or true - closebutton in titlebar
config. CloseBtnColors = ['', '', '', '']	  // [Background, text, hovered background, hovered text] - use empty strings '' to inherit title colors
config. CloseBtnText	 = '<img src="files/images/site/dialog_icons/CloseIcon.gif" border="0" alt="close">'	// Close button text (may also be an image tag)
config. CopyContent		 = true		// When converting a HTML element to a tooltip, copy only the element's content, rather than converting the element by its own
config. Delay			     = 400		// Time span in ms until tooltip shows up
config. Duration		   = 0 		// Time span in ms after which the tooltip disappears; 0 for infinite duration
config. FadeIn			   = 0 		// Fade-in duration in ms, e.g. 400; 0 for no animation
config. FadeOut 		   = 0
config. FadeInterval	 = 30		// Duration of each fade step in ms (recommended: 30) - shorter is smoother but causes more CPU-load
config. Fix 			     = null		// Fixated position - x- an y-oordinates in brackets, e.g. [210, 480], or null for no fixation
config. FollowMouse		 = false		// false or true - tooltip follows the mouse
config. FontColor		   = '#000000'
config. FontFace		   = 'sans-serif'
config. FontSize		   = '8pt' 	// E.g. '9pt' or '12px' - unit is mandatory
config. FontWeight		 = 'normal'	// 'normal' or 'bold';
config. Left			     = false 	// false or true - tooltip on the left of the mouse
config. OffsetX 		   = 10		// Horizontal offset of left-top corner from mousepointer
config. OffsetY 		   = 5 		// Vertical offset
config. Opacity 		   = 100		// Integer between 0 and 100 - opacity of tooltip in percent
config. Padding 		   = 3 		// Spacing between border and content
config. Shadow			   = true 	// false or true
config. ShadowColor 	 = '#797865'
config. ShadowWidth 	 = 3
config. Sticky			   = false 	// Do NOT hide tooltip on mouseout? false or true
config. TextAlign		   = 'left'	// 'left', 'right' or 'justify'
config. Title			     = ''		// Default title text applied to all tips (no default title: empty string '')
config. TitleAlign		 = 'left'	// 'left' or 'right' - text alignment inside the title bar
config. TitleBgColor	 = '#f9f9ad'		// If empty string '', BorderColor will be used
config. TitleFontColor = '#ffffff'	// Color of title text - if '', BgColor (of tooltip body) will be used
config. TitleFontFace	 = ''		// If '' use FontFace (boldified)
config. TitleFontSize	 = ''		// If '' use FontSize
config. Width			     = 0		// Tooltip width; 0 for automatic adaption to tooltip content
config. MaxWidth	     = 250
config. NextTo	       = false;
//=======  END OF TOOLTIP CONFIG, DO NOT CHANGE ANYTHING BELOW  ==============//


//===========  WZ TOOLTIP EVENT OBJECT	==============//
function toolTipEventObj_hide()
{
  this.element.className = this.defaultCssClass;
}

function toolTipEventObj( targetElement, defaultCssClass )
{
  this.OnHide  = toolTipEventObj_hide;
  this.element = targetElement;
  this.defaultCssClass = defaultCssClass;
}

//===========  WZ TOOLTIP ADD TO EVENT	==============//
function listenToolTipEvent( event, eventObj )
{
  if(typeof (tt_aExt) == 'undefined')
  {
    tt_aExt = new Array();
  }

  var currExt             = tt_aExt.length;
  tt_aExt[currExt]        = new Array();
  tt_aExt[currExt][event] = eventObj;
}

//===========  WZ TOOLTIP OVERRIDE	==============//
function tt_ExtCallFncs(arg, sFnc)
{
	var b = false;
	for(var i = tt_aExt.length; i;)
	{--i;
		var fnc = tt_aExt[i]["On" + sFnc];
		// Call the method the extension has defined for this event
		if(typeof(fnc) == 'object' && fnc["On" + sFnc](arg))
		{
			b = true;
		}
		else if(typeof(fnc) == 'function' && fnc(arg))
		{
		  b = true;
		}
	}
	return b;
}