$(function(){
$('#links3').css('top', $(document).height()-74+'px');
if($(".dom_el").length>0){
	$(".centerBlock").width($(".dom_el").width()*($(".dom_el").length>=Math.floor($(".contentB").width()/$(".dom_el").width())?Math.floor($(".contentB").width()/$(".dom_el").width()):$(".dom_el").length));
}
if($('.leftB').length>0) if(($('.leftB').height()+260)>($('.contentB').height()+300)) {$('.contentB').css('min-height', $('.leftB').height()+'px'); $('#footer').css('top', '214px');}
});

$(window).load(function(){$('#links3').css('top', $(document).height()-74+'px');});

$(window).resize(function(){
$('#links3').css('top', $(document).height()-74+'px');
if($(".dom_el").length>0){
	$(".centerBlock").width('');
	$(".centerBlock").width($(".dom_el").width()*($(".dom_el").length>=Math.floor($(".contentB").width()/$(".dom_el").width())?Math.floor($(".contentB").width()/$(".dom_el").width()):$(".dom_el").length))
}
if($('.leftB').length>0) if(($('.leftB').height()+260)>($('.contentB').height()+300)) {$('.contentB').css('min-height', $('.leftB').height()+'px'); $('#footer').css('top', '214px');}
});

