').removeClass("hidden"); } else { $(".gb-footer-bottom").addClass("no-social-icons"); } }, "RsMenu": function() { // FOR SCOPE var _this = this; $.csRsMenu({ "breakPoint" : 768, // SYSTEM BREAK POINTS - 768, 640, 480, 320 "slideDirection" : "left-to-right", // OPTIONS - left-to-right, right-to-left "menuButtonParent" : "#gb-channel-list", "menuBtnText" : "Menu", "colors": { "pageOverlay": "#000000", // DEFAULT #000000 "menuBackground": "#FFFFFF", // DEFAULT #FFFFFF "menuText": "#333333", // DEFAULT #333333 "menuTextAccent": "#333333", // DEFAULT #333333 "dividerLines": "#E6E6E6", // DEFAULT #E6E6E6 "buttonBackground": "#E6E6E6", // DEFAULT #E6E6E6 "buttonText": "#333333" // DEFAULT #333333 }, "showDistrictHome": _this.ShowDistrictHome, "districtHomeText": "District Home", "showSchools" : _this.ShowSchoolList, "schoolMenuText": "Our Schools", "showTranslate" : _this.ShowTranslate, "translateMenuText": "Translate", "translateVersion": 2, // 1 = FRAMESET, 2 = BRANDED "translateId" : "", "translateLanguages": [ // ["ENGLISH LANGUAGE NAME", "TRANSLATED LANGUAGE NAME", "LANGUAGE CODE"] ["Afrikaans", "Afrikaans", "af"], ["Albanian", "shqiptar", "sq"], ["Amharic", "አማርኛ", "am"], ["Arabic", "العربية", "ar"], ["Armenian", "հայերեն", "hy"], ["Azerbaijani", "Azərbaycan", "az"], ["Basque", "Euskal", "eu"], ["Belarusian", "Беларуская", "be"], ["Bengali", "বাঙালি", "bn"], ["Bosnian", "bosanski", "bs"], ["Bulgarian", "български", "bg"], ["Burmese", "မြန်မာ", "my"], ["Catalan", "català", "ca"], ["Cebuano", "Cebuano", "ceb"], ["Chichewa", "Chichewa", "ny"], ["Chinese Simplified", "简体中文", "zh-CN"], ["Chinese Traditional", "中國傳統的", "zh-TW"], ["Corsican", "Corsu", "co"], ["Croatian", "hrvatski", "hr"], ["Czech", "čeština", "cs"], ["Danish", "dansk", "da"], ["Dutch", "Nederlands", "nl"], ["Esperanto", "esperanto", "eo"], ["Estonian", "eesti", "et"], ["Filipino", "Pilipino", "tl"], ["Finnish", "suomalainen", "fi"], ["French", "français", "fr"], ["Galician", "galego", "gl"], ["Georgian", "ქართული", "ka"], ["German", "Deutsche", "de"], ["Greek", "ελληνικά", "el"], ["Gujarati", "ગુજરાતી", "gu"], ["Haitian Creole", "kreyòl ayisyen", "ht"], ["Hausa", "Hausa", "ha"], ["Hawaiian", "ʻŌlelo Hawaiʻi", "haw"], ["Hebrew", "עִברִית", "iw"], ["Hindi", "हिंदी", "hi"], ["Hmong", "Hmong", "hmn"], ["Hungarian", "Magyar", "hu"], ["Icelandic", "Íslenska", "is"], ["Igbo", "Igbo", "ig"], ["Indonesian", "bahasa Indonesia", "id"], ["Irish", "Gaeilge", "ga"], ["Italian", "italiano", "it"], ["Japanese", "日本語", "ja"], ["Javanese", "Jawa", "jw"], ["Kannada", "ಕನ್ನಡ", "kn"], ["Kazakh", "Қазақ", "kk"], ["Khmer", "ភាសាខ្មែរ", "km"], ["Korean", "한국어", "ko"], ["Kurdish", "Kurdî", "ku"], ["Kyrgyz", "Кыргызча", "ky"], ["Lao", "ລາວ", "lo"], ["Latin", "Latinae", "la"], ["Latvian", "Latvijas", "lv"], ["Lithuanian", "Lietuvos", "lt"], ["Luxembourgish", "lëtzebuergesch", "lb"], ["Macedonian", "Македонски", "mk"], ["Malagasy", "Malagasy", "mg"], ["Malay", "Malay", "ms"], ["Malayalam", "മലയാളം", "ml"], ["Maltese", "Malti", "mt"], ["Maori", "Maori", "mi"], ["Marathi", "मराठी", "mr"], ["Mongolian", "Монгол", "mn"], ["Myanmar", "မြန်မာ", "my"], ["Nepali", "नेपाली", "ne"], ["Norwegian", "norsk", "no"], ["Nyanja", "madambwe", "ny"], ["Pashto", "پښتو", "ps"], ["Persian", "فارسی", "fa"], ["Polish", "Polskie", "pl"], ["Portuguese", "português", "pt"], ["Punjabi", "ਪੰਜਾਬੀ ਦੇ", "pa"], ["Romanian", "Română", "ro"], ["Russian", "русский", "ru"], ["Samoan", "Samoa", "sm"], ["Scottish Gaelic", "Gàidhlig na h-Alba", "gd"], ["Serbian", "Српски", "sr"], ["Sesotho", "Sesotho", "st"], ["Shona", "Shona", "sn"], ["Sindhi", "سنڌي", "sd"], ["Sinhala", "සිංහල", "si"], ["Slovak", "slovenský", "sk"], ["Slovenian", "slovenski", "sl"], ["Somali", "Soomaali", "so"], ["Spanish", "Español", "es"], ["Sundanese", "Sunda", "su"], ["Swahili", "Kiswahili", "sw"], ["Swedish", "svenska", "sv"], ["Tajik", "Тоҷикистон", "tg"], ["Tamil", "தமிழ்", "ta"], ["Telugu", "తెలుగు", "te"], ["Thai", "ไทย", "th"], ["Turkish", "Türk", "tr"], ["Ukrainian", "український", "uk"], ["Urdu", "اردو", "ur"], ["Uzbek", "O'zbekiston", "uz"], ["Vietnamese", "Tiếng Việt", "vi"], ["Welsh", "Cymraeg", "cy"], ["Western Frisian", "Western Frysk", "fy"], ["Xhosa", "isiXhosa", "xh"], ["Yiddish", "ייִדיש", "yi"], ["Yoruba", "yorùbá", "yo"], ["Zulu", "Zulu", "zu"] ], "showAccount": true, "accountMenuText": "User Options", "usePageListNavigation": true, "extraMenuOptions": [], "siteID": "8", "allLoaded": function(){} }); }, "ViewFullSite": function() { // VIEW FULL SITE BUTTON ON MOBILE if(this.ShowFullSiteButton) { $("#gb-page").addClass("using-full-site-btn"); $("body").viewFullSite({ "breakPoint"	: 639, // SYSTEM BREAK POINTS - 1023, 767, 639, 479 "buttonContainer"	: "body", "useDefaultCSS"	: "yes", "fixedPosition"	: "bottom" // IF USING DEFAULT STYLES - TOP, BOTTOM }); } }, "AppAccordion": function() { $(".sp-column.one").csAppAccordion({ "accordionBreakpoints" : [640, 480, 320] }); }, "Search": function() { // FOR SCOPE var _this = this; $("#gb-search-form").submit(function(e){ e.preventDefault(); if($("#gb-search-input").val() != "Search...") { if($("#gb-search-input").val() != "") { window.location.href = "/site/Default.aspx?PageType=6&SiteID=8&SearchString=" + $("#gb-search-input").val(); } } }); $("#gb-search-form-menu").focusout(function() { setTimeout(function() { if(!$("#gb-search-form-menu").find(":focus").length && !$("#gb-search-panel-toggle").is(":focus")) { $("#gb-search-input, #gb-submit-search").attr("tabindex","-1"); $("#gb-search #gb-search-btn").attr("aria-expanded", "false"); $("#gb-search-form-menu").attr("aria-hidden", "true").removeClass("open"); } }, 500); }).keydown(function(e) { if(e.keyCode == _this.KeyCodes.esc) { e.preventDefault(); $("#gb-search-input, #gb-submit-search").attr("tabindex","-1"); $("#gb-search #gb-search-btn").attr("aria-expanded", "false").focus(); $("#gb-search-form-menu").attr("aria-hidden", "true").removeClass("open"); } }); $("#gb-search-input").focus(function() { if($(this).val() == "Search...") { $(this).val(""); } }).blur(function() { if($(this).val() == "") { $(this).val("Search..."); } }); $("#gb-search #gb-search-btn").on("hover focus", function(e) { //if(_this.AllyClick(e)) { e.preventDefault(); if(!$("#gb-search-form-menu").hasClass("open")){ $("#gb-search-input, #gb-submit-search").attr("tabindex","0"); $("#gb-search-form-menu").addClass("open").attr("aria-hidden","false"); $(this).addClass("open").attr("aria-expanded","true"); $("#gb-search-form #gb-search-input").focus(); } else { $("#gb-search-input, #gb-submit-search").attr("tabindex","-1"); $("#gb-search-form-menu").removeClass("open").attr("aria-hidden","true"); $(this).removeClass("open").focus().attr("aria-expanded","false"); } //} }); }, "AllyClick": function(event) { if(event.type == "click") { return true; } else if(event.type == "keydown") { if(event.keyCode == this.KeyCodes.space || event.keyCode == this.KeyCodes.enter) { return true; } } else { return false; } }, "GetBreakPoint": function() { return window.getComputedStyle(document.querySelector("body"), ":before").getPropertyValue("content").replace(/"|'/g, "");/*"*/ } };