// JavaScript Document
var menuCurrentAlias = 'trang-chu';
/* Common function */
function randomNumber(n) { if (!n || n <= 0) n = 1; return Math.floor(Math.random() * n) }; function getRND() { var d = new Date(); randomstr = new String(Math.random()); randomstr = randomstr.substring(1, 8); var a = d.getYear() + 1900; var b = d.getMonth() + 1; var c = d.getDay() + 1; var e = d.getHours(); var f = d.getMinutes(); var g = d.getSeconds(); return '' + a + b + c + e + f + g + randomstr } function randomOrder(arr) { if (!arr || !arr.length || arr.leng <= 0) return []; var newArr = []; var l = arr.length; while (l > 0) { var x = randomNumber(l); newArr.push(arr[x]); l--; arr.splice(x, 1) } return newArr }
function vnnLoadFile(filename, filetype, parent, fn) { if (!filename) return; if (filetype == 'js') { var fileref = document.createElement('script'); fileref.setAttribute('type', 'text/javascript'); fileref.setAttribute('src', filename) } else if (filetype == 'css') { var fileref = document.createElement('link'); fileref.setAttribute('rel', 'stylesheet'); fileref.setAttribute('type', 'text/css'); fileref.setAttribute('href', filename) }; if (typeof fileref != 'undefined') { if (!parent) document.getElementsByTagName('head')[0].appendChild(fileref); else parent.appendChild(fileref); if (fn && typeof (fn) == 'function') { if ($.browser.msie) { $(fileref).ready(fn) } else { fileref.onload = function () { fn(); } } } } }
function checkemail(a) { var b; var c = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if (c.test(a)) b = true; else { b = false } return (b) } function checkphone(a) { var b = /^[0-9]{7,15}$/; return b.test(a); return true }
/*--------------------------------------------------------------------------*/
$(document).ready(function () {
    waterMarkSearchTextBox(); theodongsukienInitial(); initialTopTab(); initialStaticTab(); sliderAlbumInitial(); initialJunzeToolTip(); removeBorderOfLastSubMenu(); initialFooterLink(); sliderTopNewSlider();sliderWebLink();

    if (window.location.href.indexOf('ui=standard') > -1) $.cookie('ui', 'standard', { expires: 1 }); //expire 1 day
    if ($.cookie('ui') == 'standard') {
        $('#mobile-version a').attr('href', 'http://m.vietnamnet.vn' + window.location.pathname)
        $('#mobile-version').show();
    }
    $('#sub_menu2_home').click(function () { $.setHomepage('http://vietnamnet.vn'); });
    $('#sub_menu2_home_top').click(function () { $.setHomepage('http://vietnamnet.vn'); });
        
});
/*--------------------------------------------------------------------------*/
/*For remove index.html in link*/
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('2 5(){$(\'a\').4(2(){8 0=$(3).1(\'0\');$(3).1(\'0\',0.6(\'7.9\',\'\'))})}',11,11,'href|attr|function|this|each|removeIndexHTML|replace|index|var|html|'.split('|'),0,{}))
/*--------------------------------------------------------------------------*/
/*For initialViewbyDate*/
function initialFooterLink() { $("#buttonLinkToaSoan").colorbox({ iframe: true, innerWidth: 753, innerHeight: 431 }); $('#setVietnamnetHome').click(function () { $.setHomepage('http://vietnamnet.vn') }) }
/*--------------------------------------------------------------------------*/
/*For initialViewbyDate*/
function removeBorderOfLastSubMenu() { $(".subcateListMenu li").each(function () { if (jQuery.trim($(this).html()) == "") { $(this).removeClass("last").addClass("last"); $(this).prev().removeClass("last").addClass("last") } }) }
/*--------------------------------------------------------------------------*/
/*For initialViewbyDate*/
function initialViewbyDate(b) { var d = new Date(); var c = d.getDate(); var e = d.getMonth(); var f = d.getFullYear(); for (i = 1; i <= 31; i++) { $('#viewByDay').append($('<option value="' + i + '">' + i + '</option>')) } for (i = 1; i <= 12; i++) { $('#viewByMonth').append($('<option value="' + i + '">' + i + '</option>')) } for (i = f; i >= f - 10; i--) { $('#viewByYear').append($('<option value="' + i + '">' + i + '</option>')) } $('#viewByDay option[value="' + c + '"]').attr("selected", "selected"); $('#viewByMonth option[value="' + (e + 1) + '"]').attr("selected", "selected"); $('#viewByYear option[value="' + f + '"]').attr("selected", "selected"); $('#viewSubmit').click(function () { var a = b; a = a.replace("{day}", $('#viewByDay').val()); a = a.replace("{month}", $('#viewByMonth').val()); a = a.replace("{year}", $('#viewByYear').val()); location.href = a }) }
/*--------------------------------------------------------------------------*/
/*For formCommentInit*/
function formCommentInit() { $(".commentForm #id_formreset").click(function () { formCommentReset() }); $("#commentBoxShowButton").click(function () { $(".commentBoxCate").show(); $(this).hide(); return false }); $("#commentBoxHiddenButton").click(function () { $(".commentBoxCate").hide(); $("#commentBoxShowButton").show(); return false }); $(".commentForm #id_fullname").focus(function () { if (jQuery.trim($(this).attr("value")) == "Họ và tên *") { $(this).attr("value", "") } }); $(".commentForm #id_fullname").blur(function () { if (jQuery.trim($(this).attr("value")) == "") { $(this).attr("value", "Họ và tên *") } }); $(".commentForm #id_email").focus(function () { if (jQuery.trim($(this).attr("value")) == "Email") { $(this).attr("value", "") } }); $(".commentForm #id_email").blur(function () { if (jQuery.trim($(this).attr("value")) == "") { $(this).attr("value", "Email") } }); $(".commentForm #id_subject").focus(function () { if (jQuery.trim($(this).attr("value")) == "Tiêu đề") { $(this).attr("value", "") } }); $(".commentForm #id_subject").blur(function () { if (jQuery.trim($(this).attr("value")) == "") { $(this).attr("value", "Tiêu đề") } }); $(".commentForm #id_tel").focus(function () { if (jQuery.trim($(this).attr("value")) == "Điện thoại") { $(this).attr("value", "") } }); $(".commentForm #id_tel").blur(function () { if (jQuery.trim($(this).attr("value")) == "") { $(this).attr("value", "Điện thoại") } }); $(".commentForm #id_content").focus(function () { if (jQuery.trim($(this).attr("value")) == "Nội dung") { $(this).attr("value", "") } }); $(".commentForm #id_content").blur(function () { if (jQuery.trim($(this).attr("value")) == "") { $(this).attr("value", "Nội dung") } }) }
/*--------------------------------------------------------------------------*/
/*For resizeArticleImage*/
function resizeArticleRemoveInnerStyle() { if ($(".articleDetailBox").length <= 0) { return false } $(".articleDetailBox p").removeAttr("style"); $(".articleDetailBox div").removeAttr("style"); $(".articleDetailBox span").removeAttr("style") }
eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('5 6(){7($(".1").8<=0){9 a}$(".1 .2 b").3("4");$(".1 .2 c").3("4");$(".1 .2 d").3("4")}', 14, 14, '|articlePrintBox|articlePrintBox_c|removeAttr|style|function|resizePrintArticleRemoveInnerStyle|if|length|return|false|p|div|span'.split('|'), 0, {}))
function resizeArticleImageSigle(){var author="Nguyen Nhu Tuan * tuanquynh.info";}function resizePrintArticleImageSigle(){var author="Nguyen Nhu Tuan * tuanquynh.info";}


eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('6 r(b){s($(".5").t<=0){9 u}2 c="<g>";$(".5 v").h(6(){2 a=$(7).i(\'w\');c+="<j>";c+="<k><![3["+a+"]]></k>";c+="<l><![3["+a+"]]></l>";c+="<4><![3["+$(7).i(\'4\')+"]]></4>";c+="</j>"});c+="</g>";2 d="x y z * A.B";2 e="";$(".5 p").h(6(){e+="<p>"+$(7).m()+"</p>"});2 f="<n>";f+="<4><![3["+$(".5 C").m()+"]]></4>";f+="<o><![3["+e+"]]></o>";f+="</n>";9\'<?D E="1.0" F="G-8"?><q>\'+f+c+\'</q>\'}', 43, 43, '||var|CDATA|title|articleDetailBox|function|this||return|||||||photos|each|attr|photo|thumbnails|link|html|photosContent|content||data|getImageData|if|length|false|img|src|Nguyen|Nhu|Tuan|tuanquynh|info|h1|xml|version|encoding|utf'.split('|'), 0, {}))
/*--------------------------------------------------------------------------*/
/*For junzeToolTip*/
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('2 f(){g($(".3").h<=0){i j}4 b="k l m * n.o";$(".3").q(2(e){$(".1").5({\'r\':(e.s+6),\'t\':(e.u+6)});4 a="<p><b>"+$(7).8("v")+"</b></p>";a+="<p>"+$(7).8("w")+"</p>";$(".9").c(a);$(".1").x()}).y(2(e){$(".1").z();$(".1").5({A:-d,B:-d});$(".9").c("")})}', 38, 38, '|junzeToolTipBoard|function|junzeTooltip|var|css|10|this|attr|junzeToolTipBoard_c_c_text|||html|1000||initialJunzeToolTip|if|length|return|false|Nguyen|Nhu|Tuan|tuanquynh|info||mouseover|left|pageX|top|pageY|rel|des|show|mouseout|hide|Left|Top'.split('|'), 0, {}))
/*--------------------------------------------------------------------------*/
/*For tab*/
eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('1 5(){6($(".2").7<=0){8 9}$(".2 b c a").d(1(){$(3).e(1(){f a=$(3).g(\'h\');4(a.i(\'#\',\'\'))}).j(1(){})});4(\'k\')}', 21, 21, '|function|hostNewsTabHeader|this|setFocusTopTab|initialTopTab|if|length|return|false||ul|li|each|mouseover|var|attr|href|replace|mouseout|tab1'.split('|'), 0, {}))
eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('5 6(a){$(".0 1 2 a").7("3");$(".4-8").9();$(".0 1 2 a[b=#"+a+"]").c("3");$("#4-"+a).d()}', 14, 14, 'hostNewsTabHeader|ul|li|current|hostNewsTabContent|function|setFocusTopTab|removeClass|item|hide||href|addClass|show'.split('|'), 0, {}))
/*--------------------------------------------------------------------------*/
/*For tab*/
eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('1 6(){7($(".2-3").8<=0){9 b}$(".2-3 .c d e a").f(1(){$(4).g(1(){h a=$(4).i(\'j\');5(a.k(\'#\',\'\'))}).l(1(){})});5(\'m\')}', 23, 23, '|function|box|statics|this|setFocusStaticTab|initialStaticTab|if|length|return||false|header|ul|li|each|mouseover|var|attr|href|replace|mouseout|tab1'.split('|'), 0, {}))
eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('6 7(a){$(".0-1 .2 3 4 a").8("5");$(".0-1-9").b();$(".0-1 .2 3 4 a[c=#"+a+"]").d("5");$("#e-"+a).f()}', 16, 16, 'box|statics|header|ul|li|current|function|setFocusStaticTab|removeClass|item||hide|href|addClass|boxStaticsItem|show'.split('|'), 0, {}))
/*--------------------------------------------------------------------------*/
/*For menuTop*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 J(){9($(".6").I<=0){r h}k();$(".6 8").j(3(){b 1=$(c).i(\'1\');$(c).H(3(){E(1)}).G(3(){})});$(\'.L\').N(3(){k()});e(M)}3 e(l,2){9(2=="q-s"){$(".7[1="+2+"]").o({m:0});O()}d{b B=y-z;b C=y-z-l;b n=$(".7[1="+2+"]").K();9(C>n){$(".7[1="+2+"]").o({m:l})}d{$(".7[1="+2+"]").o({m:(B-n)})}}}3 E(2){$(".6 8").A("f");$(".7").u();$(".6 8[1="+2+"]").v("f");e($(".6 8[1="+2+"]").w().t,2);$(".7[1="+2+"]").x()}3 k(){F(4.5);D();$(".6 8").A("f");$(".7").u();$(".6 8[1="+4.5+"]").v("f");e($(".6 8[1="+4.5+"]").w().t,4.5);$(".7[1="+4.5+"]").x()}3 F(2){b V="P X W * U.T";$(".6 8").j(3(){b g=$(c).i(\'1\');9(g==2){4.5=2}d{$(".7[1="+g+"] a").j(3(){9($(c).i(\'1\')==2){4.5=g}})}})}3 D(){9(Q.R(4.5)==""){4.5="q-s";r h}d{b p=S;$(".6 8").j(3(){b 1=$(c).i(\'1\');9(4.5==1){p=h}});9(p){4.5="q-s";r h}}}',60,60,'|alias|alias_test|function|window|menuCurrentAlias|menuTop|menuTopSub|li|if||var|this|else|setPositionSubMenu|current|alias_parent|false|attr|each|setCurrentFocusMenuTop||marginLeft|objectwidth|css|flagCheck|trang|return|chu|left|hide|addClass|position|show|1000|170|removeClass|maxWidth|maxSpace|checkAliasCurrent|setFocusMenuTop|findParentAliasMenuTop|mouseout|mouseover|length|initialMenuTop|width|menuTopBox|10|mouseleave|theodongsukienInitial|Nguyen|jQuery|trim|true|info|tuanquynh|author|Tuan|Nhu'.split('|'),0,{}))
/*--------------------------------------------------------------------------*/
/*For theo doi su kien*/
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('8 9(){a(".b").7({6:"3",0:{2:1,4:5,c:d},k:{0:1,l:j,i:"e",f:"g"},h:m})}',23,23,'items||visible|right|width|350|direction|carouFredSel|function|theodongsukienInitial|jQuery|theodongsukienList|height|22|crossfade|easing|linear|auto|fx|true|scroll|mousewheel|5000'.split('|'),0,{}))
/*--------------------------------------------------------------------------*/
/*For Slider News Top*/
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('a b(){c(".9").d({0:{e:5,8:3,7:6},4:{0:5,f:o},p:q,m:{1:"#l",2:"h"},g:{1:"#i",2:"j"},k:".n"})}',27,27,'items|button|key|134|scroll||115|height|width|sliderNewsTopList|function|sliderNewsTopInitial|jQuery|carouFredSel|visible|mousewheel|next|left|sliderNewsTopButtonRight|right|pagination|sliderNewsTopButtonLeft|prev|sliderNewsTopPagination|true|auto|false'.split('|'),0,{}))
/*--------------------------------------------------------------------------*/
/*For Slider Album*/
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('7 8(){9("#6").5({0:{2:1,3:4,a:b},i:{0:1,g:f},c:d,e:"#h"})}',19,19,'items||visible|width|191|carouFredSel|albumBoxList|function|sliderAlbumInitial|jQuery|height|160|auto|6000|pagination|true|mousewheel|albumBoxPagination|scroll'.split('|'),0,{}))
/*--------------------------------------------------------------------------*/
/*For Slider Web Link*/
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('l a(){b(".c").9({0:{d:1,7:4,5:6},8:{0:1,e:m},n:k,j:{2:"#f",3:"g"},h:{2:"#i",3:"o"}})}',25,25,'items||button|key|188|height|28|width|scroll|carouFredSel|sliderWebLink|jQuery|webLinkContentBoxList|visible|mousewheel|webLinkButtonLeft|left|next|webLinkButtonRight|prev|5000|function|true|auto|right'.split('|'),0,{}))
/*--------------------------------------------------------------------------*/
function waterMarkSearchTextBox() { $(".searchBox #searchKeyword").focus(function () { if (jQuery.trim($(this).attr("value")) == "Từ khóa...") { $(this).attr("value", "") } }); $(".searchBox #searchKeyword").blur(function () { if (jQuery.trim($(this).attr("value")) == "") { $(this).attr("value", "Từ khóa...") } }) }
/*For Floating banner*/
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('$(i).F(j(){k()});$(n).G().H(I).J(j(){k()});j k(){0 a=6($(".l").1("5"));0 b=6($(i).o());0 c=6($(i).5());0 d=6($(n).o());p((q.r($("#7").s())=="")&&(q.r($("#8").s())=="")){$("#3").1("t",-9);$("#4").1("u",-9);$("#3").v();$("#4").v()}w{0 e="K L M. E: N@O.P. Q:R.S";0 f=c-$(\'#7 x:h,#7 y:h\').5();0 g=c-$(\'#8 x:h,#8 y:h\').5();p(b>=m){$("#3").1("5",a);$("#4").1("5",a);$("#3").1("t",(d-m)/2);$("#4").1("u",(d-m)/2);$("#3").z();$("#4").z();$(\'#7\').A({l:\'3\',B:9,C:f});$(\'#8\').A({l:\'4\',B:9,C:g})}w{$("#3").D();$("#4").D()}}}', 55, 55, 'var|css||adv_floating_left|adv_floating_right|height|parseInt|ad_floating_l|ad_floating_r|1000||||||||first|window|function|initADVfloating|container|1258|document|width|if|jQuery|trim|html|left|right|remove|else|embed|img|show|scrollFollow|speed|offset|hide||resize|ready|delay|5000|queue|Nguyen|Nhu|Tuan|junzennt|gmail|com|W|tuanquynh|info'.split('|'), 0, {}))
// Share social network
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('4 g(){1 u=5.6;1 t=7.3;1 a=$(\'h-3\').i;8.9("c://j.k.d/e.l?u="+2(u)+"&t="+2(a))}4 m(){1 a=5.6;1 b=7.3;8.9("c://n.d/o?f="+2(a))}4 p(){u=5.6;t=7.3;8.9(\'c://q.r.s.v/e?u=\'+2(u)+\'&t=\'+2(t),\'w\',\'x=0,f=0,y=z,A=B\');C D}', 40, 40, '|var|encodeURIComponent|title|function|location|href|document|window|open|||http|com|share|status|share_facebook|article|innerHTML|www|facebook|php|share_twitter|twitter|home|share_zingme|link|apps|zing|||vn|ZingMe|toolbar|width|626|height|436|return|false'.split('|'), 0, {}))
/* search */
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('7 j(){2 a=\'\';3($(\'8#9\').1()!=\'\'&&$(\'8#9\').1()!=\'kừ lóa...\'){a=$(\'8#9\').1()};3(a!=4&&a!=\'\'){6.m="/n/o-p/q.r?5="+a}};7 x(a,b){2 e=(6.s)?6.s:a;2 c=e.y;3(c==z){3((b.t!=\'\'&&b.t!=\'kừ lóa...\')){j()}u{v()}3(e.w)e.w();u e.A=B}};7 v(){2 a=\'\';2 b=\'\';2 c=\'\';2 d=$(\'#C\');2 e=D.E[0];3($(\' .5\',d)!=4&&$(\' .5\',d)!=\'\')a=$(\' .5\',d).1();3($(\' .f\',d)!=4&&$(\' .f\',d).1()!=\'\')c=$(\' .f\',d).1();3($(\' .g\',d)!=4&&$(\' .h\',d)!=4&&$(\' .i\',d)!=4&&$(\' .g\',d).1()!=\'\'&&$(\' .h\',d).1()!=\'\'&&$(\' .i\',d).1()!=\'\')b=""+$(\' .i\',d).1()+$(\' .h\',d).1()+$(\' .g\',d).1();6.m="/n/o-p/q.r?5="+a+"&d="+b+"&F="+c}', 42, 42, '|val|var|if|null|keyword|window|function|input|searchKeyword||||||categories|dday|dmonth|dyear|search|T|kh|location|vn|tim|kiem|index|html|event|value|else|search2|preventDefault|searchkey|keyCode|13|returnValue|false|searchForm|document|forms|cat'.split('|'), 0, {}))

