$(function() {
	$(".jCarouselLite").jCarouselLite({
		btnNext: ".next",
		btnPrev: ".prev",
		speed: 700,
		visible: 1,
		scroll: 6,
		circular: false
	});
	
	$(".jCarouselLite img").fadeTo(1,1)
		.hover( 
		function(){
			$(this).fadeTo(100, 0.85);
		},
		function(){
			$(this).fadeTo(200, 1);
		}
	);
});


$(function() {
	$(".imghover img").fadeTo(1,1)
		.hover( 
		function(){
			$(this).fadeTo(100, 0.85);
		},
		function(){
			$(this).fadeTo(200, 1);
		}
	);
});



//rollover
var preLoadImg = new Object();

function initRollOvers(){
	$("img.rollover").each(function(){
		var imgSrc = this.src;
		var sep = imgSrc.lastIndexOf('.');
		var onSrc = imgSrc.substr(0, sep) + '_o' + imgSrc.substr(sep, 4);
		preLoadImg[imgSrc] = new Image();
		preLoadImg[imgSrc].src = onSrc;
		$(this).hover(
			function() { this.src = onSrc; },
			function() { this.src = imgSrc; }
		);
	});
}
$(function(){
	initRollOvers();
});


//flatHeights
$(function() {
    $('.column').flatHeights();
});

