// css
var agent = navigator.userAgent;
var appver = navigator.appVersion;
var appname = navigator.appName;
var userOs = null;
var browser = null;
var version = null;
var cssSrc = null;
//JUDGE_OS
if( agent.indexOf('Win') != -1 ){
	userOs = "Win";
}
else if( agent.indexOf('Mac') != -1 ){
	userOs = "Mac";
}
else{
	userOs = "other";
}
//JUDGE_BROWSER
if( appname == "Microsoft Internet Explorer" ){
	browser = "MSIE";
	version = agent.substring((agent.indexOf('MSIE') + 5),(agent.indexOf('MSIE') + 8));
}
else if( appname == "Netscape" ){
	browser = "NN";
	version = appver.substring( 0,3 );
}
// STYLESHEET
var cssSrc ;
if ( userOs == "Mac" ){
	cssSrc = '<link rel="stylesheet" type="text/css" href="../common/size_mac.css">';
}
else if ( userOs == "Win" && browser == "NN" ){
	cssSrc = '<link rel="stylesheet" type="text/css" href="../common/size_nc.css">';
}
else if ( userOs == "Win" && browser == "MSIE" ){
	cssSrc = '<link rel="stylesheet" type="text/css" href="../common/size_ie.css">';
}
else{
	cssSrc = '<link rel="stylesheet" type="text/css" href="../common/size_nc.css">';
}
document.write( cssSrc ) ;

// swap

if(navigator.appVersion.charAt(0) >= "3"){
	var rollOvers = 1;
} else {
	var rollOvers = 0;
}
var loaded = 0;
// pre-load highlight images
function loadImages () {
	if (rollOvers) {
//===ページ先頭へ
		to_topOn = new Image();
		to_topOn.src = "../common/to_top_o.gif";
		to_topOff = new Image();
		to_topOff.src = "../common/to_top.gif";
//===戻る
		to_backOn = new Image();
		to_backOn.src = "../common/to_back_o.gif";
		to_backOff = new Image();
		to_backOff.src = "../common/to_back.gif";
//===support01
		support01On = new Image();
		support01On.src = "../common/menu_support01_o.gif";
		support01Off = new Image();
		support01Off.src = "../common/menu_support01.gif";
//===support02
		support02On = new Image();
		support02On.src = "../common/menu_support02_o.gif";
		support02Off = new Image();
		support02Off.src = "../common/menu_support02.gif";

//===support03
		support03On = new Image();
		support03On.src = "../common/menu_support03_o.gif";
		support03Off = new Image();
		support03Off.src = "../common/menu_support03.gif";
//===support03
		support04On = new Image();
		support04On.src = "../common/menu_support04_o.gif";
		support04Off = new Image();
		support04Off.src = "../common/menu_support04.gif";

//===hoken01
		hoken01On = new Image();
		hoken01On.src = "../common/menu_hoken01_o.gif";
		hoken01Off = new Image();
		hoken01Off.src = "../common/menu_hoken01.gif";
//===hoken02
		hoken02On = new Image();
		hoken02On.src = "../common/menu_hoken02_o.gif";
		hoken02Off = new Image();
		hoken02Off.src = "../common/menu_hoken02.gif";
//===hoyojo01
		hoyojo01On = new Image();
		hoyojo01On.src = "../common/menu_hoyojo01_o.gif";
		hoyojo01Off = new Image();
		hoyojo01Off.src = "../common/menu_hoyojo01.gif";
//===hoyojo02
		hoyojo02On = new Image();
		hoyojo02On.src = "../common/menu_hoyojo02_o.gif";
		hoyojo02Off = new Image();
		hoyojo02Off.src = "../common/menu_hoyojo02.gif";

//===kenpo
		kenpoOn = new Image();
		kenpoOn.src = "../common/menub_kenpo_o.gif";
		kenpoOff = new Image();
		kenpoOff.src = "../common/menub_kenpo.gif";
//===sheet
		sheetOn = new Image();
		sheetOn.src = "../common/menub_sheet_o.gif";
		sheetOff = new Image();
		sheetOff.src = "../common/menub_sheet.gif";
//===kaigohoken
		kaigohokenOn = new Image();
		kaigohokenOn.src = "../common/menub_kaigohoken_o.gif";
		kaigohokenOff = new Image();
		kaigohokenOff.src = "../common/menub_kaigohoken.gif";
//===healthsalon
		healthsalonOn = new Image();
		healthsalonOn.src = "../common/menub_healthsalon_o.gif";
		healthsalonOff = new Image();
		healthsalonOff.src = "../common/menub_healthsalon.gif";
//===links
		linkshuOn = new Image();
		linkshuOn.src = "../common/menub_links_o.gif";
		linkshuOff = new Image();
		linkshuOff.src = "../common/menub_links.gif";
//===sitemap
		sitemapOn = new Image();
		sitemapOn.src = "../common/menub_sitemap_o.gif";
		sitemapOff = new Image();
		sitemapOff.src = "../common/menub_sitemap.gif";
//===privacy
		privacyOn = new Image();
		privacyOn.src = "../common/menub_privacy_o.gif";
		privacyOff = new Image();
		privacyOff.src = "../common/menub_privacy.gif";

		loaded = 1;
	}
}
function switchOn(imgName) {
		if (loaded == 1) {
		imgOn = eval(imgName + "On.src");
		document[imgName].src = imgOn;
		}
}

function switchOff(imgName) {
		if (loaded == 1) {
		imgOff = eval(imgName + "Off.src");
		document[imgName].src = imgOff;
		}
}

