if (typeof adingoDA0124200002 == 'undefined') {
    var adingoDA0124200002 = null;
}
var hybridPlus0124200002 = {
    keywordSets : [{"word":"MacBook","ref":"CBL_shopping_ORG_b11e916364096c88575391024c7a70ec"},{"word":"\u30c7\u30b8\u30bf\u30eb\u30ab\u30e1\u30e9","ref":"CBL_shopping_ORG_2b9cd47cb5fb25ffb884f38c4024a2f5"},{"word":"\u30de\u30f3\u30ac \u8a66\u3057\u8aad\u307f","ref":"CBL_shopping_ORG_0f6848048778a24ea194c5d16779d352"}],
    target : true,
    url : "http://blog-dresser.ss.adingo.jp/search?q=",
    apikey : "0124200002",
    
    run : function()
    {
        hybridPlus0124200002.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 < hybridPlus0124200002.keywordSets.length; i++) {
            var li  = document.createElement("li");
            var a   = document.createElement("a");
            a.setAttribute("href", hybridPlus0124200002.url + encodeURIComponent(unescape(hybridPlus0124200002.keywordSets[i]['word'])) + '&ref=' + hybridPlus0124200002.keywordSets[i]['ref'] + "&e=ut");
            a.onclick = function() {
                if (adingoDA0124200002!= null && typeof adingoPageTracker != 'undefined') {
                    adingoDA0124200002.adingoClickTracker(this);
                    return false;
                }
            }
            if (hybridPlus0124200002.target) a.setAttribute("target", "_blank");
            a.innerHTML = unescape(hybridPlus0124200002.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 (hybridPlus0124200002.existDAScript() && typeof adingoPageTracker != 'undefined') {
            adingoDA0124200002 = new adingoPageTracker("PDA-1242-0008-0124200002", "UTF-8", "00001");
        } else if(count < 10) {
            setTimeout("hybridPlus0124200002.initDA(" + (count + 1) + ")", 100);
        }
    }
}
hybridPlus0124200002.run();