/* SonDN 2011/08/18 - View by day for cate */
function searchByCate() { if ($('#listByDate')) { var a = $('#listByDate'); if ($(' .dDay', a).val() && $(' .dMonth', a).val() && $(' .dYear', a).val()) { var b = location.pathname; if (b.lastIndexOf('/date') > 0) { b = b.substr(0, b.lastIndexOf('/date')) + '/date' + $(' .dYear', a).val() + $(' .dMonth', a).val() + $(' .dDay', a).val() + '/index.html' } else { if (b.lastIndexOf('/trang') > 0) { b = b.substr(0, b.lastIndexOf('/trang')) + '/' + b.substr(b.indexOf('/trang') + 1).substring(b.substr(b.indexOf('/trang') + 1).indexOf('/') + 1); b = b.substr(0, b.lastIndexOf('/')) + '/date' + $(' .dYear', a).val() + $(' .dMonth', a).val() + $(' .dDay', a).val() + '/index.html' } else { b = b.substr(0, b.lastIndexOf('/')) + '/date' + $(' .dYear', a).val() + $(' .dMonth', a).val() + $(' .dDay', a).val() + '/index.html' } }; window.location = b } } }; function searchByCate_fillCombo() { if ($('#listByDate')) { var a = $('#listByDate'); if ($(' .dDay', a) && $(' .dMonth', a) && $(' .dYear', a) && $(' .ViewListByDate', a)) { for (i = 1; i <= 31; i++) { r = "" + i; $(' .dDay', a).append($("<option></option>").text(r.length < 2 ? "0" + r : r)) }; for (i = 1; i <= 12; i++) { r = "" + i; $(' .dMonth', a).append($("<option></option>").text(r.length < 2 ? "0" + r : r)) }; for (i = 2010; i <= 2012; i++) { r = "" + i; $(' .dYear', a).append($("<option></option>").text(r.length < 2 ? "0" + r : r)) }; var b = new Date(); b.setDate(b.getDate() - 1); $(' .dDay', a).val(("" + b.getDate()).length < 2 ? "0" + ("" + b.getDate()) : ("" + b.getDate())); $(' .dMonth', a).val(("" + (b.getMonth() + 1)).length < 2 ? ("0" + (b.getMonth() + 1)) : ("" + (b.getMonth() + 1))); $(' .dYear', a).val(("" + b.getFullYear()).length < 2 ? "0" + ("" + b.getFullYear()) : ("" + b.getFullYear())); var c = location.pathname; if (c.indexOf('/date') > 0) { $(' .dDay', a).val(c.substr(c.lastIndexOf('/date') + 11, 2)); $(' .dMonth', a).val(c.substr(c.lastIndexOf('/date') + 9, 2)); $(' .dYear', a).val(c.substr(c.lastIndexOf('/date') + 5, 4)) }; $(' .ViewListByDate', a).click(searchByCate) } } }; VietNamNet.Framework.JS.Initialization.add(searchByCate_fillCombo);

