var siteUrl = location.href;
var copyImg = "http://nxcache.nexon.net/nx/global/footer_img/nexon_footer.gif";

if(siteUrl.indexOf('maplestory.nexon.net')> 0)
{
    copyImg = "http://nxcache.nexon.net/nx/global/footer_img/maplestory_wizet_footer.gif";
} 

function privacyPolicy()
{
    var newWin = window.open("http://nxcache.nexon.net/nx/global/legal_info/privacy.html","","width=600, height=400, resizable=no, scrollbars=yes");
    if(!newWin)
    {
        alert("Your browser's pop-up blocker is currently enabled.  If you wish to view the legal information, please disable the pop-up blocker temporarily and try again.  Thank you.");
    }
}

function termsOfUse()
{
    var newWin = window.open("http://nxcache.nexon.net/nx/global/legal_info/terms.html","","width=600, height=400, resizable=no, scrollbars=yes");
    if(!newWin)
    {
        alert("Your browser's pop-up blocker is currently enabled.  If you wish to view the legal information, please disable the pop-up blocker temporarily and try again.  Thank you.");
    }
}

function legalCopyright()
{
    var newWin = window.open("http://nxcache.nexon.net/nx/global/legal_info/legal.html","","width=600, height=400, resizable=no, scrollbars=yes");
    if(!newWin)
    {
        alert("Your browser's pop-up blocker is currently enabled.  If you wish to view the legal information, please disable the pop-up blocker temporarily and try again.  Thank you.");
    }
}



document.write("    <table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
document.write("	    <tr>");
document.write("		    <td height='42' align='left' style='padding-left:231px;'>");
document.write("			    <a href='http://www.nexon.net/Etc/AboutCompany.aspx'>About Company</a>");
document.write("				l <a href='javascript:void(0)' onclick='legalCopyright()'>Legal &amp; Copyright Notice</a>");
document.write("				l <a href='javascript:void(0)' onclick='privacyPolicy()'>Privacy Policy</a>");
document.write("				l <a href='http://www.nexon.net/Etc/Sitemap.aspx'>Sitemap</a>");
document.write("				l <a href='javascript:void(0)' onclick='termsOfUse()'>Terms of Use</a>");
document.write("				l <a href='http://www.nexon.net/Etc/Careers.aspx'>Careers</a></td>");
document.write("		</tr>");
document.write("	</table>");
document.write("	<table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
document.write("		<tr>");
document.write("		    <td align='left' background='http://nxcache.nexon.net/nx/global/footer_img/footer_bg01.gif' style='padding-left:62px;'>");
document.write("			    <a href='http://www.nexon.net'>");
document.write("				<img src='"+copyImg+"' alt='Nexon Copyright' /></a></td>");
document.write("		</tr>");
document.write("	</table>");
