// remap jQuery to $
(function ($) {

    if ($("#dnn_MENU1").width() > 750) {
        $("#dnn_MENU1 a").css({ 'font-size': '13px' });
    }

    if ($('#dnn_ControlPanel > *').length) {
        $('<hr />').addClass('hasLine Spacer').prependTo($('div.editBtns'));
        $('body').addClass('BackEnd');
    }
    else {
        $('div.editBtns').remove();
        $('body').addClass('FrontEnd');
    }

    $('.bottom_wrapper h1>span').parent('h1').css({ 'margin': '5px 0' });

    $(".PageView input[type=checkbox]").next('label').css({ 'margin-left': '5px', 'position': 'relative', 'top': '3px' });

    $('#dnn_MENU1 ul li:first-child').addClass('firstChild');

    $('#dnn_MENU1').addClass('LevelOn3');
    $('#dnn_MENU1 ul').addClass('Leveltwo');

    $('article.intro').before('<div class="intro top" />');
    $('article.intro').after('<div class="intro foot" />');

    $('article.GreyBox').before('<div class="GreyBox top" />');
    $('article.GreyBox').after('<div class="GreyBox foot" /><br class="clearer" />');

    $('.fourboxes article div').addClass('FourWrapper').after('<div class="foot" />');
    $('.regulations p:first, .publications p:first').addClass('first');

    $("p.first").equalHeights();
    $(".fourboxes article").hide().equalHeights();
    $initialHeight = $(".fourboxes article").height();
    $extendHeight = $initialHeight + 5;
    if (navigator.userAgent.indexOf("Firefox") != -1)
    { $extendHeight = $extendHeight + 15; }
    $(".fourboxes article").css('height', $extendHeight).show();

    $(".Results li:last-child").addClass("last");

})(window.jQuery);


