var StoreURL='http://url.e-rent.com.tw/frame4/Store_searchresult.php3?no='; var RoomURL='http://url.e-rent.com.tw/frame4/searchresult.php3?jump=1&room_num='; var ParkURL='http://url.e-rent.com.tw/frame4/Park_searchresult.php3?no='; var LandURL='http://url.e-rent.com.tw/frame4/Land_searchresult.php3?no='; function RmiLatLng() { this.oLAT=this.latitude=24.17549890137; this.oLNG=this.longitude=120.642231702804; this.bLAT=0.0090285*2; this.bLNG=0.0098355*2; this.xIndex=this.yIndex=0; this.fromLatLng2=function(glatlng) { return this.fromLatLng(glatlng.lat(), glatlng.lng()); } this.fromLatLng=function(lat,lng) { this.latitude=lat; this.longitude=lng; this.xIndex=Math.floor((lat-this.oLAT)/this.bLAT); this.yIndex=Math.floor((lng-this.oLNG)/this.bLNG); return [Math.floor((lat-this.oLAT)/this.bLAT), Math.floor((lng-this.oLNG)/this.bLNG)] } this.fromIndex=function(x, y) { this.xIndex=x; this.yIndex=y; this.latitude=this.oLAT+x*this.bLAT; this.longitude=this.oLNG+y*this.bLNG; } this.toGLatLng=function() { return new GLatLng(this.latitude, this.longitude); } } function getObjDesc( obj ) { return jQuery.get("http://url.e-rent.com.tw/rentMap/rmiPicToHtml.php?id="+obj.oid+"&type="+obj.type); } function getObjDescById( id, ty ) { return jQuery.get("http://url.e-rent.com.tw/rentMap/rmiPicToHtml.php?id="+id+"&type="+ty); } function getObjDescOld( obj ) { var s,d,url; switch(obj.type) { case 1: case 2: case 3: case 4: url=RoomURL; break; case 5: url=ParkURL; break; case 6: url=LandURL; break; case 7: url=StoreURL; break; } url+=obj.oid; s='
'; s+='地址:'+obj.addr; s+="
"; if(obj.pic>0) s+=' '; s+='租金:'+obj.price+'元 '; s+='格局:'; switch(obj.type) { case 1: s+='雅房'; break; case 2: switch(obj.style) { case 1: s+='商務套房'; break; case 2: s+='分租套房'; break; case 3: s+='獨立套房'; break; default: s=+'套房'; } break; case 3: s+='公寓華廈('+obj.style+')'; break; case 4: s+='獨棟透天('+obj.style+')'; break; case 5: s+='車位'; break; case 6: s+='土地'; break; case 7: s+='商用物件'; break; } s+="
"; s+='觀看詳細資料'; s+='
'; return s; } function rmiIndexIsLoaded(x, y, indexArray) { var i; for(i=0;i