jQuery.fn.MVBizXToolTip = function(){
	//alert("OK MVBizXToolTip");
	$(this).mouseover(function(e){
		//alert('ok, inside click function');
		$('#ToolTipMoreLink').html('');
		var tooltipID=$(this).attr('id');
		var tipID=tooltipID.replace(/.*toolTip_/,'');
		//alert('Ok, did we get the id?:' + tipID);
		var ToolTip= new Array();
		ToolTip=ToolTips[tipID].split("__");
		//alert("tool tip bkg:" + ToolTip[0]);
		//$('#ToolTipDiv').css('class',ToolTip[0]);
		var backgroundImageURL="url(/_nav/Wizards/Wizard_ToolTip_"+ToolTip[0] + ")";
		$('#ToolTipDiv').css('background-image',backgroundImageURL );
		$('#ToolTipTitle').html(ToolTip[1]);
		//alert("just set title");
		//alert(ToolTip[2]);
		$('#ToolTipContent').html(ToolTip[2]);
		if (ToolTip[3] !=''){
			$('#ToolTipMoreLink').html("<a href='" + ToolTip[3] + "' target='_blank'>more...</a>");
			//$('#ToolTipMoreLink').html("more...");
		}
		var lfts;
		//if(screen.width <= (e.pageX + $("#ToolTipDiv").width())){
		lfts= e.pageX +10;//- ($("#ToolTipDiv").width() +100);
		//}
		//else{
		//	lfts = e.pageX +10;
		//}
		var tps;
		if(brwstester().scrollTop < e.pageY - 20 - $("#ToolTipDiv").height()){
			tps =  (e.pageY - $("#ToolTipDiv").height() - 10);
		}
		else{
			tps = e.pageY + 40;
		}
		tps -= 10;
		var WinWidth=$(window).width();
		if ((lfts + $('#ToolTipDiv').width() +150) > WinWidth){
			lfts = WinWidth - ( $('#ToolTipDiv').width() +300);
		}

		$('#ToolTipDiv').css('left',lfts);
		$('#ToolTipDiv').css('top',tps);
		$('#ToolTipDiv').show('slow');
		//alert("ok, it should be showing:" +tooltipID + "\nlfts:" + lfts + "\ntps:"+tps);
		return this;
//		//alert("ok we moused over the tooltip div ID=" + tooltipID);
	});
	$('#ToolTipDivClose').click(function(){
		//$('#fuzzybkg').fadeOut('fast');
		$('#ToolTipDiv').fadeOut('slow');		
		//alert('thank you');
		return this;
	});
};
function brwstester(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}