function pgResize(){
    $('.bk-body img').css("height", $('body').height() + 'px'); // forzare la grandezza per l'immagine di sfondo
}

$(document).ready(function(){
	if ($(".lst-impianti").length && $('.lst-impianti') && $('.lst-impianti').height() > 234){
     $('.lst-impianti').css("height", "234px").jScrollPane({ showArrows: true });
    }
	pgResize();
    // al resize del window rifare i confronti e impostare nuovamente l'altezza al pg
	$(window).resize(function()
    {
        pgResize();
    });
    $(".nav-main li").hover(
		function()
		{
		    $(this).find("ul").addClass("subhover")
		},
		function()
		{
		    $(this).find("ul").removeClass("subhover")
		}
	);
});
