function showPopupStaticMap(d,c){var b=d.substring(0,1).toLowerCase();if(c=="tc"){c="tw"}var a="http://www2.map.gov.hk/static/"+b+"/"+c+"/"+d+".html";openwin(a,"showstaticmap",515,600,-1,-1)}function showPopupAdvancedMap(e,c){var a=screen.width;var d=screen.height;var b=120;w=a-315;h=d-b-40;url="http://www2.map.gov.hk/gih3/GIHSFaci.do?gih3ID="+e+"&lang="+c;openwin(url,"gih3a",a,d,1,1,"yes","yes")}function openwin(b,l,j,f,e,c,d,a,k,i){var g;d=d||"no";a=a||"no";k=k||"no";leftPos=(e==-1)?(screen.width-j)/2:e;topPos=(c==-1)?(screen.height-f)/2:c;j=j-12;f=f-90;setting="width="+j+",height="+f+",left="+leftPos+",top="+topPos+",resizable="+a+",scrollbars="+k+",status="+d;if(i==1){setting+=",menubar=yes"}g=window.open(b,l,setting);if(g.opener==null){g.opener=self}g.focus();return g};

