window.log=function(){log.history=log.history||[];log.history.push(arguments);this.console&&console.log(Array.prototype.slice.call(arguments))}; $(document).ready(function(){$("html").removeClass("no-js");(function(){var a=$('#searchbox input[type="text"]').hide(),b=$("#searchbox form").css({width:"40px"}),c=$("#searchbox");a.val("Search...");c.mouseover(function(){c.css({"background-color":"#fff"});b.stop(!0,!1).animate({width:"162px"},120,function(){a.show()});a.stop(!0,!1).animate({"margin-left":"10px"},120)}).mouseout(function(){b.stop(!0,!1).animate({width:"40px"},120,function(){c.css({"background-color":"transparent"});a.hide()});a.stop(!0, !1).animate({"margin-left":"-112px"},120)});a.focus(function(){a.val()==="Search..."&&a.val("")}).blur(function(){a.val()===""&&a.val("Search...")})})();$(".clickable").css("cursor","pointer").click(function(){document.location.href=$(this).find("a:first").attr("href")});$("#latest-twitter > ul").size()==1||$("#latest-twitter").hide(0);$(".feature:has(#subnav), .sidebar .feature:last-child").css("background","none")}); var mapspotlight=function(a){function b(a){return $("<div/>",{"class":"mapbubble hide",id:"mapbubble"+a})}function c(a){var b=(a+1)%4,d=$("html.ie8").length==0?250:0;e.find(".mapbubble:eq("+a+")").fadeOut(d,function(){e.find(".mapbubble:eq("+b+")").fadeIn(d,function(){window.setTimeout(function(){c(b)},f)})})}function g(){$([b(1),b(2),b(3),b(4)]).each(function(){e.append(this)});$("html.ie8");window.setTimeout(function(){e.find(".mapbubble:eq(0)").fadeIn(250)},250);window.setTimeout(function(){c(0)}, f)}a+="/img/bubbles.png";var e=$(".map-spotlight"),d=$("<img/>"),f=3E3;d[0].src=a;log("Loading "+a);d.one("load",function(){g();log("bubbles loaded.")}).each(function(){this.complete&&$(this).trigger("load")})};
