function showBreaking(){wrapper.addClass("opened"),wrapper.animate({right:"0px"},300),dvNews.animate({right:"300px"},300)}function hideBreaking(){wrapper.removeClass("opened"),dvNews.animate({right:"-300px"},300),wrapper.animate({right:"0px"},300)}(function(n){function h(n,r,u){var c=n[0],s=/er/.test(u)?_indeterminate:/bl/.test(u)?i:t,h=u==_update?{checked:c[t],disabled:c[i],indeterminate:"true"==n.attr(_indeterminate)||"false"==n.attr(_determinate)}:c[s],l;if(/^(ch|di|in)/.test(u)&&!h)o(n,s);else if(/^(un|en|de)/.test(u)&&h)f(n,s);else if(u==_update)for(l in h)h[l]?o(n,l,!0):f(n,l,!0);else r&&"toggle"!=u||(r||n[_callback]("ifClicked"),h?c[_type]!==e&&f(n,s):o(n,s))}function o(o,h,l){var y=o[0],p=o.parent(),w=h==t,b=h==_indeterminate,nt=h==i,d=b?_determinate:w?v:"enabled",tt=r(o,d+s(y[_type])),it=r(o,h+s(y[_type]));if(!0!==y[h]){if(!l&&h==t&&y[_type]==e&&y.name){var g=o.closest("form"),k='input[name="'+y.name+'"]',k=g.length?g.find(k):n(k);k.each(function(){this!==y&&n(this).data(u)&&f(n(this),h)})}b?(y[h]=!0,y[t]&&f(o,t,"force")):(l||(y[h]=!0),w&&y[_indeterminate]&&f(o,_indeterminate,!1)),a(o,w,h,l)}y[i]&&r(o,_cursor,!0)&&p.find("."+c).css(_cursor,"default"),p[_add](it||r(o,h)||""),p.attr("role")&&!b&&p.attr("aria-"+(nt?i:t),"true"),p[_remove](tt||r(o,d)||"")}function f(n,u,f){var e=n[0],o=n.parent(),y=u==t,h=u==_indeterminate,p=u==i,l=h?_determinate:y?v:"enabled",w=r(n,l+s(e[_type])),b=r(n,u+s(e[_type]));!1!==e[u]&&((h||!f||"force"==f)&&(e[u]=!1),a(n,y,l,f)),!e[i]&&r(n,_cursor,!0)&&o.find("."+c).css(_cursor,"pointer"),o[_remove](b||r(n,u)||""),o.attr("role")&&!h&&o.attr("aria-"+(p?i:t),"false"),o[_add](w||r(n,l)||"")}function l(t,i){t.data(u)&&(t.parent().html(t.attr("style",t.data(u).s||"")),i&&t[_callback](i),t.off(".i").unwrap(),n(_label+'[for="'+t[0].id+'"]').add(t.closest(_label)).off(".i"))}function r(n,t,i){if(n.data(u))return n.data(u).o[t+(i?"":"Class")]}function s(n){return n.charAt(0).toUpperCase()+n.slice(1)}function a(n,t,i,r){r||(t&&n[_callback]("ifToggled"),n[_callback]("ifChanged")[_callback]("if"+s(i)))}var u="iCheck",c=u+"-helper",e="radio",t="checked",v="un"+t,i="disabled";_determinate="determinate",_indeterminate="in"+_determinate,_update="update",_type="type",_click="click",_touch="touchbegin.i touchend.i",_add="addClass",_remove="removeClass",_callback="trigger",_label="label",_cursor="cursor",_mobile=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent),n.fn[u]=function(r,s){var w='input[type="checkbox"], input[type="'+e+'"]',v=n(),d=function(t){t.each(function(){var t=n(this);v=t.is(w)?v.add(t):v.add(t.find(w))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(r))return r=r.toLowerCase(),d(this),v.each(function(){var t=n(this);"destroy"==r?l(t,"ifDestroyed"):h(t,!0,r),n.isFunction(s)&&s()});if("object"!=typeof r&&r)return this;var a=n.extend({checkedClass:t,disabledClass:i,indeterminateClass:_indeterminate,labelHover:!0},r),b=a.handle,p=a.hoverClass||"hover",tt=a.focusClass||"focus",g=a.activeClass||"active",nt=!!a.labelHover,k=a.labelHoverClass||"hover",y=(""+a.increaseArea).replace("%","")|0;return("checkbox"==b||b==e)&&(w='input[type="'+b+'"]'),-50>y&&(y=-50),d(this),v.each(function(){var s=n(this);l(s);var v=this,d=v.id,it=-y+"%",w=100+2*y+"%",w={position:"absolute",top:it,left:it,display:"block",width:w,height:w,margin:0,padding:0,background:"#fff",border:0,opacity:0},it=_mobile?{position:"absolute",visibility:"hidden"}:y?w:{position:"absolute",opacity:0},ft="checkbox"==v[_type]?a.checkboxClass||"icheckbox":a.radioClass||"i"+e,b=n(_label+'[for="'+d+'"]').add(s.closest(_label)),rt=!!a.aria,ut=u+"-"+Math.random().toString(36).substr(2,6),r='
")[_callback]("ifCreated").parent().append(a.insert),w=n('').css(w).appendTo(r),s.data(u,{o:a,s:s.attr("style")}).css(it),a.inheritClass&&r[_add](v.className||""),a.inheritID&&d&&r.attr("id",u+"-"+d),"static"==r.css("position")&&r.css("position","relative"),h(s,!0,_update),b.length)b.on(_click+".i mouseover.i mouseout.i "+_touch,function(t){var u=t[_type],f=n(this);if(!v[i]){if(u==_click){if(n(t.target).is("a"))return;h(s,!1,!0)}else nt&&(/ut|nd/.test(u)?(r[_remove](p),f[_remove](k)):(r[_add](p),f[_add](k)));if(_mobile)t.stopPropagation();else return!1}});s.on(_click+".i focus.i blur.i keyup.i keydown.i keypress.i",function(n){var i=n[_type];if(n=n.keyCode,i==_click)return!1;if("keydown"==i&&32==n)return v[_type]==e&&v[t]||(v[t]?f(s,t):o(s,t)),!1;"keyup"==i&&v[_type]==e?v[t]||o(s,t):/us|ur/.test(i)&&r["blur"==i?_remove:_add](tt)});w.on(_click+" mousedown mouseup mouseover mouseout "+_touch,function(n){var t=n[_type],u=/wn|up/.test(t)?g:p;if(!v[i])if(t==_click?h(s,!1,!0):(/wn|er|in/.test(t)?r[_add](u):r[_remove](u+" "+g),b.length&&nt&&u==p&&b[/ut|nd/.test(t)?_remove:_add](k)),_mobile)n.stopPropagation();else return!1})})}})(window.jQuery||window.Zepto),function(n){function u(){var r=n(".breaking-wrapper");r.hasClass("opened")&&(openedNews=!1,hideBreaking()),t.toggleClass(i)}function f(){t.removeClass(i)}var e=n(".pushy"),t=n("body"),h=n("#container"),c=n(".push"),i="pushy-open-right",o=n(".site-overlay"),s=n(".menu-btn, .pushy-link"),l=e.width()+"px",r;if(n(document).keyup(function(n){n.keyCode==27&&t.hasClass(i)&&r&&f()}),r=function(){var n=document.createElement("p"),t=!1,r={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"},i;if(document.body!==null){document.body.insertBefore(n,null);for(i in r)n.style[i]!==undefined&&(n.style[i]="translate3d(1px,1px,1px)",t=window.getComputedStyle(n).getPropertyValue(r[i]));return document.body.removeChild(n),t!==undefined&&t.length>0&&t!=="none"}return!1}(),r){s.on("click",function(){u()});o.on("click",function(){u()})}}(jQuery);$(".quick-search").on("focus",function(){var n=$(this);$(n).animate({width:"90%"},500),$(".dvPanelDate").hide()}).on("focusout",function(){var n=$(this);$(n).animate({width:"35px"},500),$(".dvPanelDate").show()});$(".quick-search").keypress(function(n){if(n.which==13){var t=$(this).val();t!=""&&(window.location.href="/tim-kiem/q="+encodeURIComponent(t)),n.preventDefault()}});var openedNews=!1,wrapper=$(".breaking-wrapper"),dvNews=$(".dvNews");$(".iconBreakNews").click(function(){var n=$("body").hasClass("pushy-open-right");n&&$("body").toggleClass("pushy-open-right"),openedNews?(hideBreaking(),openedNews=!1):(showBreaking(),openedNews=!0)}),$(".dvNews-overlay").click(function(){openedNews?(hideBreaking(),openedNews=!1):(showBreaking(),openedNews=!0)})