/* Copyright (C) 2008 HeartRails Inc. All Rights Reserved. */
(function(){if (!navigator.userAgent.toUpperCase().match('MSIE')) {
    var kwout = document.createElement('script');
    kwout.charset = 'UTF-8';
    kwout.language = 'javascript';
    kwout.type = 'text/javascript';
    kwout.src = 'http://kwout.com/javascripts/widget.js?domain=' + encodeURIComponent('kwout.com') + '&url=' + encodeURIComponent('http://news.livedoor.com/article/detail/4445200/') + '&id=8tdmaz8p&service=livedoor';
    document.body.appendChild(kwout);
    return;
}
var id = 'kwout_8tdmaz8p';
var url = 'http://news.livedoor.com/article/detail/4445200/';
var charset = '';
if (document.charset) charset = document.charset.toUpperCase();
else if (document.characterSet) charset = document.characterSet.toUpperCase();
if (document.getElementById(id)) {
    var blog = '';
    var clip = '';
    var reader = '';
    var ad = '';
    if (charset == 'UTF-8') {
        blog = '<a href="http://livedoor.kwout.com/quote/8tdmaz8p?livedoor" style="margin: 0px; padding: 0px;"><img src="http://livedoor.kwout.com/images/livedoor_blog.gif" alt="ブログを書く" title="ブログを書く" height="20" width="20" style="border: none; margin: 0px; padding: 0px;" /></a>';
        clip = '<a href="http://clip.livedoor.com/page/http://news.livedoor.com/article/detail/4445200/" style="margin: 0px; padding: 0px;"><img src="http://livedoor.kwout.com/images/livedoor_clip.gif" alt="クリップする" title="クリップする" height="20" width="20" style="border: none; margin: 0px; padding: 0px;" /></a>';
        reader = '<a href="http://reader.livedoor.com/subscribe/http://news.livedoor.com/article/detail/4445200/" style="margin: 0px; padding: 0px;"><img src="http://livedoor.kwout.com/images/livedoor_reader.gif" alt="購読する" title="購読する" height="20" width="20" style="border: none; margin: 0px; padding: 0px;" /></a>';
        ad = '[AD] <a href="http://www.heartrails.com/company/advertisement.html" rel="nofollow" style="margin: 0px; padding: 0px;">「livedoor × kwout」 に広告を掲載しませんか？</a>';
    } else if (charset == 'SHIFT_JIS') {
        blog = '<a href="http://livedoor.kwout.com/quote/8tdmaz8p?livedoor" style="margin: 0px; padding: 0px;"><img src="http://livedoor.kwout.com/images/livedoor_blog.gif" alt="uO" title="uO" height="20" width="20" style="border: none; margin: 0px; padding: 0px;" /></a>';
        clip = '<a href="http://clip.livedoor.com/page/http://news.livedoor.com/article/detail/4445200/" style="margin: 0px; padding: 0px;"><img src="http://livedoor.kwout.com/images/livedoor_clip.gif" alt="Nbv" title="Nbv" height="20" width="20" style="border: none; margin: 0px; padding: 0px;" /></a>';
        reader = '<a href="http://reader.livedoor.com/subscribe/http://news.livedoor.com/article/detail/4445200/" style="margin: 0px; padding: 0px;"><img src="http://livedoor.kwout.com/images/livedoor_reader.gif" alt="wǂ" title="wǂ" height="20" width="20" style="border: none; margin: 0px; padding: 0px;" /></a>';
        ad = '[AD] <a href="http://www.heartrails.com/company/advertisement.html" rel="nofollow" style="margin: 0px; padding: 0px;">ulivedoor ~ kwoutv ɍLfڂ܂񂩁H</a>';
    } else if (charset == 'EUC-JP') {
        blog = '<a href="http://livedoor.kwout.com/quote/8tdmaz8p?livedoor" style="margin: 0px; padding: 0px;"><img src="http://livedoor.kwout.com/images/livedoor_blog.gif" alt="֥" title="֥" height="20" width="20" style="border: none; margin: 0px; padding: 0px;" /></a>';
        clip = '<a href="http://clip.livedoor.com/page/http://news.livedoor.com/article/detail/4445200/" style="margin: 0px; padding: 0px;"><img src="http://livedoor.kwout.com/images/livedoor_clip.gif" alt="åפ" title="åפ" height="20" width="20" style="border: none; margin: 0px; padding: 0px;" /></a>';
        reader = '<a href="http://reader.livedoor.com/subscribe/http://news.livedoor.com/article/detail/4445200/" style="margin: 0px; padding: 0px;"><img src="http://livedoor.kwout.com/images/livedoor_reader.gif" alt="ɤ" title="ɤ" height="20" width="20" style="border: none; margin: 0px; padding: 0px;" /></a>';
        ad = '[AD] <a href="http://www.heartrails.com/company/advertisement.html" rel="nofollow" style="margin: 0px; padding: 0px;">livedoor  kwout ˹Ǻܤޤ󤫡</a>';
    } else {
        blog = '<a href="http://livedoor.kwout.com/quote/8tdmaz8p?livedoor" style="margin: 0px; padding: 0px;"><img src="http://livedoor.kwout.com/images/livedoor_blog.gif" alt="livedoor Blog" title="livedoor Blog" height="20" width="20" style="border: none; margin: 0px; padding: 0px;" /></a>';
        clip = '<a href="http://clip.livedoor.com/page/' + url + '" style="margin: 0px; padding: 0px;"><img src="http://livedoor.kwout.com/images/livedoor_clip.gif" alt="livedoor Clip" title="livedoor Clip" height="20" width="20" style="border: none; margin: 0px; padding: 0px;" /></a>';
        reader = '<a href="http://reader.livedoor.com/subscribe/' + url + '" style="margin: 0px; padding: 0px;"><img src="http://livedoor.kwout.com/images/livedoor_reader.gif" alt="livedoor Reader" title="livedoor Reader" height="20" width="20" style="border: none; margin: 0px; padding: 0px;" /></a>';
        ad = '[AD] <a href="http://www.heartrails.com/company/advertisement.html" rel="nofollow" style="margin: 0px; padding: 0px;">Your AD Here!</a>';
    }
    var p1 = document.createElement('p');
    p1.style.marginBottom = '0px';
    p1.style.marginTop = '10px';
    p1.style.paddingBottom = '0px';
    p1.style.paddingTop = '0px';
    p1.style.textAlign = 'center';
    p1.innerHTML = blog + ' ' + clip + ' ' + reader;
    document.getElementById(id).appendChild(p1);
    var p2 = document.createElement('p');
    p2.style.marginBottom = '0px';
    p2.style.marginTop = '10px';
    p2.style.paddingBottom = '0px';
    p2.style.paddingTop = '0px';
    p2.style.textAlign = 'center';
    p2.innerHTML = ad;
    document.getElementById(id).appendChild(p2);
}
})();
