//
//<![CDATA[
var altimg = new Array();

/* Mouse Over ボタン画像のキャッシュ */
altimg['top'] = new Array(2);
altimg['top']['out'] = new Image() ;
altimg['top']['out'].src = "image/but_top.gif" ;
altimg['top']['on'] = new Image() ;
altimg['top']['on'].src = "image/but_top_o.gif" ;
altimg['tofu'] = new Array(2);
altimg['tofu']['out'] = new Image() ;
altimg['tofu']['out'].src = "image/but_heike.gif" ;
altimg['tofu']['on'] = new Image() ;
altimg['tofu']['on'].src = "image/but_heike_o.gif" ;
altimg['item'] = new Array(2);
altimg['item']['out'] = new Image() ;
altimg['item']['out'].src = "image/but_syohin.gif" ;
altimg['item']['on'] = new Image() ;
altimg['item']['on'].src = "image/but_syohin_o.gif" ;
altimg['access'] = new Array(2);
altimg['access']['out'] = new Image() ;
altimg['access']['out'].src = "image/but_access.gif" ;
altimg['access']['on'] = new Image() ;
altimg['access']['on'].src = "image/but_access_o.gif" ;
altimg['netshop'] = new Array(2);
altimg['netshop']['out'] = new Image() ;
altimg['netshop']['out'].src = "image/but_netshop.gif" ;
altimg['netshop']['on'] = new Image() ;
altimg['netshop']['on'].src = "image/but_netshop_o.gif" ;
altimg['ttofu'] = new Array(2);
altimg['ttofu']['out'] = new Image() ;
altimg['ttofu']['out'].src = "image/topbut_tofu.gif" ;
altimg['ttofu']['on'] = new Image() ;
altimg['ttofu']['on'].src = "image/topbut_tofu_o.gif" ;
altimg['titem'] = new Array(2);
altimg['titem']['out'] = new Image() ;
altimg['titem']['out'].src = "image/topbut_item.gif" ;
altimg['titem']['on'] = new Image() ;
altimg['titem']['on'].src = "image/topbut_item_o.gif" ;
altimg['taccess'] = new Array(2);
altimg['taccess']['out'] = new Image() ;
altimg['taccess']['out'].src = "image/topbut_access.gif" ;
altimg['taccess']['on'] = new Image() ;
altimg['taccess']['on'].src = "image/topbut_access_o.gif" ;
altimg['tnetshop'] = new Array(2);
altimg['tnetshop']['out'] = new Image() ;
altimg['tnetshop']['out'].src = "image/topbut_netshop.gif" ;
altimg['tnetshop']['on'] = new Image() ;
altimg['tnetshop']['on'].src = "image/topbut_netshop_o.gif" ;
altimg['itemtofu'] = new Array(2);
altimg['itemtofu']['out'] = new Image() ;
altimg['itemtofu']['out'].src = "image/itembut_tofu.gif" ;
altimg['itemtofu']['on'] = new Image() ;
altimg['itemtofu']['on'].src = "image/itembut_tofu_o.gif" ;
altimg['itemotamesi'] = new Array(2);
altimg['itemotamesi']['out'] = new Image() ;
altimg['itemotamesi']['out'].src = "image/itembut_otamesi.gif" ;
altimg['itemotamesi']['on'] = new Image() ;
altimg['itemotamesi']['on'].src = "image/itembut_otamesi_o.gif" ;
altimg['itemzuke'] = new Array(2);
altimg['itemzuke']['out'] = new Image() ;
altimg['itemzuke']['out'].src = "image/itembut_zuke.gif" ;
altimg['itemzuke']['on'] = new Image() ;
altimg['itemzuke']['on'].src = "image/itembut_zuke_o.gif" ;
altimg['itemage'] = new Array(2);
altimg['itemage']['out'] = new Image() ;
altimg['itemage']['out'].src = "image/itembut_age.gif" ;
altimg['itemage']['on'] = new Image() ;
altimg['itemage']['on'].src = "image/itembut_age_o.gif" ;
altimg['itemdes'] = new Array(2);
altimg['itemdes']['out'] = new Image() ;
altimg['itemdes']['out'].src = "image/itembut_des.gif" ;
altimg['itemdes']['on'] = new Image() ;
altimg['itemdes']['on'].src = "image/itembut_des_o.gif" ;
altimg['itemetc'] = new Array(2);
altimg['itemetc']['out'] = new Image() ;
altimg['itemetc']['out'].src = "image/itembut_etc.gif" ;
altimg['itemetc']['on'] = new Image() ;
altimg['itemetc']['on'].src = "image/itembut_etc_o.gif" ;
altimg['itemtennai'] = new Array(2);
altimg['itemtennai']['out'] = new Image() ;
altimg['itemtennai']['out'].src = "image/itembut_tennai.gif" ;
altimg['itemtennai']['on'] = new Image() ;
altimg['itemtennai']['on'].src = "image/itembut_tennai_o.gif" ;

/* 画像の切り替え */
function alternate(id,sw){
	var idx = id + "x" ;
	try {
		document.getElementById(id).src = altimg[id][sw].src ;
	}	catch(e) {}
}

function showgmap(){
var map ;
var glng ;
var glat ;

	if (!GBrowserIsCompatible())
	{
			var navi = document.getElementById("gmap");
			navi.innerHTML = "申し訳ございません。ご使用のブラウザーではGoogle Mapを使用できません。" ;
	} else {
		glng = 136.9488850235939 ;
		glat = 36.43288460843772 ;

		map = new GMap(document.getElementById("gmap")) ;
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		map.addControl(new GOverviewMapControl(new GSize(100,100)));  // 概略地図のサイズ指定(省略時は120,120)

		var zoom = 14 ;
		var point = new GLatLng(glat,glng) ;
		map.setCenter(point,zoom);

		var gmarkeroptions = new Object();
		gmarkeroptions.title = "平家とうふ　ねこのくら工房" ;
		var point = new GLatLng(glat,glng) ;
		marker = new GMarker(point,gmarkeroptions) ;
		map.addOverlay(marker) ;
	}
}

function photowin(pnm,txt){
	try {
		var winpt = window.open("","PWIN","toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,width=550,height=500");
		winpt.focus() ;
		winpt.document.open() ;
		winpt.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">');
		winpt.document.writeln('<html>');
		winpt.document.writeln('<head>');
		winpt.document.writeln('<meta http-equiv="Content-Language" content="ja">');
		winpt.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=utf-8">');
		winpt.document.writeln('<meta http-equiv="Content-Style_Type" content="text/css">');
		winpt.document.writeln('<meta http-equiv="Content-Script-Type" content="text/javascript">');
		winpt.document.writeln('<title>ねこのくら工房 | '+txt+'</title>');
		winpt.document.writeln('<link rel="stylesheet" type="text/css" href="main.css" />');
		winpt.document.writeln('</head>');
		winpt.document.writeln('<body>');
		winpt.document.writeln('<center>');
		winpt.document.writeln('<img src="image/'+pnm+'" alt="'+txt+'">');
		winpt.document.writeln('<br/><span class="f14"><strong>'+txt+'</strong></span><br/>');
		winpt.document.writeln('<form>');
		winpt.document.writeln('<input type="button" value="　閉じる　" onClick="window.close()">');
		winpt.document.writeln('</form>');
		winpt.document.writeln('</center>');
		winpt.document.writeln('</body>');
		winpt.document.writeln('</html>');
		winpt.document.close() ;
	}	catch(e) {}
}
//]]>
