
var $a="version 20100415";var $b;var $c;var $d;var $e="-1";var $f;var $g;var $h;var $i=false;var $j=false;var $k;var $l;var $m;var $n;var $o=false;var $p=0;var $q=0;var $r=175;var $s=105;var $t=600;var $u=45;var $v=100;var $w=105;var $x=50;var $y=6.5;var $z=22;var $A=100;var $B=155;var $C=0;var $D="#EEFFEE";var $E=10000;var $F="<div style='font-family: Arial; font-size: 11px; text-align:left'>";var $G="<img id='#moveCode#' onmousedown='MouseDownOnNav(event,\"#id#\");return false;' border='0' src='IA/nav.png'/>&nbsp;";var $H="<font color='#0000FF'><b>#heading#</b></font>";var $I="<img id='edit' onmousedown='ShowExpandedPopup(\"#id#\")' border='0' src='IA/more.gif'/>&nbsp;";var $J="<img id='copynote' onmousedown='MouseDownOnCopyNote(event,\"#id#\")' border='0' src='IA/copy.gif'/>&nbsp;";var $K="&nbsp;<a href='#url#' target='_blank'><img border='0' src='IA/goUrl.gif' align='absmiddle'/></a>";var $L="</div><div style='font-family: Arial; font-size: 11px; text-align:left'>";var $M="<table width='158' onclick='MouseDownOnImage(event,\"#id#\")' border='0' cellpadding='0' cellspacing='0'><tr><td>";var $N="<img border='0' src='ip/#imageName#'";var $O=" style='float: right'/>";var $P="</td></tr></table>";var $Q="</div>";var $R=53.5;var $S=-1;var $T=6;var $U;var IE=document.all?true:false;var $V="";var $W;var $X;var $Y;var $Z;function getHTTPObject(){var $00;/*@cc_on@if(@_jscript_version>=5)try{$00=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{$00=new ActiveXObject("Microsoft.XMLHTTP");}catch(E){$00=false;}};@else $00=false;@end @*/if(!$00&&typeof XMLHttpRequest!='undefined'){try{$00=new XMLHttpRequest();}catch(e){$00=false;}};return $00;};var $01=getHTTPObject();function readCookie(name){var $02=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1,c.length);};if(c.indexOf($02)===0){return c.substring($02.length,c.length);}};return null;};function SetCookie(name,$03){var $04='';var $05=new Date();var $06=$05.getTime()+99999999999;$05.setTime($06);$04=$05.toGMTString();document.cookie=name+"="+$03+'; expires='+$04;};function replaceBits($07,$08,$09){var $0a=$07;if($07.length>1){var $0b=$07.split($08);if($0b.length>1){$0a="";for(var i=0;i<($0b.length-1);i++){$0a=$0a+$0b[i]+$09;};$0a=$0a+$0b[$0b.length-1];}};return $0a;};function GetRandomLat(){var $0c=$U.getExtent().bottom;var $0d=$U.getExtent().left;var $0e=$U.getExtent().top;var r=Math.random();var $0f=$0e-(r*0.85)*($0e-$0c);var $0g=new OpenLayers.LonLat($0d,$0f).transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:4326"));return $0g.lat.toString();};function GetRandomLon(){var $0c=$U.getExtent().bottom;var $0d=$U.getExtent().left;var $0h=$U.getExtent().right;var r=Math.random();$0h=$0d+(r*0.85)*($0h-$0d);var $0g=new OpenLayers.LonLat($0h,$0c).transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:4326"));return $0g.lon.toString();};function LogFC(s){try{$0i.log(s);}catch(ee){}};function AddPopupTemplate(){LogFC("AddPopupTemplate started");var $0c=$U.getExtent().bottom;var $0d=$U.getExtent().left;var $0j=$U.getCenter().lat;var $0k=$U.getSize().h;var $0l=1;var $0m=$0c+(($0j-$0c)*($A+$0l)*2/$0k);var $0n="<div style='font-family: Arial; font-size: 11px; text-align:left'";$0n+=">";$0n+="<table width = '135' border='0' cellpadding='0' cellspacing='0'><tr><td>";$0n+="<b><font color='#0000FF'>";$0n+="What the icons do";LogFC("maptype="+$Z+" uimo="+$Y);$0n+="</font></b></td></tr></table>";$0n+="<img border='0' src='IA/nav.png'/>&nbsp;Use mouse to drag the note<br/>";$0n+="<img border='0' src='IA/more.gif'/>&nbsp;&nbsp;Expand the note<br/>";$0n+="<img border='0' src='IA/goUrl.gif' width='24' height='12'/>&nbsp;Go to web page<br/>";$0n+="<img border='0' src='IA/copy.gif'/>&nbsp;Copy the note to paste on<br/>&nbsp;&nbsp;&nbsp;&nbsp;another map<br/>";$0n+=("</div>");var $0o=new OpenLayers.Popup("template",new OpenLayers.LonLat($0d,$0m),new OpenLayers.Size($B,$A),$0n,false);$0o.setBorder("1px solid");$0o.setBackgroundColor("#FFFFCC");$U.addPopup($0o);};function PlotPopups($0a,$0p){LogFC("PlotPopups started");if($0a.startsWith("Failed:")){alert("GetPopups failed: "+$0a.substring(7));return;};var $0q=$0a.indexOf("|");var $0r=$0a.substring(0,$0q);var $0s=parseInt($0r,10);var $0t;var $0u;var $0v;var id;var $0w;var j;$Z=document.getElementById('form2').MapType.value;if($0s>0){$0a=$0a.substring($0q+1)+"|$$$";var a=$0a.split("|");var $0x=readCookie("wotnextic");var $0y="";if($0x!==null){var $05=new Date();$0y="?"+$05.getTime();};var $0z;var $0A;$Y=document.getElementById('form2').hfUio.value;LogFC("PlotPopups: uimo="+$Y);for(var i=0;i<$0s;i++){j=i*9;id=a[j];$R=a[j+1];if($R=="r"){$R=GetRandomLat();};$S=a[j+2];if($S=="r"){$S=GetRandomLon();};if($R=="99"){$R=GetRandomLat();$S=GetRandomLon();};$0t=a[j+3];$0u=a[j+4];$0v=a[j+5];$0w=id+".jpg"+$0y;var $0B=a[j+6];$0z=a[j+7];$0A=a[j+8];if($Y=="t"){$0A="m";if(($0B!="0")&&($0B!="4")){$0z="e";}};if(document.getElementById("hfDebug").value=="on"){$0A="m";if($0B!="0"){$0z="e";}};var $0n=$F;if($0B=="2"){$0n="<div style='font-size: 12px; text-align:left'>";$0n+="<img border='0' src='IA/Marker.gif' width='12' height='26'align='absbottom'/>&nbsp;";if($0A=="m"){$0n+=$G.replace(/#id#/,id).replace(/#moveCode#/,("MC"+$0A));}}else{$0n+=$G.replace(/#id#/,id).replace(/#moveCode#/,("MC"+$0A));};$0n+=($H.replace(/#heading#/,$0t));if($0B=="2"){if(document.getElementById("hfDebug").value=="on"){$0n+=$I.replace(/#id#/,id);};$0n+="</div>";}else if($0B=="1"){if(document.getElementById("hfDebug").value=="on"){$0n+=$I.replace(/#id#/,id);};if($0v.length>5){$0n+=$K.replace(/#url#/,$0v);};$0n+="</div>";}else if($0B=="6"){$0n+=$L;$0n+="<div align='center'><table onclick='MouseDownOnImage(event,\"" + id + "\")' border='0' cellpadding='0' cellspacing='0'><tr><td>";$0n+=($N.replace(/#id#/,id).replace(/#imageName#/,$0w));$0n+="/>";$0n+="</td></tr></table></div>";$0n+=$I.replace(/#id#/,id);$0n+=$J.replace(/#id#/,id);$0n+=$Q;}else{$0n+=$L;$0n+=($M.replace(/#id#/,id));if($0B=="5"){$0n+=($N.replace(/#id#/,id).replace(/#imageName#/,$0w));$0n+=$O;};$0n+=$0u;$0n+=$P;if($0B=="5"){if(($0v.substr(0,21)!="http://onepageweb.net")||(document.getElementById("hfDebug").value=="on")){$0n+=$I.replace(/#id#/,id);}};if($0B=="4"){if(document.getElementById("hfDebug").value=="on"){$0n+=$I.replace(/#id#/,id);}};if(isNaN(parseInt(id,10))===false){$0n+=$J.replace(/#id#/,id);};if($0v.length>5){$0n+=$K.replace(/#url#/,$0v);};$0n+=$Q;};var $0C;if($0B=="2"){$0C=new OpenLayers.Popup(id,new OpenLayers.LonLat($S,$R).transform(new OpenLayers.Projection("EPSG:4326"),new OpenLayers.Projection("EPSG:900913")),new OpenLayers.Size($t,$u),$0n,false);$0C.setBackgroundColor("transparent");$U.addPopup($0C);}else if($0B=="1"){var $0D=$x+Math.round($0t.length*$y);$0C=new OpenLayers.Popup(id,new OpenLayers.LonLat($S,$R).transform(new OpenLayers.Projection("EPSG:4326"),new OpenLayers.Projection("EPSG:900913")),new OpenLayers.Size($0D,$z),$0n,false);$0C.setBorder("1px solid");$0C.setBackgroundColor($D);$U.addPopup($0C);}else if($0B=="6"){var $0E=$s;$0C=new OpenLayers.Popup(id,new OpenLayers.LonLat($S,$R).transform(new OpenLayers.Projection("EPSG:4326"),new OpenLayers.Projection("EPSG:900913")),new OpenLayers.Size($v,$w),$0n,false);$0C.setBorder("1px solid");$0C.setBackgroundColor("#FFFFCC");$0C.autoSize=true;$0C.maxSize=new OpenLayers.Size($v,400);$0C.minSize=new OpenLayers.Size($v,100);$U.addPopup($0C);}else{$0C=new OpenLayers.Popup(id,new OpenLayers.LonLat($S,$R).transform(new OpenLayers.Projection("EPSG:4326"),new OpenLayers.Projection("EPSG:900913")),new OpenLayers.Size($r,$s),$0n,false);$0C.setBorder("1px solid");$0C.setBackgroundColor("#FFFFCC");$0C.autoSize=true;$0C.maxSize=new OpenLayers.Size($r,600);$0C.minSize=new OpenLayers.Size($r,100);$U.addPopup($0C);}};if($0p===false){if(a[9*$0s]!="$$$"){$V=a[9*$0s];SetCookie("wotnextn",$V);SetCookie("wotnextp",$V);alert("     Your note has been added OK "+"\n\n     We've given you a temporary user name of       "+$V+"\n          with the password the same as the name"+"\n\n     You'll need this if you want to change your note at a later date,"+"\n       so please write it down"+"\n\n\n     You can change your username to something more memorable,"+"\n       by clicking on the key-shaped button at top right of map ('Log into My Account')");}}};if($0p){AddPopupTemplate();};var $0F=GetPopupById("template");var $0G=$0F.size.h;var $0H=$0G-$A;if($0H>0){$C=$0H;if($C!=10){LogFC("popupSizeQuirk = "+$C);}};LogFC("popupSizeQuirk = "+$C);};function handleResponse(){try{if($01.readyState==4){if($01.status==200){var $0a=$01.responseText;if($0a.indexOf("Failed:")>-1){alert("handleResponse result: "+$0a);return;};var $0I=$0a.indexOf(":");if($0I==-1){return;};var $0J=$0a.substring(0,$0I);if($0J=="GP"){PlotPopups($0a.substring($0I+1),true);}else if($0J=="NP"){PlotPopups($0a.substring($0I+1),false);}}else{window.status='Error invalid HTTPResponse: '+$01.status;alert('Error invalid HTTPResponse: '+$01.status);}}}catch($0K){LogFC("handleResponse exceptioned");}};function sendRequest($0J,$0L){LogFC("sendRequest("+$0J+","+$0L+")");var $0M="m="+$0J+"&p="+$0L;var $0N="MapAJAX.aspx?"+$0M;try{$01.open("POST","MapAJAX.aspx",true);$01.onreadystatechange=handleResponse;$01.setRequestHeader("Content-Type","application/x-www-form-urlencoded");$01.setRequestHeader("Content-length",$0M.length);$01.setRequestHeader("Connection","close");$01.send($0M);}catch($0O){LogFC("send exceptioned");alert("Sorry, can't connect to the Internet");}};function init(){LogFC("init: "+$a);SetCookie("loadedok","");BrowserDetect.init();LogFC("Browser: "+BrowserDetect.browser+" v: "+BrowserDetect.version+", OS: "+BrowserDetect.OS);if((BrowserDetect.browser=="Firefox")||(BrowserDetect.browser=="Chrome")){$r-=10;$s-=10;$t-=10;$u-=10;$z-=8;$v-=10;$w-=10};$e=0;$e=document.getElementById('form2').hfMapId.value;var un=readCookie("wotnextn");if(un!==null){$V=un;};var $0P=readCookie("wotnextcn");LogIfDebugOn("wotnextcn="+$0P);if($0P!==null){document.getElementById("btnPaste").style.visibility="visible";document.getElementById("btnPaste").style.width="16px";};$R=parseFloat(document.getElementById('form2').Lat.value);$S=parseFloat(document.getElementById('form2').Lon.value);$T=parseInt(document.getElementById('form2').Level.value,10);$U=new OpenLayers.Map('map',{$0Q:new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),$0R:19,$0S:156543.0399,$0T:'dd',$0U:new OpenLayers.Projection("EPSG:900913")});var $0V=new OpenLayers.Layer.OSM.Mapnik("Mapnik (updated weekly)");$U.addLayer($0V);var $0W=new OpenLayers.Projection("EPSG:4326");var $0X=new OpenLayers.Projection("EPSG:900913");var $0Y=new OpenLayers.LonLat($S,$R);var $0Z=$0Y.transform($0W,$0X);$U.setCenter($0Z,$T);var $Z=document.getElementById('form2').MapType.value;var $10=document.getElementById('form2').SubjectId.value;sendRequest("GP",$e+"|"+$Z+"|"+$10);};function AddPictureToMap(){document.getElementById("pnlExpand").style.visibility="visible";document.getElementById("moreTop").innerHTML="&nbsp;wotnext add picture";$e=document.getElementById("hfMapId").value;var un=readCookie("wotnextn");$V="";if(un!==null){$V=un;};var $0c=$U.getExtent().bottom;var $0d=$U.getExtent().left;var $0h=$U.getExtent().right;var $0e=$U.getExtent().top;var $11=new OpenLayers.LonLat($0d,$0c).transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:4326"));var $12=new OpenLayers.LonLat($0h,$0e).transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:4326"));document.getElementById("ifMore").src="AddPicture.aspx?mid="+$e+"&un="+$V+"&minlat="+$11.lat+"&minlon="+$11.lon+"&maxlat="+$12.lat+"&maxlon="+$12.lon;};function AddNoteToMap(){document.getElementById("pnlExpand").style.visibility="visible";document.getElementById("moreTop").innerHTML="&nbsp;wotnext add note";$e=document.getElementById("hfMapId").value;var un=readCookie("wotnextn");$V="";if(un!==null){$V=un;};var $0c=$U.getExtent().bottom;var $0d=$U.getExtent().left;var $0h=$U.getExtent().right;var $0e=$U.getExtent().top;var $11=new OpenLayers.LonLat($0d,$0c).transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:4326"));var $12=new OpenLayers.LonLat($0h,$0e).transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:4326"));document.getElementById("ifMore").src="AddNote.aspx?mid="+$e+"&un="+$V+"&minlat="+$11.lat+"&minlon="+$11.lon+"&maxlat="+$12.lat+"&maxlon="+$12.lon;};function PasteNote(){var $13=readCookie("wotnextcn");$e=document.getElementById("hfMapId").value;var $14=$U.getCenter().clone();$14=$14.transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:4326"));sendRequest("PN",($e+"|"+$14.lat+"|"+$14.lon+"|"+$13));};function LogAppend(s){LogFC(s);if(document.getElementById("hfDebug").value=="on"){document.getElementById("MapLog").innerHTML+=("| "+s);}};function MouseDownOnCopyNote(e,$15){LogIfDebugOn("MouseDownOnCopyNote: popupId"+$15);SetCookie("wotnextcn",$15);alert("OK to copy note...\n\nNow go to another map and paste this note in,\n using the toolbar at top of the page");};function GetPopupById(id){LogAppend(""+id);for(var i=0;i<$U.popups.length;i++){if($U.popups[i].id==id){return $U.popups[i];}};return null;};function getMouseXY(e){var $16=0;var $17=0;if(IE){$16=e.clientX+document.body.scrollLeft;$17=e.clientY+document.body.scrollTop;}else{$16=e.pageX;$17=e.pageY;};if($16<0){$16=0;};if($17<0){$17=0;};$W=$16;$X=$17;};function ShowExpandedPopup($15){if(isNaN(parseInt($15,10))===true){location="Info.aspx?pu="+$15;return;};$n=GetPopupById($15);var $18=$n.contentHTML;var $19=$18.indexOf("<b>");var end=$18.indexOf("</b>",$19);var $0t=$18.substring($19+3,end);var $1a=new Array("Google for ","Google Images for ","Wikipedia for ","BBC for ","YouTube for ","MTV for ","IMDB for ","Trip Advisor for ","Weather for ","Ebookers travel for ","Amazon for ");for(var i=0;i<$1a.length;i++){if($0t.indexOf($1a[i])==0){location="Info.aspx?pu="+$15;return;}};document.getElementById("pnlExpand").style.visibility="visible";document.getElementById("moreTop").innerHTML="&nbsp;wotnext note";document.getElementById("ifMore").src="Note.aspx?pu="+$15;};function ClosePnlExpand(e){document.getElementById("pnlExpand").style.visibility="hidden";var $1b=readCookie("loadedok");if($1b=="OK"){window.location.reload();}};function reloadMapPage(){window.location.reload();};function LogIfDebugOn(s){if(document.getElementById("hfDebug").value=="on"){LogAppend(s);}};function SetIframeSize($1c,$1d,title){document.getElementById("ifMore").width=$1c;document.getElementById("ifMore").height=$1d;document.getElementById("moreTop").innerHTML="&nbsp;"+title;};function mouseMoveInIframe(e){if($j){getMouseInIframeXY(e);var $1e=$W-$f;var $1f=$X-$g;if((($W<15)&&($1e<0))||(($X<54)&&($1f<0))||(($W>($d-160))&&($1e>0))||(($X>($c-50))&&($1f>0))){$j=false;return;};document.getElementById('pnlExpand').style.left=""+($k+$1e)+"px";document.getElementById('pnlExpand').style.top=""+($l+$1f)+"px";}};function getMouseInIframeXY(e){var $16=0;var $17=0;if(IE){$16=e.clientX+document.body.scrollLeft;$17=e.clientY+document.body.scrollTop;}else{$16=e.pageX;$17=e.pageY;};if($16<0){$16=0;};if($17<0){$17=0;};var $1g=parseInt(document.getElementById('pnlExpand').style.left);var $1h=parseInt(document.getElementById('pnlExpand').style.top);$W=$16+$1g;$X=$17+$1h;};function mouseMove(e){if($i||$j){getMouseXY(e);var $1e=$W-$f;var $1f=$X-$g;};if($i){if((($W<15)&&($1e<0))||(($X<54)&&($1f<0))||(($W>($d-160))&&($1e>0))||(($X>($c-50))&&($1f>0))){$i=false;$h.setBorder("1px solid");return;};LogIfDebugOn("mouseMove to "+$W+"/"+$X+" while dragging popup("+$h.id+")");window.status="Dragging popup("+$h.id+") to "+$W+"/"+$X;var $1i=new OpenLayers.Pixel($W-$p,$X-$q);var $1j=$U.getLonLatFromPixel($1i);var $1k=Math.abs($1j.lon-$h.lonlat.lon)+Math.abs($1j.lat-$h.lonlat.lat);if($1k<1){$i=false;$h.setBorder("1px solid");return;};var $1l=$h.contentHTML;var $1m=$h.size.h-$C;var $1n=$h.size.w-$C;var $1o;if($h.backgroundColor==$D){var $0D=$h.size.w-$C;$1o=new OpenLayers.Popup(($h.id),$1j,new OpenLayers.Size($0D,$z),$1l,false);$1o.setBorder("1px solid");$1o.setBackgroundColor($D);}else if($1m<=($u+2+$C)){$1o=new OpenLayers.Popup(($h.id),$1j,new OpenLayers.Size($t,$u),$1l,false);$1o.setBackgroundColor("transparent");}else{$1o=new OpenLayers.Popup(($h.id),$1j,new OpenLayers.Size($1n,$1m),$1l,false);$1o.setBorder("1px solid");if($1o.contentHTML.indexOf("MCm")>-1){$1o.setBorder("2px solid");};$1o.setBackgroundColor("#FFFFCC");};$U.removePopup($h);$h.destroy();$h=null;$U.addPopup($1o);$h=$1o;}else if($j){if((($W<15)&&($1e<0))||(($X<54)&&($1f<0))||(($W>($d-160))&&($1e>0))||(($X>($c-50))&&($1f>0))){$j=false;return;};document.getElementById('pnlExpand').style.left=""+($k+$1e)+"px";document.getElementById('pnlExpand').style.top=""+($l+$1f)+"px";}};function resetMapHfLLL(){var $1p=$U.getCenter().clone();var $1q=$1p.transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:4326"));var $1r=$U.getZoom();var $1s=$1q.lat;document.getElementById('form2').Lat.value=$1s;var $1t=$1q.lon;document.getElementById('form2').Lon.value=$1t;document.getElementById('form2').Level.value=$1r;var $0c=$U.getExtent().bottom;var $0d=$U.getExtent().left;var $0h=$U.getExtent().right;var $0e=$U.getExtent().top;var $11=new OpenLayers.LonLat($0d,$0c).transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:4326"));var $12=new OpenLayers.LonLat($0h,$0e).transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:4326"));document.getElementById('form2').hfMinLat.value=$11.lat;document.getElementById('form2').hfMinLon.value=$11.lon;document.getElementById('form2').hfMaxLat.value=$12.lat;document.getElementById('form2').hfMaxLon.value=$12.lon;};function mouseUpOnMap(e){if($j){$j=false;};if($i){window.status="mouseUpOnMap with drag in progress:"+$h.contentHTML;LogFC("mouseUpOnMap with drag in progress:"+$h.contentHTML);$i=false;var $1m=$h.size.h-$C;if($1m>($u+5)){$h.setBorder("1px solid");};if($h.contentHTML.indexOf("MCm")>-1){var $0g=$h.lonlat.clone();LogAppend($0g);var $1u=$0g.transform(new OpenLayers.Projection("EPSG:900913"),new OpenLayers.Projection("EPSG:4326"));LogAppend($1u);window.status=$1u;sendRequest("MP",($e+"|"+$h.id+"|"+$1u.lat+"|"+$1u.lon));}}else{resetMapHfLLL();};LogFC("Lat/Lon = "+document.getElementById('form2').Lat.value+"/"+document.getElementById('form2').Lon.value+"/"+document.getElementById('form2').Level.value);};function bringToFront($0C){var $1j=$0C.lonlat;var $1l=$0C.contentHTML;var $0E=$0C.size.h-$C;var $1v=$0C.size.w-$C;var $1o=new OpenLayers.Popup(($0C.id),$1j,new OpenLayers.Size($1v,$0E),$1l,false);$U.removePopup($0C);$0C.destroy();$0C=null;$1o.setBorder("1px solid");$1o.setBackgroundColor("#FFFFCC");$U.addPopup($1o);};function MouseDownOnExpanded(e){$b=document.getElementById('map');$d=$b.clientWidth;$c=$b.clientHeight;getMouseXY(e);$f=$W;$g=$X;$j=true;$k=parseInt(document.getElementById('pnlExpand').style.left);$l=parseInt(document.getElementById('pnlExpand').style.top);e.returnValue=false;};function MouseUpOnExpanded(e){$j=false;e.returnValue=false;};function MouseDownOnNav(e,$15){$b=document.getElementById('map');$d=$b.clientWidth;$c=$b.clientHeight;getMouseXY(e);$f=$W;$g=$X;$h=GetPopupById($15);$i=true;var $0g=$h.lonlat;window.status="MouseDownOnNav id,lonlat: "+$15+","+$0g;LogFC("MouseDownOnNav id,lonlat: "+$15+","+$0g);var px=$U.getPixelFromLonLat($0g);$p=$W-px.x;$q=$X-px.y;if($h.contentHTML.indexOf("MCm")>-1){$h.setBorder("2px solid");};e.returnValue=false;};function MouseDownOnImage(e,$15){LogAppend("MouseDownOnImage");var $1w=GetPopupById($15);bringToFront($1w);};function facebook_click(){u=location.href;$1x=encodeURIComponent(u);dt=document.title;$1y=encodeURIComponent(dt);window.open('LinkTo.aspx?t=Facebook.com&p='+$1x+"&p2="+$1y,'sharer','toolbar=0,status=0,width=626,height=436');return false;};


