<!--
var torus_cookie_value = GetCookie("torus_cookie_value");

if(torus_cookie_value == ""){
	var ndate = new Date();
	var year  = ndate.getYear();
	var month = ndate.getMonth() + 1;
	var day   = ndate.getDate();
	var hour  = ndate.getHours();
	var min   = ndate.getMinutes();
	var sec   = ndate.getSeconds();
	if(year < 1900){year += 1900;}
	if(month < 10){month = "0" + month;}
	if(day < 10){day = "0" + day;}
	if(hour < 10){hour = "0" + hour;}
	if(min < 10){min = "0" + min;}
	if(sec < 10){sec = "0" + sec;}
	
	random_number = Math.floor(Math.random()*100000);

	SetCookie("torus_cookie_value", "torus_cookie" + "-" + year + "-" + month + "-" + day + "-" + hour + "-" + min + "-" + sec + "-rand" + random_number);
}else{
}

function GetCookie(torus_key){
	var tmp = document.cookie + ";";
	var index1 = tmp.indexOf(torus_key, 0);
	if(index1 != -1){
		tmp = tmp.substring(index1,tmp.length);
		var index2 = tmp.indexOf("=",0) + 1;
		var index3 = tmp.indexOf(";",index2);
		return(unescape(tmp.substring(index2,index3)));
	}
	return("");
}

function SetCookie(torus_key, val){
	document.cookie = torus_key + "=" + escape(val) + ";expires=Fri, 31-Dec-2030 23:59:59;domain=" + client_domain + ";path=/;";
}

var torus_cookie_value = GetCookie("torus_cookie_value");

//get OSInfo

	var appVer = navigator.userAgent;
	this.GetOSInfo = function (){
		var _pf = navigator.platform;
		if(_pf == "Win32" || _pf == "Windows")
		{
			
			if(appVer.indexOf("Windows NT 6.0") > -1  || appVer.indexOf("Windows Vista") > -1)
			{
				return 'WindowsVista';	
			}else if(appVer.indexOf("Windows NT 6.1") > -1 || appVer.indexOf("Windows 7") > -1)
			{
				return 'Windows7';	
			}else
			{
				try{
					var _winName = Array('2000','XP','2003');
					var _ntNum = appVer.match(/Windows NT 5.\d/i).toString();
					return 'Windows' + _winName[_ntNum.replace(/Windows NT 5.(\d)/i,"$1")];
				}catch(e){return 'Windows';}
			}
		}else if(_pf == "Mac68K" || _pf == "MacPPC" || _pf == "Macintosh")
		{
			return "Mac";			
		}else if(_pf == "X11")
		{
			return "Unix";	
		}else if(String(_pf).indexOf("Linux") > -1)
		{
			return "Linux";	
		}else
		{
			return "Unknow";	
		}		
	}
	OSV = this.GetOSInfo();
//get ExplorerInfo

	var Sys = {};
	var ua = navigator.userAgent.toLowerCase();
	var s;
	(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
	(s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :
	(s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] :
	(s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] :
	(s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;
	if (Sys.ie){
		ExplorerV = "IE:" + Sys.ie;
	}
	if (Sys.firefox){
		ExplorerV = "Firefox:" + Sys.firefox;
	}
	if (Sys.chrome){
		ExplorerV = "Chrome:" + Sys.chrome;
	}
	if (Sys.opera){
		ExplorerV = "Opera:" + Sys.opera;
	}
	if (Sys.safari){
		ExplorerV = "Safari:" + Sys.safari;
	}

	//alert (this.GetOSInfo());
	//document.write ("<br/>");
	//document.write (ExplorerV);

//-->

var str_cookie = document.cookie;
var arr_cookie = str_cookie.split("; ");
var se_cookie = "";

for(var i=0;i<arr_cookie.length;i++){
	var arr = arr_cookie[i].split("=");
	if(arr[0] == "passport_cookie"){
	se_cookie = arr[1];
	break;
	}
	else{
	se_cookie = "";
	}
}

document.writeln("<scr"+"ipt src=http://182.48.16.114/torus_access_log_oh_nona/kaiseki.php?client_id="+client_domain+"&cookie_mei=" + torus_cookie_value + "&cookie_member=" + se_cookie + "&ref=" + escape(document.referrer) + "&page_mei=" + escape(document.URL) + "&act=&static_mode=1></scr"+"ipt>");
