if (typeof adingoDA0114400001 == 'undefined') {
    var adingoDA0114400001 = null;
}
var hybridPlus0114400001 = {
    keywordSets : [{"word":"\u52d5\u753b\u914d\u4fe1\u7121\u6599","ref":"CBL_madoshita-1_FIX_a68887227a0053d2fee94bf0dc951459"},{"word":"\u30b0\u30e9\u30d3\u30a2\u52d5\u753b","ref":"CBL_madoshita-1_FIX_13c3538ce46a58d81ac55c547ab7e270"},{"word":"\u62c5\u4fdd \u878d\u8cc7","ref":"CBL_madoshita-1_HIGH_7bac636aa603f003e5bdeaf539b1c573"},{"word":"\u7bc0\u6c34\u30b3\u30de","ref":"CBL_madoshita-1_R-SKEY_b8d933b2fc44a8b7cc83d1acaeb3d9a4"},{"word":"\u30b7\u30b9\u30c6\u30e0\u30c6\u30b9\u30c8","ref":"CBL_madoshita-1_HIGH_86455095a348be46a9f2356dc5814b64"},{"word":"\u30a6\u30f3\u30c1","ref":"CBL_madoshita-1_high-health_ceee5b439eb93120552f0e6fb156b37c"}],
    target : false,
    url : "http://search.kiraku.tv/?Keywords=",
    apikey : "0114400001",
    
    run : function()
    {
        hybridPlus0114400001.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 < hybridPlus0114400001.keywordSets.length; i++) {
            var li  = document.createElement("li");
            var a   = document.createElement("a");
            a.setAttribute("href", hybridPlus0114400001.url + encodeURIComponent(unescape(hybridPlus0114400001.keywordSets[i]['word'])) + '&ref=' + hybridPlus0114400001.keywordSets[i]['ref'] + "&e=ut");
            a.onclick = function() {
                if (adingoDA0114400001!= null && typeof adingoPageTracker != 'undefined') {
                    adingoDA0114400001.adingoClickTracker(this);
                    return false;
                }
            }
            if (hybridPlus0114400001.target) a.setAttribute("target", "_blank");
            a.innerHTML = unescape(hybridPlus0114400001.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 (hybridPlus0114400001.existDAScript() && typeof adingoPageTracker != 'undefined') {
            adingoDA0114400001 = new adingoPageTracker("PDA-1144-0008-0114400001", "UTF-8", "00001");
        } else if(count < 10) {
            setTimeout("hybridPlus0114400001.initDA(" + (count + 1) + ")", 100);
        }
    }
}
hybridPlus0114400001.run();
