$(document).ready(function(){
	
	// Main Menu
	$("#nav ul ul li a").click(function() {
		$("#nav ul ul li a").removeClass("active");
		$(this).addClass("active");
		$("ul.internal").slideUp("slow");
		$(this).next("ul.internal").slideDown("slow");
	});
	
	// Addition of &raquo; to H2 title tags
	$("h2 a").append("<span class='more'>&raquo;</span>");
	$("#rfp h3 a").append("<span class='more'>&raquo;</span>");
	
	// Addition of end block on "Show" classes
	$(".show p:last").append("<span class='fin'><img src='media/images/bird_block.png' alt='end'></span>");
	
	// Index Revolve Widget
	

	// Link Roll
	$(".web").prepend("&infin; &nbsp;").attr("title","Work & Web");
	$(".funny").prepend("&#x263A; &nbsp;").attr("title","Comical");
	$(".apple").prepend("&#xF8FF; &nbsp;").attr("title","Apple Cult");
	$(".politics").prepend("&#x203D; &nbsp;").attr("title","Politics & Thievery");
	$(".motion").prepend("&#x203B; &nbsp;").attr("title","Motion & Interaction");
	
	$('.anythingSlider').anythingSlider({
	   easing: "easeInOutExpo",                // Anything other than "linear" or "swing" requires the easing plugin
	   autoPlay: true,                 // This turns off the entire FUNCTIONALITY, not just if it starts running or not
	   startStopped: false,            // If autoPlay is on, this can force it to start stopped
	   delay: 5000,                    // How long between slide transitions in AutoPlay mode
	   animationTime: 1000,             // 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: false,             // If true, and autoPlay is enabled, the show will pause on hover
	   startText: "Start",             // Start text
	   stopText: "Stop"               // Stop text
	});

});
