(function(c){function d(j,b,g,i){if(!b.busy){var a=j[0].parentNode,l=j[b.currSlide],m=j[b.nextSlide];if(!(a.cycleTimeout===0&&!g)){if(g||!a.cyclePause){b.before.length&&c.each(b.before,function(r,s){s.apply(m,[l,m,b,i])});g=function(){c.browser.msie&&this.style.removeAttribute("filter");c.each(b.after,function(r,s){s.apply(m,[l,m,b,i])})};if(b.nextSlide!=b.currSlide){b.busy=1;c.fn.cycle.custom(l,m,b,g)}g=b.nextSlide+1==j.length;b.nextSlide=g?0:b.nextSlide+1;b.currSlide=g?j.length-1:b.nextSlide-1}if(b.timeout)a.cycleTimeout=
setTimeout(function(){d(j,b,0,!b.rev)},b.timeout)}}}function e(j,b,g){var i=j[0].parentNode,a=i.cycleTimeout;if(a){clearTimeout(a);i.cycleTimeout=0}b.nextSlide=b.currSlide+g;if(b.nextSlide<0)b.nextSlide=j.length-1;else if(b.nextSlide>=j.length)b.nextSlide=0;d(j,b,1,g>=0);return false}c.fn.cycle=function(j){return this.each(function(){j=j||{};this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cyclePause=this.cycleTimeout=0;var b=c(this),g=j.slideExpr?c(j.slideExpr,this):b.children(),i=g.get();
if(i.length<2)window.console&&window.console.log&&window.console.log("terminating; too few slides: "+i.length);else{var a=c.extend({},c.fn.cycle.defaults,j||{},c.metadata?b.metadata():c.meta?b.data():{});a.before=a.before?[a.before]:[];a.after=a.after?[a.after]:[];a.after.unshift(function(){a.busy=0});var l=this.className;a.width=parseInt((l.match(/w:(\d+)/)||[])[1])||a.width;a.height=parseInt((l.match(/h:(\d+)/)||[])[1])||a.height;a.timeout=parseInt((l.match(/t:(\d+)/)||[])[1])||a.timeout;b.css("position")==
"static"&&b.css("position","relative");a.width&&b.width(a.width);a.height&&a.height!="auto"&&b.height(a.height);g.css({position:"absolute",top:0,left:0}).hide().each(function(m){c(this).css("z-index",i.length-m)});c(i[0]).css("opacity",1).show();c.browser.msie&&i[0].style.removeAttribute("filter");a.fit&&a.width&&g.width(a.width);a.fit&&a.height&&a.height!="auto"&&g.height(a.height);a.pause&&b.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});c.fn.cycle.transitions.fade(b,g,a);g.each(function(){var m=
c(this);this.cycleH=a.fit&&a.height?a.height:m.height();this.cycleW=a.fit&&a.width?a.width:m.width()});g.not(":eq(0)").css({opacity:0});a.cssFirst&&c(g[0]).css(a.cssFirst);if(a.timeout){if(a.speed.constructor==String)a.speed={slow:600,fast:200}[a.speed]||400;for(a.sync||(a.speed/=2);a.timeout-a.speed<250;)a.timeout+=a.speed}a.speedIn=a.speed;a.speedOut=a.speed;a.slideCount=i.length;a.currSlide=0;a.nextSlide=1;b=g[0];a.before.length&&a.before[0].apply(b,[b,b,a,true]);a.after.length>1&&a.after[1].apply(b,
[b,b,a,true]);if(a.click&&!a.next)a.next=a.click;a.next&&c(a.next).bind("click",function(){return e(i,a,a.rev?-1:1)});a.prev&&c(a.prev).bind("click",function(){return e(i,a,a.rev?1:-1)});if(a.timeout)this.cycleTimeout=setTimeout(function(){d(i,a,0,!a.rev)},a.timeout+(a.delay||0))}})};c.fn.cycle.custom=function(j,b,g,i){var a=c(j),l=c(b);l.css({opacity:0});var m=function(){l.animate({opacity:1},g.speedIn,g.easeIn,i)};a.animate({opacity:0},g.speedOut,g.easeOut,function(){a.css({display:"none"});g.sync||
m()});g.sync&&m()};c.fn.cycle.transitions={fade:function(j,b,g){b.not(":eq(0)").css("opacity",0);g.before.push(function(){c(this).show()})}};c.fn.cycle.ver=function(){return"Lite-1.0"};c.fn.cycle.defaults={timeout:4E3,speed:1E3,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery);(function(c){c.fn.extend({autocomplete:function(d,e){var j=typeof d=="string";e=c.extend({},c.Autocompleter.defaults,{url:j?d:null,data:j?null:d,delay:j?c.Autocompleter.defaults.delay:10,max:e&&!e.scroll?10:150},e);e.highlight=e.highlight||function(b){return b};e.formatMatch=e.formatMatch||e.formatItem;return this.each(function(){new c.Autocompleter(this,e)})},result:function(d){return this.bind("result",d)},search:function(d){return this.trigger("search",[d])},flushCache:function(){return this.trigger("flushCache")},
setOptions:function(d){return this.trigger("setOptions",[d])},unautocomplete:function(){return this.trigger("unautocomplete")}});c.Autocompleter=function(d,e){function j(){var f=w.selected();if(!f)return false;var k=f.result;x=k;if(e.multiple){var z=g(q.val());if(z.length>1){var u=e.multipleSeparator.length,A=c(d).selection().start,y,C=0;c.each(z,function(F,G){C+=G.length;if(A<=C){y=F;return false}C+=u});z[y]=k;k=z.join(e.multipleSeparator)}k+=e.multipleSeparator}q.val(k);m();q.trigger("result",[f.data,
f.value]);return true}function b(f,k){if(p==v.DEL)w.hide();else{f=q.val();if(!(!k&&f==x)){x=f;f=i(f);if(f.length>=e.minChars){q.addClass(e.loadingClass);e.matchCase||(f=f.toLowerCase());s(f,r,m)}else{o();w.hide()}}}}function g(f){if(!f)return[""];if(!e.multiple)return[c.trim(f)];return c.map(f.split(e.multipleSeparator),function(k){return c.trim(f).length?c.trim(k):null})}function i(f){if(!e.multiple)return f;var k=g(f);if(k.length==1)return k[0];k=c(d).selection().start;k=k==f.length?g(f):g(f.replace(f.substring(k),
""));return k[k.length-1]}function a(f,k){if(e.autoFill&&i(q.val()).toLowerCase()==f.toLowerCase()&&p!=v.BACKSPACE){q.val(q.val()+k.substring(i(x).length));c(d).selection(x.length,x.length+k.length)}}function l(){clearTimeout(B);B=setTimeout(m,200)}function m(){w.visible();w.hide();clearTimeout(B);o();e.mustMatch&&q.search(function(f){if(!f)if(e.multiple){f=g(q.val()).slice(0,-1);q.val(f.join(e.multipleSeparator)+(f.length?e.multipleSeparator:""))}else{q.val("");q.trigger("result",null)}})}function r(f,
k){if(k&&k.length&&h){o();w.display(k,f);a(f,k[0].value);w.show()}else m()}function s(f,k,z){e.matchCase||(f=f.toLowerCase());var u=t.load(f);if(u&&u.length)k(f,u);else if(typeof e.url=="string"&&e.url.length>0){var A={timestamp:+new Date};c.each(e.extraParams,function(y,C){A[y]=typeof C=="function"?C():C});c.ajax({mode:"abort",port:"autocomplete"+d.name,dataType:e.dataType,url:e.url,data:c.extend({q:i(f),limit:e.max},A),success:function(y){y=e.parse&&e.parse(y)||n(y);t.add(f,y);k(f,y)}})}else{w.emptyList();
z(f)}}function n(f){var k=[];f=f.split("\n");for(var z=0;z<f.length;z++){var u=c.trim(f[z]);if(u){u=u.split("|");k[k.length]={data:u,value:u[0],result:e.formatResult&&e.formatResult(u,u[0])||u[0]}}}return k}function o(){q.removeClass(e.loadingClass)}var v={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8},q=c(d).attr("autocomplete","off").addClass(e.inputClass),B,x="",t=c.Autocompleter.Cache(e),h=0,p,D={mouseDownOnSelect:false},w=c.Autocompleter.Select(e,d,j,
D),E;c.browser.opera&&c(d.form).bind("submit.autocomplete",function(){if(E)return E=false});q.bind((c.browser.opera?"keypress":"keydown")+".autocomplete",function(f){h=1;p=f.keyCode;switch(f.keyCode){case v.UP:f.preventDefault();w.visible()?w.prev():b(0,true);break;case v.DOWN:f.preventDefault();w.visible()?w.next():b(0,true);break;case v.PAGEUP:f.preventDefault();w.visible()?w.pageUp():b(0,true);break;case v.PAGEDOWN:f.preventDefault();w.visible()?w.pageDown():b(0,true);break;case e.multiple&&c.trim(e.multipleSeparator)==
","&&v.COMMA:case v.TAB:case v.RETURN:if(j()){f.preventDefault();E=true;return false}break;case v.ESC:w.hide();break;default:clearTimeout(B);B=setTimeout(b,e.delay);break}}).focus(function(){h++}).blur(function(){h=0;D.mouseDownOnSelect||l()}).click(function(){h++>1&&!w.visible()&&b(0,true)}).bind("search",function(){function f(z,u){var A;if(u&&u.length)for(var y=0;y<u.length;y++)if(u[y].result.toLowerCase()==z.toLowerCase()){A=u[y];break}typeof k=="function"?k(A):q.trigger("result",A&&[A.data,A.value])}
var k=arguments.length>1?arguments[1]:null;c.each(g(q.val()),function(z,u){s(u,f,f)})}).bind("flushCache",function(){t.flush()}).bind("setOptions",function(f,k){c.extend(e,k);"data"in k&&t.populate()}).bind("unautocomplete",function(){w.unbind();q.unbind();c(d.form).unbind(".autocomplete")})};c.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,
extraParams:{},selectFirst:true,formatItem:function(d){return d[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(d,e){return d.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+e.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180};c.Autocompleter.Cache=function(d){function e(l,m){d.matchCase||(l=l.toLowerCase());var r=l.indexOf(m);if(d.matchContains=="word")r=l.toLowerCase().search("\\b"+
m.toLowerCase());if(r==-1)return false;return r==0||d.matchContains}function j(l,m){a>d.cacheLength&&g();i[l]||a++;i[l]=m}function b(){if(!d.data)return false;var l={},m=0;if(!d.url)d.cacheLength=1;l[""]=[];for(var r=0,s=d.data.length;r<s;r++){var n=d.data[r];n=typeof n=="string"?[n]:n;var o=d.formatMatch(n,r+1,d.data.length);if(o!==false){var v=o.charAt(0).toLowerCase();l[v]||(l[v]=[]);n={value:o,data:n,result:d.formatResult&&d.formatResult(n)||o};l[v].push(n);m++<d.max&&l[""].push(n)}}c.each(l,
function(q,B){d.cacheLength++;j(q,B)})}function g(){i={};a=0}var i={},a=0;setTimeout(b,25);return{flush:g,add:j,populate:b,load:function(l){if(!d.cacheLength||!a)return null;if(!d.url&&d.matchContains){var m=[];for(var r in i)if(r.length>0){var s=i[r];c.each(s,function(n,o){e(o.value,l)&&m.push(o)})}return m}else if(i[l])return i[l];else if(d.matchSubset)for(r=l.length-1;r>=d.minChars;r--)if(s=i[l.substr(0,r)]){m=[];c.each(s,function(n,o){if(e(o.value,l))m[m.length]=o});return m}return null}}};c.Autocompleter.Select=
function(d,e,j,b){function g(){if(B){x=c("<div/>").hide().addClass(d.resultsClass).css("position","absolute").appendTo(document.body);t=c("<ul/>").appendTo(x).mouseover(function(h){if(i(h).nodeName&&i(h).nodeName.toUpperCase()=="LI"){o=c("li",t).removeClass(s.ACTIVE).index(i(h));c(i(h)).addClass(s.ACTIVE)}}).click(function(h){c(i(h)).addClass(s.ACTIVE);j();e.focus();return false}).mousedown(function(){b.mouseDownOnSelect=true}).mouseup(function(){b.mouseDownOnSelect=false});d.width>0&&x.css("width",
d.width);B=false}}function i(h){for(h=h.target;h&&h.tagName!="LI";)h=h.parentNode;if(!h)return[];return h}function a(h){n.slice(o,o+1).removeClass(s.ACTIVE);l(h);h=n.slice(o,o+1).addClass(s.ACTIVE);if(d.scroll){var p=0;n.slice(0,o).each(function(){p+=this.offsetHeight});if(p+h[0].offsetHeight-t.scrollTop()>t[0].clientHeight)t.scrollTop(p+h[0].offsetHeight-t.innerHeight());else p<t.scrollTop()&&t.scrollTop(p)}}function l(h){o+=h;if(o<0)o=n.size()-1;else if(o>=n.size())o=0}function m(h){return d.max&&
d.max<h?d.max:h}function r(){t.empty();for(var h=m(v.length),p=0;p<h;p++)if(v[p]){var D=d.formatItem(v[p].data,p+1,h,v[p].value,q);if(D!==false){D=c("<li title='"+v[p].data+"'/>").html(d.highlight(D,q)).addClass(p%2==0?"ac_even":"ac_odd").appendTo(t)[0];c.data(D,"ac_data",v[p])}}n=t.find("li");if(d.selectFirst){n.slice(0,1).addClass(s.ACTIVE);o=0}c.fn.bgiframe&&t.bgiframe()}var s={ACTIVE:"ac_over"},n,o=-1,v,q="",B=true,x,t;return{display:function(h,p){g();v=h;q=p;r()},next:function(){a(1)},prev:function(){a(-1)},
pageUp:function(){o!=0&&o-8<0?a(-o):a(-8)},pageDown:function(){o!=n.size()-1&&o+8>n.size()?a(n.size()-1-o):a(8)},hide:function(){x&&x.hide();n&&n.removeClass(s.ACTIVE);o=-1},visible:function(){return x&&x.is(":visible")},current:function(){return this.visible()&&(n.filter("."+s.ACTIVE)[0]||d.selectFirst&&n[0])},show:function(){var h=c(e).offset();x.css({width:typeof d.width=="string"||d.width>0?d.width:c(e).width(),top:h.top+e.offsetHeight,left:h.left}).show();if(d.scroll){t.scrollTop(0);t.css({maxHeight:d.scrollHeight,
overflow:"auto"});if(c.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var p=0;n.each(function(){p+=this.offsetHeight});h=p>d.scrollHeight;t.css("height",h?d.scrollHeight:p);h||n.width(t.width()-parseInt(n.css("padding-left"))-parseInt(n.css("padding-right")))}}},selected:function(){var h=n&&n.filter("."+s.ACTIVE).removeClass(s.ACTIVE);return h&&h.length&&c.data(h[0],"ac_data")},emptyList:function(){t&&t.empty()},unbind:function(){x&&x.remove()}}};c.fn.selection=function(d,e){if(d!==
undefined)return this.each(function(){if(this.createTextRange){var a=this.createTextRange();if(e===undefined||d==e)a.move("character",d);else{a.collapse(true);a.moveStart("character",d);a.moveEnd("character",e)}a.select()}else if(this.setSelectionRange)this.setSelectionRange(d,e);else if(this.selectionStart){this.selectionStart=d;this.selectionEnd=e}});var j=this[0];if(j.createTextRange){var b=document.selection.createRange(),g=j.value,i=b.text.length;b.text="<->";b=j.value.indexOf("<->");j.value=
g;this.selection(b,b+i);return{start:b,end:b+i}}else if(j.selectionStart!==undefined)return{start:j.selectionStart,end:j.selectionEnd}}})(jQuery);/*
 Copyright 2009 Furnished Homes, LLC
*/
function Index(){function c(){function e(b){if(!b)return b;return b.replace(/((https?|ftp):\/\/|www\.)([a-z0-9-]+\.)+[a-z0-9]+(\/[^\s<>"',;]*)?/gi,function(g){return'<a target="_blank" rel="nofollow" href="'+g+'">'+g+"</a>"})}var j=true;$('input[name="rate"]').change(function(){var b=$(this).val(),g=b.replace(/[^a-zA-Z ]/g,"").match(/\b[kmwn]/gi);b=b.replace(/[^\d^\,^\.]*/g,"");var i=$('input[name="staylength"]');for(var a in g)switch(g[a]){case "k":case "K":b=String(b*1E3);break;case "n":case "N":i[0].checked=
true;break;case "w":case "W":i[1].checked=true;break;case "m":case "M":i[2].checked=true;break}b=b.split(".")[0];b=b.replace(/(^|[^\w.])(\d{4,})/g,function(l,m,r){return m+r.replace(/\d(?=(?:\d\d\d)+(?!\d))/g,"$&,")});$(this).val(b)});$("div.login-button").click(function(){$(this).parents("form").submit()});$("div.register-button").click(function(){window.location="/register/"});$("#search-submit").click(function(){$("#search-form").submit()});$("#search-text").focus(function(){if(!j)return false;
$(this).val("").css("color","#000");j=false});$("#search-form").submit(function(){if($("#search-text").val()===""){alert("Please enter a location, property id, or destination keyword!");return false}$('input[name="staylength"]:checked',this).val();$('input[name="rate"]',this).val();$('input[name="bedrooms"]:checked',this).val();$('input[name="bathrooms"]:checked',this).val();$('input[name="sleeps"]:checked',this).val();var b=$("#search-text").val();window.location="/map/#search="+b;return false});
$("div.message").each(function(){$(this).html(e($(this).html()))})}var d=this;this.load_property=function(e){window.location="/map/#search="+e.id};xorse.signal("marker_click","layout",function(e){d.load_property({id:e.id,title:e.config.json.title})});this.switch_login=function(){$("#login-form,#login-text,#login-header").toggle();$("#register-form,#register-text,#register-header").toggle()};c()}window.Index=Index;
