if((window.event+"")=="undefined"){event=""}var testMode=0;var WTF="What the #$%@&*?!?";function doNothing(){}jQuery.fn.exists=function(){return(this.length>0)};var URL=location.href;var URLProtocol=location.protocol;var URLHostName=location.hostname;var URLPort=location.port;var URLPath=location.pathname;var URLHash=location.hash;var URLSearch=location.search;var URLMinusQueryString=URL;var carouselTimer;var debug=false;if(URL.indexOf("?")!=-1){URLMinusQueryStringTemp=URL.split("\\");URLMinusQueryString=URLMinusQueryStringTemp[0]}var webServerName=URLProtocol+"//"+URLHostName;if(URLPort!=""){webServerName+=(":"+URLPort)}function getParameter(a){var b=window.top.location.search.substring(1);a=a+"=";if(b.length>0){begin=b.indexOf(a);if(begin!=-1){begin+=a.length;end=b.indexOf("&",begin);if(end==-1){end=b.length}return URLDecode(b.substring(begin,end))}}return null}var agent="";if(navigator.userAgent){agent=navigator.userAgent.toLowerCase()}else{agent=navigator.appVersion.toLowerCase()}var is_ie=(agent.indexOf("msie")!=-1);var is_ie7=(is_ie&&(agent.indexOf("msie 7.0")!=-1));var is_ie8=(is_ie&&(agent.indexOf("msie 8.0")!=-1));var is_ie7up=(is_ie&&(is_ie7||is_ie8));var is_webkit=(agent.indexOf("webkit")!=-1);var is_safari=(agent.indexOf("safari")!=-1);var is_chrome=(agent.indexOf("chrome")!=-1);if(is_chrome){is_safari=false}var is_ipad=(agent.indexOf("ipad")!=-1);var is_iphone=(agent.indexOf("iphone")!=-1);var is_ipod=(agent.indexOf("ipod")!=-1);if(is_ipod||is_ipad){is_iphone=0}var is_mozilla=((agent.indexOf("mozilla")!=-1)&&((agent.indexOf("netscape")==-1)&&(agent.indexOf("navigator")==-1))&&!is_ie);var is_firefox=(is_mozilla&&(agent.indexOf("firefox")!=-1));var is_firefox1r0=(is_firefox&&(agent.indexOf("firefox/1.0")!=-1));var is_firefox1r5=(is_firefox&&(agent.indexOf("firefox/1.5")!=-1));var is_firefox2r0=(is_firefox&&(agent.indexOf("firefox/2.")!=-1));var is_firefox2up=(is_firefox&&!is_firefox1r0&&!is_firefox1r5);var is_firefox3r0=(is_firefox&&(agent.indexOf("firefox/3.0")!=-1));var is_firefox3r5=(is_firefox&&(agent.indexOf("firefox/3.5")!=-1));var is_firefox3r6=(is_firefox&&(agent.indexOf("firefox/3.6")!=-1));var is_firefox3up=(is_firefox&&!is_firefox1r0&&!is_firefox1r5&&!is_firefox2r0);var is_firefox4r0=(is_firefox&&(agent.indexOf("firefox/4.0")!=-1));var is_firefox3r5up=(is_firefox&&(is_firefox3r5||is_firefox3r6||is_firefox4r0));var is_win=(agent.indexOf("windows")!=-1);var is_linux=(agent.indexOf("linux")!=-1);var is_mac=(agent.indexOf("mac")!=-1);var iSSHTML="";iSSHTML+=" body.entry #banner { opacity: 0; }";if(is_ie){}if(is_webkit){if(is_safari){if(is_win){}}}if(is_iphone||is_ipod||is_ipad){iSSHTML+=' input[type="text"], input[type="password"], input.textField, textarea { background-image: url(/gui/images/blank/blank_transparent.gif); }'}if(is_iphone){iSSHTML+=" a.tel, a.tel:link, a.tel:active, a.tel:hover, a.tel:visited { color: #497493; border-bottom: 1px dotted #497493; }"}if(is_ipad){}if(testMode){iSSHTML+=" #header { background-color: lime; }";iSSHTML+=" #logoContainer { background-color: red; }";iSSHTML+=" #crossSiteNav { background-color: pink }";iSSHTML+=" #utilityNav { background-color: orange; }";iSSHTML+=" #content { background-color: lime; }";iSSHTML+=" #leftColumn { background-color: red; }";iSSHTML+=" #centerColumn { background-color: pink }";iSSHTML+=" #rightColumn { background-color: orange; }";iSSHTML+=" div.taggedArticle div.taggedArticleDate { background: yellow; }";iSSHTML+=" div.taggedArticle div.taggedArticleImage { background: orange }";iSSHTML+=" div.taggedArticle div.taggedArticleCopy { background: pink; }";iSSHTML+=" div.taggedArticle div.taggedArticleCitation { background: lime; }"}iSSHTML='";if(document.write){document.write(iSSHTML)}var blank_transparent_image=new Image();var bannerContainerBackground=new Image();if(document.images){blank_transparent_image.src="/gui/images/blank/blank_transparent.gif"}function ERI_imageRollover(e_currentImage){if(e_currentImage){e_currentImage.src=eval(e_currentImage.id+"_on.src");if((is_ie)&&(!is_ie7up)&&(hasClass(e_currentImage,"transparentPNG"))){CSI_rTPNGI(e_currentImage)}}}function ERI_imageRollout(e_currentImage){if(e_currentImage){e_currentImage.src=eval(e_currentImage.id+"_off.src");if((is_ie)&&(!is_ie7up)&&(hasClass(e_currentImage,"transparentPNG"))){CSI_rTPNGI(e_currentImage)}}}function ERI_rTPNGI(a){if(is_ie&&!is_ie7up){if(a){a.css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+a.src+")");a.attr("src",blank_transparent_image.src)}else{if(e_allImageTags){e_allImageTags.each(function(b){a=e_allImageTags.eq(b);if(a.attr("usemap")!=""){a.css("border","none")}if(a.hasClass("transparentPNG")){imgWidth=a.attr("width");imgHeight=a.attr("height");imgSrc=a.attr("src");a.attr("width",imgWidth);a.attr("height",imgHeight);a.css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, src="+imgSrc+")");a.attr("src",blank_transparent_image.src)}})}}}}function ERI_imageCrossFade(a,b){if(a.exists()){imgSrc=a.attr("src");if(imgSrc!=b){a.attr("src",b)}}}function ERI_tDSS(a){if(e_search&&e_searchTop&&e_sampleSearch&&e_sampleSearchLinkBar&&e_searchLeft&&e_searchRight&&e_searchBottom){if(a){e_sampleSearchLinkBar.fadeOut();$(e_searchBottom).slideDown(400);setTimeout("e_sampleSearchLinkBar.html(collapseSearchSectionLinkHTML); e_sampleSearchLinkBar.fadeIn();",600);_gaq.push(["_trackEvent","Find Listings by Region","Find Listings by Region Tray Expaned","Find Listings by Region Tray Expaned"])}else{e_sampleSearchLinkBar.fadeOut();$(e_searchBottom).slideUp(400);setTimeout("e_sampleSearchLinkBar.html(expandSearchSectionLinkHTML); e_sampleSearchLinkBar.fadeIn();",600);_gaq.push(["_trackEvent","Find Listings by Region","Find Listings by Region Tray Collapsed","Find Listings by Region Tray Collapsed"])}}}var defaultSearchValue="";function focusSearch(){e_searchValue.focus();e_searchValue.css("background-color","#f4a732");window.setTimeout(function a(){e_searchValue.css("background-color","")},500)}function URLDecode(a){return decodeURIComponent((a+"").replace(/\+/g,"%20"))}function ERI_colourFader(a,i,l){this.r=a;this.g=i;this.b=l;var j=a/30;var c=i/30;var f=l/30;var k=a;var d=i;var h=l;function e(b){b.css("color","rgb("+Math.max(0,Math.round(k))+","+Math.max(0,Math.round(d))+","+Math.max(0,Math.round(h))+")");if((k+d+h)>0){k-=j;d-=c;h-=f;setTimeout(function(){e(b)},30)}}this.fadeToBlack=function(b){e(b)}}var collapseSearchSectionLinkText="Hide regions";var collapseSearchSectionLinkTitle="Collapse this section and just show the search...";var collapseSearchSectionLinkHTML=''+collapseSearchSectionLinkText+'   ';var expandSearchSectionLinkText01="Search tips";var expandSearchSectionLinkTitle01="Tips and examples for getting the most out of our search...";var expandSearchSectionLinkText02="Find listings by region";var expandSearchSectionLinkTitle02="Search for real estate listings by region...";var expandSearchSectionLinkHTML=''+expandSearchSectionLinkText02+'   ';var validSearchTextString="Please enter your search criteria here and try again...";function ERI_pI_rSS(){if(e_search){if(e_sampleSearch&&e_sampleSearchLinkBar){e_sampleSearchLinkBar.appendTo(e_sampleSearch);if(e_body.hasClass("entry")){e_sampleSearchLinkBar.html(collapseSearchSectionLinkHTML)}else{e_sampleSearchLinkBar.html(expandSearchSectionLinkHTML)}}if(e_searchValue){queryStringValue=getParameter("q");if(queryStringValue!=null){e_searchValue.attr("value",queryStringValue)}e_searchValue.attr("defaultSearchValue",e_searchValue.attr("title"));defaultSearchValue=e_searchValue.attr("defaultSearchValue");if(e_searchValue.attr("value")==e_searchValue.attr("title")){e_searchValue.css("color","#808080")}e_searchValue.bind("focus",function(){e_searchInputWrapper.addClass("active");e_searchValue.css("color","#000000");if((e_searchValue.attr("value")==e_searchValue.attr("defaultSearchValue"))||(e_searchValue.attr("value")==validSearchTextString)){e_searchValue.attr("value","")}});e_searchValue.bind("blur",function(){e_searchInputWrapper.removeClass("active");if((e_searchValue.attr("value")=="")||(e_searchValue.attr("value")==" ")||(e_searchValue.attr("value")==validSearchTextString)){e_searchValue.attr("value",e_searchValue.attr("defaultSearchValue"));e_searchValue.css("color","#808080")}else{e_searchValue.css("color","#000000")}});e_searchValue.typeahead({source:function(c,b){var a=$.trim(b.split(",").pop());if(a==""){return[]}$.getJSON("http://asubdomain.appspot.com/searchtypeahead?jsoncallback=?",{complete:a},function(d){c.process(d)})}})}if(e_searchValue&&e_searchButton){e_searchButton.bind("mouseover",function(){e_searchButton.addClass("hover")});e_searchButton.bind("mouseout",function(){e_searchButton.removeClass("hover");e_searchButton.removeClass("active")});e_searchButton.bind("mousedown",function(){e_searchButton.addClass("active")});e_searchButton.bind("mouseup",function(){e_searchButton.removeClass("active")});e_searchButton.bind("click",function(){if((e_searchValue.attr("value")==e_searchValue.attr("defaultSearchValue"))||(e_searchValue.attr("value")=="")||(e_searchValue.attr("value")==" ")||(e_searchValue.attr("value")==validSearchTextString)){e_searchValue.addClass("active");e_searchValue.attr("value",validSearchTextString);return false}else{$.getJSON("http://asubdomain.appspot.com/searchtypeahead?jsoncallback=?",{q:$("#searchValue").val()},function(a){});setTimeout("$('#searchForm').submit();",100);return false}})}if(getParameter("highlight")!=null){e_searchValue.css("color","rgb(244, 167, 50)");setTimeout("(new ERI_colourFader(244, 167, 50)).fadeToBlack(e_searchValue)",750)}}}function ERI_pI_rC(){if($("div.searchResults ol").exists()){e_searchResultsItemsThumbnails=$("div.searchResults ol li a:first-child img");e_searchResultsItemsThumbnails.bind("mouseover",function(){$(this).parent().parent().addClass("hover")});e_searchResultsItemsThumbnails.bind("mouseout",function(){$(this).parent().parent().removeClass("hover")});e_searchResultsItemsHeadings=$("div.searchResults ol li div.searchDetails h2:first-child a");e_searchResultsItemsHeadings.bind("mouseover",function(){$(this).parent().parent().parent().addClass("hover")});e_searchResultsItemsHeadings.bind("mouseout",function(){$(this).parent().parent().parent().removeClass("hover")})}if($("div.carousel").exists()){var b=$(".carousel-control.left");var a=$(".carousel-control.right");b.hide();a.hide();$("div.carousel").mouseenter(function(){b.stop(true,true).fadeIn("fast");a.stop(true,true).fadeIn("fast")});$("div.carousel").mouseleave(function(){b.stop(true,true).fadeOut("slow");a.stop(true,true).fadeOut("slow")})}if($("div.listing").exists()){e_listingImage=$("#expandedImage");e_mainImageContainer=$("#mainImage");e_listingThumbnailLinks=$("div.listing div.imageArea a.thumbnail");if(e_listingThumbnailLinks.exists()){e_listingThumbnailLinks.bind("click",function(e){ERI_imageCrossFade(e_listingImage,$(this).attr("href"));return false});e_mainImageContainer.append('\u2039\u203a');$("#previousImageButton").hide();$("#nextImageButton").hide();var d=$(".thumbnailArea > a.thumbnail").length;var c=$(".thumbnailArea a.thumbnail");$("#previousImageButton").click(function(i){i.preventDefault();var f=$("#expandedImage").attr("src");var h;c.each(function(e,j){if($(this).attr("href")==f){h=c.eq((e-1)%d);return false}});if(h!=undefined){var g=h.attr("href");loadExpandedImage(g);ERI_imageCrossFade(e_listingImage,g)}});$("#nextImageButton").click(function(i){i.preventDefault();var f=$("#expandedImage").attr("src");var h;c.each(function(e,j){if($(this).attr("href")==f){h=c.eq((e+1)%d);return false}});if(h!=undefined){var g=h.attr("href");loadExpandedImage(g);ERI_imageCrossFade(e_listingImage,g)}});$("#mainImage").mouseenter(function(){$("#previousImageButton").stop(true,true).fadeIn("fast");$("#nextImageButton").stop(true,true).fadeIn("fast")});$("#mainImage").mouseleave(function(){$("#previousImageButton").stop(true,true).fadeOut("slow");$("#nextImageButton").stop(true,true).fadeOut("slow")})}}if(e_rightColumn){e_content.addClass(e_rightColumn.attr("id"))}}function ERI_pI_rF(){if(e_footer){e_footerNavColumns=$("div.footerNavColumn");if(e_footerNavColumns){e_footerNavColumns.each(function(a){if((a!=0)&&((a%3)==0)){e_footerNavColumns.eq(a).addClass("clear")}if((a%3)==2){e_footerNavColumns.eq(a).addClass("last");if(is_ie){e_footerNavColumns.eq(a).after('
')}}else{}})}}}function ERI_pI_rL(){e_allAnchorTags.each(function(a){e_currentLink=e_allAnchorTags.eq(a);if(e_currentLink.hasClass("fake")){e_currentLink.bind("click",function(){return false})}if(e_currentLink.hasClass("cloakedEmail")){if(e_currentLink.attr("href").indexOf("%28-at-%29")!=-1){emailAddressHTMLTemp=e_currentLink.attr("href").split("%28-at-%29");emailAddressHTML=emailAddressHTMLTemp[0]+"@"+emailAddressHTMLTemp[1];e_currentLink.attr("href",emailAddressHTML);if((e_currentLink.children().size()==0)&&(e_currentLink.text().indexOf("%28-at-%29")!=-1)){e_currentLink.text(emailAddressHTML.split("mailto:")[1])}}if(e_currentLink.attr("href").indexOf("(-at-)")!=-1){emailAddressHTMLTemp=e_currentLink.attr("href").split("(-at-)");emailAddressHTML=emailAddressHTMLTemp[0]+"@"+emailAddressHTMLTemp[1];e_currentLink.attr("href",emailAddressHTML);if((e_currentLink.children().size()==0)&&(e_currentLink.text().indexOf("(-at-)")!=-1)){e_currentLink.text(emailAddressHTML.split("mailto:")[1])}}}});e_allFooterLinks=$("#footer a");e_allFooterLinks.each(function(a){e_currentLink=e_allFooterLinks.eq(a);if((e_currentLink.attr("href")==URL)||((webServerName+e_currentLink.attr("href"))==URL)){e_currentLink.addClass("footerNavLinkOn");e_currentLink.bind("click",function(){return false})}})}function ERI_pI(){e_html=$("html");e_head=$("head");e_body=$("body");e_allAnchorTags=$("a");e_allDivTags=$("div");e_allIframeTags=$("iframe");e_allImageTags=$("img");e_allListItemTags=$("li");e_allObjectTags=$("object");e_allParagraphTags=$("p");e_allSpanTags=$("span");e_allHorizontalRuleTags=$("hr");e_header=$("#header");e_logo=$("#logo");e_crossSiteNav=$("#crossSiteNav");e_bannerContainer=$("#bannerContainer");e_banner=$("#banner");e_search=$("#search");e_searchTop=$("#searchTop");e_searchValue=$("#searchValue");e_searchInputWrapper=$("#searchInputWrapper");e_searchButton=$("#doSearchButton");e_sampleSearch=$(".sampleSearch");e_searchLeft=$("#searchLeft");e_searchRight=$("#searchRight");e_searchBottom=$("#searchBottom");e_utilityNav=$("#utilityNav");e_content=$("#content");e_leftColumn=$("#leftColumn");e_centerColumn=$("#centerColumn");e_rightColumn=$("#rightColumn");e_footer=$("#footer");e_pageContainerOuter=$('
');e_pageContainerInnerTop=$('
');e_contentContainer=$('
');e_leftColumnContainer=$('
');e_rightColumnContainer=$('
');e_pageContainerInnerBottom=$('
');e_sampleSearchLinkBar=$('');ERI_pI_rSS();ERI_pI_rC();ERI_pI_rF();ERI_pI_rL();ERI_rTPNGI()}function ERI_aPI(){}function ERI_rI(){if(is_ie){e_imagesToBeRestyled=$("img.photoOfTheDay, img.taggedArticleImage, img.realtorPhoto");if(e_imagesToBeRestyled){e_imagesToBeRestyled.each(function(a){e_imagesToBeRestyled.eq(a).addClass("restyled")})}}}$(document).ready(function(){ERI_pI();ERI_aPI();$(".sampleSearchText").textShadow();$("#toggleSearchSection a").textShadow();$("#featuredListings .listingDetails a").textShadow();$("#newsAndArticles .newsAndArticlesHeading a").textShadow()});window.onload=function(){ERI_rI()};$.fn.textShadow=function(b){if(!$.browser.msie){return}if($.browser.version>=10){return}var a=$.browser.version<7;return this.each(function(){var d=$(this);var e=d.textShadowParse(this.currentStyle["text-shadow"]);e=$.extend(e,b);d.textShadowRemove();if(e.x==0&&e.y==0&&e.radius==0){return}if(d.css("position")=="static"){d.css({position:"relative"})}d.css({zIndex:"0"});if(a){d.css({zoom:"1"})}var c=document.createElement("span");$(c).addClass("jQueryTextShadow");$(c).html(d.html());$(c).css({padding:this.currentStyle.padding,width:d.width(),position:"absolute",zIndex:"-1",color:e.color!=null?e.color:d.css("color"),left:(-parseInt(e.radius)+parseInt(e.x))+"px",top:(-parseInt(e.radius)+parseInt(e.y))+"px"});if(e.radius!=0){if(e.opacity!=null){$(c).css("filter","progid:DXImageTransform.Microsoft.Blur(pixelradius="+parseInt(e.radius)+", enabled='true', makeShadow='true', ShadowOpacity="+e.opacity+")")}else{$(c).css("filter","progid:DXImageTransform.Microsoft.Blur(pixelradius="+parseInt(e.radius)+", enabled='true')")}}d.append(c)})};$.fn.textShadowParse=function(b){b=String(b).replace(/^\s+|\s+$/gi,"").replace(/\s*!\s*important/i,"").replace(/\(\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^\)]+)\s*\)/g,"($1/$2/$3/$4)").replace(/\(\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^\)]+)\s*\)/g,"($1/$2/$3)");var c={x:0,y:0,radius:0,color:null};if(b.length>1||b[0].toLowerCase()!="none"){b=b.replace(/\//g,",");var a;if(b.match(/(\#[0-9a-f]{6}|\#[0-9a-f]{3}|(rgb|hsb)a?\([^\)]*\)|\b[a-z]+\b)/i)&&(a=RegExp.$1)){c.color=a.replace(/^\s+/,"");b=b.replace(c.color,"")}b=b.replace(/^\s+|\s+$/g,"").split(/\s+/);textShadowMap(b,function(d){return(d||"").replace(/^0[a-z]*$/,"")?d:0});switch(b.length){case 1:c.x=c.y=b[0];break;case 2:c.x=b[0];c.y=b[1];break;case 3:c.x=b[0];c.y=b[1];c.radius=b[2];break}if((!c.x&&!c.y&&!c.radius)||c.color=="transparent"){c.x=c.y=c.radius=0;c.color=null}}return c};$.fn.textShadowRemove=function(){if(!$.browser.msie){return}return this.each(function(){$(this).children("span.jQueryTextShadow").remove()})};textShadowMap=function(d,e){var b=new Array(d.length);for(var c=0;c=$imgs.length){a=true;clearInterval(imageLoader)}}}},1000);carouselTimer=setInterval(function(){if($("#frontPageCarousel").is(":visible")&&(!c)){if(a){if(g>=d){$(".carousel").carousel("next");$(".carousel").carousel("pause")}g++}}},1000)})}function trace(a){if(debug){try{console.log(a)}catch(b){alert(a)}}}var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i