if (typeof adingoDA0079100002 == 'undefined') {
    var adingoDA0079100002 = null;
}
var hybridPlus0079100002 = {
    keywordSets : [{"word":"\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u6bd4\u8f03","ref":"HS_tyumoku_ORG_7dad8afa1125db77129e3bb116b592ac"},{"word":"\u30ec\u30fc\u30b7\u30c3\u30af\u6bd4\u8f03","ref":"HS_tyumoku_ORG_acbb01876fd6749befd1e09ae5f4ee5d"},{"word":"\u9ad8\u7d1a\u8eca\u6bd4\u8f03","ref":"HS_tyumoku_ORG_d0404d9fef17f416e1069917ea0204c6"},{"word":"\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u6bd4\u8f03","ref":"HS_tyumoku_ORG_f428299a819f6cbb145d769aada87b5c"},{"word":"\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u6bd4\u8f03","ref":"HS_tyumoku_ORG_3b24471098191ebb2b35809f65a7e5cd"}],
    target : true,
    url : "http://search.diamondblog.jp/sponsor/?Keywords=",
    apikey : "0079100002",
    
    run : function()
    {
        hybridPlus0079100002.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 < hybridPlus0079100002.keywordSets.length; i++) {
            var li  = document.createElement("li");
            var a   = document.createElement("a");
            a.setAttribute("href", hybridPlus0079100002.url + encodeURIComponent(unescape(hybridPlus0079100002.keywordSets[i]['word'])) + '&ref=' + hybridPlus0079100002.keywordSets[i]['ref'] + "&e=ut");
            a.onclick = function() {
                if (adingoDA0079100002!= null && typeof adingoPageTracker != 'undefined') {
                    adingoDA0079100002.adingoClickTracker(this);
                    return false;
                }
            }
            if (hybridPlus0079100002.target) a.setAttribute("target", "_blank");
            a.innerHTML = unescape(hybridPlus0079100002.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 (hybridPlus0079100002.existDAScript() && typeof adingoPageTracker != 'undefined') {
            adingoDA0079100002 = new adingoPageTracker("PDA-791-0008-0079100002", "UTF-8", "00001");
        } else if(count < 10) {
            setTimeout("hybridPlus0079100002.initDA(" + (count + 1) + ")", 100);
        }
    }
}
hybridPlus0079100002.run();
