/**
 * よかNavi - ターゲット座標の Google Map 描画
 * 
 * @package yokanavi
 * @author Hideyuki Kagasawa <kagasawa@web-prom.net>
 * @copyright Copyright (C) 2008 Fusic Co., Ltd , All Rights Reserved.
 */
 	// GoogleMap本体
	var objGmap;

	/**
	 * 読み込み完了時に実行
	 */
	window.onload = function() {
		// Gマップオブジェクトを生成
		objGmap = new viewGoogleMap('map');
	}

	/**
	 * コンストラクタ
	 */
	function viewGoogleMap (mapDivId) {

		// 開始座標
		var init_x = defaltX;
		var init_y = defaltY;

		// 座標指定がある場合は上書きする
		if ( x != 0 ) {
			init_x = x;
		}
		if ( y != 0 ) {
			init_y = y;
		}

		// Gマップオブジェクトを生成
		this.map = new GMap($(mapDivId));
		this.map.centerAndZoom(new GPoint(init_x, init_y), 2);
		this.map.addControl(new GLargeMapControl());
		this.map.addControl(new GMapTypeControl());

		// 十字アイコン作成
		this.icon = new GIcon();
		this.icon.image = crossIconPath;
		this.icon.iconSize = new GSize(100, 100);
		this.icon.iconAnchor = new GPoint(50, 50);
		this.marker = new GMarker(this.map.getCenterLatLng(), this.icon);
		this.map.addOverlay(this.marker);
	}

