(function(){
var src = 'http://hayah.jp/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;
/* Monitor Size */
w = screen.width;
h = screen.height;
var title;
try{
	title = encodeURIComponent(parent.document.title);
}catch(e){
	title = encodeURIComponent(document.title);
}

args += '&amp;guid=ON';
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="">');
})();