var src = '/mogura/writelog.php';
var args = '?mode=img';
var ref;
try{
	ref = encodeURIComponent(parent.document.referrer);
}catch(e){
	ref = encodeURIComponent(document.referrer);
}
var path = document.URL ? encodeURIComponent(document.URL.split('#')[0]) : '';
var w, h;
/* ブラウザサイズ */
//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;
//}
//w = Math.round((w / 10)) * 10;
//h = Math.round((h / 10)) * 10;
/* モニターサイズ */
w = screen.width;
h = screen.height;
var title;
try{
	title = encodeURIComponent(parent.document.title);
}catch(e){
	title = encodeURIComponent(document.title);
}
if(document.getElementsByTagName('title')[0].text) {
	title  = encodeURIComponent(document.getElementsByTagName('title')[0].text);
}
if(title == null || title == ""){
	title = "notitle"
}

args += '&amp;ref='+ref;
args += '&amp;path='+path;
args += '&amp;monitor='+w+'x'+h;
args += '&amp;title='+title;
args += '&amp;color='+(navigator.appName != "Netscape" ? screen.colorDepth : screen.pixelDepth);
args += '&amp;cookie='+(navigator.cookieEnabled ? 1 : 2);
args += '&amp;js=1';
document.write('<img src="' + src + args + '" width="1" height="1" alt="">');
