/* ポップアップ
--------------------------------------*/
// 出店事例　出店のメリット：1分でわかるSEJ出店
function oneMinutePopup(element) {
	var uri = element.href;
	var subopen = null;
	subopen=window.open(uri,"oneminute","width=650,height=300,left=0,top=0,toolbar=0,location=0,directories=0,menubar=0,status=0,scrollbars=0,resizable=1");
	if (window.focus) subopen.focus();
}

/* ポップアップ
--------------------------------------*/
// 出店事例　エキナカ店舗　路線図
function caseLinePopup(element) {
	var uri = element.href;
	var subopen = null;
	subopen=window.open(uri,"rosen","width=1050,height=370,left=0,top=0,toolbar=0,location=0,directories=0,menubar=0,status=0,scrollbars=0,resizable=1");
	if (window.focus) subopen.focus();
}


/* ロールオーバースクリプト
--------------------------------------*/
/*
	Standards Compliant Rollover Script
	Author : Daniel Nolan
	http://www.bleedingego.co.uk/webdev.php
*/

function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'btn') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_on'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_on'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

window.onload = initRollovers;


/* ロールオーバースクリプト
--------------------------------------*/
function rollAndOut(imageName,imageSrc){
document[imageName].src=imageSrc;
}

