try
{
    if( Sys && Sys.Application ){
        Sys.Application.notifyScriptLoaded();
    }
}
catch(ex){}
// this event is fired before the menu is actually shown on the page
// menu - the menu that is being opened
// you can return false to prevent the menu from being displayed, or true to allow the open to continue
function ob_em_OnBeforeMenuOpen(menu)
{
	switch (menu.id) {
    
        case "unit_prices_left":
            RELIANCE_SwapClass('csrf_unitprices','leftmenusHover'); 
            break;
        case "publications_left":
            RELIANCE_SwapClass('csrf_publications','leftmenusHover'); 
            break;
        case "employers_left":
            RELIANCE_SwapClass('csrf_employers','leftmenusHover'); 
            break;
        case "pension_left":
            RELIANCE_SwapClass('csrf_pension','leftmenusHover'); 
            break;
        case "about_csrf":
            RELIANCE_SwapImage('about_csrf_img','resources/images/navigation/home.gif');
            RELIANCE_SwapClass('csrfBanner','defaultBanner'); 
            break;
        case "fund_features":
            RELIANCE_SwapImage('fund_features_img','resources/images/navigation/Nav_02Highlighted.jpg');
            RELIANCE_SwapClass('csrfBanner','fundfeaturesBanner'); 
            break;
        case "investments":
            RELIANCE_SwapImage('investments_img','resources/images/navigation/Nav_03Highlighted.jpg');
            RELIANCE_SwapClass('csrfBanner','investmentBanner'); 
            break;
        case "insurance":
            RELIANCE_SwapImage('insurance_img','resources/images/navigation/Nav_04Highlighted.jpg');
            RELIANCE_SwapClass('csrfBanner','insuranceBanner'); 
            break;
        case "learn_about":
            RELIANCE_SwapImage('learn_about_img','resources/images/navigation/Nav_05Highlighted.jpg');
            RELIANCE_SwapClass('csrfBanner','learnaboutBanner'); 
            break;
        case "media_room":
            RELIANCE_SwapImage('media_room_img','resources/images/navigation/Nav_06Highlighted.jpg');
            RELIANCE_SwapClass('csrfBanner','mediaroomBanner'); 
            break;
    }
   
	return true;
}

// this event is fired after the menu has been shown on the page
// menu - the menu that was opened
function ob_em_OnAfterMenuOpen(menu)
{
}

// this event is fired before the menu is closed
// menu - the menu that is being closed
// you can return false to prevent the menu from being closed, or true to allow the closing to continue
function ob_em_OnBeforeMenuClose(menu)
{
	alert('before menu close...')
	return true;
}

// this event is fired after the menu has been closed
// menu - the menu that was closed
function ob_em_OnAfterMenuClose(menu)
{
switch (menu.id) {
    
    case "unit_prices_left":
            RELIANCE_SwapClass('csrf_unitprices','leftmenus'); 
            break;
    case "publications_left":
            RELIANCE_SwapClass('csrf_publications','leftmenus'); 
            break;
     case "employers_left":
            RELIANCE_SwapClass('csrf_employers','leftmenus'); 
            break;
       case "pension_left":
            RELIANCE_SwapClass('csrf_pension','leftmenus'); 
            break;        
    case "about_csrf":
         RELIANCE_SwapImage('about_csrf_img','resources/images/navigation/home.gif');
        break;
    case "fund_features":
        RELIANCE_SwapImage('fund_features_img','resources/images/navigation/Nav_02.jpg');
        break;
     case "investments":
        RELIANCE_SwapImage('investments_img','resources/images/navigation/Nav_03.jpg');
        break;
     case "insurance":
        RELIANCE_SwapImage('insurance_img','resources/images/navigation/Nav_04.jpg');
        break;
    case "learn_about":
        RELIANCE_SwapImage('learn_about_img','resources/images/navigation/Nav_05.jpg');
        break;
    case "media_room":
        RELIANCE_SwapImage('media_room_img','resources/images/navigation/Nav_06.jpg');
        break;
    }
  
	return true;
}

// this event is fired before the click on the item is processed
// item - the menu item that is being clicked
// menu - the menu to which the item belongs to
// element - the target element of this menu
// ev - the event that caused the click
// you can return false to prevent the item from being clicked, or true to allow the clicking to continue
function ob_em_OnBeforeItemClick(item, menu, element, ev)
{
	return true;
}

// this event is fired after the click on the item is processed
// item - the menu item that is being clicked
// menu - the menu to which the item belongs to
// element - the target element of this menu
// ev - the event that caused the click
function ob_em_OnAfterItemClick(item, menu, element, ev)
{
}