
$(document).ready(function(){$("#toTop").click(function(){$("html, body").animate({scrollTop:0},500)});$(".hdr-main").sticky({topSpacing:0});$('ul.tabs').each(function(){var $active,$content,$links=$(this).find('a');if(page_mode=="locations")$active=$($links.filter('[href="'+location.hash+'"]')[1]||$links[1]);else
		$active=$($links.filter('[href="'+location.hash+'"]')[0]||$links[0]);$active.addClass('active');$content=$($active[0].hash);$links.not($active).each(function(){$(this.hash).hide()});$(this).on('click','a',function(e){$active.removeClass('active');$content.hide();$active=$(this);$content=$(this.hash);$active.addClass('active');$content.show();e.preventDefault()})})});