(function(jQuery) { var $ = jQuery; // scope to here incase someone forgets not to use the $ var banners = [{"BannerID":112,"ProfileID":100648,"ImageURl":"https://pennsylvaniarestaurantlodgingpaassoc.wliinc32.com/External/WCPages/WCWebContent/webcontentpage.aspx?ContentId=1690","NavigateURL":"https://pennsylvaniarestaurantlodgingpaassoc.wliinc32.com/CWT/External/WCPages/WCBanners/BannerReferral.aspx?ProfileID=100648\u0026BannerID=112\u0026EntityID=0\u0026URL=https%3a%2f%2fmultipleline.american-national.com%2ffocus-markets-restaurants%2f%3futm_source%3dmi%26utm_medium%3dmis%26utm_campaign%3d122","AlternateText":"","Keyword":"","DisplayStartDate":"\/Date(-2208988800000)\/","DisplayEndDate":"\/Date(-2208988800000)\/","DateCreated":"\/Date(1747377110533)\/","DateChanged":"\/Date(-2208988800000)\/","ChangedBY":"","Target":"","BannerName":"","BannerTypeID":0,"BannerFormat":0,"ObjectCollectionState":4,"ObjectOriginalPropertyValues":[],"ObjectSortValue1":null,"ObjectSortValue2":null,"ObjectSortValue3":null,"ObjectSortValue4":null,"ObjectSortValue5":null,"ObjectIsSelected":false,"ObjectData":null,"ObjectOriginalPropertyValuesSet":false},{"BannerID":124,"ProfileID":100747,"ImageURl":"https://pennsylvaniarestaurantlodgingpaassoc.wliinc32.com/External/WCPages/WCWebContent/webcontentpage.aspx?ContentId=2099","NavigateURL":"https://pennsylvaniarestaurantlodgingpaassoc.wliinc32.com/CWT/External/WCPages/WCBanners/BannerReferral.aspx?ProfileID=100747\u0026BannerID=124\u0026EntityID=0\u0026URL=https%3a%2f%2fhubs.ly%2fQ03czXYY0","AlternateText":"","Keyword":"","DisplayStartDate":"\/Date(-2208988800000)\/","DisplayEndDate":"\/Date(-2208988800000)\/","DateCreated":"\/Date(1747377110533)\/","DateChanged":"\/Date(-2208988800000)\/","ChangedBY":"","Target":"","BannerName":"","BannerTypeID":0,"BannerFormat":0,"ObjectCollectionState":4,"ObjectOriginalPropertyValues":[],"ObjectSortValue1":null,"ObjectSortValue2":null,"ObjectSortValue3":null,"ObjectSortValue4":null,"ObjectSortValue5":null,"ObjectIsSelected":false,"ObjectData":null,"ObjectOriginalPropertyValuesSet":false},{"BannerID":127,"ProfileID":88070,"ImageURl":"https://pennsylvaniarestaurantlodgingpaassoc.wliinc32.com/External/WCPages/WCWebContent/webcontentpage.aspx?ContentId=1539","NavigateURL":"https://pennsylvaniarestaurantlodgingpaassoc.wliinc32.com/CWT/External/WCPages/WCBanners/BannerReferral.aspx?ProfileID=88070\u0026BannerID=127\u0026EntityID=0\u0026URL=https%3a%2f%2fwww.barley.com%2fcapability%2fhospitality%2fliquor-law%2f","AlternateText":"","Keyword":"","DisplayStartDate":"\/Date(-2208988800000)\/","DisplayEndDate":"\/Date(-2208988800000)\/","DateCreated":"\/Date(1747377110533)\/","DateChanged":"\/Date(-2208988800000)\/","ChangedBY":"","Target":"","BannerName":"","BannerTypeID":0,"BannerFormat":0,"ObjectCollectionState":4,"ObjectOriginalPropertyValues":[],"ObjectSortValue1":null,"ObjectSortValue2":null,"ObjectSortValue3":null,"ObjectSortValue4":null,"ObjectSortValue5":null,"ObjectIsSelected":false,"ObjectData":null,"ObjectOriginalPropertyValuesSet":false},{"BannerID":128,"ProfileID":88746,"ImageURl":"https://pennsylvaniarestaurantlodgingpaassoc.wliinc32.com/External/WCPages/WCWebContent/webcontentpage.aspx?ContentId=2100","NavigateURL":"https://pennsylvaniarestaurantlodgingpaassoc.wliinc32.com/CWT/External/WCPages/WCBanners/BannerReferral.aspx?ProfileID=88746\u0026BannerID=128\u0026EntityID=0\u0026URL=https%3a%2f%2fhmic.com%2fwelcome-prla-members%2f","AlternateText":"","Keyword":"","DisplayStartDate":"\/Date(-2208988800000)\/","DisplayEndDate":"\/Date(-2208988800000)\/","DateCreated":"\/Date(1747377110533)\/","DateChanged":"\/Date(-2208988800000)\/","ChangedBY":"","Target":"","BannerName":"","BannerTypeID":0,"BannerFormat":0,"ObjectCollectionState":4,"ObjectOriginalPropertyValues":[],"ObjectSortValue1":null,"ObjectSortValue2":null,"ObjectSortValue3":null,"ObjectSortValue4":null,"ObjectSortValue5":null,"ObjectIsSelected":false,"ObjectData":null,"ObjectOriginalPropertyValuesSet":false}]; var animation_speed = 300; if (!jQuery) { document.Write(''); return; } var banner_container_id_prefix = "wc-leaderboard-id"; var banner_id_count = 1; var banner_id = banner_container_id_prefix + '-' + banner_id_count; while (jQuery('.' + banner_id).length) { banner_id_count++; banner_id = banner_container_id_prefix + '-' + banner_id_count; } function escape_html(t) { if (!t) return t; return t.replace('&', '&').replace('<', '<').replace('>', '>').replace('"', '"'); } document.write(''); // #baner_id // rotating if (banners.length > 1) { jQuery(function() { var banner_container = jQuery('.' + banner_id)[0]; if (!banner_container) return; var current_banner = jQuery('>.wc-banner', banner_container)[0]; var banner_count = jQuery('>.wc-banner', banner_container).length; var delay_seconds = 4; delay_seconds = delay_seconds > 0 ? delay_seconds : 4; setInterval(function() { var next_banner = jQuery(current_banner).next('.wc-banner')[0]; var handle_animation_complete = function() { jQuery(current_banner).css({'display' : 'none'}); current_banner = next_banner; }; if (next_banner) { // next is under if (next_banner != current_banner) { jQuery(next_banner).css({'display' : 'block', 'opacity' : 0}).addClass('this'); jQuery(next_banner).animate({'opacity' : 1}, { 'duration' : animation_speed, 'complete' : handle_animation_complete }); } } else { // next is actually first // so it's on top next_banner = jQuery('>.wc-banner', banner_container)[0]; jQuery(next_banner).css({'display' : 'block', 'opacity' : 1}); jQuery(current_banner).animate({'opacity' : 0}, { 'duration' : animation_speed, 'complete' : handle_animation_complete }); } }, delay_seconds * 1000); }); } })(jQuery); // AdKeyword: homeindex,#all,#content,#nondirectory | BannerName: leaderboard