jQuery.noConflict();
jQuery(document).ready(function($) {
										  
	function tooltipdiv(element) {
		return $('div[class*=TT_' + element.attr('href') + ']');
	}
	
	function nazajnaprej(element) {
		return element.parent().next();
	}
	
	$.fn.move = function(pos) {
		xOffset = -15;
		yOffset = 15;
		return this.css({'top' : (pos.pageY - xOffset) + 'px', 'left' : (pos.pageX + yOffset) + 'px'})
	}

	$('a.ToolTip').hover(
		function(e) {
			tooltipdiv($(this)).move(e).show();
		},
		function() {
			tooltipdiv($(this)).hide();
		}		
	).mousemove(function(e) {
		tooltipdiv($(this)).move(e);
	}).click(function() { 
		return false;
	});
	
	
	$('.NazajNaprej span.Naprej').hover(
		function(e) {
			nazajnaprej($(this)).move(e).show();
		},
		function() {
			nazajnaprej($(this)).hide();
		}											
	).mousemove(function(e) {
		nazajnaprej($(this)).move(e);
	});
	
});