$(document).ready(function() {

    /* Initialise slider panel IF it exists on the page */

    function formatText(index, panel) {
        return index + "";
    }
    
    $(function() {
        $('.panelSlider').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: 7000,                    		// How long between slide transitions in AutoPlay mode
            startStopped: false,            		// If autoPlay is on, this can force it to start stopped
            animationTime: 0,             			// How long the slide transition takes
            hashTags: false,                 		// Should links change the hashtag in the URL?
            buildNavigation: true,          		// 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
            navigationFormatter: formatText      		// Details at the top of the file on this use (advanced use)
        });
        $("#slide-jump").click(function() {
            $('.panelSlider').anythingSlider(6);
        });
    });
    
    

    
           
    /********TABBED BOXES********************/

    $('.panelTabbed').tabs({ fxFade: false, fxSpeed: 'fast' });
	
	$(function(){

    $("ul.navigation li").hover(function(){
    
        $(this).addClass("hover");
        $('ul:first',this).css('visibility', 'visible');
    
    }, function(){
    
        $(this).removeClass("hover");
        $('ul:first',this).css('visibility', 'hidden');
    
    });
    
    $("ul.navigation li ul li:has(ul)").find("a:first").append(" &raquo; ");
	
	
	/* ----------------------------------------------------------------- Scrollers / News Ticker */



	$('ul#TickerOne').cycle({

		fx: 'scrollDown',
		delay: -10000,
		speed: 600,
		pause: 1,
		cleartype: 1 // enable cleartype corrections 

	});

	$('ul#resultsTicker').cycle({

		fx: 'scrollUp',
		speed: 900,
		timeout: 1,
		pause: 1,
		cleartype: 1 // enable cleartype corrections  

	});

	$('.oddsChecker > ul').cycle({

		fx: 'scrollRight',
		delay: -10000,
		speed: 1000,
		pause: 1,
		cleartype: 1 // enable cleartype corrections 

	});
	
});


});
			


