/*　ロールオーバー用　*/

/**
* @param object obj
*/
function implementEvents(obj)
{
	//implement events
	obj.onmouseover = function() {
		this.src = this.activeimg.src;
	};
	obj.onmouseout = function() {
		this.src = this.initsrc;
	};
}

/**
* @param object obj
* @param string regexp
* @param string replacement
*/
function preloadImages(obj, regexp, replacement)
{
	//avoid duplication of preload
	obj.onload = function() {};
	//store initial image src
	obj.initsrc = obj.src;
	//preload
	obj.activeimg = new Image();
	obj.activeimg.src = obj.src.replace(regexp, replacement);
}


/*　別ウィンドウ用　*/
function OpenWin(pass){
 window.open(pass,"","width=750,height=550,top=10,left=10,scrollbars=yes,resizable=yes,toolbar=yes");
}

/*　別ウィンドウ用-2　*/
function OpenWin2(pass){
 window.open(pass,"","");
}

