jQuery.noConflict()(function(){
    var topLevel;
    jQuery("#submenu:contains('Home')").each(function(){
        jQuery(this).hide();
        topLevel = 1;
		jQuery("#bread_style").hide();
    });
    if (topLevel != 1)
    {
        var hideSubMenu = 0;
        var siblings = jQuery("#submenu").children(':first-child').children(':first-child').children();
        if (siblings.length == 0)
        {
            hideSubMenu = 1;
            
        }
        if (hideSubMenu == 0)
        {
        
            siblings.each(function(){
                //access to form element via $(this)
                //Hide secondary menu from offices page.
                
                if (jQuery(this).is('.second_dnnmenu_rootitem_selected'))
                {
                    var test1 ='' ;
                    var test2 ='' ;
                    test1 = jQuery(this).filter(':contains("Offices")');
                    test2 = jQuery(this).filter(':contains("News Room")');
                    test3 = jQuery(this).filter(':contains("Our People")');
					test4 = jQuery(this).filter(':contains("College")');
					test5 = jQuery(this).filter(':contains("Benefits")');
					test6 = jQuery(this).filter(':contains("Career Development")');
                    //if (test1.length > 0 || test2.length > 0 || test3.length > 0){
                    if (test1.length > 0 || test2.length > 0 || test4.length > 0 || test5.length > 0 || test6.length > 0){
                        hideSubMenu = 1;
						
                    }
					if (test1.length > 0 || test2.length > 0 || test3.length > 0){
						jQuery("#bread_style").hide();
					}
                }
				if (jQuery(this).is('.main_dnnmenu_rootitem_selected'))
				{
					var test3 = '';
					test3 = jquery(this).filter(':contains("BIM")');
					if (test3.length > 0){
						hideSubMenu = 1;
					}
				}
            });
			jQuery("#bread_style").hide();
        };
        if (hideSubMenu == 1)
        {
            jQuery("#submenu").hide();        
			
        };
    };
	
    if (topLevel == 1) //For top level items show child items
    {
        topLevel = 0;
        var siblings = jQuery("#submenu1").children(':first-child').children(':first-child').children().length;
        //Target = Target.children(':first-child');
        if (siblings < 1)
        {
            topLevel = 1;
        }
   
        if (topLevel != 1)
        {
            jQuery("#submenu1").show();
        };
    };
	
	resizeLeftPane();
});
function resizeLeftPane(){
	var titlePanelHeight = 54;
	jQuery("#lcontent").css("height",titlePanelHeight);
	jQuery("#dnn_leftpane").css("height",titlePanelHeight);
}
