/**
 * location.search CLASS for Javascript
 *
 *  http://frog.raindrop.jp/knowledge/archives/000070.html
 */
function CLocationSearch(sSource) {
    /* initialize */
    var sAry = new Array(); /* add item array */
    {
        var nCur = 0, nRet = 0;
        var sSearch = sSource.substr(1);
        var sName, sValue;
                
        nRet = sSearch.indexOf('=', nCur)       // search first '='
        while(nRet >= 0) {
            // '=' parameter name
            sName = sSearch.substring(nCur, nRet);
            nCur = nRet + 1;
            
            // get value
            nRet = sSearch.indexOf('&', nCur);  // search delimiter
            if (nRet == -1) nRet = sSearch.length + 1;
            sValue = sSearch.substring(nCur, nRet);
            
            // set value
            sAry[sName] = sValue;
            
            // search next
            nCur = nRet + 1;
            nRet = sSearch.indexOf('=', nCur);
        }
    }
    
    /* value */
    this.valueOf = function () {
        return sSource;
    }
    
    /* get value method */
    this.item = function (sVarname) {
        try {
            return sAry[sVarname];
        } catch(e) {
            return '';
        }
    }
    
    /* item count */
    this.length   = function () {
        return sAry.length;
    }
    
    /* toString */
    this.toString = function () {
        return this.length + '';
    }
    
}
	var oSearch = new CLocationSearch(location.search);
	pType = parseFloat(oSearch.item('type'));

	if(isNaN(pType)) {
		pType = "";
	}
document.write('<li><a href="/cgi-bin/cms/e_news_release.cgi?yy=2012&type='+pType+'">2012</a></li>');document.write('<li><a href="/cgi-bin/cms/e_news_release.cgi?yy=2011&type='+pType+'">2011</a></li>');document.write('<li><a href="/english/release/index2010.html">2010</a></li>');document.write('<li><a href="/english/release/index2009.html">2009</a></li>');document.write('<li><a href="/english/release/index2008.html">2008</a></li>');document.write('<li><a href="/english/release/index2007.html">2007</a></li>');document.write('<li><a href="/english/release/index2006.html">2006</a></li>');document.write('<li><a href="/english/release/index2005.html">2005</a></li>');document.write('<li><a href="/english/release/index2004.html">2004</a></li>');document.write('<li><a href="/english/release/index2003.html">2003</a></li>');document.write('<li><a href="/english/release/index2002.html">2002</a></li>');document.write('<li><a href="/english/release/index2001.html">2001</a></li>');document.write('<li><a href="/english/release/index2000.html">2000</a></li>');
