//MOVED HERE: https://11466.admin.myracepass.com/admin/cr/editfeaturebox.aspx?pl=headMarkup
//$(document).ready(function () {
// var bodyId = $("body").attr("ID");
// if (bodyId == "homeBody") {
// $(".galleryFeedWrap:eq(0), .galleryFeedWrap:eq(1)").prependTo($(".homeFeeds"));
// if ($(".galleryFeedWrap").length > 0) {
// $(".videoFeedWrap").remove();
// $(".homeFeeds .galleryFeedWrap:eq(1)").before("
");
// }
// else
// $(".homeFeeds .videoFeedWrap:eq(1)").before("
");
// $(".featureFeedWrap").before($("#premiumBannerWrap"));
// $(".featureFeedWrap").prepend("RBN Featured News ");
// $(".videoFeedWrap:eq(0) h2, .galleryFeedWrap:eq(0) h2").after("View All ");
// $(".videoFeedWrap:eq(1) h2, .galleryFeedWrap:eq(1) h2").after("View All ");
// $(".featureFeedWrap h2").after("View All ");
// //temporarily fix vimeo image heights
// $(".videoFeedWrap img").load(function () {
// if ($(this).height() < 222)
// $(this).parent().parent().addClass("tempHeightAdjust");
// });
// $(".videoFeedWrap:eq(0) a.modalBox, .galleryFeedWrap:eq(0) .galleryFeedPicWrap a").each(function () {
// $(this).attr("href", "/rbn/premium");
// $(this).attr("class", "");
// if ($(this).attr("title").length > 0) {
// var tempTitle = $(this).attr("title");
// $(this).append("" + tempTitle + " ");
// }
// });
// $(".videoFeedWrap:eq(1) a.modalBox, .galleryFeedWrap:eq(1) .galleryFeedPicWrap a").each(function () {
// $(this).attr("href", "http://youtube.com/user/Racinboys/videos").attr("target", "_blank");
// $(this).attr("class", "");
// if ($(this).attr("title").length > 0) {
// var tempTitle = $(this).attr("title");
// $(this).append("" + tempTitle + " ");
// }
// });
// }
// $(".headerFeedsWrap .eventFeedWrap:eq(0) ul").append("View All ");
// $(".headerFeedsWrap .eventFeedWrap:eq(1) ul").append("View All ");
// //very hacky way to check if package is available (requires very specific text in event name)
// //$(".headerFeedsWrap .eventFeedWrap:eq(0) li .feedDesc2").each(function () {
// //var text = $(this).text();
// //if (text.indexOf("Lucas Oil Chili Bowl Nationals Day ") != -1) {
// // $(this).text($(this).text().replace("Lucas Oil Chili Bowl Nationals Day", "Chili Bowl Day")); //shorten the name so the package text can fit
// // $(this).after("6-day Package Available! ");
// //}
// //if (text.indexOf("Lucas Oil Tulsa Shootout Day ") != -1) {
// // $(this).text($(this).text().replace("Lucas Oil Tulsa Shootout Day", "Tulsa Shootout Day")); //shorten the name so the package text can fit
// // $(this).after("4-day Package Available! ");
// //}
// //});
// //if ((bodyId == "signUpBody" || bodyId == "signInBody") && $(".verifyAcctWrap").length == 0 && $(".verifyCompleteAcctWrap").length == 0) {
// // $(".subContent").prepend('')
// //}
// //else if ($(".verifyAcctWrap").length > 0) {
// // $(".subContent").prepend('');
// // $(".subContent").append('VIDEO
');
// //}
// //very hacky way to check if package is available (requires very specific text in the name in event name)
// //if ((bodyId == "eventsBody") && ($(".mrp_eventsWrap table").length > 0)) {
// //$(".mrp_eventsWrap table h3 a").each(function () {
// //var text = $(this).text();
// //if (text.indexOf("2019 Lucas Oil Chili Bowl Nationals Day ") != -1) {
// // $(this).append("6-day Package Deal Available! Click for More Info! ");
// //}
// //else if (text.indexOf("34th Lucas Oil Tulsa Shootout Day ") != -1) {
// // $(this).append("4-day Package Deal Available! Click for More Info! ");
// //}
// //});
// //}
// if ((bodyId == "eventsBody") && ($(".mrp_newsNetwork").length > 0)) {
// //Fix Tulsa Shootout Multi-day button text
// if ($(".subHeading").text().indexOf("34th Lucas Oil Tulsa Shootout") != -1) {
// if ($(".buttonWrap a:eq(1)").text().indexOf("Package") != -1) {
// //$(".buttonWrap a:eq(1)").text("Buy 4-Day Package");
// $(".buttonWrap a:eq(1)").remove();
// }
// }
// //else if (($(".subHeading").text().indexOf("2019 Lucas Oil Chili Bowl") == -1) && ($(".buttonWrap a:eq(1)").text().indexOf("Package") != -1)) { //remove old package buy buttons
// else if ($(".buttonWrap a:eq(1)").text().indexOf("Package") != -1) { //remove all package buy buttons
// $(".buttonWrap a:eq(1)").remove();
// }
// //remove single buy links
// //if (($(".subHeading").text().indexOf("Lucas Oil Tulsa Shootout Day 1") != -1) ||
// // ($(".subHeading").text().indexOf("Lucas Oil Tulsa Shootout Day 2") != -1) ||
// // ($(".subHeading").text().indexOf("Lucas Oil Tulsa Shootout Day 3") != -1) ||
// // ($(".subHeading").text().indexOf("Lucas Oil Tulsa Shootout Day 4") != -1) ||
// // ($(".subHeading").text().indexOf("Lucas Oil Chili Bowl Midget Nationals Day 1") != -1) ||
// // ($(".subHeading").text().indexOf("Lucas Oil Chili Bowl Midget Nationals Day 2") != -1) ||
// // ($(".subHeading").text().indexOf("Lucas Oil Chili Bowl Midget Nationals Day 3") != -1) ||
// // ($(".subHeading").text().indexOf("Lucas Oil Chili Bowl Midget Nationals Day 4") != -1)) {
// // $(".buttonWrap").before("This event is currently not available to be purchased. ");
// // $(".buttonWrap").remove();
// //}
// //$(".mrp_newsBody img").attr("src", $(".mrp_newsBody img").attr("src") + "?" + new Date().getTime());
// $(".mrp_newsBody .contentPicWrap img").load(function () {
// $(".mrp_newsNetwork").width($(".mrp_singleEventWrap").width() - $(".contentPicWrap").width() - 40 + "px");
// });
// if ($(".rbnEmbedWrap").length > 0) {
// //$(".rbnEmbedWrap").parent().insertAfter($(".mrp_singleNewsHead")).addClass("clearfix");
// $(".rbnEmbedWrap").addClass("clearfix");
// $(".mrp_newsBody").append($(".mrp_newsBody .contentPicWrap, .mrp_newsBody .mdWrap"));
// }
// //this is stupid. If the exact phrases "Live Free Audio" and "Lucas Oil ASCS" are found in the description, we show an audio button.
// var checkASCS = $(".mdWrap p").text();
// if ((checkASCS.indexOf("Live Free Audio") != -1) && (checkASCS.indexOf("Lucas Oil ASCS") != -1)) {
// $(".mdWrap p").after("Free Live Audio!
");
// }
// }
// //temporary fix for no full screen option with vimeo videos
// //this is happening due to having an iframe inside of an iframe
// //see MRPFRAME-2749
// if (bodyId == "rbnPremiumBody") {
// $('.modalFrame').each(function () {
// var vid = $(this).attr("href").split("?vId=")[1];
// $(this).colorbox({
// height: 600,
// width: 870,
// iframe: true,
// href: "https://player.vimeo.com/video/" + vid,
// onComplete: function () {
// $("#colorbox iframe").attr("ID", "curIframe");
// $("#curIframe").hide();
// $("#curIframe").attr("width", 815).attr("height", 505).attr("webkitallowfullscreen", "").attr("mozallowfullscreen", "").attr("allowfullscreen", "");
// setTimeout(function () { //chrome67 needs a slight delay and reload in order for the attributes above to take hold.
// $("#curIframe").attr("src", $("#curIframe").attr("src") + "/?z=1");
// $("#curIframe").show();
// }, 500);
// }
// });
// });
// }
// $(window).scroll(lazyloadAds);
// lazyloadAds();
// //initAds();
// headlineItems = $("#headlineWrap .headlineContent").hide().size();
// $("#headlineWrap .headlineContent:eq(" + currHeadlineItem + ")").show();
// $("#headlineNav li:eq(0)").addClass("active");
// if ($("#headlineWrap .headlineContent").length > 1)
// start_Int();
//});
//var headlineItems;
//var currHeadlineItem = 0;
//var intVal = "";
//function tickHeadline() {
// $("#headlineWrap .headlineContent:eq(" + currHeadlineItem + ")").fadeOut("slow");
// $("#headlineNav li:eq(" + currHeadlineItem + ")").removeClass("active");
// currHeadlineItem = ++currHeadlineItem % headlineItems;
// $("#headlineNav li:eq(" + currHeadlineItem + ")").addClass("active");
// $("#headlineWrap .headlineContent:eq(" + currHeadlineItem + ")").fadeIn("slow");
//}
//function setHeadline(newItem) {
// stop_Int();
// $("#headlineWrap .headlineContent:eq(" + currHeadlineItem + ")").hide();
// $("#headlineNav li:eq(" + currHeadlineItem + ")").removeClass("active");
// currHeadlineItem = newItem;
// $("#headlineNav li:eq(" + newItem + ")").addClass("active");
// $("#headlineWrap .headlineContent:eq(" + currHeadlineItem + ")").show();
// start_Int();
//}
//function stop_Int() {
// if (intVal != "") {
// clearInterval(intVal);
// intVal = "";
// }
//}
//function start_Int() {
// if (intVal == "") {
// intVal = setInterval("tickHeadline()", 10000);
// }
// else {
// stop_Int();
// }
//}
//function initVimeoVids() {
// $("a[data-mrpvideoid]").each(function () {
// var vimeoVideoID = $(this).attr("data-mrpvideoid");
// //var vimeoVideoID = '174980886/cd1a3f821f';
// //works if video is not private
// //$.getJSON('http://www.vimeo.com/api/v2/video/' + vimeoVideoID + '.json?callback=?', { format: "json" }, function (data) {
// // alert(data);
// // $(this).find("img").attr('src', data[0].thumbnail_large);
// //});
// //rough...show video thumbnail as iframe
// //$(this).html('