$(document).ready(function(){	
	$("#slider").easySlider({
		auto: false,
		continuous: true,
		numeric: true
	});
	
	Shadowbox.init();
});

function mark (values)
{
	$.each(values, 
		function(index, value)
		{
			$('#' + index).css('border', '3px solid #6F0000');
			$('#' + index).attr('alt', value);
			$('#' + index).attr('class', 'tooltip');
		});
}

function initTooltips ()
{
	$('.tooltip').each(function(){
		$(this).qtip({
			position: {
		    corner: {
		       target: 'rightMiddle',
		       tooltip: 'leftMiddle'
		    }
		 },
		 style: {
		    name: 'red',
		    padding: '7px 13px',
		    width: {
		       max: 210,
		       min: 0
		    },
		    tip: true
		 },
			content: $(this).attr('alt')
		});
	});
}