var VM=VM||{};VM.Weather={radarImagesInterval:null,init:function(){$("#satelliteImages, #radarImages").on("click",function(){var n,i,t;clearInterval(this.radarImagesInterval);$(this).addClass("hidden");$("#satelliteImages, #radarImages").attr("aria-expanded","false");$(this).attr("aria-expanded","true");$(this).attr("id")=="satelliteImages"?(n=$(".satellite-images"),i=$(".radar-images"),$("#radarImages").removeClass("hidden")):(n=$(".radar-images"),i=$(".satellite-images"),$("#satelliteImages").removeClass("hidden"));n.removeClass("hidden");i.addClass("hidden");t=n.find("img");t.removeClass("current");t.first().addClass("current");this.radarImagesInterval=setInterval(function(){var r=n.find("img.current"),i=r.next();i.length==0&&(i=t.first());t.hide().removeClass("current");i.show().addClass("current")},1e3)});$("#radarImages").trigger("click");var n=location.hash.toLowerCase();n!=""&&(n=n.replace("scroll",""),$(window).load(function(){VM.scrollTo($(n));window.location.hash=n}))}};$(function(){VM.Weather.init()})