if (typeof adingoDA0014500005 == 'undefined') {
    var adingoDA0014500005 = null;
}
var hybridPlus0014500005 = {
    keywordSets : [{"word":"FX","ref":"HS_news_ORG_b8b5089c70ae62534970e2d8aa67e96d"},{"word":"\u51fa\u4f1a\u3044","ref":"HS_news_ORG_9ff9e06fc8a3458ca9ba1679afdf2996"},{"word":"\u8ee2\u8077","ref":"HS_news_ORG_5b014b8a1abd9e68586b6231c736a68e"},{"word":"\u82f1\u4f1a\u8a71\u30b9\u30af\u30fc\u30eb","ref":"HS_news_ORG_c4ac58b924c26b4205665138c27f7166"},{"word":"\u53e3\u81ed\u5bfe\u7b56","ref":"HS_news_ORG_41ea48b15656021ef74ac4b5cabaacba"},{"word":"\u4eba\u6c17\u306e\u8cc7\u683c","ref":"HS_news_ORG_9b0b69c89d5e7b92c7b8cee8604f5f52"}],
    target : false,
    url : "http://search.toremaga.com/sponsor/?Keywords=",
    apikey : "0014500005",
    
    run : function()
    {
        hybridPlus0014500005.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 < hybridPlus0014500005.keywordSets.length; i++) {
            var li  = document.createElement("li");
            var a   = document.createElement("a");
            a.setAttribute("href", hybridPlus0014500005.url + encodeURIComponent(unescape(hybridPlus0014500005.keywordSets[i]['word'])) + '&ref=' + hybridPlus0014500005.keywordSets[i]['ref'] + "&e=ut");
            a.onclick = function() {
                if (adingoDA0014500005!= null && typeof adingoPageTracker != 'undefined') {
                    adingoDA0014500005.adingoClickTracker(this);
                    return false;
                }
            }
            if (hybridPlus0014500005.target) a.setAttribute("target", "_blank");
            a.innerHTML = unescape(hybridPlus0014500005.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 (hybridPlus0014500005.existDAScript() && typeof adingoPageTracker != 'undefined') {
            adingoDA0014500005 = new adingoPageTracker("PDA-145-0008-0014500005", "UTF-8", "00001");
        } else if(count < 10) {
            setTimeout("hybridPlus0014500005.initDA(" + (count + 1) + ")", 100);
        }
    }
}
hybridPlus0014500005.run();
