function ADInfoList(){this.ADCode=new Array();this.ADUrl=new Array();this.ADMode=new Array();this.ADType=new Array();this.ADText=new Array();this.ADWidth=new Array();this.ADHeight=new Array()}function AddFav(){window.external.addFavorite(window.document.location.href,document.title)}function Trim(a){return a.replace(/^\s*|\s*$/g,"")}function SetCookie(a,b){document.cookie=a+"="+escape(b)}function GetCookie(d){var b=document.cookie.split(";");for(var c=0;c<b.length;c++){var a=b[c].split("=");if(d==Trim(a[0])){return unescape(a[1])}}return null}function Request(d){var b=window.document.location.href;var f=b.indexOf("?");var e=b.substr(f+1);var c=e.split("&");for(var a=0;a<c.length;a++){var g=c[a].split("=");if(g[0].toUpperCase()==d.toUpperCase()){return g[1]}}return""}function SelectAll(b){for(var a=0;a<document.forms[0].elements.length;a++){document.forms[0].elements[a].checked=!document.forms[0].elements[a].checked}}function bbimg(b){var a=parseInt(b.style.zoom,10)||100;a+=event.wheelDelta/12;if(a>0){b.style.zoom=a+"%"}return false}function openImgSrc(a){if(a.resized==1&&a.parentElement.tagName!="A"){window.open(a.src)}}function changeImgSize(a){if(a.width>screen.width-400){a.style.width=screen.width-400}}function getByID(a){try{return document.getElementById(a)}catch(b){}}function ShowPreviewImg(imageSrc,dispWidth,dispHeight,useAutoSize,Tips,Align,Style,CssClass){var newWidth=dispWidth;var newHeight=dispHeight;var sourceWidth;var sourceHeight;useAutoSize=eval(useAutoSize.toLowerCase());var outString='<IMG Src="{Src}" Width="{Width}" Height="{Height}" Border="0"';if(useAutoSize){imageOriginal=new Image();imageOriginal.src=imageSrc;sourceWidth=imageOriginal.width;sourceHeight=imageOriginal.height;newHeight=((newWidth/4)*3);if(sourceWidth==0){sourceWidth=newWidth;sourceHeight=newHeight}if((Math.round(sourceWidth)/Math.round(sourceHeight))>=1.3333333333333333){newHeight=((sourceHeight*newWidth)/sourceWidth)}else{newWidth=((sourceWidth*newHeight)/sourceHeight)}}outString=outString.replace("{Src}",imageSrc);outString=outString.replace("{Width}",newWidth);outString=outString.replace("{Height}",newHeight);if(Tips!=null){outString+=" Alt='"+Tips+"'"}if(Style!=null){outString+=" Style="+Style}if(CssClass!=null){outString+=" Class="+CssClass}if(Align!=null){outString+=" Align="+Align}outString+=">";outString="<span class='article_previewimage'>"+outString+"</span>";document.write(outString)}function ShowSlideImg(imageSrc,dispWidth,dispHeight,useAutoSize,Tips,Align,Style,CssClass){var newWidth=dispWidth;var newHeight=dispHeight;var sourceWidth;var sourceHeight;useAutoSize=eval(useAutoSize.toLowerCase());var outString='<IMG Src="{Src}" Width="{Width}" Height="{Height}" Border="0"';if(useAutoSize){imageOriginal=new Image();imageOriginal.src=imageSrc;sourceWidth=imageOriginal.width;sourceHeight=imageOriginal.height;newHeight=((newWidth/4)*3);if(sourceWidth==0){sourceWidth=newWidth;sourceHeight=newHeight}if((Math.round(sourceWidth)/Math.round(sourceHeight))>=1.3333333333333333){newHeight=((sourceHeight*newWidth)/sourceWidth)}else{newWidth=((sourceWidth*newHeight)/sourceHeight)}}outString=outString.replace("{Src}",imageSrc);outString=outString.replace("{Width}",newWidth);outString=outString.replace("{Height}",newHeight);if(Tips!=null){outString+=" Alt='"+Tips+"'"}if(Style!=null){outString+=" Style="+Style}if(CssClass!=null){outString+=" Class="+CssClass}if(Align!=null){outString+=" Align="+Align}outString+=">";document.write(outString)}function ShowNavMenu(a,d){for(var b=0;b<d;b++){try{document.all["NavMenu_"+b].style.display="none";if(b==a){document.all["NavMenu_"+a].style.display="inline"}}catch(c){}}}function ShowAD(d){var e=d.ADType.length;var b=new Date();var c=b.getSeconds();var a=c%e;switch(d.ADMode[a]){case"1":document.write('<div align="center">');document.write('<a href="'+d.ADUrl[a]+'" target="_blank">');document.write('<img src="'+d.ADCode[a]+'" width=');document.write(d.ADWidth[a]+" height="+d.ADHeight[a]+" ");document.write('alt="'+d.ADText[a]+'" border=0 valign="absmiddle"></a>');document.write("</div>");break;case"2":document.write('<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width="'+d.ADWidth[a]+'"" height="'+d.ADHeight[a]+'"><PARAM NAME=movie VALUE="'+d.ADCode[a]+'"><PARAM NAME=quality VALUE=high><embed src="'+d.ADCode[a]+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+d.ADWidth[a]+'" height="'+d.ADHeight[a]+'">'+d.ADCode[a]+"</embed></OBJECT>");break;case"3":document.write(d.ADCode[a]);break;case"4":document.write('<a href="'+d.ADUrl[a]+'" target="_blank" onmouseover=stopme("MoveAD"); onmouseout=movechip("MoveAD");>');document.write('<img src="'+d.ADCode[a]+'" border="0" width="'+d.ADWidth[a]+'" height="'+d.ADHeight[a]+'" alt='+d.ADText[a]+"></a>");break}}function CheckLogin(a){if(a.UserName.value==""){alert("Bạn hãy nhập người dùng");a.UserName.focus();return false}if(a.PassWord.value==""){alert("Bạn hãy nhập mật khẩu");a.PassWord.focus();return false}}function openWindow(b,d,a){var c=window.open(b,"openWin","width="+d+",height="+a+",resizable=0,scrollbars=yes,menubar=no,status=yes")}var brOK=false;var mie=false;var vmin=2;var vmax=5;var vr=3;var timer1;var MoveAD;function movechip(chipname){if(brOK){eval("chip="+chipname);if(!mie){pageX=window.pageXOffset;pageW=window.innerWidth;pageY=window.pageYOffset;pageH=window.innerHeight}else{pageX=window.document.body.scrollLeft;pageW=window.document.body.offsetWidth-8;pageY=window.document.body.scrollTop;pageH=window.document.body.offsetHeight}chip.xx=chip.xx+chip.vx;chip.yy=chip.yy+chip.vy;chip.vx+=vr*(Math.random()-0.5);chip.vy+=vr*(Math.random()-0.5);if(chip.vx>(vmax+vmin)){chip.vx=(vmax+vmin)*2-chip.vx}if(chip.vx<(-vmax-vmin)){chip.vx=(-vmax-vmin)*2-chip.vx}if(chip.vy>(vmax+vmin)){chip.vy=(vmax+vmin)*2-chip.vy}if(chip.vy<(-vmax-vmin)){chip.vy=(-vmax-vmin)*2-chip.vy}if(chip.xx<=pageX){chip.xx=pageX;chip.vx=vmin+vmax*Math.random()}if(chip.xx>=pageX+pageW-chip.w){chip.xx=pageX+pageW-chip.w;chip.vx=-vmin-vmax*Math.random()}if(chip.xx>=680){chip.xx=chip.xx-20;chip.vx=-vmin-vmax*Math.random()}if(chip.yy<=pageY){chip.yy=pageY;chip.vy=vmin+vmax*Math.random()}if(chip.yy>=pageY+pageH-chip.h){chip.yy=pageY+pageH-chip.h;chip.vy=-vmin-vmax*Math.random()}if(!mie){eval("document."+chip.named+".top ="+chip.yy);eval("document."+chip.named+".left="+chip.xx)}else{eval("document.all."+chip.named+".style.pixelLeft="+chip.xx);eval("document.all."+chip.named+".style.pixelTop ="+chip.yy)}chip.timer1=setTimeout("movechip('"+chip.named+"')",80)}}function stopme(chipname){if(brOK){eval("chip="+chipname);if(chip.timer1!=null){clearTimeout(chip.timer1)}}}function MoveAD(){if(navigator.appName.indexOf("Internet Explorer")!=-1){if(parseInt(navigator.appVersion.substring(0,1))>=4){brOK=navigator.javaEnabled()}mie=true}if(navigator.appName.indexOf("Netscape")!=-1){if(parseInt(navigator.appVersion.substring(0,1))>=4){brOK=navigator.javaEnabled()}}MoveAD.named="MoveAD";MoveAD.vx=vmin+vmax*Math.random();MoveAD.vy=vmin+vmax*Math.random();MoveAD.w=1;MoveAD.h=1;MoveAD.xx=0;MoveAD.yy=0;MoveAD.timer1=null;movechip("MoveAD")}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function initialiseNav(d){var b=0;b=$(d).outerWidth();b=b/2;$(d).prevUntil("ul").each(function(){b=b+($(this).outerWidth())});var a=0;$(d).find("li").each(function(){a=a+($(this).outerWidth())});a=a/2;var c=0;if(b+a<940){c=b-a}else{c=940-2*a}if(c>0){$(d).children("ul").find("li").first().css("margin-left",c)}}function hideAllNav(){$(".subnav ul ul").removeClass("on clearfix");$(".subnav ul ul").addClass("off")}function showChildNav(a){$(".subnav li").removeClass("MenuVisible");$(a).parent("li").find("ul").removeClass("off");$(a).parent("li").find("ul").addClass("on clearfix");$(a).parent("li").not($("li.current")).find("ul").bind("mouseenter",function(){$(this).parent("li").addClass("MenuVisible")}).bind("mouseleave",function(){$(this).parent("li").removeClass("MenuVisible")})}function showCurrentNav(){if($(".subnav li.current ul").hasClass("off")){$(".subnav li.current ul").removeClass("off");$(".subnav li.current ul").addClass("on clearfix")}}function playmedia(d){document.write('<DIV id=Playerholder>Vietnamese: Bạn cần cài <A href="http://www.macromedia.com/go/getflashplayer">Flash Player</A> miễn phí này và cho hệ duyệt web của bạn hổ trợ JavaScript <BR><BR>English: You need to have the <A href="http://www.macromedia.com/go/getflashplayer">Flash Player</A> installed and a browser with JavaScript support. </DIV>');var c="[ { name: 'ClickToPlay', overlayId: 'play' },";c=c+" { name: '', url: '"+d+"' },	";c=c+"]";var a={config:"{ playList: "+c+", useSmoothing: true, baseURL: '', autoPlay: false, autoBuffering: true, startingBufferLength: 2, bufferLength: 5, loop: false,hideControls: false,initialScale: 'scale', showPlayListButtons: false, useNativeFullScreen: true,controlBarGloss: 'high', controlsOverVideo: 'locked', watermarkUrl: '', showWatermark: 'fullscreen', watermarkLinkUrl: '', controlBarBackgroundColor: '0x253133', progressBarColor1: '0xFFFFFF', progressBarColor2: '0x000000', timeDisplayFontColor: '0xFFCC00', noVideoClip: { url: '/images/notfound.jpg' }, menuItems: [ false, false, true, true, true, false, false ], showStopButton: true, useHwScaling: false, showOnLoadBegin: true }"};var e={allowfullscreen:"true",allowScriptAccess:"always"};var b={};swfobject.embedSWF("/player.swf","Playerholder","320","45","9.0.115",false,a,e,b)};
