﻿
//The calls
$(document).ready(function() {

    //Frontpage
    //Sameheight all the bottom containers
    $('td.BottomLeftPane .ContentTable,td.BottomCenterPane .ContentTable,td.BottomRightPane .ContentTable,').SameHeight();

    //Custom Sameheight for first containers in left and right
    if ($('td.LeftPane1 .ContentTable:first').height() > $('td.RightPane1 .ContentTable:first').height() + 70) {
        $('td.RightPane1 .ContentTable:first').height($('td.LeftPane1 .ContentTable:first').height() - 70);
    } else {
        $('td.LeftPane1 .ContentTable:first').height($('td.RightPane1 .ContentTable:first').height() + 70);
    };

    //Samheight the second containers in left right
    $('td.LeftPane1 .ContentTable:eq(1),td.RightPane1 .ContentTable:eq(1)').SameHeight();
    $('td.LeftPane1 .ContentTable:eq(1)').height($('td.LeftPane1 .ContentTable:eq(1)').height() + 3);


    //Set the height of the contentpane to the same of that of the left side + overhead
    $('td.ContentPane1 .ContentTable:eq(0)').height($('td.LeftPane1 .ContentTable:eq(0)').height() + $('td.LeftPane1 .ContentTable:eq(1)').height() + 62);
    if ($('.BannerPane:has(#dnn_ctr539_dnnACTIONS_ctldnnACTIONS)').length) {


        $('#dnn_ctr539_ViewContentRotator_contentPanel').css("visibility", "hidden");


    }
});