var QLife_blogparts = '<div class="qlifebp-bg qlifebp-text qlifebp-border" style="@bg_color @text_color border: 1px solid @border_color; margin-bottom: 4px; padding: 6px; text-align: left; font-size: 13px;"> <div class="qlifebp-title" style="@title_color font-size: 15px; font-weight: bold; margin-bottom: 4px;"> <a class="qlifebp-title" style="@title_color" href="http://www.qlife.jp/hospital_detail_529135_1">山崎歯科医院</a></div> <div style="clear: both;"> <span class="qlifebp-btn" style="display: block; float: left; margin: 0 10px 4px 0; cursor: pointer; font-weight: bold;" id="btn_kuchikomiDyRigTTBHc" onclick="QLife.Blogparts.btnclick( \'btn_kuchikomiDyRigTTBHc\', \'btn_hospitalDyRigTTBHc\', \'kuchikomilistDyRigTTBHc\', \'hospitaldataDyRigTTBHc\');" >口コミ</span> <span class="qlifebp-btn" style="@url_color display: block; float: left; margin: 0 10px 4px 0; cursor: pointer;" id="btn_hospitalDyRigTTBHc" onclick="QLife.Blogparts.btnclick( \'btn_hospitalDyRigTTBHc\', \'btn_kuchikomiDyRigTTBHc\', \'hospitaldataDyRigTTBHc\', \'kuchikomilistDyRigTTBHc\');" >病院案内</span> <a style="@url_color display: block; float: right;" href="http://www.qlife.jp/post.php?hid=529135">口コミする</a> </div> <hr class="qlifebp-border" style="clear: both; height: 2px; background-color: @border_color; color: @border_color;"> <div id="kuchikomilistDyRigTTBHc"> <p style="margin: 0 0 10px 0;"> <a style="@url_color" href="http://www.qlife.jp/kuchikomi_529135_82832?utm_source=web&utm_medium=widget&utm_campaign=" target="_blank"><strong>非抜歯矯正がメイン、受け口は骨切りしなくても矯正だけで治せる！</strong></a><br> 投稿日：2010年01月22日<br> 元々、別の歯科医院へ行ってました。 しかし、休日に歯が欠けてしまい、慌てて元々行っていた歯科医院へ連絡するも断られ、他に休日診療されてる、歯科医院を探してお伺... <span style="display: block; text-align: right;"> <a style="@url_color" href="http://www.qlife.jp/kuchikomi_529135_82832?utm_source=web&utm_medium=widget&utm_campaign=" target="_blank">口コミの続きを読む・・・→</a> </span> </p> <p style="margin: 0 0 10px 0;"> <a style="@url_color" href="http://www.qlife.jp/kuchikomi_529135_82830?utm_source=web&utm_medium=widget&utm_campaign=" target="_blank"><strong>感謝です☆想像を超えるほど綺麗に</strong></a><br> 投稿日：2010年02月28日<br> 最高の気分です。 この前治療が終わりました。矯正治療はざっと２年位です。 今まで気になっていた歯並びが私の想像をはるかに超えるほど綺麗になおりました。 ホ... <span style="display: block; text-align: right;"> <a style="@url_color" href="http://www.qlife.jp/kuchikomi_529135_82830?utm_source=web&utm_medium=widget&utm_campaign=" target="_blank">口コミの続きを読む・・・→</a> </span> </p> <p style="margin: 0 0 10px 0;"> <a style="@url_color" href="http://www.qlife.jp/kuchikomi_529135_82828?utm_source=web&utm_medium=widget&utm_campaign=" target="_blank"><strong>先生に本当に感謝しています</strong></a><br> 投稿日：2010年02月26日<br> 私は、こちらで唯一の歯を抜かない矯正での治療を終えてもうすぐ、結婚式を控えているため歯を白くするホワイトニングで通院しています。 小さい時から顎が小さく、... <span style="display: block; text-align: right;"> <a style="@url_color" href="http://www.qlife.jp/kuchikomi_529135_82828?utm_source=web&utm_medium=widget&utm_campaign=" target="_blank">口コミの続きを読む・・・→</a> </span> </p> <p style="margin: 0 0 10px 0;"> <a style="@url_color" href="http://www.qlife.jp/kuchikomi_529135_82826?utm_source=web&utm_medium=widget&utm_campaign=" target="_blank"><strong>矯正で肩こりがよくなりました</strong></a><br> 投稿日：2010年02月06日<br> もともと歯医者に通うのが長続きせず、虫歯も放置してとても悪い状態で初めて受診しました。 先生もスタッフのかたもとても親切で長い治療になりましたが通えることがで... <span style="display: block; text-align: right;"> <a style="@url_color" href="http://www.qlife.jp/kuchikomi_529135_82826?utm_source=web&utm_medium=widget&utm_campaign=" target="_blank">口コミの続きを読む・・・→</a> </span> </p> <span style="display: block; text-align: right;"> <a style="@url_color" href="http://www.qlife.jp/hospital_detail_529135_1" target="_blank">他124件の口コミを見る→</a> </span> </div><!-- /#kuchikomilist --> <div id="hospitaldataDyRigTTBHc" style="display: none;"> <p style="margin: 0 0 10px 0;"> <span style="font-weight: bold;">診療科目</span><br> 歯科　矯正歯科 </p> <p style="margin: 0 0 10px 0;"> <span style="font-weight: bold;">郵便番号</span><br> 601-8044 </p> <p style="margin: 0 0 10px 0;"> <span style="font-weight: bold;">住所</span><br> 京都府京都市南区東九条明田町13-2　日光ハイツ1F </p> <p style="margin: 0 0 10px 0;"> <span style="font-weight: bold;">TEL</span><br> 075-682-0888 </p> <p style="margin: 0 0 10px 0;"> <span style="font-weight: bold;">診察時間</span><br> 午前：月〜土　9:30〜13:00<br> 午後：月〜金　14:30〜20:30　土　14:30〜18:30<br> </p> <p style="margin: 0 0 10px 0;"> <span style="font-weight: bold;">休診日</span><br> 日・祝 </p> <p style="margin: 0 0 10px 0;"> <span style="font-weight: bold;">最寄り駅</span><br> 九条 (京都市営地下鉄烏丸線) 299m / 十条 (京都市営地下鉄烏丸線) 481m / 十条 (近鉄京都線) 653m </p> <p style="margin: 0 0 20px 0;"> <a style="@url_color" href="http://www.qlife.jp/printmap.php?hid=529135" onclick="javascript:window.open(\'http://www.qlife.jp/printmap.php?hid=529135\', \'printmap\', \'width=710,height=600,menubar=yes,toolbar=yes,location=yes,resizable=yes,scrollbars=yes\'); return false;">地図を印刷</a> </p> <p style="margin: 0 0 10px 0; font-size: 11px;"> <span style="font-weight: bold;">注意事項</span><br> <span style=""> 病院情報は、株式会社ウェルネス医療情報センターが独自に収集したものです。正確な情報収集に努めておりますが、内容を完全に保証するものではありません。実際に掲載医療機関で受診を希望される場合は、事前に医療機関に確認していただくことをお勧めします。 情報の誤りを発見された方は<a style="@url_color" href="http://www.qlife.jp/request/inquiry.php" target="_blank">こちら</a>からご連絡をいただければ幸いです。 </span> </p> </div><!-- /#hospitaldata --> </div>';
var gaUid = 'UA-988781-12'; // Google Analytics: uid
var unixTime = 1283441652; // 現在時刻(unix時刻)


