/****************************************************************
 * Javascript の読込
 *
 ****************************************************************/

document.write('<script type="text/javascript" src="http://www.figure.kanaya440.com/js/prototype.js"></script>');
document.write('<script type="text/javascript" src="http://www.figure.kanaya440.com/js/external.js"></script>');
document.write('<script type="text/javascript" src="http://www.figure.kanaya440.com/js/scrollsmoothly.js"></script>');
document.write('<script src="http://platform.twitter.com/widgets.js" type="text/javascript" charset="utf-8"></script>');

/****************************************************************
 * メールアドレスを正しい順に並び替えて表示する（スパム対策）
 *
 ****************************************************************/
function maddr(){
    mail=maddr.arguments[4] + maddr.arguments[2] + maddr.arguments[1] + maddr.arguments[3] + maddr.arguments[0];
    document.write(mail.link('mailto:' + maddr.arguments[4] + maddr.arguments[2] + maddr.arguments[1] + maddr.arguments[3] + maddr.arguments[0]));
}
function kaddr(){
    waddr('&#46;&#99;&#111;&#109;','&#97;&#110;&#97;&#121;','&#105;&#111;&#64;&#107;','&#97;&#52;&#52;&#48;','&#121;&#111;&#115;&#104;');
}
function waddr(){
    mail='Contact Me';
    document.write(mail.link('mailto:' + waddr.arguments[4] + waddr.arguments[2] + waddr.arguments[1] + waddr.arguments[3] + waddr.arguments[0]));
}

/****************************************************************
 * メールアドレスを表示する（スパム対策）
 *
 ****************************************************************/
function wmaddr(){
    mail='&#121;&#111;&#115;&#104;&#105;&#111;&#64;&#107;&#97;&#110;&#97;&#121;&#97;&#52;&#52;&#48;&#46;&#99;&#111;&#109;'
    document.write(mail.link('mailto:' + mail));
}

var newWin=0;
function winOpen(pic,width,height){
    var obj = document.all && document.all('pic') || document.getElementById && document.getElementById('pic');
    obj.value = pic;
    var intLeft   = (screen.width - width) / 2;
    var intTop    = (screen.height - height) / 2;
    if(newWin) {
        if(!newWin.closed) newWin.close();
    }
    newWin = window.open('pop.html','','status=0,location=0,scrollbars=0,resizable=0,toolbar=0,directories=0,menubar=0,width='+width+',height='+height+',left='+intLeft+', top='+intTop+',screenX='+intLeft+',screenY='+intTop+'');
}

/****************************************************************
 * お気に入りに登録
 ****************************************************************/
function addBookmark(title,url) {
    if (window.sidebar) {
        window.sidebar.addPanel(title, url,"");
    } else if( document.all ) {
        window.external.AddFavorite( url, title);
    } else if( window.opera && window.print ) {
        return true;
    }
}

/****************************************************************
 * Google +1
 ****************************************************************/
document.write('<script type="text/javascript" src="http://apis.google.com/js/plusone.js">');
document.write('  {lang: \'ja\'}');
document.write('</script>');

/****************************************************************
 *  Google Analytics（AdSenseトラッキングコード）
 ****************************************************************/
document.write('<script type="text/javascript">');
document.write('window.google_analytics_uacct = "UA-247461-2";');
document.write('</script>');

/****************************************************************
 * Google Analytics
 ****************************************************************/
document.write('<script type="text/javascript">');
document.write('');
document.write('  var _gaq = _gaq || [];');
document.write('  _gaq.push([\'_setAccount\', \'UA-247461-2\']);');
document.write('  _gaq.push([\'_trackPageview\']);');
document.write('');
document.write('  (function() {');
document.write('    var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;');
document.write('    ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';');
document.write('    var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);');
document.write('  })();');
document.write('');
document.write('</script>');


