var platial_width = "160"; var MapKitStyle = {"memberName":"visitor","centerMarker":"http:\/\/platial.com\/widgets\/mapstyler\/styles\/platialheartsbicycles\/icon_center.png","baseMarker":"http:\/\/platial.com\/widgets\/mapstyler\/styles\/platialheartsbicycles\/icon.png","hoverMarker":"http:\/\/platial.com\/widgets\/mapstyler\/styles\/platialheartsbicycles\/icon_hover.png","focusMarker":"http:\/\/platial.com\/widgets\/mapstyler\/styles\/platialheartsbicycles\/icon_focus.png","shadowMarker":"http:\/\/platial.com\/widgets\/mapstyler\/styles\/platialheartsbicycles\/shadow.png","markerSet":"bike","includeDescription":true,"startLocation":"Washington, DC","startLat":"38.895000","startLong":"-77.036667","startExtent":"4","width":"160px","includeAddplace":1,"enableAllEdits":false,"enableMemberEdits":false,"enableSessionEdits":true,"alertsActive":false,"waitForWindowLoad":false,"approvedOnly":false,"hostsite":"http:\/\/hibityjibity.wordpress.com","maptitle":"Where You At","mapImageType":"hyb","wordpress":true,"infoWindow":false,"includeRatings":true,"includeAddcomment":true,"startBounds":{"minLat":49.270203,"minLng":-84.739723,"maxLat":49.270203,"maxLng":-84.739723},"adSet":"adsense"}; var platial_apiKey = "2e21feb2e26f4e8a050c4958e64730d1f0c0dcaa"; var platial_host = "platial.com" var platial_client_host = window.location.host; var platial_mapId = "20474"; var platial_mapTitle = "Where You At"; var platial_session = "a95e3efe4f5400a21d21b3a83f2208be0"; var platial_2006 = true; // flag indicating that this is not archaic var platial_querystring = "map=20474&mapengine=google&key=2e21feb2e26f4e8a050c4958e64730d1f0c0dcaa&member=visitor&v=3"; var platial_stealThisString = "map=20474&mapengine=google&key=2e21feb2e26f4e8a050c4958e64730d1f0c0dcaa&member=visitor&v=3" var platial_trackingString = "" var platial_trackingTag = "" var platial_trackingId = "" var platial_swTag = "" var platial_swPrefix = "" var platial_swSuffix = "" var mapKitMode = "skinny"; // wait for the real mapkit to be loaded in IE6 function loadNotice(msgg) { } var HubWidget={items:{},descriptors:{},filteredItems:{},mapId:0,memberName:null,memberIsOwner:false,ownerName:"The Map Editor",properties:[],postProperties:["title","description","images","subject","created","owner","memberName","link","featureType","approvalStatus","tags"],anchorPostProperties:["title","description","anchorImage","topic","created","owner","memberName","link","featureType","approvalStatus","tags","rating","beenTheres"],itemProperties:["title","geometry","owner","created","fullAddressText","address","tags","featureType","anchorThumb"],nextItemId:200000,postsByPlace:{},currentPlace:null,currentPost:null,currentComment:null,currentCallback:null,currentArg0:null,lastMsg:null,commentAdder:null,placeAdder:null,isIE:false,isSafari:false,fdb:[],elementCall:null,alertCount:0,selectingNewItem:false,approvedOnly:false,tilingMode:true,mapIds:[],resetData:function(){var h=HubWidget;h.items={};h.filteredItems={};},nl2br:function(s){if(!s)return'';return s.replace(/\n/g,"
");},stringIsBlank:function(st){if(!st)return true;var ln=st.length;for(var i=0;i=0;i--){indices[i+1]=indices[i];} indices[0]=vl;},propertyCountGreaterThan:function(vl,n){var cnt=0;for(var i in vl){cnt++;if(cnt>n)return true;} return false;},propertyCount:function(vl){var cnt=0;for(var i in vl){cnt++;} return cnt;},mapOverElements:function(root,inSet,op){if(inSet(root)){HubWidget.fdb.push(root);op(root);} if(root.hasChildNodes()){var cnodes=root.childNodes;var ln=cnodes.length;for(var i=0;i=0;},detectBrowser:function(){var userAgent=navigator.userAgent.toLowerCase();if(document.all&&userAgent.indexOf('msie')!=-1){HubWidget.isIE=true;return;} if(userAgent.indexOf('safari')!=-1){HubWidget.isSafari=true;}},uriIndex:function(s){var sp=s.split(":");return sp[1];},itemIndex:function(itm){if(typeof itm=='string')return HubWidget.uriIndex(itm);if(itm.id)return itm.id;var abt=itm["@id"];var rs=HubWidget.uriIndex(abt);if(rs)itm.id=rs;return rs;},subjectIndex:function(itm){var sb=itm["topic"];if(typeof sb=='string')return HubWidget.uriIndex(sb);return 0;},subjectOfPost:function(itm){var w=HubWidget;var sb=itm["topic"];if(typeof sb=='string'){var sbid=sb.split(":")[1];return w.items[sbid];}else{return sb;}},shallowCopy:function(dst,src){for(i in src){if(i=="tileIds"){if(!(dst.tileIds))dst.tileIds=src.tileIds;else HubWidget.concatNoDup(dst.tileIds,src.tileIds);}else{dst[i]=src[i];}}},setLocation:function(itm,setLocationFromSubject){if(itm.location)return;if(setLocationFromSubject){var sb=HubWidget.subjectOfPost(itm);if(sb){if(sb.location){itm.location=sb.location;} return;}} var gpnt=itm["geometry"];if(gpnt){itm.location=geoXtoPoint(gpnt);}},in_itm:null,iitm:null,tttp:null,normalizeCategory:function(itm){var ct=itm.category;if(!ct){ct=plainCategory;itm.category=ct;} return ct;},setCategory:function(itm,category){if(!category)category=plainCategory;if(category==plainCategory){if(!itm.category)itm.category=category;return;} itm.category=category;},xferCategory:function(dst,src){var sc=src.category;if(sc&&(sc!=plainCategory))dst.category=sc;var oc=src.otherCategories;if(oc)dst.otherCategories=oc;},internItemI:function(itm,setLocationFromSubject,topCall){var w=HubWidget;if(topCall)w.top_itm=itm;else w.in_itm=itm;var isNew=0;var itid=itm.id;if(typeof itid=='undefined'){var itid2=itm["@id"];if(itid2){itid=itid2.split(":")[1];}else{itid=w.nextItemId++;itm["@id"]="platialItem:"+itid;} itm.id=itid;} var tp=itm["@type"];if(!itm.category)itm.category=plainCategory;if((!tp)||(tp=="cgeo:Place")){var cv=w.items[itid];if(cv){var ccat=HubWidget.normalizeCategory(cv);w.shallowCopy(cv,itm);HubWidget.setCategory(cv,ccat);itm=cv;}else{w.items[itid]=itm;isNew=1;} var icat=itm.category;var ds=itm.descriptors;var ccat=plainCategory;if(ds&&topCall){var nds=[];var dsln=ds.length;for(var i=0;ibiggestHeight) biggestHeight=getWinHeight();el.style.width=document.body.scrollWidth+'px';el.style.height=biggestHeight+'px';} el.style.display=displayMode;} function getWinHeight(){if(window.innerHeight)return window.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight) return document.documentElement.clientHeight;else if(document.body&&document.body.clientHeight) return document.body.clientHeight;else if(document.body&&document.body.parentNode&&document.body.parentNode.clientHeight) return document.body.parentNode.clientHeight;} function getWinLeft(){return typeof window.pageXOffset!='undefined'?window.pageXOffset:document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft?document.body.scrollLeft:0;} function getWinTop(){return typeof window.pageYOffset!='undefined'?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop?document.body.scrollTop:0;} function getWinRight(){return getWinLeft()+getWinWidth();} function getWinBottom(){return getWinTop()+getWinHeight();} function displayCenteredDiv(id,offsetTop,offsetLeft){var el=document.getElementById(id);el.style.display='inline';winTop=getWinTop();if(offsetTop>20) el.style.top=winTop+offsetTop+'px';else el.style.top=winTop+20+'px';if(typeof offsetLeft=='undefined')offsetLeft=0;el.style.left=offsetLeft+(getWinWidth()/2-el.offsetWidth/2)+'px';el.style.visibility='visible';} function getWinWidth(){if(window.innerWidth)return window.innerWidth;else if(document.documentElement&&document.documentElement.clientWidth) return document.documentElement.clientWidth;else if(document.body&&document.body.clientWidth) return document.body.clientWidth;else if(document.body&&document.body.parentNode&&document.body.parentNode.clientWidth) return document.body.parentNode.clientWidth;} function toggleDisplayOff(id){var el=document.getElementById(id);if(el)el.style.display='none';} function toggleDisplayOn(id){var el=document.getElementById(id);if(el)el.style.display='block';} function mkCloseTab(parent,nm,rightMargin){var closeTabDiv=document.createElement("div");closeTabDiv.id=nm+"_tab";closeTabDiv.style.top="0px";closeTabDiv.style.marginRight=rightMargin;closeTabDiv.style.textAlign="right";parent.appendChild(closeTabDiv);var platialIframeHTML='Close Window
';closeTabDiv.innerHTML=platialIframeHTML;return closeTabDiv;} function detectOSXFF(){var userAgent=navigator.userAgent.toLowerCase();if(userAgent.indexOf('mac')!=-1&&userAgent.indexOf('firefox')!=-1){return true;}} var loopCount=0;FragmentComWidget={rootUrl:null,inRoot:false,initialHistoryLength:0,action:null,stripFragment:function(url){var fidx=url.indexOf('#');if(fidx>=0){return url.substring(0,fidx);} return url;},init:function(rt){var fw=FragmentComWidget;if(rt){fw.inRoot=false;}else{fw.inRoot=true;rt=window.location.toString();} rt=fw.stripFragment(rt);fw.rootUrl=rt;},fragment:function(fromThisFrame){var fw=FragmentComWidget;if(fw.inRoot||fromThisFrame){return window.location.toString();}else{var rs=window.location.toString();return rs;}},setFragment:function(txt,thisFrame){var fw=FragmentComWidget;var safari=navigator.userAgent.indexOf('Safari')>=0;if(fw.inRoot||thisFrame){var loc=window.location;}else{var loc=window.parent.location;} if(safari){loc.href=txt;}else{loc.replace(txt);}},clearFragment:function(thisFrame){var fw=FragmentComWidget;if(thisFrame){var url=fw.stripFragment(window.location.toString());}else{url=fw.rootUrl;} dBg("clear "+url);fw.setFragment(url+"#_",thisFrame);},send:function(msg){if(msg=='done')furf();var fw=FragmentComWidget;var fmsg=fw.rootUrl+"#platial["+msg+"]";fw.setFragment(fmsg);},extract:function(fromThisFrame){var fw=FragmentComWidget;var lc=fw.fragment(fromThisFrame);var lcidx=lc.indexOf('platial[');if(lcidx>0){var mst=lcidx+8;var closeB=lc.indexOf(']',mst);return lc.substr(mst,closeB-mst);}},extractLoop1:function(fromThisFrame){var fw=FragmentComWidget;var ex=fw.extract(fromThisFrame);var consumed=false;if(ex){var action=fw.action;if(action){var consumed=action(ex);if(consumed)fw.clearFragment(fromThisFrame);}} if(!consumed)window.setTimeout('FragmentComWidget.extractLoop1('+fromThisFrame+')',1000);},extractLoop:function(fromThisFrame){var fw=FragmentComWidget;fw.extractLoop1(fromThisFrame);}} var urls=[];if((!window.console)||(window.location.hostname=="platial.com")){window.console={log:function(){},error:function(){}};} var dBgCount=0;var dBgEnabled=false;function dBg(msg){if(!dBgEnabled)return;var d=document.getElementById("debug")?document.getElementById("debug"):document.body;d.appendChild(document.createTextNode("["+(dBgCount++)+"] "));d.appendChild(document.createTextNode(msg));d.appendChild(document.createElement("br"));} var MapKit={skinnyTransition:571,iframeSrc:null,iframeSrc2:null,rootUrl:null,lightboxMapOpen:false,lighbox2Open:false,postEditDone:false,mapEditDone:false,adjustedHeight:0,reloadBigMap:function(){var mapf=document.getElementById('platialLB1_iframe');if(mapf){mapf.src=(MapKit.rootUrl)+"#platial[reload]";}},reloadMap:function(){var mapf=document.getElementById('platial_mapKit_frame');if(mapf){mapf.src=(MapKit.rootUrl)+"#platial[reload]";}},interpretCommand:function(ex){console.log("interpreting [["+ex+"]]");if(MapKitStyle.verticalMap){var tall=520;}else{var tall=600;} var wide=715;var rs=false;var rootUrl=window.document.location.toString();rootUrl=rootUrl.split('#')[0];var timeArg="&time="+(new Date().getTime());var fc=ex.charAt(0);if(ex=="close"){rs=true;MapKit.closeLB1();} var spanClause="";var queryClause="";var detailClause="" var whereClause="" if((fc=="b")||(fc=="q")){if(fc=="b"){if((ex.indexOf("bigmap")==0)||(ex.indexOf("bigadd")==0)){if(ex.indexOf("[")==6){var bndst=ex.substr(7);spanClause="&span="+bndst;}}else{var postId=parseInt(ex.substr(1));}} if(fc=="q"){var mtch=ex.match(/\[([^\;]*)\;([^\;]*)\;([^\[]*)$/);queryClause="&q="+mtch[1];whereClause="&where="+mtch[2];var bndst=mtch[3];spanClause="&span="+bndst;} MapKit.postEditDone=false;MapKit.mapEditDone=false;rs=true;var url="http://"+platial_host+"/map/"+platial_mapId;var fragClause=(ex.indexOf("bigadd")==0)?"&fragment=post/add_place_form":"";url+="?remote=1&mode=lightbox"+fragClause+queryClause+whereClause+"&"+platial_querystring+spanClause+"&chost="+window.location.host+"&root="+escape(MapKit.rootUrl)+'&session='+platial_session;if(postId)url+="&post_id="+postId;MapKit.iframeSrc2=url;MapKit.lightboxMapOpen=true;makeLightBox('platialLB1',tall,wide,'no');showLightBox('platialLB1',url,MapKit.onCloseLB1);} if(!isNaN(ex)){if(ex==17947||ex==42867)var ricky=true;var bookTall=130;var userAgent=navigator.userAgent.toLowerCase();if(userAgent.indexOf('msie')!=-1){var bookWide=document.body.offsetWidth*.80;}else{var bookWide=window.innerWidth*.80;} MapKit.postEditDone=false;MapKit.mapEditDone=false;rs=true;var url='http://'+platial_host+'/ads?map='+ex+'&w='+bookWide+'&adset=';if(ricky){url+='rickyMartin';}else{url+='amazon';} MapKit.iframeSrc2=url;MapKit.lightboxMapOpen=true;makeLightBox('platialLBbooks',bookTall,bookWide,'no');showLightBox('platialLBbooks',url,MapKit.onCloseLBbooks);} if(ex=="edit"){MapKit.postEditDone=true;MapKit.mapEditDone=true;rs=true;} if(rs)window.setTimeout('FragmentComWidget.extractLoop(false)',1000);return rs;;},sendMsgToMap:function(msg){frmnm='platial_mapKit_frame';var frm=document.getElementById(frmnm);var csrc=FragmentComWidget.stripFragment(frm.src);dBg(csrc);frm.src=csrc+"#platial["+msg+"]";},onCloseLB1:function(){if(mapKitMode=='skinny'){}else{if(MapKit.postEditDone)MapKit.sendMsgToMap('edit',false);} if(typeof AddPlaceWidget!='undefined')AddPlaceWidget.unhide();},closeLB1:function(){hideLightBox();MapKit.onCloseLB1();},onShadeClick:function(){hidePlatialWindow('platialWindow',false);if(typeof AddPlaceWidget!='undefined')AddPlaceWidget.unhide();MapKit.lightboxMapOpen=false;},destUrl:null,display:function(){document.write('
');setTimeout(MapKit.yardstick,100);if(platial_2006&&(platial_mapId==0)){var mapIdClause="&map="+MapKit.mapId;}else{mapIdClause="";} var mk=MapKit;var src="http://"+platial_host+"/map/"+platial_mapId+"?remote=1&mode="+mapKitMode+mapIdClause+"&width="+platial_width+"&trackingString="+platial_trackingString+"&session="+platial_session+"&"+platial_querystring+"&chost="+window.location.host;if(mk.style){var jst="&morestyles="+escape(JSON.stringify(mk.style));src+=jst;} if(platial_width=='Auto'||mapKitMode=='fat')var width="100%";else width=platial_width;var rootUrl=FragmentComWidget.stripFragment(window.location.toString());MapKit.rootUrl=rootUrl;src+="&root="+escape(rootUrl);MapKit.destUrl=src;MapKit.iframeSrc=src;if(mapKitMode=='skinny')MapKit.skinny=true;var allowTheft;if(typeof MapKitStyle=='undefined'){allowTheft=false;}else{if(MapKitStyle.allowTheft=='true')allowTheft=true;} var fhtml='';document.write(fhtml);FragmentComWidget.init();FragmentComWidget.action=MapKit.interpretCommand;FragmentComWidget.extractLoop(false);},yardstick:function(){var wint=parseInt(platial_width);var ye=document.getElementById('yardstick');if(wint==platial_width){var width=wint;}else{var width=ye.clientWidth;} if(HubWidget.isIE){var width=ye.offsetWidth;} MapKit.width=width;var sliderH=(MapKitStyle.includeSlider)?55:0;var swH=platial_swTag?80:0;if(width<571){var ht=359+swH+(HubWidget.isIE?7:0);}else if(platial_mapId==2966||platial_mapId==47201||platial_mapId==40228||platial_mapId==26717||HubWidget.isIE){ht=490+sliderH;}else{ht=530+sliderH;} MapKit.adjustedHeight=ht;MapKit.adjustHeight();var ysd=document.getElementById('yardstick');ysd.parentNode.removeChild(ysd);},adjustHeight:function(){var f=document.getElementById('platial_mapKit_frame');if(f){f.height=MapKit.adjustedHeight;var src=(MapKit.destUrl)+((MapKit.width