///************PhongDH added this section on 2011/08/11 15h15PM***********************************
///Perpose: It's used for exchange rate & gold price box: \UserControls\Home\PanelGoldPrice.ascx
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('f V(){l{j a="z://A.C.D.E/X/M.s?u=?";$.v(a,w)}g(e){q(\'e: \'+e)}}f w(b){l{j c="<h d=\'G%\' K=\'0\' N=\'0\' 2=\'t\'><o>";$.Y(b.9.x,f(i,a){c=c+"<8>";c=c+"<1 4=\'6\' 5=\'3\' 2=\'7\'>";c=c+b.9.x[i]+"</1>";c=c+"<1 4=\'6\' 5=\'3\' 2=\'7\'>";c=c+b.9.H[i]+"</1>";c=c+"<1 4=\'6\' 5=\'3\' 2=\'7\'>";c=c+b.9.S[i]+"</1>";c=c+"<1 4=\'6\' 5=\'3\' 2=\'7\'>";c=c+b.9.J[i]+"</1>";c=c+"</8>"});c=c+"</o></h>";$(c).m(\'.L-k\')}g(e){q(\'e: \'+e);$(\'\').m(\'.L-k\')}}f Q(){l{j a="z://A.C.D.E/P/M.s?u=?";$.v(a,O)}g(e){q(\'e: \'+e)}}f O(a){l{j b="<h d=\'G%\' K=\'0\' N=\'0\' 2=\'t\'><o>";b=b+"<8>";b=b+"<1 d=\'U%\' 4=\'6\' 5=\'3\' 2=\'r\'> Rại </1>";b=b+"<1 d=\'I%\' 4=\'6\' 5=\'3\' 2=\'r\'> T </1>";b=b+"<1 d=\'I%\' 4=\'6\' 5=\'3\' 2=\'r\'> Bán </1>";b=b+"</8>";b=b+"<8>";b=b+"<1 4=\'6\' 5=\'3\' 2=\'7\'>";b=b+a.p.W+"</1>";b=b+"<1 4=\'6\' 5=\'3\' 2=\'7\'>";b=b+a.p.H+"</1>";b=b+"<1 4=\'6\' 5=\'3\' 2=\'7\'>";b=b+a.p.J+"</1>";b=b+"</8>";b=b+"</o></h>";$(b).m(\'.F-k\')}g(y){$(y).m(\'.F-k\')}}', 61, 61, '|td|class|center|valign|align|top|gv_text|tr|ExchangeRate||||width||function|catch|table||var|data|try|appendTo||tbody|GoldPrice|alert|gv_title|aspx|tb_giavang|callback|getJSON|showEchangeRate|CurrencyCode|err|http|vas||srv|vietnamnet|vn|vang|100|Buy|30|Sell|cellspacing|ngoaite|default|cellpadding|showGoldPirce|gold|getGoldPrice|Lo|Transfer|Mua|40|getExchangeRate|GoldCode|ex|each'.split('|'), 0, {}))

