﻿// util
function moveTo(elem, width, height, cheight) {
    var scr = {
        width  : document.body.clientWidth  || document.documentElement.clientWidth,
        height : document.documentElement.clientHeight || document.body.clientHeight,
        y : document.body.scrollTop || document.documentElement.scrollTop
    };
    elem.style.left = ((scr.width - width) / 2) + 'px';
    elem.style.top  = ((scr.height - height) / 2 + scr.y + cheight) + 'px';
}






// gettag mobile
var mobile = '';
mobile += '<div id="mobile_url"' +
          '     style="z-index:9999;display:none;font-size:83%;width:225px;background-color:#000000; border:1px solid #696969; position:absolute">' +
          '<div style="padding:2px 5px 0 0;text-align:right;font-size:75% top:0px; left:0px;">' +
          '<a href="javascript:void(0)" onclick="document.getElementById(\'mobile_url\').style.display = \'none\'"><font color="#ffffff">×閉じる</font></a></div>' +
          '<div style="padding:5px;background-color:#808080;border:2px solid #696969;">' +
          '<div>' +
          '<br /><img src="http://healinglabel.com/01/mobile.jpg" style="margin:3px;"></div>' +
          '<br style="clear:both;" />' +
          '<div>' +
          '<img src="http://healinglabel.com/01/music-jp.jpg" style="margin:3px;" /></div>' +
          '<br style="clear:both;" />' +
          '</div>' +
          '</div>';

function disp_gettag_dialog_code2(event) {
    var dlg = document.getElementById('mobile_url');
    if ( dlg.style.display == 'block' ) return;
    moveTo(dlg, 425, 644, 370);
    dlg.style.display = 'block';
}




// imagerollover
function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}



document.write(mobile);
document.write('<div style="margin:0 auto; padding:5px 0; width:170px; height:350px; text-align:center; background-color: #d1fbd5; font-family:arial;" id="clock_parts-01">');
document.write('<div style="text-align:center;padding:1px 0;"><a href="http://healinglabel.com/inochi-no-namae.html?bp" target="_blank"><img src="http://healinglabel.com/blog/img/pray4japan1-ja_off.gif" border="0" width="170" height="260" name="clickhere" /></a></div>');
document.write('<p style="font-size:10px; padding-top:5px; color:#6db07a; margin:3px ">Now Playing<br /><span style="font-weight:bold;">命のなまえ ~ﾒﾃﾞｨﾃｰｼｮﾝ~</span></p>');
document.write('<object type="application/x-shockwave-flash" width="160" height="20" data="http://healinglabel.com/swf/singlemp3player.swf?file=http://musicserver.lio.jp/blogparts/pray4japan/05-melo-kanso.mp3&autoStart=true&backColor=6db07a&frontColor=ffffff&songVolume=80&showDownload=false&repeatPlay=true">');
document.write('<param name="movie" value="http://healinglabel.com/swf/singlemp3player.swf?file=http://musicserver.lio.jp/blogparts/pray4japan/05-melo-kanso.mp3&autoStart=true&backColor=6db07a&frontColor=ffffff&songVolume=80&showDownload=false&repeatPlay=true">');
document.write('<param name="wmode" value="transparent">');
document.write('</object>');
document.write('<p style="font-size:10px; padding-top:5px; color:#6db07a;"><a href="http://www.healinglabel.com" target="_blank" style="color:#6db07a;">&copy; Comfort All Rights Riserved.</a></p>');
document.write('</div>');

