jQuery(function(){
  rePosition();
  jQuery(window).resize(function(){
    rePosition();
  });
  function rePosition(){
    var windowHeight = jQuery(window).height();
    var containerHeight = jQuery("div#container").height();
    containerNewPosition = windowHeight*2/5 - containerHeight/2;
    jQuery("div#container").css("top",containerNewPosition+"px");
  }
  
  setInterval(function(){
    jQuery("img#please").animate({
      opacity: 0.4
    }, 400, "linear");
    jQuery("img#please").delay(400).animate({
      opacity: 1
    }, 200, "linear");  
  }, 1200);

})
