﻿/// <reference path="jquery-1.3.2-vsdoc.js" />

$(document).ready(function() {

    var positionFooter = function() {
        var leftColHeight = $('#wleft').height();
        var rightColHeight = $('#wright').height() + $('#gm').height()+20;
        var MaxHeight = Math.max(leftColHeight, rightColHeight);

        if (rightColHeight < MaxHeight) {
            $('#wright').css("height", MaxHeight - $('#gm').height()-20);
        }
    }
    positionFooter();
    $(window).resize(positionFooter);
});

function AddFav() {
    var title = document.title;
    var url = location.href;
    if (window.sidebar) window.sidebar.addPanel(title, url, "");
    else if (window.opera && window.print) {
    }
    else if (!window.opera && document.all) window.external.AddFavorite(url, title);

}
