// JavaScript Document

function pageBack(){
	location.href = "./mail1.php";
}

function openwin(){
var ua= navigator.userAgent;
var winWidth =700;
var winHeight=620;
	if(ua.indexOf("MSIE",0)>=0){
		window.resizeTo(winWidth,winHeight);
	}else if(ua.indexOf("Netscape6",0)>=0||ua.indexOf("Mozilla/4",0)>=0){
		window.outerWidth = winWidth;
		window.outerHeight = winHeight;
	}
}

function load() {
  if (GBrowserIsCompatible()) {
	var map = new GMap2(document.getElementById("map"));
	map.setCenter(new GLatLng(36.571789, 136.614046), 13);
	//オリジナルマーカーの画像を作成
	var icon = new GIcon();
	icon.image = "http://www.estate21.jp/marker1.png";
	icon.shadow = "http://www.estate21.jp/marker2.png";
	icon.iconSize = new GSize(65, 60);
	icon.shadowSize = new GSize(65, 60);
	icon.iconAnchor = new GPoint(32, 75);
	icon.infoWindowAnchor = new GPoint(18, 11); 
	//マーカーを追加
	var marker = new GMarker(new GLatLng(36.571789, 136.614046),icon); 
	map.addOverlay(marker);
	//マーカーをクリックしたら、吹き出しの中に写真を表示する
	GEvent.addListener(marker, "click", function() {    marker.openInfoWindowHtml("<p>株式会社エステート21</p><p>〒921-8001 石川県金沢市高畠3丁目15番地　栄光ビル</p><p>[TEL] 076-291-7667　[FAX] 076-291-7668　[MAIL] info@estate21.jp</p>");}); 
	//マップコントローラを付ける
	map.addControl(new GLargeMapControl()); 
  }
}// JavaScript Document


function changeImage(imageName){
	document.targetimage.src = imageName;
}

function changeImage2(imageName){
	document.targetimage2.src = imageName;
}

function changeImage3(imageName){
	document.targetimage3.src = imageName;
}

function changeImage4(imageName){
	document.targetimage4.src = imageName;
}

function changeImage5(imageName){
	document.targetimage5.src = imageName;
}
