/*
 * Compressed by JSA(www.xidea.org)
 */
var PHOTO_LOCATION_3D=function(){var D=YAHOO.util.Event,L=YAHOO.util.Dom,E=L.get,K,G,F;function A(){var A=new PHPRPC_Client(B(),["get_location_photo_list"]);A.get_location_photo_list(20,"3d",function(A){var B=20;for(var C=0;C<B;++C)(function(){var D=C,B=A[C]["wei"],E=A[C]["jing"];setTimeout(function(){I(B,E,J(A[D]))},D*7000)})()})}var C=function(){var F=E("map"),D=E("copyright"),B=E("fanfouCounter"),C=E("right_ad"),H=E("top_ad"),A=L.getViewportWidth(),G=L.getViewportHeight();if(F){F.style.top=85+"px";F.style.left=70+"px";F.style.width=A-270+"px";F.style.height=G-150+"px"}if(D){D.style.width=A-170+"px";D.style.left="70px"}if(B){B.style.width=A-270+"px";B.style.left=(A-200)/2+"px"}if(C){C.style.top=0+"px";C.style.left=(A-200)+"px"}if(H)H.style.left=0+"px"},J=function(A){return"<div><a href=\"http://bawbaw.deep.tw/dingding_photo/DingDingAlbum.htm#"+A["album_url"]+"\" target=\"_blank\" class=\"avatar\"><img src=\""+H()+A["album_photo"]+"\" /><p><font size=\"14\">"+A["album_title"].replace("\\r\\n","")+"</font></p><p><font size=\"12\">"+" \u5728 <b>"+A["name"]+"</a></b></font>"+"</p></div>"};function H(){var B=[""],A=B.length;return B[Math.floor(Math.random()*A)]}function B(){var B=["http://bawbaw.deep.tw/photo_location/rpc.photo_location.php","http://bawbaw-hu.deep.tw/rpc/rpc.photo_location.php","http://bawbaw-hu.deep.tw/rpc/rpc.photo_location.php","http://bawbaw-hu.deep.tw/rpc/rpc.photo_location.php"],A=B.length;return B[Math.floor(Math.random()*A)]}function M(){K.setTargetLatLng(new FE.LatLng(25.0852,121.554));var A=L.getViewportHeight();K.zoomTo(30000000-(A*A*32));G=new FE.Icon("http://fanfou3d.googlepages.com/user.png");F=new FE.Icon("http://fanfou3d.googlepages.com/user_female.png")}function I(C,E,B){try{K.clearOverlays();K.closeInfoWindow()}catch(D){}var A=new FE.Pushpin(new FE.LatLng(C,E),F);FE.Event.addListener(A,"click",function(A){A.openInfoWindowHtml(B,200,100)});try{K.panTo(new FE.LatLng(C,E),5);lastMarker=A;setTimeout(function(){lastMarker.dispatch("click")},85);K.addOverlay(A)}catch(D){}}return{init:function(){D.on(window,"resize",C);C();setTimeout(A,1000);setInterval(A,140000);K=new FE.Map(document.getElementById("map"));K.onLoad=M;K.load()}}}()