
function fitUndsen() {

    var BrowserHeight = (document.body) ? document.body.clientHeight : document.documentElement.clientHeight;
    
    var HeaderHeight = 40;
    var FooterHeight = 120;

    var contentHeight = BrowserHeight-HeaderHeight-FooterHeight;
    var golHeight = contentHeight + 130;

    var upperHeight = 148;
    var lowerHeight = golHeight - upperHeight;

    $("#content").css("height", contentHeight );
    $("#content").css("height", golHeight - HeaderHeight - FooterHeight + 25+13 );
    $("#Gol").css("height", golHeight );
    $("#lowerContent").css("height", lowerHeight );
}


function load_content(menuID) {

//    if ( menuID!="nuur" ) {
        $("#upperMenu ul li.active").html( $("#upperMenu ul li.active span").html() );
        $("#upperMenu ul li.active").removeAttr("class");
        eval('$("#'+menuID+'")').html( "<span>"+eval('$("#'+menuID+'")').html()+"</span>" );
        eval('$("#'+menuID+'")').attr("class", "active");
    //    alert( $("#lowerContent").contents().find("#frameContent").html() );
        $("#lowerContent").attr("src", "frame.php?show="+menuID);
//    }
//    else {
//        if ($.browser.msie) {
//            parent.window.location.href('index.php');
//        }
//        else {
//            window.open('index.php', "_self");
//        }
//    }

}