if (typeof(QLife) == 'undefined') {
    var QLife = { Blogparts : {} };
}

QLife.Blogparts = {
    init : function(){
		if (typeof(QLife_Title_Color) != 'undefined' && this._isColor(QLife_Title_Color)) {
		    QLife_blogparts = QLife_blogparts.replace(/@title_color/g, 'color: #' + QLife_Title_Color + '; ');
		}
        if (typeof(QLife_Text_Color) != 'undefined' && this._isColor(QLife_Text_Color)) {
		    QLife_blogparts = QLife_blogparts.replace(/@text_color/g, 'color: #' + QLife_Text_Color + '; ');
		}
        if (typeof(QLife_Background_Color) != 'undefined' && this._isColor(QLife_Background_Color)) {
		    QLife_blogparts = QLife_blogparts.replace(/@bg_color/g, 'background-color: #' + QLife_Background_Color + '; ');
		}
        if (typeof(QLife_Border_Color) != 'undefined' && this._isColor(QLife_Border_Color)) {
		    QLife_blogparts = QLife_blogparts.replace(/@border_color/g, '#' + QLife_Border_Color + ' ');
		}
        if (typeof(QLife_URL_Color) != 'undefined' && this._isColor(QLife_URL_Color)) {
		    QLife_blogparts = QLife_blogparts.replace(/@url_color/g, 'color: #' + QLife_URL_Color + '; ');
		} else {
			QLife_URL_Color = '000';
		}
		document.write(QLife_blogparts.replace(/@[a-z_]+/, ''));
		this._googleAnalytics();
    },
    /**
     * HTML色コードのとき、trueを返す
     */
    _isColor : function(htmlColor){
	    return htmlColor.match(/[0-9a-f]{3,6}/i);
    },
    /**
     *
     */
    _googleAnalytics : function(){
        if (String(location.href).match(/\.qlife\.jp/)) {
            return
        }
		var utmac = gaUid; //enter the new urchin code
		var utmhn = String(location.href).replace(/^https*:\/\/([^\/]+)\/.*$/, '$1'); // $domain; //enter your domain
		var utmn = Math.floor(Math.random() * 9000000000) + 1000000000; // rand(1000000000,9999999999);//random request number
		var cookie = '';//$session; //cookie number
		var random = Math.floor(Math.random() * 1147483647) + 1000000000; // rand(1000000000,2147483647); //number under 2147483647
		var today = unixTime; //today
		var referer = document.referrer; // sfContext::getInstance()->getRequest()->getReferer();//$_SERVER['HTTP_REFERER']; //referer url
		var uservar = '';//$storeinfo['storeid']; //enter your own user defined variable
		var utmp = String(location.href).replace(/^https*:\/\/[^\/]+(\/.*)$/, '$1'); // $_SERVER['REQUEST_URI']; // request uri
		//
//		alert('utmac=' + utmac + "\nyhmhn=" + utmhn + "\nutmn=" + utmn +
//		  "\nrandom=" + random + "\ntoday=" + unixTime +
//		  "\nreferer=" + referer + "\nutmp=" + utmp);

		var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
		var urchinUrl = gaJsHost + 'google-analytics.com/__utm.gif?utmwv=1&utmn=' + utmn +
            '&utmsr=-&utmsc=-&utmul=-&utmje=0&utmfl=-&utmdt=-&utmhn=' + utmhn +
            '&utmr=' + encodeURIComponent(referer) + '&utmp=' + encodeURIComponent(utmp) + '&utmac=' + utmac +
            '&utmcc=__utma%3D' + cookie + '.' + random + '.' + today + '.' + today + '.' + today +
            '.2%3B%2B__utmb%3D' + cookie + '%3B%2B__utmc%3D' + cookie +
            '%3B%2B__utmz%3D' + cookie + '.' + today +
            '.2.2.utmccn%3D(direct)%7Cutmcsr%3D(direct)%7Cutmcmd%3D(none)%3B%2B__utmv%3D' +
            cookie + '.' + uservar + '%3B';
        document.write('<img src="' + urchinUrl + '" border="0" width="1" height="1" />');
    },

    btnclick : function(openBtnId, closeBtnId, openDivId, closeDivId){
        var btnOpen = document.getElementById(openBtnId);
        var btnClose = document.getElementById(closeBtnId);
        btnOpen.style.fontWeight = 'bold';
        btnOpen.style.color = ''; // TODO
        btnClose.style.fontWeight = 'normal';
        btnClose.style.color = '#' + QLife_URL_Color;
        //
        var divOpen = document.getElementById(openDivId);
        var divClose = document.getElementById(closeDivId);
        divOpen.style.display = 'block';
        divClose.style.display = 'none';
    }
}

QLife.Blogparts.init();
