var logcgiUrl = 'http://www.futomi.com/cgi-bin/acc/log.cgi';
// Client Screen Information
var srcWidth = screen.width;
var srcHeight = screen.height;
var srcColor = screen.colorDepth;
if(isNaN(srcWidth) || isNaN(srcHeight) || isNaN(srcColor)) {
	srcWidth = '';
	srcHeight = '';
	srcColor = '';
}
// Client Screen Inner Size
var inWidth;
var inHeight;
if(window.opera||document.layers){       //n4 o6—p
	inWidth = innerWidth;
	inHeight = innerHeight;
} else if(document.all){                 //e—p
	inWidth = document.body.clientWidth;
	inHeight = document.body.clientHeight;
} else if(document.getElementById){      //n6,n7,m1—p
	inWidth = innerWidth;
	inHeight = innerHeight;
}
// Cookie Enabled
var cookieStatus;
if(navigator.cookieEnabled == false) {
	cookieStatus = 0;
} else {
	document.cookie = "cookietest=1;";
	var cookieOffset = document.cookie.indexOf("cookietest", 0);
	if(cookieOffset < 0) {
		cookieStatus = 0;
	} else {
		cookieStatus = 1;
	}
}
// Java Enabled
var javaStatus;
if(navigator.javaEnabled() == true) {
	javaStatus = 1;
} else if(navigator.javaEnabled() == false) {
	javaStatus = 0;
} else {
	javaStatus = '';
}
// Access Page URL
var reqPageUrl = document.URL;
if(reqPageUrl == null) {
	reqPageUrl = '';
}
// This Page Title
var pageTitle = document.title;
if(pageTitle == null) {
	pageTitle = '';
}
// User Agent
var userAgent = navigator.userAgent ;
if(userAgent == null) {
	userAgent = '';
}
// Refer Page URL
var refPageUrl = document.referrer
if(refPageUrl == parent.document.URL) {
	refPageUrl = top.document.referrer
}
if(refPageUrl == null) {
	refPageUrl = '';
}
//Time-Zone offset
var today = new Date();
var timeZone;
if(today.getTimezoneOffset) {
	timeZone = today.getTimezoneOffset();
}
//Connection Type
var connectionType = '';
if(userAgent.indexOf("MSIE",0) >= 0 && navigator.platform == 'Win32' && userAgent.indexOf("Opera",0) < 0) {
	document.body.addBehavior('#default#clientCaps');
	connectionType = document.body.connectionType;
}
//Flash Version
var flashVersion;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] 
&& navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin 
&& navigator.plugins && navigator.plugins["Shockwave Flash"]){
	flashVersion = 3;
}
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? 
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);
if (plugin) {
	flashVersion = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1));
}

// URL Encode
reqPageUrl = escape(reqPageUrl);
pageTitle = escape(pageTitle);
userAgent = escape(userAgent);
refPageUrl = escape(refPageUrl);
// Print Tags
document.write("<img src='"+logcgiUrl+"?");
document.write("width="+srcWidth+"&");
document.write("height="+srcHeight+"&");
document.write("inwidth="+inWidth+"&");
document.write("inheight="+inHeight+"&");
document.write("color="+srcColor+"&");
document.write("cookie="+cookieStatus+"&");
document.write("java="+javaStatus+"&");
document.write("req="+reqPageUrl+"&");
document.write("title="+pageTitle+"&");
document.write("ua="+userAgent+"&");
document.write("ref="+refPageUrl+"&");
document.write("timezone="+timeZone+"&");
document.write("connect="+connectionType+"&");
document.write("flash="+flashVersion+"&");
document.write("js=1'>");
