pageTitle='H2DnC - Hoang Hiep Design and Code';
swfURL='swf/';
imagesURL='images/';
dataURL='page.php';
lastURL='';
url='';
defStatus='';
function hLogo()
{
var html;
html='<OBJECT id="menu" classid=clsid

27CDB6E-AE6D-11cf-96B8-444553540000 width=770 height=145>';
html+='<PARAM name=SRC value='+swfURL+'logo.swf>';
html+='<PARAM name=bgcolor value=#B40000>';
html+='<PARAM name=wmode value="transparent">';
html+='<PARAM name=menu value=false>';
html+='</OBJECT>';
return html;
}
function menu_DoFSCommand(command, args)
{
window.location='#'+args;
document.title=pageTitle;
lastURL='';
}
function loadingPage()
{
var html;
html='<DIV align=center><B>Đang tải trang, xin vui lòng chờ...</B></DIV>';
return html;
}
function showTitle(page)
{
titleHTML.innerHTML='<IMG src='+imagesURL+page+'.gif width=200 height=42>';
}
function showPage(html)
{
var page;
defStatus='';
window.status='Done.';
page='<HR style="border-style:dotted" size=0 noshade color=#FA961E>';
page+='<TABLE width=100% cellpadding=5><TR><TD id=mainContent>'+html+'</TD></TR></TABLE>';
page+='<HR style="border-style:dotted" size=0 noshade color=#FA961E>';
page+='<DIV align=right>Webmaster: <B>Bùi Hoàng Hiệp</B><BR><BR></DIV>';
mainPageHTML.innerHTML=page;
mainContent.style.lineHeight='1.5';
mainContent.style.color='#000000';
mainContent.style.fontSize='11px';
}
function loadPage()
{
varcURL;
try
{
cURL=window.location.href.split('#');
cURL=cURL[1];
}
catch(e)
{
}
if (!cURL)
cURL='home';
pageURL=dataURL+'?page='+cURL;
defStatus='Opening page '+window.location.href+'...';
window.defaultStatus=defStatus;
titleHTML.innerHTML=loadingPage();
mainPageHTML.innerHTML='';
actionScript.src=pageURL;
}
function checkURL()
{
var cURL;
cURL=window.location.href;
if (cURL!=lastURL)
{
setTimeout("loadPage()",100);
lastURL=cURL;
}
//if (defStatus!='')
//window.status=defStatus;
}
function hTemplate()
{
var html;
html='<SCRIPT LANGUAGE="VBScript">';
html+='Sub menu_FSCommand(ByVal command, ByVal args)';
html+='call menu_DoFSCommand(command, args)';
html+='End Sub';
html+='</SCR'+'IPT>';
html+='<SCRIPT id=actionScript></SCR'+'IPT>';
html+='<TABLE width=770 height=100% align=center cellspacing=0 cellpadding=0>';
html+='<TR><TD height=145 style="background: B40000">'+hLogo()+'</TD></TR>';
html+='<TR><TD>';
html+='<TABLE width=100% height=100% cellspacing=0 cellpadding=0>';
html+='<TR><TD width=20 bgcolor=#B40000></TD><TD height=10><TABLE cellspacing=0 cellpadding=0 width=100%><TR><TD height=8 bgcolor=#FA961E></TD></TR><TR><TD height=1 bgcolor=#FFFFFF></TD></TR><TR><TD height=1 bgcolor=#FA961E></TD></TR></TABLE></TD></TR>';
html+='<TR><TD bgcolor=#B40000></TD><TD valign=top bgcolor=#FFFFFF><TABLE width=100% height=100%><TR><TD height=42 id=titleHTML></TD></TR><TR><TD valign=top id=mainPageHTML></TD></TR></TABLE></TD></TR>';
html+='<TR><TD bgcolor=#A00000></TD><TD height=45><TABLE cellspacing=0 cellpadding=0 width=100%><TR><TD height=1 bgcolor=#FA961E></TD></TR><TR><TD height=1 bgcolor=#FFFFFF></TD></TR><TR><TD height=45 bgcolor=#FA961E id=copyrightHTML>Website cá nhân của Lập trình viên Tin học <B>Bùi Hoàng Hiệp</B> - Mobile: 0912.710.365<BR>Thiết kế và phát triển bởi <B>H2DnC</B> - Hoang Hiep Design and Code</TD></TR></TABLE></TD></TR>';
html+='</TABLE>';
html+='</TD></TR>';
html+='</TABLE>';
return html;
}
function initalize()
{
if (top.location!=window.location)
top.location.replace(window.location);
document.title=pageTitle;
document.write(hTemplate());
setInterval("checkURL()",100);
}
initalize();
//Cac thuoc tinh cua BODY
document.body.style.background='#000000';
document.body.style.marginTop=0;
document.body.style.marginLeft=0;
document.body.style.marginRight=0;
document.body.style.marginBottom=0;
document.body.style.fontFamily='Tahoma, Verdana, Arial;';
//Thanh cuon
document.body.style.scrollbarFaceColor='#FA961E';
document.body.style.scrollbarDarkshadowColor='#FA961E';
document.body.style.scrollbar3dlightColor='#FA961E';
document.body.style.scrollbarHighlightColor='#FFFFFF';
document.body.style.scrollbarShadowColor='#FFFFFF';
document.body.style.scrollbarTrackColor='#FFFFFF';
document.body.style.scrollbarArrowColor='#FFFFFF';
//Cac thuoc tinh cua Copyright
copyrightHTML.style.Height=45;
copyrightHTML.style.color='#FFFFFF';
copyrightHTML.style.fontSize='11px';
copyrightHTML.align='center';
//Cac thuoc tinh cua trang chinh
mainPageHTML.style.color='#000000';
mainPageHTML.style.fontSize='11px';
titleHTML.style.color='#000000';
titleHTML.style.fontSize='11px';