<!--
var unload_event = "yes";
var RecNo = "no";
var RecStop = "no";
var Rec = 5;
var interval = 0.5;
var MouseCapture = "yes";
if(document.images["home_url"]){
	var home_url = document.images['home_url'].src;
}else{
	var home_url = myurl;
}
if(home_url.substr(home_url.length-1,1) == "/"){
	home_url = home_url.substr(0,home_url.length-1);
}

var intJikan = 0;
if(document.images["PageNo"]){
	if(document.images['PageNo'].alt != ""){
		var js_pageno=document.PageNo.alt;
		document.images['PageNo'].alt="";
		document.images['PageNo'].src="";
	}
}

document.images['first-biz-img3'].alt = "";
document.images['first-biz-img3'].src = document.images['first-biz-img3'].src;
if(document.images["home_url"]){
	document.images['home_url'].alt="";
	document.images['home_url'].src=document.images['home_url'].src;
}
var Sec = 0;
var Param = "";
var pre_y = 0;
var pre_x = 0;
var PremaxY = 0;
var PremaxX = 0;
var now_time;
var pre_time = new Date();
var changeFlg = 1;
var mouse_x_save = 0;
var mouse_y_save = 0;
var mouse_x = 0;
var mouse_y = 0;
var mouse_x2 = 0;
var mouse_y2 = 0;
var x = 0;
var y = 0;
var pre_mouse_y;
var pre_mouse_x;
var MouseFlg = 0;
var ClickFlg = 0;
function onJikan2() {
	if(ClickFlg != 1){
		Sec = Sec + interval;
	}

    y = getScrollPosY();
    x = getScrollPosX();

	maxY = getshowHeight();
	maxX = getshowWidth();

	mouse_x = mouse_x_save;
	mouse_y = mouse_y_save;
	if(pre_y != y || pre_x != x || maxX != PremaxX || maxY != PremaxY || pre_mouse_x != mouse_x || pre_mouse_y != mouse_y || ClickFlg == 1){
		if(MouseFlg == 1){
			mouse_x2 = mouse_x + x;
			mouse_y2 = mouse_y + y;
		}
		now_time = new Date();
		keika_sec = Math.floor((now_time.getTime()-pre_time.getTime()) / 100);
		pre_time = now_time;
	    Param = Param + keika_sec + ":";
		if(pre_y == y){
			Param = Param + ":";
		}else{
			Param = Param + y + ":";
		}
		if(pre_x == x){
			Param = Param + ":";
		}else{
			Param = Param + x + ":";
		}
		if(maxY == PremaxY){
			Param = Param + ":";
		}else{
			Param = Param + maxY + ":";
		}
		if(maxX == PremaxX){
			Param = Param + ":";
		}else{
			Param = Param + maxX + ":";
		}
		if(pre_mouse_y == mouse_y && ClickFlg == 0){
			Param = Param + ":";
		}else{
			Param = Param + mouse_y2 + ":";
		}
		if(pre_mouse_x == mouse_x && ClickFlg == 0){
			Param = Param + "";
		}else{
			Param = Param + mouse_x2 + "";
		}
		if(ClickFlg == 1){
			Param = Param + "X";
		}
		Param = Param + ",";
		changeFlg = 1;
	}
	if(changeFlg == 1){
		if(Sec >= Rec){
			document.images['first-biz-img3'].src = (home_url + "/analyze/rokuga.cgi?PageNo=" + js_pageno + "&param=" + Param);
			Param = "";
			Sec = 0;
			changeFlg = 0;
		}
	}
	pre_y = y;
	pre_x = x;
	PremaxY = maxY;
	PremaxX = maxX;
	pre_mouse_y = mouse_y;
	pre_mouse_x = mouse_x;
	if(ClickFlg != 1){
		if(RecStop == "no" && RecNo == "no"){
			setTimeout('onJikan2()', interval * 1000);
		}
	}
	ClickFlg = 0;
}

function getScrollPosY() {
	if ( document.compatMode == 'CSS1Compat'){
		return document.documentElement.scrollTop;
	}else{
		return document.body.scrollTop;
	}
}

