$(document).ready(function () {

    //box-slidedown
    if ($(".box_shortcut").length > 0) {
        $(".box_shortcut .shortcut_content").css('display', 'none');
        $('.box_shortcut a.shortcut_top').click(function (event) {
            event.preventDefault();
            $(this).parent().toggleClass('active');
            $(this).parent().find('.shortcut_content').stop(true, true).animate({ opacity: 'toggle', height: 'toggle' }, 1000);
        });
    }

});

function setIframeHeight(id, h) {
    if (document.getElementById) {
        var theIframe = document.getElementById(id);
        if (theIframe) {
            dw_Viewport.getWinHeight();
            theIframe.style.height = Math.round(h * dw_Viewport.height) + "px";
            /*theIframe.style.marginTop = Math.round( (dw_Viewport.height - parseInt(theIframe.style.height) )/2 ) + "px";*/
        }
    }
}

