var _jp_co_val_baseURL='http://val.athome.jp/expapi/';
var _jp_co_val_userKey=' ';
function _ch(){
	var ag = navigator.userAgent.toLowerCase();
	if (window.opera) {return false;}
	if (ag.indexOf('mac') != -1) {
		if (ag.indexOf('safari') != -1) {
			if (_sfv() >= 312){return true;}
		} else if (ag.indexOf('firefox') != -1) {
			if (_fxv() >= 1.0) {return true;}
		}return false;
	} else {
		if (ag.indexOf('msie') != -1) {
			if (_iev() >= 5.5) {return true;}
		} else if (ag.indexOf('netscape') != -1) {
			if (_nnv() >= 7.1) {return true;}
		} else if (ag.indexOf('firefox') != -1) {
			if (_fxv() >= 1.0) {return true;}
		}
		return false;
	}
	return false;
}

function _iev() {
	return parseFloat(navigator.userAgent.substr(navigator.userAgent.toLowerCase().indexOf('msie')+5, 3));
}

function _nnv() {
	return parseFloat(navigator.userAgent.substr(navigator.userAgent.toLowerCase().indexOf('netscape')+9, 3));
}

function _fxv() {
	return parseFloat(navigator.userAgent.substr(navigator.userAgent.toLowerCase().indexOf('firefox')+8, 3));
}

function _sfv() {
	return parseFloat(navigator.userAgent.substr(navigator.userAgent.toLowerCase().indexOf('safari')+7, 3));
}

function _ls(){
	var head = document.getElementsByTagName("head").item(0);

	var source = new Array();
	source[0] = "http://val.athome.jp/expapi/bscript/CMapApp.js";
	source[1] = "http://val.athome.jp/expapi/bscript/CMap.js";
	source[2] = "http://val.athome.jp/expapi/bscript/CEnvironment.js";
	source[3] = "http://val.athome.jp/expapi/bscript/CBounds.js";
	source[4] = "http://val.athome.jp/expapi/bscript/CServletMap.js";
	source[5] = "http://val.athome.jp/expapi/bscript/CExpStation.js";
	source[6] = "http://val.athome.jp/expapi/bscript/CUserInterface.js";
	source[7] = "http://val.athome.jp/expapi/bscript/CHTTPConnection.js";
	source[8] = "http://val.athome.jp/expapi/bscript/CMapPoint.js";
	source[9] = "http://val.athome.jp/expapi/bscript/CSize.js";
	source[10] = "http://val.athome.jp/expapi/bscript/CService.js";
	source[11] = "http://val.athome.jp/expapi/bscript/CPoint.js";
	source[12] = "http://val.athome.jp/expapi/fullmap/MapDefine.js";
	source[13] = "http://val.athome.jp/expapi/option1/CMark.js";
	source[14] = "http://val.athome.jp/expapi/option1/CImage.js";
	source[15] = "http://val.athome.jp/expapi/option1/CBalloon.js";
	source[16] = "http://val.athome.jp/expapi/option2/CExpApp.js";
	source[17] = "http://val.athome.jp/expapi/option2/CExpRangeStation.js";

	for ( var i=0; i<source.length; i++ ) {
		var scriptEl = document.createElement("script");
		scriptEl.type = "text/javascript";
		scriptEl.charset = "Shift_JIS";
		scriptEl.src = source[i];
		head.appendChild(scriptEl);
	}
}

if(_ch()){_ls();}

function isSupportedBrowser() {
	return _ch();
}

function isAuthenticated() {
	return true;
}