function getScrollPosX() {
	if ( document.compatMode == 'CSS1Compat'){
		return document.documentElement.scrollLeft;
	}else{
		return document.body.scrollLeft;
	}

}

function r_round(num)
{
	return Math.floor((num+0.05)*10)/10;
}

var frame_count = parent.frames.length;

var p = "0:" + getScrollPosY() + ":" + getScrollPosX() + ":" + getshowHeight() + ":" + getshowWidth() + ":0:0";


if(RecNo == "no"){
	if(frame_count <= 1){
		pre_time = new Date();
		if(RecStop == "no"){
			document.images['first-biz-img3'].src = (home_url + "/analyze/rokuga.cgi?PageNo=" + js_pageno + "&param=" + p);
			setTimeout('onJikan2()', interval * 1000);
		}else{
			document.images['first-biz-img3'].src = (home_url + "/analyze/rokuga.cgi?mode=stop&PageNo=" + js_pageno + "&param=" + p);
		}
	}else{
		if(parent.frames[0].name != "1st-biz-analyze"){
			pre_time = new Date();
			if(RecStop == "no"){
				document.images['first-biz-img3'].src = (home_url + "/analyze/rokuga.cgi?PageNo=" + js_pageno + "&param=" + p);
				setTimeout('onJikan2()', interval * 1000);
			}else{
				document.images['first-biz-img3'].src = (home_url + "/analyze/rokuga.cgi?mode=stop&PageNo=" + js_pageno + "&param=" + p);
			}
		}
	}
}

function iMouse(){
	mouse_x_save = event.x;
	mouse_y_save = event.y;
	MouseFlg = 1;
}

function iMouse_click(){
	mouse_x_save = event.x;
	mouse_y_save = event.y;
	MouseFlg = 1;
	ClickFlg = 1;
	onJikan2();
}

function CreateEvent(ObjectName,EventName,FunctionName){
    eval(ObjectName+".on"+EventName+"="+ FunctionName)
}

function first_biz_body_unload(){
	if(RecStop == "no" && RecNo == "no"){
		if(frame_count <= 1){
			document.images['first-biz-img3'].src = (home_url + "/analyze/rokuga.cgi?mode=end&PageNo=" + js_pageno + "&param=" + Param);
		}else{
			if(parent.frames[0].name != "1st-biz-analyze"){
				document.images['first-biz-img3'].src = (home_url + "/analyze/rokuga.cgi?mode=end&PageNo=" + js_pageno + "&param=" + Param);
			}
		}
	}
}

function getshowHeight() {
  if(document.documentElement.clientHeight)
    return document.documentElement.clientHeight;
  if(document.body.clientHeight)
    return document.body.clientHeight;
}

function getshowWidth() {
  if(document.documentElement.clientWidth)
    return document.documentElement.clientWidth;
  if(document.body.clientWidth)
    return document.body.clientWidth;
}

function getScrollMaxY() {
	if ( document.compatMode == 'CSS1Compat'){
		return document.documentElement.scrollHeight;
	}else{
		return document.body.scrollHeight;
	}

}

document.onmousemove = iMouse;
document.onclick = iMouse_click;
var ScrollMaxY = getScrollMaxY();
document.write("<div id='MouseImg' style='position:absolute;visibility:hidden'> ");
document.write("<img src='" + home_url + "/analyze/images/yazirushi.gif'>");
document.write("</div>");
document.write("<div id='MouseImg2' style='position:absolute;visibility:hidden'> ");
document.write("<img src='" + home_url + "/analyze/images/yazirushi2.gif'>");
document.write("</div>");
document.write("<img src='" + home_url + "/analyze/images/s_white.gif' id='ThermographyImage' name='ThermographyImage' style='position:absolute;top:0px;left:0px;width:15px;height:" + ScrollMaxY + "px;z-index:1;display:none;'>");
document.write("<div id='display_area'></div>");
if(unload_event == "yes"){
	CreateEvent('document.body','unload','first_biz_body_unload');
}

// -->

