if(navigator.appVersion.charAt(0) >= "3"){
img = new Array();

	img[0] = new Image; img[0].src = "image/top/top_03_off.gif";
	img[1] = new Image; img[1].src = "image/top/top_03_on.gif";

	img[2] = new Image; img[2].src = "image/top/top_04_off.gif";
	img[3] = new Image; img[3].src = "image/top/top_04_on.gif";

	img[4] = new Image; img[4].src = "image/accessmap_off.gif";
	img[5] = new Image; img[5].src = "image/accessmap_on.gif";


}


function chg_img(a,b){  //aは下のnameに対応し、bは上の配列に対応
	if(navigator.appVersion.charAt(0) >= "3"){
		document.images["img" +a].src=img[b].src;
	}
}

function cure_img(a,b){  //aは下のnameに対応し、bは上の配列に対応
	if(navigator.appVersion.charAt(0) >= "3"){
		document.images["img_c" +a].src=img2[b].src;
	}
}

function changeImg()
{
	count = Math.floor(Math.random()*10);
	var bg_img = "url(\"" + t_img[count].src + "\")";
	document.getElementById("main_photo").style.backgroundImage = bg_img;
}


function map() { window.open("06_map.html","_blank","scrollbars=yes,width=596,height=695").moveTo(50,5); }

function inquiry() { window.open("inquiry/index.html","_blank","scrollbars=yes,width=596,height=695").moveTo(50,5); }

function appo() { window.open("appo/index.html","_blank","scrollbars=yes,width=596,height=695").moveTo(50,5); }

function order() { window.open("order/index.cgi","_blank","scrollbars=yes,width=746,height=695").moveTo(50,5); }



function wclose(){
	if(navigator.appName == "Netscape"){
		window.open("","_top");
		window.close();
	}else{
		if(document.all && ((navigator.userAgent.match(/MSIE (\d\.\d)/),RegExp.$1) >= 5.5)){
			var w=window.open("","_top");
			w.opener=window;
			w.close();
		}else{
			window.close();
			var timer=setTimeout("wclose()",500);
		}
	}
}



m = String.fromCharCode(109,97,105,108,116,111,58);
a = "info";
b = "**********.com";
w = "20";
h = "12";
c = "メールを作成";
dest = a + "@" + b;

function mailadd(mFlag) {
	if (mFlag){
		i = "image/mail.gif";
	}

eval(String.fromCharCode(100,111,99,117,109,101,110,116,46,119,114,105,116,101,40,39,60,97,32,104,114,101,102,61,34,39,43,109,43,100,101,115,116,43,39,34,32,99,108,97,115,115,61,34,109,97,105,108,34,62,39,43,39,60,105,109,103,32,115,114,99,61,34,39,43,105,43,39,34,32,119,105,100,116,104,61,34,39,43,119,43,39,34,32,104,101,105,103,104,116,61,34,39,43,104,43,39,34,32,97,108,116,61,34,39,43,99,43,39,34,32,98,111,114,100,101,114,61,34,48,34,32,97,108,105,103,110,61,34,97,98,115,109,105,100,100,108,101,34,62,32,69,45,109,97,105,108,60,92,47,97,62,60,98,114,62,39,41,59,32));
}



/*
	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 == 'imgover') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_o'+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('_o'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

try{
	window.addEventListener("load",initRollovers,false);
}catch(e){
	window.attachEvent("onload",initRollovers);
}


