$(document).ready(function() {
	if ($('#Slides').length > 0) {
	var kwicksWidth = Math.floor(765/$('#Slides').children().length);
	$(".kwicks")
		.children("li:last-child").addClass("lastSlide").end()
		.children("li:first-child").addClass("firstSlide").end()
		.children("li").css('width',kwicksWidth+'px')
		.each( function() {
		$(this).children('.coverUp').css('width',kwicksWidth+'px');
		$(this).children('.slideInfo').css({
			'opacity': 0,
			'display': 'block' 
		});
		$(this).hoverIntent( 
			function() {
			$(this)
				
				.children('.slideInfo').delay(500).animate({ opacity: 0.9 }, 500, 'easeOutCubic');
			},
			function() {
			$(this)
				.children('.coverUp').stop(true,true).animate({ left: '0' }, 710, 'easeOutCubic').end()
				
			});
	});
	$('#Slides').kwicks({
		min : 30,
		duration: 600,
		easing: 'easeOutCubic',
		spacing : 0,
		sticky: true,
		event : 'mouseover'
	});				
	}
});

$(function() {
$('a[rel=external]').attr('target', 'blank');
});



