if (typeof adingoDA0124200001 == 'undefined') {
    var adingoDA0124200001 = null;
}
var hybridPlus0124200001 = {
    keywordSets : [{"word":"\u30aa\u30f3\u30e9\u30a4\u30f3\u30b2\u30fc\u30e0","ref":"CBL_game_ORG_5deda74216cba86d1f98d8c2a4bcf1da"},{"word":"\u30b2\u30fc\u30e0\u8cb7\u53d6","ref":"CBL_game_ORG_ff6821297d58a20c85f850e71769a5a8"},{"word":"PSP","ref":"CBL_game_ORG_0e9c9bb3639ba35c67b2492f04a34d99"}],
    target : true,
    url : "http://blog-dresser.ss.adingo.jp/search?q=",
    apikey : "0124200001",
    
    run : function()
    {
        hybridPlus0124200001.writeKeywords();
    },

    writeKeywords : function(){
        var divCount = 0;
        if (document.getElementById("adingo_keywords_" + this.apikey) != null) {
            divCount++;
            while (document.getElementById("adingo_keywords_" + this.apikey + "_" + (divCount)) != null) {
                divCount++;
            }
        }
        var idPrefix = divCount == 0 ? "" : "_" + divCount;
        document.write("<div id=\"adingo_keywords_" + this.apikey + idPrefix + "\" class=\"adingo_keywords\"></div>");

        var div = document.getElementById("adingo_keywords_" + this.apikey + idPrefix);

        var ul = document.createElement("ul");
        for (var i = 0; i < hybridPlus0124200001.keywordSets.length; i++) {
            var li  = document.createElement("li");
            var a   = document.createElement("a");
            a.setAttribute("href", hybridPlus0124200001.url + encodeURIComponent(unescape(hybridPlus0124200001.keywordSets[i]['word'])) + '&ref=' + hybridPlus0124200001.keywordSets[i]['ref'] + "&e=ut");
            a.onclick = function() {
                if (adingoDA0124200001!= null && typeof adingoPageTracker != 'undefined') {
                    adingoDA0124200001.adingoClickTracker(this);
                    return false;
                }
            }
            if (hybridPlus0124200001.target) a.setAttribute("target", "_blank");
            a.innerHTML = unescape(hybridPlus0124200001.keywordSets[i]['word']);
            li.appendChild(a);
            ul.appendChild(li);
        }
        div.appendChild(ul);
    },

    addDAScript : function() {
        var script = document.createElement("script");
        script.setAttribute("src", "http://analytics.adingo.jp/pda.php");
        script.setAttribute("type", "text/javascript");
        document.getElementsByTagName("head")[0].appendChild(script); 
    },

    existDAScript : function() {
        var scripts = document.getElementsByTagName("script");
        for (var i = 0; i < scripts.length; i++) {
            if (scripts[i].getAttribute('src') == "http://analytics.adingo.jp/pda.php") return true;
        }
        return false;
    },

    initDA : function(count) {
        if (hybridPlus0124200001.existDAScript() && typeof adingoPageTracker != 'undefined') {
            adingoDA0124200001 = new adingoPageTracker("PDA-1242-0008-0124200001", "UTF-8", "00001");
        } else if(count < 10) {
            setTimeout("hybridPlus0124200001.initDA(" + (count + 1) + ")", 100);
        }
    }
}
hybridPlus0124200001.run();
