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){n.fn.UItoTop=function(t){var f={text:"To Top",min:200,inDelay:600,outDelay:400,containerID:"toTop",containerHoverID:"toTopHover",scrollSpeed:1200,easingType:"linear"},i=n.extend(f,t),r="#"+i.containerID,u="#"+i.containerHoverID;n("body").append(''+i.text+"<\/a>"),n(r).hide().on("click.UItoTop",function(){return n("html, body").animate({scrollTop:0},i.scrollSpeed,i.easingType),n("#"+i.containerHoverID,this).stop().animate({opacity:0},i.inDelay,i.easingType),!1}).prepend('<\/span>').hover(function(){n(u,this).stop().animate({opacity:1},600,"linear")},function(){n(u,this).stop().animate({opacity:0},700,"linear")}),n(window).scroll(function(){var t=n(window).scrollTop();typeof document.body.style.maxHeight=="undefined"&&n(r).css({position:"absolute",top:t+n(window).height()-50}),t>i.min?n(r).fadeIn(i.inDelay):n(r).fadeOut(i.Outdelay)})}})(jQuery),jQuery.extend(jQuery.easing,{easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e0&&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)})