/*	var cache = {};
	$(document).ready(function(){

		$("span.doctor-fio").bt(
		{
			preShow: function(box){
				var $id = $(this).attr("rel");
				if (typeof cache [$id] == 'undefined')
				{
					$('.cont').attr("id","cont").load("/ajax/index.php?mode=doctor_tip_info&id=" + $id,
					function ()
					{
						cache [$id] = $(this).html ();	
					});	
				}
				else
				{
					$(".cont").html (cache [$id]);
				}
				//alert($id);				
			},
			showTip: function(box){
				var $id = $(this).attr("rel");
				if (typeof cache [$id] != 'undefined')
				{
					$(box).fadeIn(500);
				}
			},
			hideTip: function(box, callback){
				$(box).animate({opacity: 0}, 500, callback);
			},

			positions: ['top', 'bottom'],
			fill: "#F2F5F7",
			contentSelector:  "$('#cont')",
			  
			hoverIntentOpts: {
				interval: 0,
				timeout: 0
			}
		});
	});*/
	$(document).ready(function(){

		$('span.doctor-fio').each(function(){

			$(this).attr('title','Щелкните для просмотра информации');

			$('<img style="vertical-align:middle;" src="/images/green-ball-q.gif">').appendTo(this);
	
		});

		$('span.doctor-fio').bt(
		{
			positions: ['top', 'bottom'],
			fill: '#F2F5F7',
			contentSelector:  '$("#cont")',
			width: '',
			closeWhenOthersOpen: true,
			trigger: 'click',
			killTitle: false,
				
			showTip: function(box){
				$(box).fadeIn(500);
			},

			hideTip: function(box, callback){
				$(box).animate({opacity: 0}, 500, callback);
			},

			hoverIntentOpts: {
				interval: 100,
				timeout: 100
			}
		});
	});