$(function() {
    $("#carousel").jCarouselLite({
		btnNext: "#next",
		btnPrev: "#prev",
		visible: 3,
		easing: "easeout",
		speed: 150
    });
	if ($.browser.msie()) {
		$('.link').css({backgroundPosition: '0 0'});
		$(".link").hover(function(){
			$(this).animate(
				{backgroundPosition: '(0px -50px)'},
				{easing: 'bounceout'},100 );
			}, function() {
				$(this).stop().animate({
				backgroundPosition: '(0px 0px)'}, 150 );
		});	
	} 
	else {
		$('.link').css({backgroundPosition: '0px 0px'});
		$(".link").hover(function(){
			$(this).animate(
				{backgroundPosition: '(0px -50px)'},
				{easing: 'bounceout'},100 );
			}, function() {
				$(this).animate({
				backgroundPosition: '(0px 0px)'}, 150 );
		});
	}

	$('ul.hover_block li').hover(function(){
		$(this).find('img').animate({top:'182px'},{queue:false,duration:500});
		}, function(){
			$(this).find('img').animate({top:'0px'},{queue:false,duration:500});
	});
	$('.cover').css({top:'310px'});
	$('.slider.captionfull').hover(function(){
		$(".cover", this).stop().animate({top:'250px'},{queue:false, easing:'easeout', duration:150});
	}, function() {
		$(".cover", this).stop().animate({top:'310px'},{queue:false, easing:'easein',duration:150});
	});
});

window.onload=function(){
Nifty("div#h_main", "big transparent bottom same-height");
Nifty("div#p_main", "big transparentbottom same-height");
Nifty("div#b_main", "big transparent same-height");
Nifty("div#contact_form", "big transparent bottom same-height");
}
