var mrl_threshold=965;var mrl_stylesheet_path="/content/sites/all/themes/nusa/style_narrow.css";var mrl_stylesheet_media="all";var mrl_stylesheet_title="Narrow Stylesheet";var mrl_stylesheet_id="toggled_stylesheet";var mrl_subnav_column_id="subnav_column";var mrl_subnav_row_id="subnav_row";function mrl_initialize(){mrl_check_browser_width();mrl_attach_event_listener(window,"resize",mrl_check_browser_width,false)}function mrl_attach_stylesheet(){var D=document.createElement("link");D.setAttribute("rel","stylesheet");D.setAttribute("type","text/css");D.setAttribute("href",mrl_stylesheet_path);D.setAttribute("media",mrl_stylesheet_media);D.setAttribute("title",mrl_stylesheet_title);D.setAttribute("id",mrl_stylesheet_id);var A=document.getElementsByTagName("head")[0];A.appendChild(D);subnav=document.getElementById(mrl_subnav_column_id);if(subnav){var E=document.getElementById("body");E.removeChild(subnav);var C=document.getElementById("header");var B=document.getElementById("welcomecontent").parentNode.parentNode;subnav.id=mrl_subnav_row_id;C.insertBefore(subnav,B)}}function mrl_detach_stylesheet(){var A=document.getElementById(mrl_stylesheet_id);if(A){subnav=document.getElementById(mrl_subnav_row_id);window.location.href=window.location.href}}function mrl_check_browser_width(){var A=mrl_get_width();if(A==-1){var B=document.cookie.match(/(^|;)multi_res_layout[^;]*(;|$)/);if(B!==null){mrl_toggle_stylesheet("Narrow Stylesheet",unescape(B[0].split("=")[1]))}mrl_add_load_listener(mrl_check_browser_width);return false}if(A>=mrl_threshold){mrl_detach_stylesheet();document.cookie="multi_res_layout="+escape("off")}else{mrl_attach_stylesheet();document.cookie="multi_res_layout="+escape("on")}return true}function mrl_get_width(){if(window.innerWidth){return window.innerWidth}else{if(document.documentElement&&document.documentElement.clientWidth!==0){return document.documentElement.clientWidth}else{if(document.body){return document.body.clientWidth}}}return -1}function mrl_add_load_listener(A){if(typeof window.addEventListener!="undefined"){window.addEventListener("load",A,false)}else{if(typeof document.addEventListener!="undefined"){document.addEventListener("load",A,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",A)}else{return false}}}return true}function mrl_attach_event_listener(C,D,B,A){if(typeof C.addEventListener!="undefined"){C.addEventListener(D,B,A)}else{if(typeof C.attachEvent!="undefined"){C.attachEvent("on"+D,B)}else{return false}}return true};