/** Vertical center logic **/

var width;
var height;
var body;

window.onresize = function (evt) {
    setWrapper();
}

function init() {
    body = document.getElementsByTagName('body');
    setWrapper();
}

function setWrapper(){
    getSize();
    var wrapper = document.getElementById("wrapper");
    if(height < 737){
        wrapper.className = "wrapper";
    }
    else {
        wrapper.className = "wrapperVCenter";
    }
} 

function getSize() {
    var myWidth = 0, myHeight = 0;
    if( typeof( window.innerWidth ) == 'number' ) {
        //Non-IE
        width = window.innerWidth;
        height = window.innerHeight;
    } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        width = document.documentElement.clientWidth;
        height = document.documentElement.clientHeight;
    } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        width = document.body.clientWidth;
        height = document.body.clientHeight;
    }
}

/** EOF Vertical center logic EOF **/