/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
var windowWidth = 800, windowHeight = 600;
function windowSize() {
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    windowWidth = window.innerWidth;
    windowHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    windowWidth = document.documentElement.clientWidth;
    windowHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    windowWidth = document.body.clientWidth;
    windowHeight = document.body.clientHeight;
  }
}





$(document).ready(function(){
    
    var wejscieBox, wejscieHeight, wejscieTop, contentTop;
    windowSize();
    wejscieBox = $('#wejscie')
    contentTop = $('#content').position().top;
    wejscieHeight = wejscieBox.height();
    wejscieTop = ((windowHeight/2) - (wejscieHeight/2)) - contentTop;
    wejscieBox.css({'top':wejscieTop});
    $('#darkDiv').css({'opacity':'0.7'});
    //wejscieBox.css({'z-index':200});
    });

