$(document).ready(function(){

	applyform("#postnews", "News posted!","ajax.php?method=reloadnews",false,"textarea#content");
	$("#jumpepisode").change(function() {
	
		var url = $("#jumpepisode option:selected").attr("value");
		document.location = url; 
	
	});


	
});
		function switchplayer(playerid) {
		
			$(".mirrorselected").removeClass("mirrorselected");
			$("#link-player-"+playerid).addClass("mirrorselected");
			$(".nowplaying").remove();
			$("#link-player-"+playerid).append("<span class=\"nowplaying\">now playing</span>");
			
			$(".divplayer:visible").fadeOut("slow", function() {
			
				$("#player-"+playerid).fadeIn("slow");
			

			
			});
		
		
		}
		

