var PreImages;
PreImages = new Array(
	"/common/img/hd_sitemap_o.gif",
	"/common/img/hd_policy_o.gif",
	"/common/img/hd_contact_o.gif",
	"/common/img/gn_grace_o.gif",
	"/common/img/gn_list_o.gif",
	"/common/img/gn_qa_o.gif",
	"/common/img/gn_company_o.gif",
	"/common/img/gn_recruit_o.gif",
	"/list/img/btn_camera_o.gif"
);


//ブラウザ判別
function SystemRequirementCheck(){

	this.ChAgent = navigator.userAgent;
	this.ChBrowser = navigator.appName;
	this.ChAppVer = navigator.appVersion;

	this.Win = (this.ChAgent.indexOf("Win") != -1);
	this.Mac = (this.ChAgent.indexOf("Mac") != -1);
	this.OtherOS = (this.ChAgent.indexOf("Win" && "Mac") == -1);
	
	this.Op = ((this.ChBrowser.indexOf("Microsoft") != -1) && (this.ChAgent.indexOf("Opera") != -1));
	this.Ie4 = ((this.ChBrowser.indexOf("Microsoft") != -1) && (this.ChAgent.indexOf("MSIE 4") != -1));
	this.Ie = ((this.ChBrowser.indexOf("Microsoft") != -1) && (this.ChAgent.indexOf("IE") != -1));
	this.Ge = ((this.ChBrowser.indexOf("Netscape") != -1) && (this.ChAgent.indexOf("Gecko/") != -1));
	this.Nn3 = ((this.ChBrowser.indexOf("Netscape") != -1) && (this.ChAppVer.substr(0,1) <= 3));
	this.Nn4 = ((this.ChBrowser.indexOf("Netscape") != -1) && (this.ChAppVer.substr(0,1) >= 4));

}

var CheckB = new SystemRequirementCheck();


//スタイルシートの振り分け

if (CheckB.Win){//Win
	if (CheckB.Ie){
		SetCSS = "w_ie";
	}else if (CheckB.Ge){
		SetCSS = "w_ge";
	}else if (CheckB.Nn4){
		SetCSS = "w_nn";
	}else {
		SetCSS = "w_ie";
	}
}else if (CheckB.Mac){//Mac
	if (CheckB.Ie){
		SetCSS = "m_ie";
	}else if (CheckB.Ge){
		SetCSS = "m_ge";
	}else if (CheckB.Nn4){
		SetCSS = "m_nn";
	}else {
		var SetCSS = "m_ie";
	}
}else{//その他OS
	SetCSS = "w_ie";
}


document.write('<link rel="stylesheet" type="text/css" href="/common/css/'+SetCSS+'.css">');

// 以下印刷用
document.write('<link rel="stylesheet" type="text/css" href="/common/css/print.css" media="print">');

