// JavaScript Document

$(document).ready(function(){

	if ($.browser.msie && $.browser.version == 7) {
		$("#content").css("min-height", $(window).height() - $("#header").height() - $("#footer").height() - 60 );	
	}
	else {
		$("#content").css("min-height", $(window).height() - $("#header").height() - $("#footer").height() - 41 );	
	}
	if( $(".main_page #left_part").height() < $(".main_page #right_part").height() ) {
		$(".main_page #left_part .standart_right_bottom").css( "min-height", $(".main_page #right_part .standart_right_bottom").height() );
	}	
	else {
		$(".main_page #right_part .standart_right_bottom").css( "min-height", $(".main_page #left_part .standart_right_bottom").height() );
	}
	if( $("body.inner #left_part").height() < $("body.inner #right_part").height() + $(".online-demand").height() + 109 && $(".online-demand").height() ) {
		$("body.inner #left_part .standart_right_bottom").css( "min-height", $("body.inner #right_part").height() + $(".online-demand").height() + 110 );
	}
	else if( $("body.inner #left_part").height() < $("body.inner #right_part").height() + $(".online-demand").height() && !$(".online-demand").height() ) {
		$("body.inner #left_part .standart_right_bottom").css( "min-height", $("body.inner #right_part").height() - 2 );
	}	

	$(".lenta").jCarouselLite({ visible: 6, start: 0, scroll: 3, speed: 300, btnNext: ".next", btnPrev: ".prev" });
	$(".lenta").css("width", "832px");
	
	$(".hover_effect").hover( 
		function(){ 
			$("#header .top_menu span").css("background", "url( /i/top_menu_back_hover.gif ) no-repeat center bottom" );
			$("#header .top_menu span ins").css("background", "#005aa5" );
		}, 
		function(){ 
			$("#header .top_menu span").css("background", "url( /i/top_menu_back.gif ) no-repeat center bottom" );
			$("#header .top_menu span ins").css("background", "#004680" );
		} 
	);
});


