if (typeof adingoDA0088200003 == 'undefined') {
    var adingoDA0088200003 = null;
}
var hybridPlus0088200003 = {
    keywordSets : [{"word":"\u9ad8\u6027\u80fdPC","ref":"HS_TOP-main_ORG_b4071c4c86c46257feca6fad44efeda1"},{"word":"\u30b2\u30fc\u30e0\u5b66\u6821","ref":"HS_TOP-main_ORG_1ec23838132eb771de522b7b465a6a7b"},{"word":"\u30a4\u30f3\u30c6\u30ea\u30a2\u30b3\u30fc\u30c7\u30a3\u30cd\u30fc\u30bf","ref":"HS_TOP-main_ORG_a0f47cfef18282d0a76c4020ea5b062e"}],
    target : true,
    url : "http://search.animate.tv/sponsor/?Keywords=",
    apikey : "0088200003",
    
    run : function()
    {
        hybridPlus0088200003.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 < hybridPlus0088200003.keywordSets.length; i++) {
            var li  = document.createElement("li");
            var a   = document.createElement("a");
            a.setAttribute("href", hybridPlus0088200003.url + encodeURIComponent(unescape(hybridPlus0088200003.keywordSets[i]['word'])) + '&ref=' + hybridPlus0088200003.keywordSets[i]['ref'] + "&e=ut");
            a.onclick = function() {
                if (adingoDA0088200003!= null && typeof adingoPageTracker != 'undefined') {
                    adingoDA0088200003.adingoClickTracker(this);
                    return false;
                }
            }
            if (hybridPlus0088200003.target) a.setAttribute("target", "_blank");
            a.innerHTML = unescape(hybridPlus0088200003.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 (hybridPlus0088200003.existDAScript() && typeof adingoPageTracker != 'undefined') {
            adingoDA0088200003 = new adingoPageTracker("PDA-882-0008-0088200003", "UTF-8", "00001");
        } else if(count < 10) {
            setTimeout("hybridPlus0088200003.initDA(" + (count + 1) + ")", 100);
        }
    }
}
hybridPlus0088200003.run();
