var ie=document.all;var lasttimer;var switched=0;function showMenu(a){if(typeof hidetimer!="undefined"&&lasttimer==a){clearTimeout(hidetimer)}document.getElementById(a).style.visibility="visible"}function hideMenu(a){hidetimer=setTimeout("document.getElementById('"+a+"').style.visibility='hidden';",10);lasttimer=a}function backToTop(){var b=x2=x3=0;var c=y2=y3=0;if(document.documentElement){b=document.documentElement.scrollLeft||0;c=document.documentElement.scrollTop||0}if(document.body){x2=document.body.scrollLeft||0;y2=document.body.scrollTop||0}x3=window.scrollX||0;y3=window.scrollY||0;var a=Math.max(b,Math.max(x2,x3));var d=Math.max(c,Math.max(y2,y3));window.scrollTo(Math.floor(a/2),Math.floor(d/2));if(a>0||d>0){window.setTimeout("backToTop()",25)}}function cmdSwapIMG(b,a){newimg=b;if(a=="true"){tmeChangeImg=setTimeout("document.images.imgSwap.src=newimg;",300)}else{if(typeof tmeChangeImg!="undefined"){clearTimeout(tmeChangeImg)}document.images.imgSwap.src=newimg}}var _x;var _y;var dir;var isIE=document.all?true:false;document.onmousemove=getMousePosition;function getMousePosition(a){if(!isIE){_x=a.pageX;_y=a.pageY}if(isIE){_x=event.clientX;_y=event.clientY}if(document.getElementById("infowindowwrapper")){if(document.all){if(dir=="left"){document.getElementById("infowindowwrapper").style.left=_x-320+getOffset("left")+"px";document.getElementById("infowindowwrapper").style.top=_y+getOffset("top")-clearbrowseredge(_y)+"px"}else{document.getElementById("infowindowwrapper").style.left=_x+15+getOffset("left")+"px";document.getElementById("infowindowwrapper").style.top=_y+getOffset("top")-clearbrowseredge(_y)+"px"}}else{if(dir=="left"){document.getElementById("infowindowwrapper").style.left=_x-320+"px";document.getElementById("infowindowwrapper").style.top=_y-clearbrowseredge(_y)+"px"}else{document.getElementById("infowindowwrapper").style.left=_x+15+"px";document.getElementById("infowindowwrapper").style.top=_y-clearbrowseredge(_y)+"px"}}}return true}var ie4=document.all;var ns6=document.getElementById&&!document.all;function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function clearbrowseredge(c){var b=0;var e=0;var a=ie4&&!window.opera?iecompattest().scrollTop:window.pageYOffset;var d=ie4&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;if(d-c<document.getElementById("infowindowwrapper").offsetHeight){e=d-c;b=document.getElementById("infowindowwrapper").offsetHeight-e+10}return b}function getOffset(c){var b=0,a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset;b=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop;b=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}}}if(c=="left"){return b}else{return a}}function showWindow(c,a,b){if(b=="left"){dir="left"}else{dir="right"}if(typeof hidetimer!="undefined"){clearTimeout(hidetimer)}document.getElementById("infowindowtitle").innerHTML=c;document.getElementById("infowindowbody").innerHTML=a;document.getElementById("infowindowwrapper").style.display=document.getElementById("infowindowtitle").style.display=document.getElementById("infowindowbody").style.display="block";document.getElementById("infowindowwrapper").style.visibility="visible"}function hideWindow(){document.getElementById("infowindowwrapper").style.visibility="hidden";hidetimer=setTimeout("disappear()",100)}function disappear(){document.getElementById("infowindowwrapper").style.display="none"}function InsertPublication(a){if(document.all){document.write('<object id="djView" codebase="http://tky09.celartem.com/en/download/data/djvu_autoinstall/DjVuControl_en_US.cab#Version=6,1,1,1574" height="100%" width="100%" classid="clsid:0e8d0700-75df-11d3-8b4a-0008c7450c4a">');document.write('<param name="src" value="'+a+'" />');document.write('<param name="flags" value="toolbar=top+save+prevnextpage+firstlastpage+rescombo+zoom+save+print+pan+rotate+ruler+textsel+thumbnail frame=no" />');document.write("<p>If your security settings don't allow installation of the Active X control required for this Autoinstall operation, then you should see a Windows message in a yellow bar above indicating this. (Windows XP SP2 system default setting.) To proceed with the Autoinstall, click on the yellow Windows message to enable this Active X control. If for any other reason you are having problems running the Autoinstaller click on the link below for the Manual Install option.</p>");document.write('<a href="http://www.celartem.com/en/download/data/DJVUCNTL_61_EN.EXE"><strong>DjVu Browser Plug-in Manual Installer - English [ 6.6 Mb ]</strong></a>');document.write("</object>")}else{document.write('<p>Your browser does not support this applet. Please <a href="'+a+'" style="font-weight:bold;" target="_blank">click here</a> to view the document directly.</p><p>To download the djvu plugin, please click this link: <a href="http://www.celartem.com/en/download/data/DJVUCNTL_61_EN.EXE"><strong>DjVu Browser Plug-in Manual Installer - English [ 6.6 Mb ]</strong></a></p>')}}function advancedOptions(){if(document.getElementById("qsadvanced").style.display=="none"||document.getElementById("qsadvanced").style.display==""){document.getElementById("qsadvanced").style.display="block";document.getElementById("qslnk").innerHTML="&raquo; Less Options"}else{document.getElementById("qsadvanced").style.display="none";document.getElementById("qslnk").innerHTML="&raquo; More Options"}}function toggleDisplay(d,e){var a=["propdescwindow","propdetailswindow","propmapwindow","propwalkscorewindow","propstatswindow"];var b=["displaymenudesc","displaymenudetails","displaymenumap","displaymenuwalkscore","displaymenustats"];if(document.getElementById(d).className!="displaymenuselected"){for(var c=0;c<a.length;c++){if(e==a[c]){document.getElementById(d).className="displaymenuselected";Effect.toggle(e,"appear",{duration:0.3});if(e=="propmapwindow"&&map!=null){maptimer=setTimeout("map.checkResize();map.returnToSavedPosition();",500)}}else{document.getElementById(a[c]).style.display="none";document.getElementById(b[c]).className=""}}}}function showDirections(a){document.getElementById("route").innerHTML="";Effect.toggle("control","appear",{duration:0.3});Effect.toggle("route","blind",{duration:0.3});var c=document.getElementById("directionstext").value+", AU";var b=document.getElementById("route");var e=new GDirections(map,b);var d=c+" to "+a;e.load(d)}function displayStreetView(){var d=((switched==0)?"map":"pano");var b=((switched==0)?"pano":"map");document.getElementById("displaysvlink").innerHTML=((switched==0)?"Map View":"Street View");Effect.toggle(d,"appear",{duration:0.3});var a=new GStreetviewPanorama(document.getElementById("pano"));if(b=="pano"){panoClient=new GStreetviewClient();panoClient.getNearestPanorama(globalLatLng,showPanoData);var c=document.getElementById("ctl00_ContentPlaceHolder1_ModPropertyDisplay1_pnlDirections");if(c){c.style.display="none"}}else{a.remove();var c=document.getElementById("ctl00_ContentPlaceHolder1_ModPropertyDisplay1_pnlDirections");if(c){c.style.display="block"}}window.setTimeout("Effect.toggle('"+b+"','appear', {duration: 0.3});",300);switched=((switched==0)?1:0)}function showAgentStreetView(d,h,b,c,g){document.getElementById(h).innerHTML=((c==0)?"Map View":"Street View");var a=new GStreetviewPanorama(document.getElementById(d));if(c==0){globalLatLng=b;panoClient=new GStreetviewClient();panoClient.getNearestPanorama(b,function e(i){if(i.location){var f=computeAngle(globalLatLng,i.location.latlng);a.setLocationAndPOV(i.location.latlng,{yaw:f})}})}else{a.remove();g()}}function showPanoData(c){if(c.location){var b=computeAngle(globalLatLng,c.location.latlng);var a=new GStreetviewPanorama(document.getElementById("pano"));a.setLocationAndPOV(c.location.latlng,{yaw:b})}else{window.setTimeout("displayStreetView();",600)}}function computeAngle(b,f){var g=57.2957795;var d=0.017453;var c=b.lat()-f.lat();var a=b.lng()-f.lng();var e=Math.atan2(a*Math.cos(b.lat()*d),c)*g;return wrapAngle(e)}function wrapAngle(a){if(a>=360){a-=360}else{if(a<0){a+=360}}return a}function setFocus(b){var a=document.getElementById(b);a.focus();window.scrollTo(0,findPos(a)-100)}function findPos(a){var b=curtop=0;if(a.offsetParent){do{b+=a.offsetLeft;curtop+=a.offsetTop}while(a=a.offsetParent)}return curtop}function highlight(a){o=document.getElementById(a);o.style.background="#ffffb3";o.style.border="solid 1px #000000"}function unhighlight(a){o=document.getElementById(a);o.style.background="#ffffff";o.style.border="solid 1px #a5acb2"}var elemsbgcolor="";function cmdHighlight(a){elems=document.getElementsByClassName(a);for(var b=0;b<elems.length;b++){elemsbgcolor=elems[b].className.split(" ");elems[b].style.backgroundColor="#fffeee"}}function returnColor(a){elems=document.getElementsByClassName(a);for(var b=0;b<elems.length;b++){elems[b].style.backgroundColor=((elemsbgcolor[0]=="neighbourhood-report-alt-column")?"#eeeeee":"#ffffff")}};