var navAge = navigator.userAgent
var browserVer = navigator.appVersion.charAt(0);
var myCount = 0;
var roadFlag = 0;
var currentPage = "blank";

if (browserVer >= 3) {
	policy_on = new Image();
	policy_on.src = "img/bu_policy_g.gif";
	policy_off = new Image();
	policy_off.src = "img/bu_policy_n.gif";
	//
	subject_top_on = new Image();
	subject_top_on.src = "img/bu_subject_g.gif";
	subject_top_off = new Image();
	subject_top_off.src = "img/bu_subject_n.gif";
	//
	equipment_on = new Image();
	equipment_on.src = "img/bu_equipment_g.gif";
	equipment_off = new Image();
	equipment_off.src = "img/bu_equipment_n.gif";
	//
	fees_on = new Image();
	fees_on.src = "img/bu_fees_g.gif";
	fees_off = new Image();
	fees_off.src = "img/bu_fees_n.gif";
	//
	access_on = new Image();
	access_on.src = "img/bu_access_g.gif";
	access_off = new Image();
	access_off.src = "img/bu_access_n.gif";
	//
	recruit_on = new Image();
	recruit_on.src = "img/bu_recruit_g.gif";
	recruit_off = new Image();
	recruit_off.src = "img/bu_recruit_n.gif";
	//
	gtowerlink_on = new Image();
	gtowerlink_on.src = "img/bu_gtowerlink_g.gif";
	gtowerlink_off = new Image();
	gtowerlink_off.src = "img/bu_gtowerlink_n.gif";
	//
	home_on = new Image();
	home_on.src = "img/bu_home_g.gif";
	home_off = new Image();
	home_off.src = "img/bu_home_n.gif";
	//
	sub_yobou_on = new Image();
	sub_yobou_on.src = "img/bu_sub_yobou_g.gif";
	sub_yobou_off = new Image();
	sub_yobou_off.src = "img/bu_sub_yobou_n.gif";
	//
	sub_white_on = new Image();
	sub_white_on.src = "img/bu_sub_white_g.gif";
	sub_white_off = new Image();
	sub_white_off.src = "img/bu_sub_white_n.gif";
	//
	sub_white_on = new Image();
	sub_white_on.src = "img/bu_sub_white_g.gif";
	sub_white_off = new Image();
	sub_white_off.src = "img/bu_sub_white_n.gif";
	//
	sub_kyousei_on = new Image();
	sub_kyousei_on.src = "img/bu_sub_kyousei_g.gif";
	sub_kyousei_off = new Image();
	sub_kyousei_off.src = "img/bu_sub_kyousei_n.gif";
	//
	sub_ceramic_on = new Image();
	sub_ceramic_on.src = "img/bu_sub_ceramic_g.gif";
	sub_ceramic_off = new Image();
	sub_ceramic_off.src = "img/bu_sub_ceramic_n.gif";
	//
	sub_implant_on = new Image();
	sub_implant_on.src = "img/bu_sub_implant_g.gif";
	sub_implant_off = new Image();
	sub_implant_off.src = "img/bu_sub_implant_n.gif";
	//
	sub_tabnabe_on = new Image();
	sub_tabnabe_on.src = "img/bu_sub_tabnabe_g.gif";
	sub_tabnabe_off = new Image();
	sub_tabnabe_off.src = "img/bu_sub_tabnabe_n.gif";
	//
	topsubject_on = new Image();
	topsubject_on.src = "top_img/bu_top_subject_g.gif";
	topsubject_off = new Image();
	topsubject_off.src = "top_img/bu_top_subject_n.gif";
	//
	topyobou_on = new Image();
	topyobou_on.src = "top_img/bu_top_yobou_g.gif";
	topyobou_off = new Image();
	topyobou_off.src = "top_img/bu_top_yobou_n.gif";
	//
	topwhite_on = new Image();
	topwhite_on.src = "top_img/bu_top_white_g.gif";
	topwhite_off = new Image();
	topwhite_off.src = "top_img/bu_top_white_n.gif";
	//
	topkyousei_on = new Image();
	topkyousei_on.src = "top_img/bu_top_kyousei_g.gif";
	topkyousei_off = new Image();
	topkyousei_off.src = "top_img/bu_top_kyousei_n.gif";
	//
	topceramic_on = new Image();
	topceramic_on.src = "top_img/bu_top_ceramic_g.gif";
	topceramic_off = new Image();
	topceramic_off.src = "top_img/bu_top_ceramic_n.gif";
	//
	topimplant_on = new Image();
	topimplant_on.src = "top_img/bu_top_implant_g.gif";
	topimplant_off = new Image();
	topimplant_off.src = "top_img/bu_top_implant_n.gif";
	//
	toptanabe_on = new Image();
	toptanabe_on.src = "top_img/bu_top_tanabe_g.gif";
	toptanabe_off = new Image();
	toptanabe_off.src = "top_img/bu_top_tanabe_n.gif";
	//
	sidesubject_on = new Image();
	sidesubject_on.src = "img/bu_side_subject_g.gif";
	sidesubject_off = new Image();
	sidesubject_off.src = "img/bu_side_subject_n.gif";
	//
	sideyobou_on = new Image();
	sideyobou_on.src = "img/bu_side_yobou_g.gif";
	sideyobou_off = new Image();
	sideyobou_off.src = "img/bu_side_yobou_n.gif";
	//
	sidewhite_on = new Image();
	sidewhite_on.src = "img/bu_side_white_g.gif";
	sidewhite_off = new Image();
	sidewhite_off.src = "img/bu_side_white_n.gif";
	//
	sidekyousei_on = new Image();
	sidekyousei_on.src = "img/bu_side_kyousei_g.gif";
	sidekyousei_off = new Image();
	sidekyousei_off.src = "img/bu_side_kyousei_n.gif";
	//
	sideceramic_on = new Image();
	sideceramic_on.src = "img/bu_side_ceramic_g.gif";
	sideceramic_off = new Image();
	sideceramic_off.src = "img/bu_side_ceramic_n.gif";
	//
	sideimplant_on = new Image();
	sideimplant_on.src = "img/bu_side_implant_g.gif";
	sideimplant_off = new Image();
	sideimplant_off.src = "img/bu_side_implant_n.gif";
	//
	sidetanabe_on = new Image();
	sidetanabe_on.src = "img/bu_side_tanabe_g.gif";
	sidetanabe_off = new Image();
	sidetanabe_off.src = "img/bu_side_tanabe_n.gif";
	//
}


function actOn(imgName)  {
	if (browserVer >= 3)   {
		onImg = eval(imgName + "_on.src");
		document [imgName].src = onImg;
	}
}

function actOff(imgName)   {
	if (browserVer >= 3) {
		offImg = eval(imgName + "_off.src");
		document [imgName].src = offImg;
	}
}


