﻿jQuery( function( $ ){
    $('#photo_box div').addClass('main_menu_landing');
    //console.log(currentPage.substr(0, currentPage.indexOf(' ')));
    switch(currentPage){
        case 'Centro de Información' :
            $('#menu_information_center').show();
            $('#information_center').each(function(){
                swap_over($(this));
                $(this).css('border-bottom-color', '#A3B5BC');
                $(this).attr('landing', true);
            });
            break;
        case 'Cambie de Hábitos' :
            $('#menu_change_your_habits').show();
            $('#change_your_habits').each(function(){
                swap_over($(this));
                $(this).css('border-bottom-color', '#A3B5BC');
                $(this).attr('landing', true);
            });
            break;
        case 'Maternidad y Niños' :
            $('#menu_maternity_and_children').show();
            $('#maternity_and_children').each(function(){
                swap_over($(this));
                $(this).css('border-bottom-color', '#A3B5BC');
                $(this).attr('landing', true);
            });
            break;
        case 'Salud del Hombre y la Mujer' :
            $('#menu_mens_and_womens_health').show();
            $('#mens_and_womens_health').each(function(){
                swap_over($(this));
                $(this).css('border-bottom-color', '#A3B5BC');
                $(this).attr('landing', true);
            });
            break;
        case 'Enfermedades Crónicas' :
            $('#menu_chronic_illnesses').show();
            $('#chronic_illnesses').each(function(){
                swap_over($(this));
                $(this).css('border-bottom-color', '#A3B5BC');
                $(this).attr('landing', true);
            });
            break;
    }
});


