jQuery.fn.exists = function () { return ($(this).length > 0); }

jQuery.fn.setHeight = function (margin) {
    var cHeight = $('.side').height() - margin;
    $(this).css('cssText', 'min-height:' + cHeight + 'px; height: auto !important; height:' + cHeight + 'px;');
}

function getParameterByName(location, name) {
    name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
    var regexS = "[\\?&]" + name + "=([^&#]*)";
    var regex = new RegExp(regexS);
    var results = regex.exec(location);
    if (results == null)
        return "";
    else
        return results[1];
}

function windowResize() {
    $('.side, .content').height($('#grid').height() - $('footer').height() + 4);
}

$(document).ready(function () {
    windowResize();
    $(window).resize(windowResize);
});
// OnLoad
$(function () {
    $(".logo img.a").hover(
        function () {
            $(this).stop().animate({ "opacity": "0" }, "slow");
        },
        function () {
            $(this).stop().animate({ "opacity": "1" }, "slow");
        });
});


