$(document).ready(function(){$(".set-bg").each(function(){var a=$(this).find(".get-bg img").attr("src");$(this).css("background-image","url("+a+")")});$(".thisBg").each(function(){var a=$(this).find("img").attr("src");$(this).css("background-image","url("+a+")")});$(".siteNavigation .hs-menu-wrapper").before('<a class="expandMenu"><i></i><i></i><i></i></a>');$(".siteNavigation .flyouts .hs-item-has-children > a").after('<span class="childExpand"><i></i><i></i></span>');$(".expandMenu").click(function(){$(this).next(".siteNavigation .hs-menu-wrapper").slideToggle(250);$("body").toggleClass("menuOpen");$(".childExpand").removeClass("open");$(".hs-menu-children-wrapper").hide(0);return false});$(".childExpand").click(function(){$(this).parent().siblings(".hs-item-has-children").find(".childExpand").removeClass("open");$(this).parent().siblings(".hs-item-has-children").find(".hs-menu-children-wrapper").slideUp(250);$(this).next(".hs-menu-children-wrapper").slideToggle(250);$(this).next(".hs-menu-children-wrapper").children(".hs-item-has-children").find(".hs-menu-children-wrapper").slideUp(250);$(this).next(".hs-menu-children-wrapper").children(".hs-item-has-children").find(".childExpand").removeClass("open");$(this).toggleClass("open");return false});$(".tabFilterLinks a").click(function(){var a=$(this).attr("rel");$(".tabFilterLinks a").not(this).removeClass("active");$(this).addClass("active");$(".tabContent ").not(a).hide().removeClass("active");$(a).fadeIn().addClass("active")});if($(".videoBlock .videoLink").length>0){$(".videoBlock .videoLink").fancybox({openEffect:"none",closeEffect:"none",helpers:{media:{}}})}if($(".videoPopup a").length>0){$(".videoPopup a").fancybox({openEffect:"none",closeEffect:"none",helpers:{media:{}}})}$(".listingTopic ul").prepend("<li>"+($(".sortAppend").html())+"</li>");$(".listingTopic a").each(function(){if(("http:"+$(this).attr("href"))==(window.location)){$(this).addClass("active")}});$(".blogSidebar .hs-rss-item").each(function(){$(this).find(".hs-rss-item-text").insertAfter($(this).find(".hs-rss-item-image-wrapper"))})});