///Perpose: Add-on for Weather  
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('f.5.9.k=7(){};f.5.9.k.M={A:\'<4 z="q-16{2.l} q-N-13">\'+\'<4 z="q-15"> {2.r}°{e.h} </4>\'+\'<p> O&#R;t &#X;&#D;: {3.v}°{e.h}-{3.s}°{e.h} &#K;&#D; &#L;m: {i.n}% </p>\'+\'</4>\',I:\'/P/Q/19.B\',H:7(a,b){g=C;j(a){o c=g.A;c=c.6(/{2.r}/8,a.2==1?\'\':a.2.r).6(/{e.h}/8,a.e==1?\'\':a.e.h).6(/{2.l}/8,a.2==1?\'\':a.2.l).6(/{i.n}/8,a.i==1?\'\':a.i.n).6(/{3.v}/8,a.3[0]==1?\'\':a.3[0].v).6(/{3.s}/8,a.3[0]==1?\'\':a.3[0].s);b.B(c)}},u:7(c,d){g=C;f.5.9.S.E({T:g.I,U:{w:c},V:7(a){j(a&&a!=\'""\'&&a!=\'1\'){d.W(\'F\');o b=f.5.9.Y.Z(a.10());j(b){g.H(b,d)}}11{d.12(\'F\')}}})}};7 G(){o a=14 f.5.9.k();j($(\'4.x\')!=1){a.u($(\'.y\').J(),$(\'4.x\'));$(\'.y\').18(7(){a.u($(\'.y\').J(),$(\'4.x\'))})}}f.5.9.17.E(G);', 62, 72, '|null|Condition|Forecast|div|Framework|replace|function|gi|JS|||||Units|VietNamNet|_this|Temperature|Atmosphere|if|Weather|Code||Humidity|var||tt|Temp|High||showWeather|Low||weatherdd|location|class|template|html|this|7897|add|hidden|initWeather|bindWeather|service_getPage_url|val|272|7849|prototype|ic|Nhi|ajax|getWeather|7879|AjaxManager|url|data|success|removeClass|273|JSON|decode|trim|else|addClass|1d|new|nhietdo|status|Initialization|change|get'.split('|'), 0, {}))
/* module Survey */
var srvSurvey_posturl = 'http://track.srv.vietnamnet.vn/tracking/t.srv?' + 'sn=survey&dm=' + location.host + '&us=me&vs=1' + '&randId=[RANDOMID]&surveyId=[SURVEYID]&itemId=[ITEMID]'; var srvSurvey_url = "/ajax/Survey/get/g.html"; var tempOptionC = '<div class=\"vote_item\"><label><input type=\"checkbox\" id=\"itemId\" name=\"itemId\" value=\"{SurveyOptionId}\"> {OptionName}</label></div>'; var tempOptionR = "<div class=\"vote_item\"><label><input type=\"radio\" id=\"itemId\" name=\"itemId\" value=\"{SurveyOptionId}\"> {OptionName}</label></div>"; var tempButton = '<a href=\"#\" id=\"LINK_ID\"  onclick=\"LINK_EVENT\" class="action btnViewResult"></a>'; var tempDialog = '<div id="surveyResultBox" class="hidden"><div id=\"dias{SurveyId}\" class=\"diaResult\"></div></div>'; var temp = '<div class=\"vote_most margin-top-5\"> ' + '<div class=\"vote_most_title\">Thăm dò ý kiến</div>' + '<div class=\"vote_most_list\"> ' + '<div class=\"vote_question\"> {Question} </div>' + '<div class=\"vote_most_item options_{SurveyId}\"></div>' + '<div class=\"vote_respost\"><a href="javascript:void(0);" id=\"action_{SurveyId}\" class="action"  > </a></div>' + '</div>' + '</div><img id="cmdPostSurvey" style="display:none" />'; var tempResult = "<div class=\"vote_most\"> " + "<div class=\"vote_most_title\">Kết quả Bình chọn</div>" + " <div class=\"vote_most_list\"> " + "<div class=\"vote_question\"> {Question} </div>" + "<div class=\"vote_most_item survey result_{SurveyId}\"></div>" + "<div class=\"vote_respost\"><a href=\"#\" id=\"action_{SurveyId}\"  > </a> </div>" + " </div>" + "</div><a href=\"#\" class=\"jqmClose\"></a>"; var tempResultDetail = " <div class=\"vote_item1 sitem clearfix\">" + "<div style=\"width: 46%; \">" + "<label class=\"label\">{OptionName}</label>" + "</div>" + "<div style=\"width: 25%; \">" + "<div class=\"result\" style=\"width:{ResultPercent}\"></div>" + "</div>" + "<div style=\"width: 10%; text-align:right; \">{ResultPercent}</div>" + "<div style=\"width: 18%; text-align:right; \">{Result}/SumResult</div>" + "</div>"; var tempResultDetail2 = ' <div class=\"sitem pvt-item1\">' + '<div style=\"width: 55%; \">' + '<label class=\"label\">{OptionName}</label>' + '</div>' + '<div style=\"width: 25%; \">' + '<div class=\"result\" style=\"width:{ResultPercent}\"></div>' + '</div>' + '<div style=\"width: 10%; text-align:right; \">{ResultPercent}</div>' + '<div style=\"width: 10%; text-align:right; \">{Result}/SumResult</div>' + "</div>"; function showResult(a, b) { if (a) { var c = new VietNamNet.Framework.JS.Template({ id: 'tmpR', template: tempResult }); VietNamNet.Framework.JS.TemplateManager.bind($('#' + b + ' .diaResult'), a, c); var d = new VietNamNet.Framework.JS.Template({ id: 'tmpD', template: tempResultDetail.replace(/SumResult/gi, a.SumResult) }); VietNamNet.Framework.JS.TemplateManager.bind($('.result_' + a.SurveyId, $('#' + b + ' .diaResult')), a.SurveyOption, d) } }; function bind(a, b) { if (a) { if (a.SurveyOption && a.SurveyOption.length && a.SurveyOption.length > 0) { for (var i = 0; i < a.SurveyOption.length; i++) a.SurveyOption[i].index = i + 1 } var c = new VietNamNet.Framework.JS.Template({ id: 'tmpQ', template: temp + tempDialog }); VietNamNet.Framework.JS.TemplateManager.bind(b, a, c); var d = new VietNamNet.Framework.JS.Template({ id: 'tmpO', template: a.OptionType == "C" ? tempOptionC : tempOptionR }); VietNamNet.Framework.JS.TemplateManager.bind($('#' + b + " .options_" + a.SurveyId), a.SurveyOption, d); if (Survey_checkCookie(a.SurveyId) || a.HasVoted) { $('#' + b + ' input ').attr("disabled", "disabled"); $('#' + b + ' .action').text("Xem kết quả"); $('#' + b + ' .action').unbind('click'); showResult(a, b); $('#' + b + ' .action ').colorbox({ width: "600", height: "300", inline: true, href: '.diaResult' }) } else { $('#' + b + ' .action').text("Bỏ phiếu"); showResult(a, b); $('#' + b + ' .action').click(function () { return validateSubmit(a.SurveyId, b) }) } } }; function showSurvey(c, d, e, f) { VietNamNet.Framework.JS.AjaxManager.add({ url: srvSurvey_url, data: { categorysalias: d, articleid: e, divId: c, surveyid: f }, success: function (a) { var b = VietNamNet.Framework.JS.JSON.decode(a); bind(b, c) } }) }; function showAllSurveyBySurvey() { $('div[survey=true]').each(function (a) { showSurvey(this.id, '', '', $(this).attr('surveyId')) }) }; function showAllSurveyByArticle() { $('div[survey=true]').each(function (a) { showSurvey(this.id, '', $(this).attr('articleId'), '') }) }; function showAllSurveyByCat() { $('div[survey=true]').each(function (a) { showSurvey(this.id, $(this).attr('categoryalias'), '', '') }) }; function showAllSurvey() { $('div[survey=true]').each(function (a) { showSurvey(this.id, $(this).attr('categoryalias'), $(this).attr('articleId'), $(this).attr('surveyId')) }) }; VietNamNet.Framework.JS.Initialization.add(showAllSurvey); function validateSubmit(a, b) { var d = $('#' + b); if ($('#' + b + ' :input[checked=true]').length > 0) { submitPoll(a, b); return false } alert('Please chose an option!'); return false }; function submitPoll(a, b) { items = []; var f = $('#' + b + ' :input[checked=true]'); for (var i = 0; i < f.length; i++) { items.push(f[i].value) } var c = srvSurvey_posturl.replace("[RANDOMID]", Math.random()).replace("[SURVEYID]", a).replace("[ITEMID]", items.join(',')); $('#' + b + ' #cmdPostSurvey').attr({ src: c, title: "post" }); Survey_setCookie(a); $('#' + b + ' input ').attr("disabled", "disabled"); $('#' + b + ' .action').text("Xem kết quả"); $('#' + b + ' .action').unbind('click'); $('#' + b + ' .action ').colorbox({ width: "600", height: "300", inline: true, href: '.diaResult' }) }; function Survey_setCookie(a) { c_name = 'Survey_' + a; var b = new Date(); b.setTime(b.getTime() + 15); document.cookie = c_name + "=true" + ";expires=" + b.toUTCString() }; function Survey_getCookie(a) { c_name = 'Survey_' + a; if (document.cookie.length > 0) { c_start = document.cookie.indexOf(c_name + "="); if (c_start != -1) { c_start = c_start + c_name.length + 1; c_end = document.cookie.indexOf(";", c_start); if (c_end == -1) c_end = document.cookie.length; return true } } return false }; function Survey_checkCookie(a) { return Survey_getCookie(a) };

