///////////////////////////////////////////////////////////////
//IE6
try { 
	document.execCommand('BackgroundImageCache', false, true); 
} catch(e) {} 

///////////////////////////////////////////////////////////////
//トラッキングコード
try{
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-21007624-1']);
	_gaq.push(['_trackPageview']);

	(function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();

} catch(e) {} 

///////////////////////////////////////////////////////////////
//別窓表示
//院内フォト
function NewWindow(k){
		var styleStr = 'width=540,height=360,top=10,left=10,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes';
		var win = window.open("","win",styleStr);
		win.document.clear();
		win.document.close();
		with (win.document) {
			write('<html lang="ja"><head><title>院内Photo</title></head>');
			write('<body style="background:url('+k+') no-repeat; background-position:center;">');
			write('</body></html>');
		}
		win.focus();
}

//////////////////////////////////////////////////////////////
//サイズ指定拡大
function PopWindow(f,x,y){

	var win;
	var styleStr = "";

	if(x == undefined){ x = 640;}
	if(y == undefined){ y = 480;}

	var w = x;
	var h = y;

	styleStr = 'width=' +x+ ',height=' +y;
	styleStr += ',menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes';

	win = window.open("","PopWindow",styleStr);
	win.document.clear();

	if(undefined !== window.execScript){
		w = 12 +x;
		h = 30 +y;
	}else{
		w = 10 +x;
		h = 80 +y;
	}

	//ウィンドウサイズ変更処理
	win.window.resizeTo(w,h);
	
	//内容描画
	with (win.document) {
		write('<html lang="ja"><head><title>拡大写真</title></head>');
		write('<body style="margin:0;">');
		write('<div style="width:100%; height:100%; background:url('+f+') center no-repeat;">');
		write('</body></html>');
	}

	win.document.close();
	win.focus();

}

//////////////////////////////////////////////////////////////
function Analyze(){
}
