function initStart()
{
  $('.intro').hide();
  
  var _h = $(window).height();
  
  if(_h >= 149 + 143 + 652) {
  	$('#first_bottom').css({position: 'fixed', bottom: 0});
	$('#first_main').css({marginTop : parseInt((_h - 149 - 143 - 652) / 2)}); 
	console.log('dusz');
  }else{
    $('#first_bottom').css({position: 'static'});
  }
  
  
  
  $('.intro').show();
  
  if(_h > $('body').height()) {
    $('#common_bottom').css({position: 'fixed', bottom : 0});
    $('#common_main').css({height: (_h - 141 - 224)});
  }else{
    $('#common_bottom').css({position: 'static'});
    $('#common_main').css({height: 'auto'});
  }
}

$(document).ready(function(){
  initStart();

  $(window).resize(initStart);
});