/* module Tracking Article */
var serviceArticleTracking_post_url = 'http://track.srv.vietnamnet.vn/tracking/t.srv?' + 'sn=article&dm=' + location.host + '&us=me&vs=1' + '&randId=[RANDOMID]' + '&wcode=[WEBSITECODE]&wurl=' + location.host + '&catalias=[CATEGORYALIAS]&catname=[CATNAME]' + '&aid=[ARITCLEID]&atitle=[ARITCLETITLE]&alead=[ARITCLELEAD]' + '&atags=[ARITCLETAGS]&aimg=[ARITCLEIMG]' + '&adate=[ARITCLEDATE]&aurl=' + location.href;
var tempArticle = '<iframe src="" class="post" style="display:none;"></iframe>'; function bindArticleTracking(a, b, c) { a.html(tempArticle); var s = serviceArticleTracking_post_url.replace("[ARITCLEID]", b).replace("[CATEGORYALIAS]", c); $('.post', a).attr('src', s) }; function bindArticleTracking2(a) { a.html(tempArticle); var s = serviceArticleTracking_post_url.replace('[WEBSITECODE]', a.attr('wcode')).replace('[CATEGORYALIAS]', a.attr('categoryalias')).replace('[CATNAME]', a.attr('catname')).replace('[ARITCLEID]', a.attr('articleId')).replace('[ARITCLETITLE]', a.attr('atitle')).replace('[ARITCLELEAD]', a.attr('alead')).replace('[ARITCLETAGS]', a.attr('atags')).replace('[ARITCLEIMG]', a.attr('aimg')).replace('[ARITCLEDATE]', a.attr('adate')); $('.post', a).attr('src', s) };
function showArticleTracking() { $('div[articleTracking=true]').each(function () { bindArticleTracking2($(this)) }) };
VietNamNet.Framework.JS.Initialization.add(showArticleTracking);

/* module Comment (feedback) */
var serviceComment_post_url = 'http://track.srv.vietnamnet.vn/tracking/t.srv?' + 'sn=comment&dm=' + location.host + '&us=me&vs=1' + '&n=[NAME]&m=[MESSAGE]&s=[SUBJECT]&p=[PHONE]&em=[EMAIL]&v=[VALIDCODE]&aid=[ARTICLE]';
function postComment() {
    var a = $('#newcomment .name').val(); if (a.length <= 2 || a == 'Họ và tên *') { $('#newcomment .mess').html('Bạn hãy nhập Họ tên!'); $('#newcomment .name').focus(); return false }; var b = $('#newcomment .email').val(); if (checkemail(b) != true) { $('#newcomment .mess').html('Sai định dạng Email. Bạn hãy nhập lại email!'); $('#newcomment .email').focus(); return false }; var c = $('#newcomment .phone').val(); if (checkphone(c) != true) { $('#newcomment .mess').html('Sai định dạng số điện thoại. Bạn hãy nhập số điện thoại!'); $('#newcomment .phone').focus(); return false }; var d = $('#newcomment .subject').val(); if (d.length <= 2 || d == "Tiêu đề") { $('#newcomment .mess').html('Bạn hãy nhập Tiêu đề!'); $('#newcomment .subject').focus(); return false }; var e = $('#newcomment .message').val();if (e.length <= 5 || e == "Nội dung") { $('#newcomment .mess').html('Bạn hãy nhập nội dung phản hồi!'); return false; } if (e.length >= 1000 || e == "Nội dung") { $('#newcomment .mess').html('Nội dung phản hồi không quá 1000 ký tự.') ; $('#newcomment .message').focus(); return false }; var f = $('#newcomment .aid').val();
    $("#newcomment #cmdPostComment").attr({ src: serviceComment_post_url.replace("[NAME]", VietNamNet.Framework.JS.Url.encode(a)).replace("[SUBJECT]", VietNamNet.Framework.JS.Url.encode(d)).replace("[PHONE]", c).replace("[EMAIL]", b).replace("[MESSAGE]", VietNamNet.Framework.JS.Url.encode(e)).replace("[ARTICLE]", f), title: "post" });
    $('#newcomment .mess').html('Cám ơn bạn đã phản hồi!'); $('#newcomment .subject').val('').blur(); $('#newcomment .message').val('').blur();
}
function resetComment() { $('#newcomment .mess').html(''); $('#newcomment .mess').removeClass('warning'); $('#newcomment .name').val('').blur(); $('#newcomment .phone').val('').blur(); $('#newcomment .email').val('').blur(); $('#newcomment .subject').val('').blur(); $('#newcomment .message').val('').blur(); $('#newcomment .validcode').val('').blur() };

