// ==========================================================
// jQuery ǂݍ
// ==========================================================
	var httpProtocol = (("https:" == document.location.protocol) ? "https://" : "http://");
	var domain = location.hostname;
	
	if (domain == "www.enuesu.co.jp") {
		urlpath = "/";
	}
	else if (domain == "sub.enuesu.co.jp") {
//		urlpath = httpProtocol + "www.enuesu.co.jp/";
		urlpath = httpProtocol + "c16.future-shop.jp/~enuesu/";
	}
	else {
		urlpath = httpProtocol + "c16.future-shop.jp/~enuesu/";
	}
	var initJS = document.createElement("script"); 
	initJS.src = httpProtocol + "sub.enuesu.co.jp/js/init.js"; 
	initJS.type = "text/javascript"; 
	initJS.charset = "shift_jis"; 
	document.getElementsByTagName("head")[0].appendChild(initJS);
	
	var scriptJQ = document.createElement("script"); 
	scriptJQ.src = httpProtocol + "ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"; 
	scriptJQ.type = "text/javascript"; 
	scriptJQ.charset = "utf-8"; 
	document.getElementsByTagName("head")[0].appendChild(scriptJQ);
	
	var load = function(check, next) {
		check = new Function('return !!(' + check + ')');
		if (!check()) {
			setTimeout(function() {
				if (!check()) setTimeout(arguments.callee, 100);
				else next();
			}, 100);
		}
		else next();
	};
	
	load('window.jQuery', function() {
		var scriptCom = document.createElement("script"); 
		scriptCom.src = httpProtocol + "sub.enuesu.co.jp/js/enuesu.js"; 
		scriptCom.type = "text/javascript"; 
		scriptCom.charset = "utf-8"; 
		document.getElementsByTagName("head")[0].appendChild(scriptCom);
		
		if (domain != "sub.enuesu.co.jp") {
			var scriptJS = document.createElement("script"); 
			scriptJS.src = urlpath + "js/ajax.js"; 
			scriptJS.type = "text/javascript"; 
			scriptJS.charset = "utf-8"; 
			document.getElementsByTagName("head")[0].appendChild(scriptJS);
		}
		
	});

