
	var src = 'http://news-soleil.com/moogle/writelog.php';
	var args = '?mode=img';
	var ref = '';
	var path = '';
	var auid = '';
	var sofid = '';
	var w, h;
	var wm, hm;
	var jump,postUrl;
	var docTitle;

	if(!ref){
		ref = parent.document.referrer;
		ref = ref.replace(/&/g,"%26");
	}
	docTitle = parent.document.title;
	if(docTitle.length>=50){
		docTitle = docTitle.slice(0, 50);
	}

	//ループ使用sleep関数
	function _sleep(time){
		var d1 = new Date().getTime();
		var d2 = new Date().getTime();
		while( d2 < d1 + time ){
			d2=new Date().getTime();
		}
		return;
	}

	/*onload ここから クリック測定のスクリプト*/
	/*window.onload=function(){*/
	/*	var jump;*/
	/*	var req;*/
	/*	var e=document.getElementsByTagName('A');*/
		/*別ウィンドウで開くexternal.jsを内蔵*/
	/*	for (var aa=0; aa<e.length; aa++) {*/
	/*		var es = e[aa];*/
	/*		if (es.getAttribute("href") && ((es.getAttribute("rel") == "external nofollow") || (es.getAttribute("rel") == "nofollow external") || (es.getAttribute("rel") == "external"))) 	es.target = "_blank";*/
	/*	}*/

		/*var po=document.getElementsByTagName('FORM');ボタンクリックはバグル危険*/
		/* ブラウザサイズ */
	/*	if (self.innerHeight) {*/
	/*		w = self.innerWidth;*/
	/*		h = self.innerHeight;*/
	/*	} else if (document.documentElement && document.documentElement.clientHeight) {*/
	/*		w = document.documentElement.clientWidth;*/
	/*		h = document.documentElement.clientHeight;*/
	/*	} else if (document.body) {*/
	/*		w = document.body.clientWidth;*/
	/*		h = document.body.clientHeight;*/
	/*	}*/
		/* ＜IEの場合＞ body の幅を取得するので<body>タグの前に実行しても「NaN」になってしまう。<body>の下にいれること。*/
	/*	w = Math.round((w / 10)) * 10;*/
	/*	h = Math.round((h / 10)) * 10;*/
		/* モニターサイズ */
	/*	wm = screen.width;*/
	/*	hm = screen.height;*/
		/* 変数を作成する */
		/*ref = ref.replace(/(%)/g,"_P_");*/
		/*ref = ref.replace(/(&)/g,"_A_");*/
		/*path = path.replace(/(&)/g,"_A_");*/
	/*	args += '&ref='+ref;*/
	/*	args += '&path='+path;*/
	/*	args += '&auid='+auid;*/
	/*	args += '&sofid='+sofid;*/
	/*	args += '&browsersize='+w+'x'+h;*/
	/*	args += '&monitor='+wm+'x'+hm;*/
	/*	args += '&page_title='+encodeURI(docTitle);*/
	/*	args += '&color='+(navigator.appName != "Netscape" ? screen.colorDepth : screen.pixelDepth);*/
	/*	args += '&cookie='+(navigator.cookieEnabled ? 1 : 2);*/
	/*	args += '&js=1';*/

	/*	for (var i=0; i<e.length; i++) e[i].onclick=function(){*/
	/*		jump = this.href;*/
	/*		motoUrl = jump.replace(/&/g,"%26");*/
	/*		jump = jump.replace(/&/g,"%26");*/
	/*		jump = encodeURI(jump);*/
				/*document.write('<img src="' + src + args + '&jump=:' + jump + '" width="0" height="0" style="visibility:hidden;">');*/
	/*		req = src + args + '&jump=' + jump;*/
				/*_sleep(1000);*/
				/*document.write(req);*/
				/*location.href=req;*/
				/*window.open(jump,null);*/
			/*すでにURLが置き換わっている場合があるので*/
	/*		if(jump.indexOf(src)==-1){*/
	/*			this.href = req;*/
	/*		}*/
			/*_sleep(2000);*/
	/*		/*this.href = motoUrl;*/
	/*	}*/
	/*}*/
	/*onload ここまで*/


	/* ブラウザサイズ */
	if (self.innerHeight) {
		w = self.innerWidth;
		h = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		w = document.documentElement.clientWidth;
		h = document.documentElement.clientHeight;
	} else if (document.body) {
		w = document.body.clientWidth;
		h = document.body.clientHeight;
	}
	/* ＜IEの場合＞ body の幅を取得するので<body>タグの前に実行しても「NaN」になってしまう。<body>の下にいれること。*/
	w = Math.round((w / 10)) * 10;
	h = Math.round((h / 10)) * 10;
	/* モニターサイズ */
	wm = screen.width;
	hm = screen.height;
	/* 変数を作成する */
	/*ref = ref.replace(/(%)/g,"_P_");*/
	/*ref = ref.replace(/(&)/g,"_A_");*/
	/*path = path.replace(/(&)/g,"_A_");*/
	args += '&ref='+ref;
	args += '&path='+path;
	args += '&auid='+auid;
	args += '&sofid='+sofid;
	args += '&browsersize='+w+'x'+h;
	args += '&monitor='+wm+'x'+hm;
	args += '&page_title='+encodeURI(docTitle);
	args += '&color='+(navigator.appName != "Netscape" ? screen.colorDepth : screen.pixelDepth);
	args += '&cookie='+(navigator.cookieEnabled ? 1 : 2);
	args += '&js=1';
	/*document.write(args);*/
	document.write('<img src="' + src + args + '" width="0" height="0" style="visibility:hidden;">');
