function performWindowHeightMagic() {
    if (window.screen.height <= 768) {
        $('diocore').height = window.getHeight() <= 624 ? 624 : window.getHeight();
    } else {
        $('diocore').height = window.getHeight() <= 734 ? 734 : window.getHeight();
    }
    
}

function startResizeBehaviour() {
    if ($('diocore') != null) {
        performWindowHeightMagic();
        window.addEvent('resize', performWindowHeightMagic);
    }
    else {
        setTimeout(startResizeBehaviour, 100);
    }
}
