	/***********************************************************************/
$(document).ready(function(){
	$('#slider_items').css({'display':'block'});		   
	// Slider
	$('#slider_items').roundabout({
	  	btnNext: '#next a',
    	btnPrev: '#prev a',
		minOpacity: '1',
		childSelector: '.item',
		reflect: true
	});

	// Slider speed
	setInterval(function () {
		$('#slider_items').roundabout_animateToNextChild();
	}, 5000);
		
	// Slider descriptions & pager
	var amount 		= $('#slider_items .item').size();
	var imageIndex 	= 0;
	
	// Adds bullets over the slider
	for (i = 0; i < amount; i++)
		$('#slider_pager').append('<img src="_Pics/slider-pager.png" alt="' + (i + 1) + '">');
	// Show first bullet	
	$('#slider_pager img:first').attr('src', '_Pics/slider-pager-active.png');
	
	$('#slider_pager img').click(function () {
		$('#slider_items').roundabout_animateToChild($(this).index());
	});
	
	// Show first description
	$('#slider_desc ul li:first').show();
	// Focus
	$('#slider_items').focus(function () {
		imageIndex = $(this).find('.roundabout-in-focus').index();
		$('#slider_desc ul li').each(function(index) {
			if (index == imageIndex) {
				$(this).show();
			}
		});
		
		$('#slider_pager img').each(function(index) {
			if (index == imageIndex) {
				$(this).attr('src', '_Pics/slider-pager-active.png');
			}
		});
		return false;
	// Blur	
	}).blur(function () {
		$('#slider_pager img').attr('src', '_Pics/slider-pager.png')
		$('#slider_desc ul li').hide();
	});
});
