$(document).ready(function() {
    $("#research li").each(function(i){
        if(i % 2 == 0){
            $(this).addClass("left");
        } else {
            $(this).addClass("right");
            $(this).after("<li class='clear'>&nbsp;</li>");
            $(this).parent("ul").css({"padding-bottom":"30px" });
        }
    });

    $(".menu li:last").addClass("last");
    $(".listMod2:last").addClass("listMod2last");

    $(".mnResearch").click(function(){
        $("body, html").scrollTo("620px", 800);
        return false;
    });

    $("#btTop").click(function(){
        $("body, html").scrollTo(0, 800, {queue:true});
        return false;
    });

    $('a[rel*=blank]').click(function() {
        window.open(this.href);
        return false;
    });


});

jQuery.getUrlParam = function (get) {
    var result = '';
    if (get) {
        var q = window.location.search;
        if (q.length > 0) {
            q = q.replace(/^\?/, '');
            q = q.replace(/\&$/, '');
            jQuery.each(q.split('&'), function () {
                var key = this.split('=')[0];
                var val = this.split('=')[1];
                if(/^[0-9.]+$/.test(val)) {
                    val = parseFloat(val);
                }
                if (key == get && result == '') {
                    if (val != undefined) {
                        result = val;
                    }
                }
            });
        }
    }
    return result;
};