VietNamNet.Framework.JS.Comment = function () { };
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('o.q.r.1y.1z={L:"/M/1A/N.B",O:"/M/1B/N.B",P:\' \'+\'<Q 4="C-14 C-1C 1D">Ý 1Eến bạn đọc</Q>\'+\'<3 4="R 1F D"  E="1G-D">\'+\'</3>\'+\'{S}\',1H:\'\'+\'<3 4="1I"><3 4="1J">.</3><3 4="1K"><3 4="1L">\'+\'<p 4="1M"><b>{U}, gửi lúc {V}</b></p><p 4="1N"><b><i>"{W}":</i></b> {X}</p>\'+\'</3></3><3 4="1O">.</3></3>\',Y:\'<3 4="R-1P">\'+\'<p 4="C-13"> <b>{U}, gửi lúc <Z 4="10">{V}</Z></b></p>\'+\'<p><b>"{W}"</b>: {X}</p>\'+\'</3>\',11:\'<3 E="8" 4="1Q 1R-1S 1T 1U-1V-5">\'+\'<3 12="15: 16; 17: 18%">\'+\'&F;<a G="H:I(0)" 4="8-19 y">1Wước</a> \'+\'{1a}\'+\'&F;<a G="H:I(0)" 4="8-1b y">1X</a> \'+\'</3>\'+\'<3 12="15: 16; 17: 18%">\'+\'<p 1Y="1Z" 4="10">&F;<1c 4="20">Tổ21 số {J} 22ản hồi.</1c></p>\'+\'</3>\'+\'</3>\',1d:\' <a G="H:I(0)" 4="8-1e y">{z}</a> \',1f:\' <a 4="8-23 y"><b>{z}</b></a> \',u:0,v:1,w:\'\',1g:7(a,b,c,e){2=6;t(a){$(\'#\'+c).B(e);9 d=24 o.q.r.25({E:\'26\',27:2.Y});o.q.r.28.29($(\'#\'+c+\' .D\'),a,d)}1h{}},A:7(a){6.v=a;6.1i()},1j:7(){6.A(--6.v)},1k:7(){6.A(++6.v)},1i:7(){6.1l(6.u,6.v,6.w)},1l:7(j,k,l){2=6;2.u=j;2.w=l;2.v=k;o.q.r.1m.1n({1o:2.O,1p:{m:2.u,1q:k},1r:7(d){t(d&&d!=\'""\'&&d!=\'1s\'){9 e=o.q.r.1t.1u(d.1v());9 i=1;9 f=\'\';2a(i=1;i<=e.1w;i++){t(i==k)f=f+\'\'+2.1f.x("{z}",1x(i));1h f=f+\'\'+2.1d.x("{z}",1x(i))}9 g=2.11;g=g.x("{1a}",f);g=g.x("{J}",e.J);9 h=2.P;h=h.x("{S}",g);o.q.r.1m.1n({1o:2.L,1p:{m:2.u,1q:k},1r:7(a){9 b=\'\';t(a&&a!=\'""\'&&a!=\'1s\'){b=a.1v()}9 c=o.q.r.1t.1u(b);t(c){2.1g(c,2.u,l,h)}t(k<e.1w){$(\'#\'+2.w+\' #8 .8-1b\').K(7(){2.1k()})}t(k>1){$(\'#\'+2.w+\' #8 .8-19\').K(7(){2.1j()})}$(\'#\'+2.w+\' #8 .8-1e\').K(7(){2.A($(6).2b())})},2c:7(){}})}}});2d 2e}};', 62, 139, '||_this|div|class||this|function|paging|var|||||||||||||||VietNamNet||Framework|JS||if|articleId|CurrentPageIndex|holderdivId|replace|linkStyle2|PageNumberHere|jumpToPage|html|font|list|id|nbsp|href|javascript|void|RecordCount|click|service_get_url|ajax|get|service_getPage_url|temp|h2|commentListContent|Paging||Name|CreatedDate|Subject|Detail|tempItem|span|grey|tempPaging|style|||float|left|width|50|prev|PageNumber|next|label|tempPageNumber|number|tempPageNumberCurrent|bindComment|else|showComment2|prevPage|nextPage|showComment|AjaxManager|add|url|data|index|success|null|JSON|decode|trim|PageCount|String|Comment|prototype|getComment|getCommentPaged|bold|red|ki|content|feedback|tempItem2|comment1_item|comment1_item_h|comment1_item_c|padding_5|title|des|comment1_item_f|item|pagy|cm|page|clearfix|margin|top|Tr|Sau|align|right|recordcount|ng|ph|current|new|Template|tmpComment|template|TemplateManager|bind|for|text|error|return|false'.split('|'), 0, {}))
function initComment() { $('div[comment=true]').each(function (a) { var comment1 = new VietNamNet.Framework.JS.Comment(); comment1.showComment($(this).attr('articleId'), 1, this.id) }) };
setTimeout(initComment, 2000);

/* rss */
eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('3 9(a){4.5=\'0://b.2.1/*0://c.d.2.1/e=f/*0://6.g.2.1/h?i=\'+a;7 8};3 j(a){4.5=\'0://k.l.1/6?m=n&o=\'+a;7 8};', 25, 25, 'http|com|yahoo|function|window|location|add|return|false|rss_MyYahoo||pa|us|rd|evt|32777|my|rss|url|rss_GoogleReader|fusion|google|source|atgs|feedurl'.split('|'), 0, {}))

/* send email */
function article_SendMailbutton() { if ($('.button-sendmail')) { $('.button-sendmail').colorbox({ width: "500", height: "270", inline: true, href: '#digSendEmail' }) } } function article_sendEmail() { var b = $('#digSendEmail ' + ' .mess'); b.removeClass("warning"); if (checkemail($('#smEmailTo').val()) == false) { b.html('Email sai định dạng! Bạn hãy vui lòng nhập đúng Email!'); $('#smEmailTo').focus(); b.toggleClass("warning"); return } if ($('#smName').val() == '') { b.html('Bạn hãy vui lòng nhập tên!'); $('#smName').focus(); b.toggleClass("warning"); return } if (checkemail($('#smEmailFrom').val()) == false) { b.html('Email sai định dạng! Bạn hãy vui lòng nhập đúng Email!'); $('#smEmailFrom').focus(); b.toggleClass("warning"); return } var c = "/ajax/sendMail/s.html"; VietNamNet.Framework.JS.AjaxManager.add({ url: c, data: { name: $('#smName').val(), emailFrom: $('#smEmailFrom').val(), emailto: $('#smEmailTo').val(), message: $('#smMessage').val(), cat: $('#hidCategoryAlias').val(), aid: $('#hidMessageId').val(), subject: $('#hidMessageSubject').val() }, success: function (a) { $('#smEmailTo').val(''); $('#smMessage').val(''); b.html('Email đã được gửi. Cám ơn bạn đã chia sẻ bài viết này!') } }); return } VietNamNet.Framework.JS.Initialization.add(article_SendMailbutton);

