/* Minification failed. Returning unminified contents.
(1,1): run-time error CSS1019: Unexpected token, found '('
(1,11): run-time error CSS1031: Expected selector, found '('
(1,11): run-time error CSS1025: Expected comma or open brace, found '('
(40,2): run-time error CSS1019: Unexpected token, found ')'
(40,3): run-time error CSS1019: Unexpected token, found '('
(40,18): run-time error CSS1031: Expected selector, found ')'
(40,18): run-time error CSS1025: Expected comma or open brace, found ')'
 */
(function (window, $) {
    $(document).ready(function () {
        window.JobsPlus = window.JobsPlus || {};
        window.JobsPlus.accessibility = window.JobsPlus.accessibility || {};

        JobsPlus.accessibility  = {
            Init: function () {
                JobsPlus.accessibility.IncorrectElement();
                JobsPlus.accessibility.AdjustAccessYourProfile();
                JobsPlus.accessibility.LanguageAttribute();
            },

            LanguageAttribute: function () {
                var language = $('.language-current > label').text();
                if (language === "English") {
                    $('html').attr('lang', 'en');
                } else if (language === "Malti") {
                    $('html').attr('lang', 'mt');
                }
            },

            IncorrectElement: function () {
                var langauge_html = $('div.language-current').html();
                langauge_html = langauge_html.replace(/<i/g, '<span').replace(/<\/i>/g, '</span>');
                $('div.language-current').html(langauge_html);
            },

            AdjustAccessYourProfile: function () {
                $("section#roleEmployee a[title='Access Your Profile']").attr("title", "Access Your Applicant Profile");
                $("section#roleEmployee img[title='Manage Your Profile']").attr("alt", "Manage Your Applicant Profile");
                $("section#roleEmployee img[title='Manage Your Profile']").attr("title", "Manage Your Applicant Profile");
                $("section#roleEmployer a[title='Access Your Profile']").attr("title", "Access Your Employer Profile");
                $("section#roleEmployer img[title='Manage Your Profile']").attr("alt", "Manage Your Employer Profile");
                $("section#roleEmployer img[title='Manage Your Profile']").attr("title", "Manage Your Employer Profile");
            }
        }

        JobsPlus.accessibility.Init();
    });
})(window, jQuery);
