﻿/// <reference path="jquery-1.4.2.js" />
function initializePage() {
    if ($("#rightnav *").size() > 0) {
        var $content = $("#content");
        var $rightNav = $("#rightnav");
        var contentHeight = $content.height();
        var rightNavHeight = $rightNav.height();
        if (contentHeight < rightNavHeight) {
            $content.height(rightNavHeight+50);
        } else {
            //$rightNav.height(contentHeight);
        }
        
        $("#container").addClass("twocols");
    }
    $(":input").focus(function() {
        $(this).prev("LABEL").css("font-weight", "bold");
    }).blur(function() {
        $(this).prev("LABEL").css("font-weight", "normal");
    });

}
(function($) {
    $.fn.customFadeIn = function(speed, callback) {
        $(this).fadeIn(speed, function() {
            if (jQuery.browser.msie)
                $(this).get(0).style.removeAttribute('filter');
            if (callback != undefined)
                callback();
        });
    };
    $.fn.customFadeOut = function(speed, callback) {
        $(this).fadeOut(speed, function() {
            if (jQuery.browser.msie)
                $(this).get(0).style.removeAttribute('filter');
            if (callback != undefined)
                callback();
        });
    };
})(jQuery);