/* PhongDH them vao de chuyen box TamDiem tren trang chu goi = Ajax--*/
VietNamNet.Framework.JS.TamDiem = { init: function (obj) { var objTamDiem = obj; if (objTamDiem.length > 0) { $('#foo2').empty(); for (var i = 0; i < objTamDiem.length; i++) { VietNamNet.Framework.JS.TamDiem.bindTamDiem(objTamDiem[i]) } } }, bindTamDiem: function (item) { var TamDiem = '<div class="sliderNewsTopList-item"> ' + item.ImageLink + '<p>' + item.Url + '</p>' + '</div>'; $(TamDiem).appendTo($('#foo2')) } };
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('0 5(d,e,f){1.2.3.6.7({8:\'/9/g/i.j\',k:{l:d,m:e,n:f,o:\'p q-r s-t\',u:\'v\',w:\'\',x:\'y\',z:\'A\'},B:0(h){4 a=\'\';C(h&&h!=\'""\'&&h!=\'D\'){a=h.E()}F{G};4 b=1.2.3.H.I(a);1.2.3.J.K(b);L()},M:0(a,b,c){}})}', 49, 49, 'function|VietNamNet|Framework|JS|var|initTamDiem|AjaxManager|add|url|ajax|||||||getTamDiem||get|html|data|CateAlias|FirstIndexRecord|LastIndexRecord|ClassName|clear|linkStyle1|bold|font|11|AlternativeClassName|none|ImageClassName|ImageWidth|110|ImageHeight|63|success|if|null|trim|else|return|JSON|decode|TamDiem|init|sliderNewsTopInitial|error'.split('|'), 0, {}))

/*scrollADVRight*/
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('q u(){1 a=0;1 b=$(".v").2();1 c=$(".w").2();1 d=$(".x").2();1 e=$(".n").2();a=d;4(e>a)a=e;1 f=c-a;$(".n").2(b-f);$(\'#3\').y($("<r z=\'5\'></r>"));$("#5").8(\'7\',\'A\');$("#5").2($(".n").2()-B);$("#5").C($("#3"));1 g=$(\'#3\').D().9;1 h=$(\'#5\').7().l;1 i=h+$("#5").2();1 j=$(\'#3\').2();1 k;$(o).E(q(){4($.p.s){k=$(o).F()}m{k=$(o).G("H")}4(k<h){$(\'#3\').8({\'7\':\'\'})}m 4((k>h)&&((k+j)<i)){4($.p.s&&$.p.I=="6.0"){$(\'#3\').8({\'7\':\'t\',\'9\':0,\'l\':(k-h)})}m{$(\'#3\').8({\'7\':\'J\',\'l\':\'0\',\'9\':g})}}m 4((k+j)>i){$(\'#3\').8({\'7\':\'t\',\'K\':0,\'9\':0,\'l\':\'\'})}})}', 47, 47, '|var|height|ad_c6_14_V2|if|advRightScroll||position|css|left||||||||||||top|else|columnsPageRight|window|browser|function|div|msie|absolute|scrollADVRight|columnsPage|columnsPageCenterRight|columnsPageCenter|before|id|relative|20|append|offset|scroll|scrollTop|attr|scrollY|version|fixed|bottom'.split('|'), 0, {}))
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('w G(){1 b=0;1 v=$(".H").2();1 r=$(".I").2();1 q=$(".F").2();1 o=$(".i").2();b=q;8(o>b)b=o;1 s=r-b;1 j=B;$(".i").2(v-s);$(\'#7-4-c-5-6\').C($("<t K=\'9\'></t>"));$("#9").e({\'a\':\'Q\',\'S\':\'T\'});8($.d.l&&$.d.y=="6.0"){$("#9").2($(".i").2()-j-R-u)}g{$("#9").2($(".i").2()-j-L-u)}$("#9").O($("#7-4-c-5-6"));1 z=$(\'#7-4-c-5-6\').P().k;1 f=$(\'#9\').a().h;1 p=f+$("#9").2();1 n=j;1 3;$(m).J(w(){8($.d.l){3=$(m).A()}g{3=$(m).N("D")}8(3<f){$(\'#7-4-c-5-6\').e({\'a\':\'\'})}g 8((3>f)&&((3+n)<p)){8($.d.l&&$.d.y=="6.0"){$(\'#7-4-c-5-6\').e({\'a\':\'x\',\'k\':0,\'h\':(3-f)})}g{$(\'#7-4-c-5-6\').e({\'a\':\'M\',\'h\':\'0\',\'k\':z})}}g 8((3+n)>p){$(\'#7-4-c-5-6\').e({\'a\':\'x\',\'E\':0,\'k\':0,\'h\':\'\'})}})}',56,56,'|var|height|windowY|zone|||adv|if|advRightScroll|position|h_max2||browser|css|startPointerScroll|else|top|columnsPageRight|heightBox|left|msie|window|heightAdd|h4|endPointerScroll|h3|h2|h5|div|95|h_max1|function|absolute|version|currentLeft|scrollTop|610|before|scrollY|bottom|columnsPageCenter|scrollADVRightAtHome|columnsPage|columnsPageCenterRight|scroll|id|240|fixed|attr|append|offset|relative|220|overflow|hidden'.split('|'),0,{}))


/*TopNesTitleSlider*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 m(){$(".h").n(3(){7($(i).2(".9"),"j")}).q(3(){7($(i).2(".9"),"8")});7($(".h").2(".9"),"8")}3 7(o,f){r 6=0;b(f=="j"){6=$(o).2("a.c").4()+$(o).2("p").4()+5;$(o).2("p").l();$(o).g({4:6},e,3(){})}b(f=="8"){6=$(o).2("a.c").4()+5;$(o).g({4:6},e,3(){$(o).2("p").s()})}}3 t(){F(".D").H({d:{J:1,I:B,4:u},w:{d:1,A:y,K:"z",x:"v"},C:G,E:".k"})}',47,47,'||find|function|height||max_h|TopNesTitleSlider|close|focusNewBoxFistPostInfor||if|title|items|300||animate|focusNewBoxFistPost|this|open|focusNewBoxFistPostPagination|show|initialTopNewSlider|mouseenter|||mouseleave|var|hide|sliderTopNewSlider|219|linear|scroll|easing|true|crossfade|mousewheel|384|auto|focusNewBoxFistPostList|pagination|jQuery|8000|carouFredSel|width|visible|fx'.split('|'),0,{}))

/*TopCateNesTitleSlider*/
eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('2 e(){$(".g").h(2(){4("8")}).i(2(){4("6")});4("6")}2 4(f){j a=0;9(f=="8"){a=$(".1 a.b").3()+$(".1 7").3()+5;$(".1 7").k();$(\'.1\').c({3:a},d,2(){})}9(f=="6"){a=$(".1 a.b").3()+5;$(\'.1\').c({3:a},d,2(){$(".1 7").l()})}}', 22, 22, '|cateFistPostInfor|function|height|TopCateNesTitleSlider||close|p|open|if||title|animate|300|initialTopCateNewSlider||cateFistPost|mouseenter|mouseleave|var|show|hide'.split('|'), 0, {}))