/* 元のやつ
var _jp_co_val_baseURL='http://val.athome.jp/expapi/';var _jp_co_val_userKey=' ';function _ch(){var ag = navigator.userAgent.toLowerCase();if (window.opera) {return false;}if (ag.indexOf('mac') != -1) {if (ag.indexOf('safari') != -1) {if (_sfv() >= 312){return true;}} else if (ag.indexOf('firefox') != -1) {if (_fxv() >= 1.0) {return true;}}return false;} else  {if (ag.indexOf('msie') != -1) {if (_iev() >= 5.5) {return true;}} else if (ag.indexOf('netscape') != -1) {if (_nnv() >= 7.1) {return true;}} else if (ag.indexOf('firefox') != -1) {if (_fxv() >= 1.0) {return true;}}return false;}return false;}function _iev() {return parseFloat(navigator.userAgent.substr(navigator.userAgent.toLowerCase().indexOf('msie')+5, 3));}function _nnv() {return parseFloat(navigator.userAgent.substr(navigator.userAgent.toLowerCase().indexOf('netscape')+9, 3));}function _fxv() {return parseFloat(navigator.userAgent.substr(navigator.userAgent.toLowerCase().indexOf('firefox')+8, 3));}function _sfv() {return parseFloat(navigator.userAgent.substr(navigator.userAgent.toLowerCase().indexOf('safari')+7, 3));}function _ls(){document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/bscript/CMapApp.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/bscript/CMap.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/bscript/CEnvironment.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/bscript/CBounds.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/bscript/CServletMap.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/bscript/CExpStation.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/bscript/CUserInterface.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/bscript/CHTTPConnection.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/bscript/CMapPoint.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/bscript/CSize.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/bscript/CService.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/bscript/CPoint.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/fullmap/MapDefine.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/option1/CMark.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/option1/CImage.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/option1/CBalloon.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/option2/CExpApp.js'" + " charset='Shift_JIS'><" + "/script>");document.write("<script type='text/javascript' src='http://val.athome.jp/expapi/option2/CExpRangeStation.js'" + " charset='Shift_JIS'><" + "/script>");}if(_ch()){_ls();}function isSupportedBrowser(){return _ch();}function isAuthenticated() {return true;}

var _jp_co_val_baseURL='http://val.athome.jp/expapi/';
var _jp_co_val_userKey=' ';
function _ch(){
	var ag = navigator.userAgent.toLowerCase();
	if (window.opera) {
		return false;
	}
	if (ag.indexOf('mac') != -1) {
		if (ag.indexOf('safari') != -1) {
			if (_sfv() >= 312){
				return true;
			}
		} else if (ag.indexOf('firefox') != -1) {
			if (_fxv() >= 1.0) {
				return true;
			}
		}return false;
	} else  {
		if (ag.indexOf('msie') != -1) {
			if (_iev() >= 5.5) {
				return true;
			}
		} else if (ag.indexOf('netscape') != -1) {
			if (_nnv() >= 7.1) {
				return true;
			}
		} else if (ag.indexOf('firefox') != -1) {
			if (_fxv() >= 1.0) {
				return true;
			}
		}return false;
	}return false;
}

function _iev() {
	return parseFloat(navigator.userAgent.substr(navigator.userAgent.toLowerCase().indexOf('msie')+5, 3));
}
function _nnv() {
	return parseFloat(navigator.userAgent.substr(navigator.userAgent.toLowerCase().indexOf('netscape')+9, 3));
}
function _fxv() {
	return parseFloat(navigator.userAgent.substr(navigator.userAgent.toLowerCase().indexOf('firefox')+8, 3));
}function _sfv() {
	return parseFloat(navigator.userAgent.substr(navigator.userAgent.toLowerCase().indexOf('safari')+7, 3));
}
	var tag1 = "<script type='text/javascript' src='/scripts/rosen/";
	var tag2 = " charset='UTF-8'></script>";
	document.write( tag1 + "CMapApp.js'" + tag2 );
	document.write( tag1 + "CMap.js'" + tag2 );
	document.write( tag1 + "CEnvironment.js'" + tag2 );
	document.write( tag1 + "CBounds.js'" + tag2 );
	document.write( tag1 + "CServletMap.js'" + tag2 );
	document.write( tag1 + "CExpStation.js'" + tag2 );
	document.write( tag1 + "CUserInterface.js'" + tag2 );
	document.write( tag1 + "CHTTPConnection.js'" + tag2 );
	document.write( tag1 + "CMapPoint.js'" + tag2 );
	document.write( tag1 + "CSize.js'" + tag2 );
	document.write( tag1 + "CService.js'" + tag2 );
	document.write( tag1 + "CPoint.js'" + tag2 );
	document.write( tag1 + "MapDefine.js'" + tag2 );
	document.write( tag1 + "CMark.js'" + tag2 );
	document.write( tag1 + "CImage.js'" + tag2 );
	document.write( tag1 + "CBalloon.js'" + tag2 );
	document.write( tag1 + "CExpApp.js'" + tag2 );
	document.write( tag1 + "CExpRangeStation.js'" + tag2 );

function isSupportedBrowser(){
	return _ch();
}
function isAuthenticated() {
	return true;
}
*/
