﻿var CluetipUserPopUp = function() {
	return {
		init:function(context) {
			context = context || document;
			jQuery('.userPopUp', context).cluetip({
				width:280,
				dropShadow:false,
				sticky:true,
				mouseOutClose:true,
				showTitle:false,
				positionBy:'mouse',
				cluetipClass:     'UserPopUp',
				closeText: '<img src="/stylesSC/clueTip/Close.gif" alt="lukk" border="0" style="float: right; margin: 5px;" />',
				hoverIntent: {sensitivity: 10, interval: 50, timeout: 0}
			});
			jQuery('.userPopUp', context).attr('title',''); // Clear title attributes
			jQuery('.userPopUp img', context).attr('title','');
			jQuery('body').click(function() { // Hide tooltips when the mouse is clicked
			    if ($('userPopUp')) //NOTE: if-statement added by Trive.
			    {
				    $('userPopUp').hide(); //NOTE: Changed from $('#cluetip').hide(); to avoid conflict between JQuery and Prototype
				}
			});
		}
	};
}();

function GoToURL(url) {
  top.document.location.href = url;
}
