//マンション用の宣言
//
//2009/04/09 物件番号にｎを付加

	var apart_points = [];
	var apart_markers = [];
	var apart_counter = 0;
	var apart_marker_html = [];
	

//マンションMarker設定
function apartMarker(point, location, photo, link, price, fees, plan, possession, floor, build, google, comment, inquiry, favorite, n) {
if(n >= 0) { n = -1; }	

//マンションアイコンの生成
	var apartIcon = new GIcon();
	apartIcon.image = "../googlemap/mypage.png";  //アイコン画像
	apartIcon.shadow = "../googlemap/apart_shadow.png"; //影の画像
	apartIcon.iconSize = new GSize(25, 25);    //アイコンサイズ
	apartIcon.shadowSize = new GSize(25, 25); //影のサイズ
	//アンカーポイントと画像の左上角からの相対オフセット値
	apartIcon.iconAnchor = new GPoint(12,0);
	apartIcon.infoWindowAnchor = new GPoint(12,0);
	apartIcon.infoShadowAnchor = new GPoint(12,0);
	var icon = new GIcon(apartIcon);
	var marker = new GMarker(point,icon);

//マンションInfoWidowの設定
	var aparthtml = "<div class=\"info\">";
	aparthtml += "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr>";
	aparthtml += "<td><strong><a href=\""+link+"\"target=\"_blank\"\">"+location+"</a></strong></td>";
	aparthtml += "<td aligin=right>"+ n +"n</td>";
	aparthtml += "</tr></table>";
	aparthtml += "<div class=\"infoLeft\">";
	aparthtml += "<p><a href=\"../search/"+link+"\"target=\"_blank\"\"><img src=\"../cgi-local/data/photo/"+photo+"\"width=\"120\" height\"180\"\"></a></p>";
	aparthtml += "</div>";
	aparthtml += "<div class=\"infoRight\">";
	aparthtml += "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">";
	aparthtml += "<tr><th nowrap=\"nowrap\">賃料</strong></th><td>"+price+"万円</td></tr>";
	aparthtml += "<tr><th nowrap=\"nowrap\">管理・共益費</th><td>"+fees+"円</td></tr>";
	aparthtml += "<tr><th nowrap=\"nowrap\">間取り</th><td>"+plan+"</td></tr>";
	aparthtml += "<tr><th nowrap=\"nowrap\">占有面積</th><td>"+possession+"m</td></tr>";
	aparthtml += "<tr><th nowrap=\"nowrap\">所在階/階建</th><td>"+floor+"</td></tr>";
	aparthtml += "<tr><th nowrap=\"nowrap\">築年月</th><td>"+build+"</td></tr>";
	aparthtml += "</table>";
	aparthtml += "<p style=\"margin-top:10px; padding:0;\"><a href=\""+google+"\"target=\"_blank\">周辺環境を確認する</a></p>";
	aparthtml += "</div>";
	aparthtml += "<div class=\"clear\" style=\"margin-top:5px;\" />";
	aparthtml += "<p>"+comment+"</p>";
	aparthtml += "<div id=\"buttonLink\">";
	aparthtml += "<ul>";
	aparthtml += "<li><a href=\"../search/"+link+"\"target=\"_blank\"\" id=\"details\" title=\"物件詳細\"></a></li>";
	aparthtml += "<li><a href=\"../search/"+inquiry+"\"target=\"_blank\"\" id=\"inquiry\" title=\"お問合わせ\"></a></li>";
	aparthtml += "</ul>";
	aparthtml += "</div>";
	aparthtml += "<p class=\"infohelp\"><a href=\"../support/support_01.html\" target=\"_blank\">ホームページの使い方</a></div>";
	aparthtml += "</div>";
	aparthtml += "</div>";


	GEvent.addListener(marker, "click", function() {
	marker.openInfoWindowHtml(aparthtml); });
	apart_points[apart_counter] = point;
	apart_markers[apart_counter] = marker;
	apart_marker_html[apart_counter] = aparthtml;
	apart_counter++;
	return marker;
}			  
			  
	function mapList(idx) {
	apart_markers[idx].openInfoWindowHtml(apart_marker_html[idx]);
	map.setCenter(apart_markers[idx].point, 13);
	}



