/*---------------------------------------------------------
  RACCOON DELIVERY JS : Common
----------------------------------------------------------*/

/*	Image rollover js
*	Author : Kazuhito Hokamura
*	http://webtech-walker.com/
*
*	Licensed under the MIT License:
*	http://www.opensource.org/licenses/mit-license.php */
<!--
(function(){
	function rollover(){
		var targetClassName = "hoverImg";
		var suffix = "_on";

		var overReg = new RegExp("^(.+)(\\.[a-z]+)$");
		var outReg = new RegExp("^(.+)" + suffix + "(\\.[a-z]+)$");

		var preload = new Array();
		var images = document.getElementsByTagName("img");

		for (var i = 0, il = images.length; i < il; i++) {
			var classStr = images[i].getAttribute("class") || images[i].className;
			var classNames = classStr.split(/\s+/);
			for(var j = 0, cl = classNames.length; j < cl; j++){
				if(classNames[j] == targetClassName){

					//preload
					preload[i] = new Image();
					preload[i].src = images[i].getAttribute("src").replace(overReg, "$1" + suffix + "$2");

					//mouseover
					images[i].onmouseover = function() {
						this.src = this.getAttribute("src").replace(overReg, "$1" + suffix + "$2");
					}

					//mouseout
					images[i].onmouseout = function() {
						this.src = this.getAttribute("src").replace(outReg, "$1$2");
					}
				}
			}
		}
	}

	function addEvent(elem,event,func){
		if(elem.addEventListener) {
			elem.addEventListener(event, func, false);
		}else if(elem.attachEvent) {
			elem.attachEvent("on" + event, func);
		}
	}
	addEvent(window,"load",rollover);
})();
// -->


/* Area Search Zip Check */
<!--
function checkASForm(){
var zip1path = document.search_zip.zip1;
var zip2path = document.search_zip.zip2;

	if(zip1path.value == ""){
		alert("ﾍｹﾊﾘﾈﾖｹ讀ﾎﾏ､ｷ､ﾆｲｼ､ｵ､､｡｣");
		zip1path.focus();
	return false;
	}
//	if(zip1path.length != 3){
//		alert("ﾍｹﾊﾘﾈﾖｹ讀ﾏ3ﾊｸｻ妤ﾇﾆﾎﾏ､ｷ､ﾆｲｼ､ｵ､､｡｣");
//		zip1path.focus();
//	return false;
//	}
	if(zip1path.value.match(/[^0-9]+/)){
		alert("ﾍｹﾊﾘﾈﾖｹ讀ﾏﾈｾｳﾑｿ妤ﾇﾆﾎﾏ､ｷ､ﾆｲｼ､ｵ､､｡｣");
		zip1path.focus();
	return false;
	}
	if(zip2path.value == ""){
		alert("ﾍｹﾊﾘﾈﾖｹ讀ﾎﾏ､ｷ､ﾆｲｼ､ｵ､､｡｣");
		zip2path.focus();
	return false;
	}
//	if(zip2path.length != 4){
//		alert("ﾍｹﾊﾘﾈﾖｹ讀ﾏ4ﾊｸｻ妤ﾇﾆﾎﾏ､ｷ､ﾆｲｼ､ｵ､､｡｣");
//		zip2path.focus();
//	return false;
//	}
	if(zip2path.value.match(/[^0-9]+/)){
		alert("ﾍｹﾊﾘﾈﾖｹ讀ﾏﾈｾｳﾑｿ妤ﾇﾆﾎﾏ､ｷ､ﾆｲｼ､ｵ､､｡｣");
		zip2path.focus();
	return false;
	}

	return true;
}
// -->


/* Area Search Map */
<!--
function MenuOn(x){ 
	obj=document.getElementById("areaMapSelect").style.visibility="visible";
}
function MenuOff(x){ 
	obj=document.getElementById("areaMapSelect").style.visibility="hidden"; 
}
// -->


// New Window Open
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
