function resizeIfNecessary() {
    bodyId = document.body;
//alert('body='+bodyId.className + ' h=' + viewportHeight);
    if ( viewportHeight < 534 ) {
        bodyId.className = 'px24'
    } else {
        bodyId.className = 'px30'
    }
}

window.onresize = function () {
    getViewport();
// TODO set cookie
    resizeIfNecessary();
}

// TODO if cookie not exist then resize frame
getViewport();
resizeIfNecessary();

