var _strHtml = ".html";
var _strCnHtml = "cn.html";

var _strPhp = ".php";
var _strCnPhp = "cn.php";

function CopyRightGetCurType()
{
    var strType;
    var str = window.location.pathname;
    
    if (str.indexOf(_strCnHtml) != -1)
    {
        strType = _strCnHtml;    
    }
    else if (str.indexOf(_strCnPhp) != -1)
    {
        strType = _strCnPhp;
    }
    else if (str.indexOf(_strHtml) != -1)
    {
        strType = _strHtml;
    }
    else
    {
        strType = _strPhp;
    }
    return strType;
}

function CopyRightIsEnglish(strType)
{
    if (strType == _strHtml || strType == _strPhp)  return true;
    return false;
}

function CopyRightDisplay()
{
    var strType = CopyRightGetCurType();
    var str;
    
    if (CopyRightIsEnglish(strType))
    {
        str = "<table><tr><td>Copyright &copy; 2006-2012 Palmmicro Communications Inc. All Rights Reserved.</td></tr></table>";
    }
    else
    {
        str = "<table><tr><td>2006-2012 Palmmicro Communications Inc 版权所有&copy;，保留所有权利。</td></tr></table>";
    }
   	document.write(str);
}

function CopyRightDisplayWoody()
{
    var strType = CopyRightGetCurType();
    var str;
    
    if (CopyRightIsEnglish(strType))
    {
        str = "<table><tr><td>Copyright &copy; 1973-2012 Rongrong Lin. All Rights Reserved.</td></tr></table>";
    }
    else
    {
        str = "<table><tr><td>1973-2012 林蓉榕版权所有&copy;，保留所有权利。</td></tr></table>";
    }
   	document.write(str);
}

function CopyRightDisplayDigitmat()
{
    var strType = CopyRightGetCurType();
    var str;
    
    if (CopyRightIsEnglish(strType))
    {
        str = "<table><tr><td>Copyright &copy; 2004-2012 Digitmat Technology Inc.All Rights Reserved.</td></tr></table>";
    }
    else
    {
        str = "<table><tr><td>2004-2012 迪迈特版权所有&copy;，保留所有权利。</td></tr></table>";
    }
   	document.write(str);
}

