var featureScroll = null; $(document).ready(function() { initSite(); }); function initSite() { if ($("#sponsorWrapper .singleAdWrap").length > 6) { custScroll(500, 4000, -162, 'left', '#sponsorWrapper', '.adWrap', 'singleAdWrap'); } if ($("body").attr("id") == "homeBody") { if ($("#eventAdWrap .singleAdWrap").length > 4) { custScroll(2000, 4000, -243, 'left', '#eventAdWrap', '.adWrap', 'singleAdWrap'); } $("#homeMessagesWrap").after($("#twitWrap")); } if ($("body").attr("id") == "profileBody_sch") { $(".mrp_contentMenu").append("Get Tickets!"); } initFeatured(); startSite(); } function stopSite() { if (featureScroll != null) featureScroll.stop(); } function startSite() { //current scrollabe requires scrollables to be "played()" before they can be stopped....lame var t1 = 4500; var t2 = 7500; var t3 = 5500; if (featureScroll != null) { setTimeout("featureScroll.play();", t2); } } function initFeatured() { if (!$(".featureFeedSub").is(":empty")) { if ($("div.featureFeed .featureFeedContent").length > 1) { $("div.featureFeed .featureFeedContent").wrapAll("
"); $(".featureFeedScrollable").before(""); $("div.featureFeedSub").scrollable({ clickable: false, loop: false, size: 1, keyboard: false, next: ".featureFeedNext", prev: ".featureFeedPrev", items: "div.featureFeedScrollable" }); } } } function initCounter(cYear, cMonth, cDay, cHours, cMinutes) { var austDay = new Date(); austDay = new Date(cYear, cMonth - 1, cDay, cHours, cMinutes, 0, 0); $('#counterWrap').countdown({ until: austDay, format: 'DHMS', onTick: function() { $(".countdown_amount:eq(0)").addClass("first"); $(".countdown_amount:eq(0)").text(zeroPad(parseInt($(".countdown_amount:eq(0)").text()), 3)); $(".countdown_amount:gt(0)").each(function() { $(this).text(zeroPad(parseInt($(this).text()), 2)); }); } }); }