
var items_h = 0;

function caroussel_init() {
//$(document).ready(function() {
	$("#home_slider_stat").hide();
	$("#home_slider_din").show();


	$(".home_slider li").each( function(i) {
		items_h = Math.max(items_h, $(this).height());
	})
	$(".home_slider ul").height(items_h);
	$(".home_slider li").each( function(i) {
		$(this).height(items_h);
	})


//		circular: false,
	$(".home_slider").jCarouselLite({
		btnNext: ".home_slider_next",
		btnPrev: ".home_slider_prev",
		visible: 1,
		speed: 400
	});
	
	
	$("img.home_slider_prev").mouseover( function() { $(this).attr('src', 'img/home/prev_over.gif'); } );
	$("img.home_slider_prev").mouseout( function() { $(this).attr('src', 'img/home/prev.gif'); } );
	$("img.home_slider_next").mouseover( function() { $(this).attr('src', 'img/home/next_over.gif'); } );
	$("img.home_slider_next").mouseout( function() { $(this).attr('src', 'img/home/next.gif'); } );
}
//);

window.onload = caroussel_init;
