var MMP_COPYRIGHT="Copyright 2008 MapMyPage";var ab=1;var MMP_CP="Computer users can browse through the galaxy on their own or take guided tours of different outer-space destinations developed by astronomers and academics.";var MMP={"test":"zed","settings":{"a":"abc","domain":"http://www.mapmypage.com/","debug":false,"popupIconTitle":"View map","imgMaximizeId":"imgMaximize"}
}
;var bb="";var cb=[];var EMPTY_STRING="";var NODE_VALUE_DELI=" ";function GeoRef(){}
GeoRef.prototype.db;GeoRef.prototype.eb;GeoRef.prototype.fb;GeoRef.prototype.gb;GeoRef.prototype.hb;GeoRef.prototype.ib;function Node(){}
Node.prototype.text;Node.prototype.is;Node.prototype.ie;Node.prototype.done;MMPManager.jb=function(kb){if(MMP.settings.debug==true){alert(kb);}
}
var lb;MMPManager.mb=function(){lb=new MMPManager();lb.nb();}
function MMPManager(){var ob;var pb;}
MMPManager.prototype.locHandlerScript;MMPManager.loadMap=function(qb){MMPManager.jb("loadMap");if(lb.locHandlerScript){document.getElementsByTagName("head")[0].removeChild(lb.locHandlerScript);}
try
{var rb=Dd;MMPManager.sb(rb);}
catch(e){MMPManager.jb("mmp fatal error "+e.name+":"+e.message);}
}
MMPManager.testloadMap=function(){alert("here");for(i=0;i<tb.length;i++){alert(tb[i].n);var t=document.getElementById("debug");if(t){t.value=tb[i].n;}
var ab=eval("("+tb[i].n+")");alert(ab[0].n);}
}
MMPManager.prototype.nb=function(){this.mmPopup();var ub=document.getElementsByTagName("title")[0].innerHTML;var vb=document.getElementsByTagName("head")[0];{var wb=MMPManager.xb();bb="";MMPManager.yb(document.getElementsByTagName("body")[0]);bb=MMPManager.zb(bb);this.chunkSize=1000;this.numChunk=bb.length/this.chunkSize;this.i=0;this.$b(EMPTY_STRING);}
var _b=document.createElement("link");_b.rel="stylesheet";_b.type="text/css";_b.href=MMP.settings.domain+"maps/css/mapmypage.css";vb.appendChild(_b);}
MMPManager.prototype.$b=function(ac){var wb=MMPManager.xb();var vb=document.getElementsByTagName("head")[0];if(this.locHandlerScript){vb.removeChild(this.locHandlerScript);}
if(this.i<this.numChunk){var bc=(this.i>=this.numChunk-1);var cc=document.createElement("script");cc.type="text/javascript";var dc=MMP.settings.domain+"maps/LocationHandler.ashx?go="+bc+"&p="+ac+"&i="+bb.substring(this.i*this.chunkSize,(this.i+1)*this.chunkSize);cc.src=dc;vb.appendChild(cc);this.locHandlerScript=cc;}
this.i++;}
MMPManager.test=function(ac){lb.$b(ac);}
MMPManager.prototype.ec=function(){this.myWidth=0;this.myHeight=0;if(typeof(window.innerWidth)=='number'){this.myWidth=window.innerWidth;this.myHeight=window.innerHeight;}
else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){this.myWidth=document.documentElement.clientWidth;this.myHeight=document.documentElement.clientHeight;}
else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){this.myWidth=document.body.clientWidth;this.myHeight=document.body.clientHeight;}
}
}
}
MMPManager.getGeoRefFromLoc=function(fc){var gc=new GeoRef();gc.gb=fc.n;gc.db=fc.lt;gc.eb=fc.lg;gc.hb=fc.s;gc.ib=fc.e;if(fc.t){gc.fb=fc.t;}
else{gc.fb="NOTHING";}
return gc;}
MMPManager.xb=function(){return new Date().getMilliseconds();}
MMPManager.sb=function(rb){MMPManager.jb("mmpPlaceIcon "+rb);for(j=0;j<cb.length;j++){var hc=cb[j];for(i=0;i<rb.length;i++){var fc=rb[i];var ic=MMPManager.jc(hc.more.nodeValue);if(fc.x!="true"){if(fc.s>hc.ie){break;}
while(hc&&hc.ie<fc.e){var kc=cb[++j];if(kc&&kc.ie<=fc.e){hc=kc;ic=ic+NODE_VALUE_DELI+MMPManager.jc(hc.more.nodeValue);}
else{j--;break;}
}
var lc=MMPManager.mc(fc.n);var nc=ic.match(lc);if(nc!=null&&nc.length>0){MMPManager.oc(rb,fc.n);var gc=MMPManager.getGeoRefFromLoc(fc);var pc=MMPManager.qc(cb[j].more,gc,nc);if(pc!=null){cb[j].more=pc;}
}
}
}
}
}
MMPManager.oc=function(rb,rc){for(sc=0;sc<rb.length;sc++){var tc=rb[sc];if(tc.x!="true"){if(tc.n==rc){tc.x="true";}
}
}
}
MMPManager.qc=function(hc,gc,nc){var ic=hc.nodeValue;var uc=ic.indexOf(gc.gb);if(uc>=0||nc){var vc=hc.parentNode;var wc=hc.nextSibling;if(!vc){return null;}
vc.removeChild(hc);var xc=document.createElement("span");var yc=document.createAttribute("class");yc.value="map";xc.setAttributeNode(yc);var pc=null;if(ic==gc.gb||ic.length<=gc.gb.length){xc.innerHTML=ic;vc.insertBefore(xc,wc);}
else if(ic.length>gc.gb.length){var zc=ic.substring(0,uc);if(zc.length>0){vc.insertBefore(document.createTextNode(zc),wc);}
xc.innerHTML=gc.gb;vc.insertBefore(xc,wc);var $c=ic.substring(uc+gc.gb.length);if($c.length>0){pc=document.createTextNode($c);vc.insertBefore(pc,wc);}
}
var _c=document.createElement("img");var ad=document.createAttribute("src");ad.value=MMP.settings.domain+"maps/images/icon13.gif";_c.setAttributeNode(ad);MMPManager.bd(_c,"title",MMP.settings.popupIconTitle);MMPManager.bd(_c,"border","0");_c.onclick=function(event){MMPManager.cd(true,gc,event);}
xc.appendChild(_c);return pc;}
else{return hc;}
}
MMPManager.dd=function(hc){var ed=false;try{if(hc.nodeName=="A"||hc.nodeName=="TEXT"||hc.nodeName=="TEXTAREA"||hc.nodeName=="CODE"||hc.className=="maps_off"||(hc.id&&hc.id.startsWith("addthis"))||hc.nodeName=="SCRIPT"){ed=true;}
}
catch(e){}
return ed;}
MMPManager.yb=function(fd){if(fd.hasChildNodes&&fd.nodeType!=3){for(var i=0;i<fd.childNodes.length;i++){if(!MMPManager.dd(fd.childNodes[i])){MMPManager.yb(fd.childNodes[i]);}
}
}
else{var gd=MMPManager.jc(fd.nodeValue);if(gd.length>1){var hd=new Node();hd.text=gd;hd.is=bb.length;hd.ie=hd.is+gd.length;hd.more=fd;cb.push(hd);if(bb.length>0){bb+=NODE_VALUE_DELI+gd;}
else{bb=gd;}
}
}
return bb;}
MMPManager.jc=function(text){var gd=MMPManager.jd(text);return gd;}
MMPManager.kd=function(ld){var md=document.getElementById("mmpDivIfm");if(lb.myWidth!=0){md.style.width=(lb.myWidth*.5)+"px";}
if(lb.myHeight!=0){md.style.height=(lb.myHeight*.7)+"px";}
var nd=document.getElementById("mapIFrame");md.removeChild(nd);md.appendChild(MMPManager.od(ld));}
MMPManager.od=function(pd){var qd=document.createElement("iframe");var rd=document.createAttribute("height");var sd=document.createAttribute("width");var td=document.createAttribute("id");var ud=document.createAttribute("src");var vd=document.createAttribute("name");var wd=document.createAttribute("frameborder");rd.value="313px";sd.value="328px";if(lb.myWidth&&(lb.myWidth*.5)>328){sd.value=(lb.myWidth*.5)+"px";}
if(lb.myHeight&&(lb.myHeight*.7)>313){rd.value=(lb.myHeight*.7)+"px";}
td.value="mapIFrame";ud.value=MMP.settings.domain+"maps/MapIFrame.aspx?a="+MMPManager.xb()+"#"+pd;vd.value="mapIFrame";wd.value="0";qd.setAttributeNode(wd);qd.setAttributeNode(rd);qd.setAttributeNode(sd);qd.setAttributeNode(td);qd.setAttributeNode(ud);qd.setAttributeNode(vd);return qd;}
MMPManager.prototype.mmPopup=function(){var xd=document.createElement("div");var yd=document.createAttribute("id");yd.value="mbMapPopup";xd.setAttributeNode(yd);MMPManager.makeDraggable(xd);var zd=document.createElement("div");MMPManager.bd(zd,"align","right");MMPManager.bd(zd,"id","mbPopupMenu");var $d=document.createElement("a");MMPManager.bd($d,"href","javascript:void(0);");var _d=document.createElement("img");MMPManager.bd(_d,"id",MMP.settings.imgMaximizeId);MMPManager.bd(_d,"src",MMP.settings.domain+"maps/images/maximize.gif");MMPManager.bd(_d,"title","Maximize window");MMPManager.bd(_d,"border","0");MMPManager.addEvent(_d,"click",MMPManager.ae);$d.appendChild(_d);zd.appendChild($d);var be=document.createElement("a");MMPManager.bd(be,"href","javascript:void(0);");var ce=document.createElement("img");MMPManager.bd(ce,"src",MMP.settings.domain+"maps/images/close.gif");MMPManager.bd(ce,"title","Close window");MMPManager.bd(ce,"border","0");MMPManager.addEvent(ce,"click",MMPManager.closePopup);be.appendChild(ce);zd.appendChild(be);xd.appendChild(zd);var de=document.createElement("div");MMPManager.bd(de,"id","mmpDivIfm");de.appendChild(MMPManager.od(""));xd.appendChild(de);var ee=document.createElement("div");var fe=document.createAttribute("id");fe.value="mbLogo";ee.setAttributeNode(fe);var ge=document.createElement("img");{var he=document.createElement("a");MMPManager.bd(he,"href","http://www.mapmypage.com");MMPManager.bd(he,"target","_blank");MMPManager.bd(he,"title","Easily add maps to your web pages");var ad=document.createAttribute("src");ad.value=MMP.settings.domain+"maps/images/logo_map.png";ge.setAttributeNode(ad);MMPManager.bd(ge,"border","0");he.appendChild(ge);ee.appendChild(he);}
xd.appendChild(ee);MMPManager.bd(xd,"title","Drag to move");(document.getElementsByTagName("body")[0]).appendChild(xd);this.mbPopup=xd;}
MMPManager.addEvent=function(ie,je,ke){if(ie.addEventListener){ie.addEventListener(je,ke,false);return true;}
else if(ie.attachEvent){var r=ie.attachEvent("on"+je,ke);return r;}
else{return false;}
}
MMPManager.removeEvent=function(ie,je,ke){if(ie.addEventListener){ie.removeEventListener(je,ke,false);return true;}
else if(ie.attachEvent){ie.detachEvent("on"+je,ke);return true;}
else{return false;}
}
MMPManager.bd=function(hc,name,le){var yc=document.createAttribute(name);yc.value=le;hc.setAttributeNode(yc);}
MMPManager.cd=function(me,gc,e,ne){lb.ec();if(me){var _c=document.getElementById(MMP.settings.imgMaximizeId);_c.title="Maximize Window";lb.mbPopup.style.width=((lb.myWidth*0.5)+22)+"px";lb.mbPopup.style.height=((lb.myHeight*0.7)+33)+"px";var e=e||window.event;var oe=gc.gb.replace(/#/g,"%23");var pe=0;var qe="({lat:"+gc.db+",lg:"+gc.eb+",type:'"+gc.fb+"', name:'"+oe+"',tab:"+pe+"})";MMPManager.kd(qe);if(ne==null||ne==true){MMPManager.re((lb.myWidth*0.5)+22,lb.myHeight*0.7,lb.mbPopup);}
parent.frames["mapIFrame"].focus();lb.mbPopup.style.display='none';lb.mbPopup.style.display='inline';MMPManager.addEvent(document,'mousemove',MMPManager.se);MMPManager.addEvent(document,'mouseup',MMPManager.mouseUp);}
else{lb.mbPopup.style.display='none';MMPManager.removeEvent(document,'mousemove',MMPManager.se);}
return false;}
MMPManager.showHideElement=function(te){var ie=document.getElementById(te);if(ie.style.display=='block'){ie.style.display='none';}
else{ie.style.display='inline';}
}
var ue=null;var ve=null;var we=100;MMPManager.xe=function(ye,ze){ze=ze||window.event;var $e=MMPManager._e(ye);var af=MMPManager.bf(ze);return{x:af.x-$e.x,y:af.y-$e.y}
;}
MMPManager._e=function(e){var cf=0;var top=0;while(e.offsetParent){cf+=e.offsetLeft;top+=e.offsetTop;e=e.offsetParent;}
cf+=e.offsetLeft;top+=e.offsetTop;return{x:cf,y:top}
;}
MMPManager.se=function(ze){ze=ze||window.event;var af=MMPManager.bf(ze);if(ue){ue.style.position='absolute';ue.style.top=af.y-ve.y+'px';ue.style.left=af.x-ve.x+'px';we++;ue.style.zIndex=we;return false;}
}
MMPManager.mouseUp=function(){ue=null;}
MMPManager.makeDraggable=function(df){if(!df)return;df.onmousedown=function(ze){ue=this;ve=MMPManager.xe(this,ze);return false;}
}
MMPManager.makeClickable=function(ef){ef.onmousedown=function(){ue=this;}
}
MMPManager.bf=function(ze){try{if(ze.pageX||ze.pageY){return{x:ze.pageX,y:ze.pageY}
;}
return{x:ze.clientX+document.body.scrollLeft-document.body.clientLeft,y:ze.clientY+document.body.scrollTop-document.body.clientTop
}
;}
catch(ff){}
}
MMPManager.jd=function(gf){return gf.replace(/^\s*/,'').replace(/\s*$/,'');}
MMPManager.mc=function(hf){var hf=hf.replace(/\(/g,"\\(");hf=hf.replace(/\)/g,"\\)");hf=hf.replace(/\./g,"\\.");hf=hf.replace(/\[/g,"\\[");hf=hf.replace(/\]/g,"\\]");hf=hf.replace(/\?/g,"\\?");return new RegExp(hf,"g");}
MMPManager.zb=function(hf){var hf=hf.replace(/\?/g,"%3F");hf=hf.replace(/&/g,"%26");hf=hf.replace(/@/g,"%40");hf=hf.replace(/#/g,"%23");hf=hf.replace(/\'/g,"%27");hf=hf.replace(/\"/g,"%22");hf=hf.replace(/\</g,"%3C");hf=hf.replace(/\>/g,"%3E");return hf;}
MMPManager.jf=function(kf){return(this.match("^"+kf)==kf);}
String.prototype.startsWith=function(kf){return(this.match("^"+kf)==kf)}
String.prototype.endsWith=function(kf){return(this.match(kf+"$")==kf)}
String.prototype.trim=function(){return
(this.replace(/^[\s\lf]+/,"").replace(/[\s\lf]+$/,""))}
MMPManager.re=function(Xwidth,Yheight,o){var mf,nf;if(self.pageYOffset){mf=self.pageXOffset;nf=self.pageYOffset;}
else if(document.documentElement&&document.documentElement.scrollTop){mf=document.documentElement.scrollLeft;nf=document.documentElement.scrollTop;}
else if(document.body){mf=document.body.scrollLeft;nf=document.body.scrollTop;}
var of,pf;if(self.innerHeight){of=self.innerWidth;pf=self.innerHeight;}
else if(document.documentElement&&document.documentElement.clientHeight){of=document.documentElement.clientWidth;pf=document.documentElement.clientHeight;}
else if(document.body){of=document.body.clientWidth;pf=document.body.clientHeight;}
var qf=mf+(of-Xwidth)/2;var rf=nf+(pf-Yheight)/2;var r=o.style;r.position='absolute';r.top=rf+'px';r.left=qf+'px';r.display="block";}
MMPManager.closePopup=function(e){if(lb.mbPopup){lb.mbPopup.style.display="none";}
}
MMPManager.ae=function(e){MMPManager.jb("maximizing");var _c=document.getElementById(MMP.settings.imgMaximizeId);var md=document.getElementById("mmpDivIfm");var sf,tf,uf,vf;if(_c.title.startsWith("Minimize")){sf=(lb.myWidth*0.5)+22;tf=(lb.myHeight*0.7)+33;uf=(lb.myWidth*0.5);vf=(lb.myHeight*0.7);lb.mbPopup.maximized=false;_c.title="Maximize Window";}
else{sf=(lb.myWidth*0.9)+22;tf=(lb.myHeight*0.9)+33;uf=(lb.myWidth*0.9);vf=(lb.myHeight*0.9);lb.mbPopup.maximized=true;_c.title="Minimize Window";}
lb.mbPopup.style.width=sf+"px";lb.mbPopup.style.height=tf+"px";md.style.width=uf+"px";md.style.height=vf+"px";qd=document.getElementById("mapIFrame");qd.style.width=md.style.width;qd.style.height=md.style.height;MMPManager.re(sf,tf,lb.mbPopup);}
MMPManager.addEvent(window,'load',MMPManager.mb);