!function(a){var b={saveCookie:function(a,b,c){var d=new Date;d.setTime(d.getTime()+24*c*3e3*1e3),jQuery.cookie(a,b,{path:"/",domain:window.location.hostname,expires:d})},removeCookie:function(a){jQuery.removeCookie(a,{path:"/",domain:window.location.hostname})},readCookie:function(a){return jQuery.cookie(a)}};window.GNCA_Utils=b}(jQuery);; !function(a){var b,c,d,e,f={isIOS:function(){return"undefined"==typeof c&&(c=window.navigator.platform&&/iP(hone|od|ad)/i.test(window.navigator.platform)),c},isAndroid:function(){return"undefined"==typeof d&&(d=window.navigator.userAgent&&/android/i.test(window.navigator.userAgent)),d},isMobile:function(){return"undefined"==typeof b&&(b=f.isAndroid()||f.isIOS()),b},isSafari:function(){return"undefined"==typeof e&&(e=window.navigator.userAgent&&!/chrome/i.test(window.navigator.userAgent)&&/safari/i.test(window.navigator.userAgent)),e},hasWifi:function(){return f.isAndroid()&&navigator.connection&&"wifi"===navigator.connection.type},saveData:function(){if(navigator&&navigator.connection){if(/\slow-2g|2g|3g/.test(navigator.connection.effectiveType))return!0;if(!0===navigator.connection.saveData)return!0}return!1}};window.GNCA_Watcher=f}(jQuery);; function isIE(){var a=document.createElement("div").style;a.cssText="position:sticky;position:-webkit-sticky;position:-ms-sticky;";var b=-1!==a.position.indexOf("sticky");return!b}if("undefined"==typeof jQuery.browser){var browser={msie:isIE()};jQuery.browser=browser}; !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(a){return a}function c(a){return decodeURIComponent(a.replace(e," "))}function d(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return f.json?JSON.parse(a):a}catch(a){}}var e=/\+/g,f=a.cookie=function(e,g,h){if(void 0!==g){if(h=a.extend({},f.defaults,h),"number"==typeof h.expires){var i=h.expires,j=h.expires=new Date;j.setDate(j.getDate()+i)}return g=f.json?JSON.stringify(g):String(g),document.cookie=[f.raw?e:encodeURIComponent(e),"=",f.raw?g:encodeURIComponent(g),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join("")}for(var k=f.raw?b:c,l=document.cookie.split("; "),m=e?void 0:{},n=0,o=l.length;n7||(i>6&&h<8||i<8&&h>6)&&g>5)?o||b():o&&c()}var e=navigator.userAgent;if(/iPhone|iPad|iPod/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS X/i.test(e)&&e.indexOf("AppleWebKit")>-1){var f=a.document;if(f.querySelector){var g,h,i,j,k=f.querySelector("meta[name=viewport]"),l=k&&k.getAttribute("content"),m=l+",maximum-scale=1",n=l+",maximum-scale=10",o=!0;k&&(a.addEventListener("orientationchange",b,!1),a.addEventListener("devicemotion",d,!1))}}}(this);; String.trim||(String.prototype.trim=String.prototype.trim||function(){return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}),"undefined"==typeof window.gNews&&(window.gNews={}),gNews.Common=function(){var a=jQuery;return a(function(){gNews.Common.init()}),{isTouch:!1,isMsTouch:!1,isIOS:!1,isAndroid:!1,isBlackBerry:!1,isWinPhone:!1,isIE:!1,isTrident:!1,isWebkit:!1,isSafari:!1,isChrome:!1,isFirefox:!1,isFlash:!1,isViewportSet:!1,isOrientationChange:!1,status:{isTouched:!1,isScrolling:!1},scrollPos:{current:{left:0,top:0},orig:{left:0,top:0},delta:{left:0,top:0}},scrollCallbacks:[],resizeTimeout:!1,resizeCallbacks:[],preInit:function(){if("local.globalnews.ca"==window.location.hostname&&a(document).on("keydown",function(a){"undefined"!=typeof a&&(keyPress=a.keyCode,27==keyPress&&console&&console.clear())}),$html=a("html"),this.isIOS=!!navigator.userAgent.match(/(iPad|iPhone|iPod)/gi),this.isIOS&&a(document.documentElement).addClass("is_ios"),this.isAndroid=!!navigator.userAgent.match(/Android/gi),this.isAndroid&&a(document.documentElement).addClass("is_android"),this.isBlackBerry=!!navigator.userAgent.match(/BlackBerry|PlayBook|BB10/gi),this.isBlackBerry&&a(document.documentElement).addClass("is_blackberry"),this.isWinPhone=!!navigator.userAgent.match(/Windows\sPhone/gi),this.isWinPhone&&a(document.documentElement).addClass("is_winphone"),this.isIE=!!a.browser.msie,this.isTrident=!!navigator.userAgent.match(/Trident/gi),this.isIE&&$html.addClass("is_ie is_ie"+this.getIEVersion()),this.isChrome=!!a.browser.chrome,this.isSafari=!!a.browser.safari,this.isWebkit=!!a.browser.webkit,this.isWebkit&&($html.addClass("is_webkit"),this.isChrome&&$html.addClass("is_chrome"),this.isSafari)){var b=/Version\/(\d+)./g,c=b.exec(navigator.userAgent);c&&c[1]&&(version=parseInt(c[1],10),version<10&&$html.addClass("is_safari"))}this.isTouch="ontouchend"in document.documentElement,this.isMsTouch=!!(window.navigator.msMaxTouchPoints>0&&window.navigator.msPointerEnabled);try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");d?(this.isFlash=!0,$html.addClass("flash-enabled")):$html.addClass("no-flash")}catch(a){void 0!=navigator.mimeTypes["application/x-shockwave-flash"]?(this.isFlash=!0,$html.addClass("flash-enabled")):$html.addClass("no-flash")}this.isTouch&&this.isIOS&&(a(document).on("touchstart touchmove touchend",a.proxy(this.handleIOSTouch,this)),a(window).on("scroll",a.proxy(this.handleIOSScroll,this)))},init:function(){this.isTouch?a(document.documentElement).addClass("touch-enabled"):this.isMsTouch?a(document.documentElement).addClass("ms-touch"):a(document.documentElement).addClass("no-touch"),this.isTouch?a(window).on("orientationchange",a.proxy(this,"handleOrientationChange")):a(window).on("resize",function(a){gNews.Common.resizeTimeout&&clearTimeout(gNews.Common.resizeTimeout),gNews.Common.resizeTimeout=window.setTimeout(function(){gNews.Common.handleResize()},200)})},handleResize:function(a){for(var b in this.resizeCallbacks){var c=this.resizeCallbacks[b].node,d=this.resizeCallbacks[b].callback;c.trigger(d)}},registerResizeCallback:function(a,b){for(var c in this.resizeCallbacks)if(this.resizeCallbacks[c].node==a&&this.resizeCallbacks[c].callback==b)return;var d={};d.node=a,d.callback=b,this.resizeCallbacks.push(d)},removeResizeCallback:function(a,b){for(var c in this.resizeCallbacks)this.resizeCallbacks[c].node.get(0)==a.get(0)&&this.resizeCallbacks[c].callback==b&&this.resizeCallbacks.splice(c,1)},handleOrientationChange:function(a){this.handleResize(a)},isScrolling:function(){return this.status.isScrolling},handleIOSTouch:function(a){switch(this.setPosition(a.type),a.type){case"touchstart":this.status.isTouched=!0,this.status.isScrolling=!1;break;case"touchmove":this.status.isScrolling=0!=this.scrollPos.delta.left||0!=this.scrollPos.delta.top;break;case"touchend":this.status.isScrolling=0!=this.scrollPos.delta.left||0!=this.scrollPos.delta.top,this.status.isTouched=!1}},handleIOSScroll:function(a){if(this.status.isScrolling){this.setPosition(a.type),this.status.isTouched=!1,this.status.isScrolling=!1;for(var b in this.scrollCallbacks){var c=this.scrollCallbacks[b].node,d=this.scrollCallbacks[b].callback;c.trigger(d)}}},setPosition:function(a){switch(this.scrollPos.current.left=window.pageXOffset,this.scrollPos.current.top=window.pageYOffset,a){case"touchstart":this.scrollPos.orig={left:window.pageXOffset,top:window.pageYOffset},this.scrollPos.delta={left:0,top:0};break;default:this.scrollPos.delta.left=this.scrollPos.orig.left-this.scrollPos.current.left,this.scrollPos.delta.top=this.scrollPos.orig.top-this.scrollPos.current.top}},registerScrollCallback:function(a,b){for(var c in this.scrollCallbacks)if(this.scrollCallbacks[c].node==a&&this.scrollCallbacks[c].callback==b)return;var d={};d.node=a,d.callback=b,this.scrollCallbacks.push(d)},removeScrollCallback:function(a,b){for(var c in this.scrollCallbacks)this.scrollCallbacks[c].node==a&&this.scrollCallbacks[c].callback==b&&this.scrollCallbacks.splice(c,1)},getIEVersion:function(){var a=-1;if(this.isIE){var b=navigator.userAgent,c=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=c.exec(b)&&(a=parseFloat(RegExp.$1))}return a},canPlayMp4:function(){var a=!1,b=document.createElement("video");return b.canPlayType&&b.canPlayType("video/mp4").replace(/no/,"")&&(a=!0),a},iFrameAutoHeight:function(a){a.style.height=a.contentWindow.document.body.scrollHeight+"px"},EOF:null}}(),gNews.Common.preInit(),gNews.Common.EmbedResizer=function(){function a(){if(!e){var a=$("html body");a.on("RecentPostsResizeEvent",function(){b()}),gNews.Common.registerResizeCallback(a,"RecentPostsResizeEvent"),e=!0}}function b(){for(var a=0;a-1?a(this).css("display",""):a(this).css("display","none")}),b.trigger("gnca-auto-search-complete"))}var c=a("input.gnca-auto-search-box-wide"),d=c.next(".gnca-auto-search-box-wide-button");c.focus(function(){a(this).val()===a(this).attr("data-watermark")&&(a(this).val(""),a(this).addClass("focused"))}).blur(function(){""===a(this).val()&&(a(this).val(a(this).attr("data-watermark")),a(this).removeClass("focused"))}).on("keyup",function(a){13===a.keyCode&&b(c)}),d.on("click",function(){b(c)})});; !function(a){var b="gnca_socialShare",c="data-socialshare",d=!1,e={},f={},g={init:function(){d.length<1||d.each(function(a,b){g._create(a,b)})},_create:function(b,d){var f=a(d);if(!f.attr(c+"-init")){var h=f.attr(c).split(","),i=f.attr(c+"-more")?f.attr(c+"-more").split(","):[];if(!(h.length<1)){if(f.attr(c+"-url")&&void 0!==f.attr(c+"-url")||f.attr(c+"-url",document.URL),!f.attr(c+"-title")||void 0===f.attr(c+"-title")){var j=a('meta[property="og:title"]');j.length>0&&j.attr("content")?f.attr(c+"-title",j.attr("content")):f.attr(c+"-title",document.title)}var k=encodeURIComponent(f.attr(c+"-url")),l=f.attr(c+"-title");g._setId(f,b),e[k]||(e[k]={});var m=a("