$(document).ready(function() {
    // find all the input elements with title attributes
    $('input[title!=""]').hint();
    $("#sitebreadcrumb").corner("7px");
    if($("#leftcolumn"))
    $("#rightcolumn").css("min-height", getBodyHeight() - 243 + "px");
    $(window).resize(function() {
        if ($("#rightcolumn"))
        $("#rightcolumn").css("min-height", getBodyHeight() - 243 + "px");
    });
});
function printWeeklyEventPopup(url) {
    window.open(url, 'eventweeklyprint', 'width=800, height=500, menubar=no, scrollbars=yes, resizable=no, status=no, toolbar=no'); 
    return false;
}
function printDailyEventPopup(url) {
    window.open(url, 'eventdailyprint', 'width=800, height=500, menubar=no, scrollbars=yes, resizable=no, status=no, toolbar=no');
    return false;
}


function getBodyHeight() {
    return getBodyHeightWidth(2);
}
function getBodyWidth() {

    return getBodyHeightWidth(1);
}
function getBodyHeightWidth(type) {
    var myWidth = 0, myHeight = 0;
    if (typeof (window.innerWidth) == 'number') {
        //Non-IE
        myWidth = window.innerWidth;
        myHeight = window.innerHeight;
    } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
        //IE 6+ in 'standards compliant mode'
        myWidth = document.documentElement.clientWidth;
        myHeight = document.documentElement.clientHeight;
    } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
    }
    if (type == 1)
        return myWidth;
    else
        return myHeight;
}