var currentHeadlineIndex = 0; var headlineCount = 0; function nextHeadline(){ currentHeadlineIndex++; if(currentHeadlineIndex > headlineCount - 1) currentHeadlineIndex = 0; $('#headline p[showing=showing]').animate({ opacity: 0 }, 500, function() { showHeadline(); $('#headline p[showing=showing]').animate({ opacity: 1.0 }, 500, function() { }); }); } function showHeadline(){ var index = 0; $('#headline p.headlinetitle').each(function(){ if(currentHeadlineIndex == index){ $(this).attr('showing','showing'); $(this).css('display','block'); $(this).css('opacity',0); }else{ $(this).css('display','none'); } index++; }); } $(document).ready(function() { $("#headline_next a").click(function(){ $('.anythingSlider').anythingSlider(1); }); $('#headline').anythingSlider({ easing: "easeInOutExpo", // Anything other than "linear" or "swing" requires the easing plugin autoPlay: true, // This turns off the entire FUNCTIONALY, not just if it starts running or not. delay: 3000, // How long between slide transitions in AutoPlay mode startStopped: false, // If autoPlay is on, this can force it to start stopped animationTime: 600, // How long the slide transition takes hashTags: true, // Should links change the hashtag in the URL? buildNavigation: false, // If true, builds and list of anchor links to link to each slide pauseOnHover: true, // If true, and autoPlay is enabled, the show will pause on hover startText: "Go", // Start text stopText: "Stop" // Stop text }); }); var lastCalendarHeight = 180; function tuggleCalendar(){ if($('#calendar_holder').css('display') == 'block'){ lastCalendarHeight = $('#calendar_holder').height(); $('#calendar_holder').animate({ height: 0 }, 500, function() { $('#calendar_holder').css('display','none'); }); $('#calendar_btn').attr('src',baseUrl + '/img/top/right_bar/show_open.gif'); } else { $('#calendar_holder').css('display','block'); $('#calendar_holder').animate({ height: lastCalendarHeight }, 500, function() { }); $('#calendar_btn').attr('src',baseUrl + '/img/top/right_bar/show_close.gif'); } } var lastLoginHeight = 180; function tuggleLogin(){ if($('#login').css('display') == 'block'){ lastLoginHeight = $('#login').height(); $('#login').animate({ height: 0 }, 500, function() { $('#login').css('display','none'); }); $('#login_btn').attr('src',baseUrl + '/img/top/right_bar/show_open.gif'); } else { $('#login').css('display','block'); $('#login').animate({ height: lastLoginHeight }, 500, function() { }); $('#login_btn').attr('src',baseUrl + '/img/top/right_bar/show_close.gif'); } } var lastSubscribeHeight = 65; function tuggleSubscribe(){ if($('#subscribe').css('display') == 'block'){ lastSubscribeHeight = $('#subscribe').height(); $('#subscribe').animate({ height: 0 }, 500, function() { $('#subscribe').css('display','none'); }); $('#subscribe_btn').attr('src',baseUrl + '/img/top/right_bar/show_open.gif'); } else { $('#subscribe').css('display','block'); $('#subscribe').animate({ height: lastSubscribeHeight }, 500, function() { }); $('#subscribe_btn').attr('src',baseUrl + '/img/top/right_bar/show_close.gif'); } }