$(document).ready(function(){

	//Dynamic loader to enable effects between pages
	$('#menu ul li a').click(function(){  
		var obj = this
		//set target content to load in
		var toLoad = $(this).attr('href')+' #content_wrapper';  
		
		//hide content div
		$('#content_wrapper').slideUp('slow');
		
		//load in content and slide in content when load is complete
		$('#content_wrapper').load(toLoad, function () {
			$('#content_wrapper').slideDown('slow');
			
			$(".altrows tr:odd").addClass("alt");
			$(".altrows tr").mouseover(function() {
				$(this).addClass("over");
			}).mouseout(function(){
				$(this).removeClass("over");
			});
			if( $(obj).text() == $("#menu ul li a:first").text() )
			{
				createPlayer()
			}			
		}); 		
		
		return false;
		
	}); 



});
