
var isIE=(navigator.userAgent.indexOf('MSIE')!=-1);var o_ChannelIndex='home';var o_login=true;function $(objID)
{return document.getElementById(objID);};function openWindow(src,title,width,height)
{var leftPos=(screen.availWidth-width)/2;var topPos=(screen.availHeight-height)/2;if(isIE)
{window.open(src,title,'toolbar=no'+',location=no'+',status=yes'+',menubar=no'+',scrollbars=yes'+',resizable=yes'+',width='+width+',height='+height+',top='+topPos+',left='+leftPos);return false;}
else
{window.open(src,title,'height='+height+', width='+width+', left='+leftPos+', top='+topPos+', resizable=yes, scrollbars=yes, toolbar=no, status=yes');return false;}};function onLinkClick(link)
{var h=link.href;window.location=h.replace(/\.zing$/ig,'.html');};function voidnull(para)
{};function $Eval(responseText)
{try
{return eval('('+responseText+')');}
catch(ex)
{}};function $CreateFlashControl(src_,width,height)
{var HTML='<object align="baseline" border="0" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" ';if(width!=0)
HTML+=' width="'+width+'"';else
HTML+=' width="200"';if(height!=0)
HTML+=' height="'+height+'"';else
HTML+=' height="150"';HTML+=' >';HTML+='<param name="_cx" value="5292" />';HTML+='<param name="_cy" value="3969" />';HTML+='<param name="FlashVars" value="5292" />';HTML+='<param name="Movie" value="'+src_+'" />';HTML+='<param name="Src" value="'+src_+'" />';HTML+='<param name="WMode" value="Transparent" />';HTML+='<param name="Play" value="-1" />';HTML+='<param name="Loop" value="-1" />';HTML+='<param name="Quality" value="High" />';HTML+='<param name="SAlign" value="" />';HTML+='<param name="Menu" value="-1" />';HTML+='<param name="Base" value="" />';HTML+='<param name="AllowScriptAccess" value="always" />';HTML+='<param name="Scale" value="ShowAll" />';HTML+='<param name="DeviceFont" value="0" />';HTML+='<param name="EmbedMovie" value="0" />';HTML+='<param name="BGColor" value="" />';HTML+='<param name="SWRemote" value="" />';HTML+='<embed src="'+src_+'"';HTML+=' wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer"';HTML+=' type="application/x-shockwave-flash"';HTML+=' name="AdObj1" quality="High"';if(width!=0)
HTML+=' width="'+width+'"';else
HTML+=' width="200"';if(height!=0)
HTML+=' height="'+height+'"';else
HTML+=' height="150"';HTML+=' >';HTML+='</object>';return HTML;};function $LoadSubMenuBox(objMenuID)
{var objLIs=$(objMenuID).childNodes;for(var t=0;t<objLIs.length;t++)
{var li=objLIs.item(t);if(li.nodeName.toLowerCase()!='li')
continue;var a=li.getElementsByTagName('a').item(0);var index=a.getAttribute('lang');if(!index)
continue;var spanID=$('mnu_'+index+'_subbox');if(!spanID)
continue;var uls=li.getElementsByTagName('ul').item(0);var txtinnerHtml='';if(uls)
{var lis=uls.childNodes;if(lis)
{var first=true;for(var i=0;i<lis.length;i++)
{var l=lis.item(i);if(l.nodeName.toLowerCase()!='li')
continue;var la=l.getElementsByTagName('a').item(0);if(la.getAttribute('href'))
{if(!first)
txtinnerHtml+=' | ';if(la.getAttribute('visible'))
{if(la.getAttribute('visible')=='false')
continue;}
txtinnerHtml+='<a href="'+la.getAttribute('href')+'">'+la.getElementsByTagName('span').item(0).innerHTML+'</a> ';first=false;}}}}
if(txtinnerHtml!='')
spanID.innerHTML=txtinnerHtml;}};function $SetSubMenuPath(objDivID,channelIndex)
{var curNodeActive=$('mn_'+channelIndex);if(!curNodeActive)
return;var parNode=curNodeActive.parentNode.parentNode.parentNode.getElementsByTagName('a').item(0);var str_='<img alt="" src="/news/images/ico_arrow04.gif" width="13" height="13" align="absmiddle" /> ';if(parNode)
str_+='<a href="'+parNode.getAttribute('href')+'">'+parNode.innerHTML+'</a> &gt; <a href="'+curNodeActive.getAttribute('href')+'">'+curNodeActive.innerHTML+'</a>';else
str_+=channelIndex;$(objDivID).innerHTML=str_;};function $InitMenu(UlMenuID)
{if(o_ChannelIndex=='')
return;var objLIs=$(UlMenuID).childNodes;var curNodeActive=null;for(var t=0;t<objLIs.length;t++)
{var li=objLIs.item(t);if(li.nodeName.toLowerCase()!='li')
continue;var a=li.getElementsByTagName('a').item(0);if(a.getAttribute('lang')==o_ChannelIndex)
curNodeActive=a;else
a.className='';}
if(curNodeActive==null)
{curNodeActive=$('mn_'+o_ChannelIndex);if(curNodeActive&&o_ChannelIndex!='home')
curNodeActive=curNodeActive.parentNode.parentNode.parentNode.getElementsByTagName('a').item(0);}
if(!curNodeActive)
return;curNodeActive.className='curnav';var uls=curNodeActive.parentNode.getElementsByTagName('ul').item(0);if(uls)
{var lis=uls.childNodes;if(lis)
{var i=0;var txtinnerHtml_='';for(var t=0;t<lis.length;t++)
{var l=lis.item(t);if(l.nodeName.toLowerCase()!='li')
continue;var la=l.getElementsByTagName('a').item(0);if(la.getAttribute('href'))
{if(i!=0)
txtinnerHtml_+=' | ';txtinnerHtml_+='<a href="'+la.getAttribute('href')+'">'+la.getElementsByTagName('span').item(0).innerHTML+'</a>';i++;}}
$(UlMenuID+'Sub').innerHTML=txtinnerHtml_;}}};function PrintDocument(title)
{var leftPos=(screen.availWidth-800)/2;var topPos=(screen.availHeight-600)/2;var PopupWindow=window.open('','PopupWindow','width=800,height=600,scrollbars=yes,resizable=yes,titlebar=0,top='+topPos+',left='+leftPos);PopupWindow.document.open();PopupHTML='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>';PopupHTML+='<head><title>'+title+'</title>';PopupHTML+='<link href="/news/Themes/Default.css" type="text/css" rel="stylesheet" />';PopupHTML+='<link href="/news/Themes/StyleSheet.css" type="text/css" rel="stylesheet" />';PopupHTML+='<base href="http://news.zing.vn/img/" />';PopupHTML+='<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">';PopupHTML+='</head><body>';PopupHTML+='<div style="text-align:left;padding:5px;"><a href=""><img src="/news/images/logo_ZingNews.gif" alt="" /></a><hr />';PopupHTML+='<div id="OsDocument" class="bloc05" style="overflow:hidden;width:760px;">';PopupHTML+=$('OsDocument').innerHTML;PopupHTML+='</div>';PopupHTML+='<br /><div style="background:#EEE;padding:5px;"><a href="javascript:window.print();"><img border="0" alt="" src="/news/images/OsPrint.gif" style="cursor: pointer;"/>In bài viết này</a><hr/>';PopupHTML+='<div style="font-family: Arial; font-size: xx-small;"> Copyright 2008 Vinagame JSC</div></div>';PopupHTML+='</div></body></html>';PopupWindow.document.write(PopupHTML);PopupWindow.document.close();};function $ShowMenuFooter(UlMenuID,ContainerID)
{var objLIs=$(UlMenuID).childNodes;if(!objLIs)
return;var txtInnerHTML='';var i=0;for(var t=0;t<objLIs.length;t++)
{var li=objLIs.item(t);if(li.nodeName.toLowerCase()!='li')
continue;if(i!=0)
txtInnerHTML+=' | ';var la=li.getElementsByTagName('a').item(0);txtInnerHTML+='<a href="'+la.getAttribute('href')+'">'+la.getElementsByTagName('span').item(0).innerHTML+'</a>';i++;}
$(ContainerID).innerHTML=txtInnerHTML;};function $ShowImgFromUl(ulObj)
{var ulObj=$(ulObj);if(!ulObj)
return;var objLIs=ulObj.childNodes;var img=$(ulObj+'img');if(!img)
return;for(var t=0;t<objLIs.length;t++)
{var li=objLIs.item(t);if(li.nodeName.toLowerCase()!='li')
continue;img.src='imgView.aspx?ArticleID='+li.getAttribute('lang');break;}};function showImage(url)
{showWindow('http://news.zing.vn/news/ImageView.htm?'+url.substr(url.indexOf('?')+1),false,true,true,false,false,false,true,true,550,524,0,0);};function showWindow(url,isStatus,isResizeable,isScrollbars,isToolbar,isLocation,isFullscreen,isTitlebar,isCentered,width,height,top,left)
{if(isCentered)
{top=(screen.height-height)/2;left=(screen.width-width)/2;}
window.open(url,'_blank','status='+(isStatus?'yes':'no')+','
+'resizable='+(isResizeable?'yes':'no')+','
+'scrollbars='+(isScrollbars?'yes':'no')+','
+'toolbar='+(isToolbar?'yes':'no')+','
+'location='+(isLocation?'yes':'no')+','
+'fullscreen='+(isFullscreen?'yes':'no')+','
+'titlebar='+(isTitlebar?'yes':'no')+','
+'height='+height+','+'width='+width+','
+'top='+top+','+'left='+left);};function $TabClick(this_)
{Os_Tab.$Click(this_,function(){document.getElementById('mode').value=this_.id;});};var Os_Tab={$Click:function(this_,_function)
{var _parentNode=this_.parentNode;var Nodes=_parentNode.childNodes;for(var i=0;i<Nodes.length;i++)
{var tab_=Nodes[i];if(!tab_.firstChild)
continue;var selected=false;if(this_==tab_)
selected=true;var dvs_=tab_.childNodes;var ik=1;for(var k=0;k<dvs_.length;k++)
{var t_=dvs_[k];if(t_.nodeName!='DIV')
continue;t_.className=(selected?'se':'df')+ik;ik++;}}
if(_function)
_function();}};function ExecJs(strCont)
{var regScript1=new RegExp('<script.*?src="([^"]+)".*?>\s*</script>');if(regScript1.test(strCont))
{var scr=document.createElement('script');scr.setAttribute("type","text/javascript");scr.setAttribute("src",regScript1.exec(strCont)[1]);document.getElementsByTagName("head").item(0).appendChild(scr);}
var regScript=new RegExp('<script.*?>([^\x3C]+)</script>');if(regScript.test(strCont))
eval(regScript.exec(strCont)[1]);};function OpenfMail()
{openWindow("/news/Forms/fMail.aspx","ZingNews",500,460);};function OpenFeedBack()
{openWindow("/news/Forms/FeedBack.aspx","ZingNews",500,460);};function ImgErr(sc)
{sc.style.display='none';};function oinclogin()
{var ozUserInfo1212=$('ozUserInfo1212');if(!ozUserInfo1212)
return;ozUserInfo1212.innerHTML='<iframe src="/news/sso/login.aspx" marginheight="0" marginwidth="0" height="100px" scrolling="no" width="300px" frameborder="0"></iframe>';};