$(document).ready(function(){

	$(function(){
			$('#slider').anythingSlider({resizeContents : true, delay : 8000, pauseOnHover : true});
		});
		
	$(function(){
			$('#sliderreg').anythingSlider({resizeContents : true, delay : 20000, pauseOnHover : true});
		});
	$(function(){
			$('#sliderregstopped').anythingSlider({resizeContents : true, autoPlay : false, pauseOnHover : true});
		});

		$("#jump-balance").click(function() {
		    $('#sliderregstopped').anythingSlider(2);
		});
	
	$(".slide-jumpstopped").click(function(){
			$('#sliderregstopped').data('AnythingSlider').goForward();
    });
    $(".slide-jumpstoppedprev").click(function() {
        $('#sliderregstopped').data('AnythingSlider').goBack();
    });
	$(".slide-jump").click(function(){
			$('#sliderreg').data('AnythingSlider').goForward();
    });
    $(".slide-jump1").click(function() {
    $('#sliderregstopped').anythingSlider(1);
    });
    $(".slide-jump2").click(function() {
    $('#sliderregstopped').anythingSlider(2);
    });
	$("#jump3").click(function() {
	    $('#sliderregstopped').anythingSlider(3);
	});
	$("#jump4").click(function() {
	    $('#sliderregstopped').anythingSlider(4);
	});
	$("#jump5").click(function() {
	    $('#sliderregstopped').anythingSlider(5);
	});
	$("#jump6").click(function() {
	    $('#sliderregstopped').anythingSlider(6);
	});
	$("#jump7").click(function() {
	    $('#sliderregstopped').anythingSlider(7);
	});
	$("#jump8").click(function() {
	    $('#sliderregstopped').anythingSlider(8);
	});
	$("#jump9").click(function() {
	    $('#sliderregstopped').anythingSlider(9);
	});
	$("#jump10").click(function() {
	    $('#sliderregstopped').anythingSlider(10);
	});
	$("#jump11").click(function() {
	    $('#sliderregstopped').anythingSlider(11);
	});
	$("#jump12").click(function() {
	    $('#sliderregstopped').anythingSlider(12);
	});
	$("#jump13").click(function() {
	    $('#sliderregstopped').anythingSlider(13);
	});
	$("#jump14").click(function() {
	    $('#sliderregstopped').anythingSlider(14);
	});
	$("#jump15").click(function() {
	    $('#sliderregstopped').anythingSlider(15);
	});
	$("#jump16").click(function() {
	    $('#sliderregstopped').anythingSlider(16);
	});
	$("#jump17").click(function() {
	    $('#sliderregstopped').anythingSlider(17);
	});
	$("#jump18").click(function() {
	    $('#sliderregstopped').anythingSlider(18);
	});
	$("#jump19").click(function() {
	    $('#sliderregstopped').anythingSlider(19);
	});
	$("#jump20").click(function() {
	    $('#sliderregstopped').anythingSlider(20);
	});
	$("#jump21").click(function() {
	    $('#sliderregstopped').anythingSlider(21);
	});
	$("#jump22").click(function() {
	    $('#sliderregstopped').anythingSlider(22);
	});
	$("#jump23").click(function() {
	    $('#sliderregstopped').anythingSlider(23);
	});
	$("#jump24").click(function() {
	    $('#sliderregstopped').anythingSlider(24);
	});
	$("#jump25").click(function() {
	    $('#sliderregstopped').anythingSlider(25);
	});
	$("#jump26").click(function() {
	    $('#sliderregstopped').anythingSlider(26);
	});
	$("#jump27").click(function() {
	    $('#sliderregstopped').anythingSlider(27);
	});
	$("#jump28").click(function() {
	    $('#sliderregstopped').anythingSlider(28);
	});
	$("#jump29").click(function() {
	    $('#sliderregstopped').anythingSlider(29);
	});
	$("#jump30").click(function() {
	    $('#sliderregstopped').anythingSlider(30);
	});
	
	$("#jumpCoding").click(function(){
		$('#sliderreg').anythingSlider(2);
	});
	$("#jumpBilling").click(function(){
		$('#sliderreg').anythingSlider(3);
	});
	$("#jumpCompliance").click(function(){
		$('#sliderreg').anythingSlider(4);
	});
	$("#jumpAuditing").click(function(){
		$('#sliderreg').anythingSlider(5);
	});
	$("#jumpDoc").click(function(){
		$('#sliderreg').anythingSlider(6);
	});
	$("#jumpAnalysis").click(function(){
		$('#sliderreg').anythingSlider(7);
	});
 
	$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav
	
	$("ul.topnav li span").click(function() { //When trigger is clicked...
		
		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click
 
		$(this).parent().hover(function() {
		}, function(){	
			$(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		});
 
		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() { 
			$(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
	
 
});
