/* onMediaQuery | http://springload.co.nz/love-the-web/ | Released under the MIT license. | Fri 21 June, 2013 */
(function(b,a){"function"===typeof define&&define.amd?define(function(){return b.MQ=a(b,b.MQ||{})}):b.MQ=a(b,b.MQ||{})})(this,function(b){b.init=function(a){this.callbacks=[];this.new_context=this.context="";if("undefined"!==typeof a)for(i=0;i
this._inArray(a,this.callbacks[c].context)&&void 0!==d&&d())};b.addEvent=function(a,b,c,d){null!==a&&void 0!==a&&(a.addEventListener?a.addEventListener(b,function(){c.call(d)},!1):a.attachEvent?a.attachEvent("on"+b,function(){c.call(d)}):a["on"+b]=function(){c.call(d)})};b.getPreviousContext=function(){return this.context};b.getContext=function(){return this.new_context};b._inArray=function(a,b){for(var c=b.length,d=0;d
})
}
});
$(function(){
window.onload = function() {
if (window.innerWidth >= 550 && window.innerWidth <= 960) { $('img').each(function(index) { var large = $(this).attr('src'); var n = large.indexOf("thumbnails/"); if(n > 0){ large = large.replace("thumbnails/",""); $(this).attr('src',large); }
})
}
}
$("#findaddress").geocomplete({ details: "span", detailsAttribute: "data-geo" });
});
var mapd = 0; var map_canvas; function initialize() { if(mapd == 0){ var myOptions = { center: new google.maps.LatLng(48.7443,-122.668), zoom: 11, zIndex: 11, mapTypeId: google.maps.MapTypeId.ROADMAP }; map_canvas = new google.maps.Map(document.getElementById('map_canvas'), myOptions);
var bounds = new google.maps.LatLngBounds( new google.maps.LatLng(48.6943, -122.768), new google.maps.LatLng(48.7943, -122.568) );
var rectangle = new google.maps.Rectangle({ bounds: bounds, editable: true, draggable: true });
document.getElementById("custombox2").value = rectangle.getBounds(); google.maps.event.addListener(rectangle, "bounds_changed", function() { document.getElementById("custombox2").value = rectangle.getBounds(); });
rectangle.setMap(map_canvas); mapd = 1; } }
$('a[data-toggle="tab"]').on('shown', function (e) { if (e.target.hash == "#maptab") { x = map_canvas.getZoom(); c = map_canvas.getCenter(); google.maps.event.trigger(map_canvas, 'resize'); map_canvas.setZoom(x); map_canvas.setCenter(c); } });