var menuControl = function( id, hideplayer, hidelogos, content, flashvars, params, attributes ) {
				
	$('#'+id).css( { 'cursor' : 'pointer' } );
	$('#'+id).hover( function( ) { $(this).css( { 'background' : '#101010' } ); }, 
					 function( ) { $(this).css( { 'background' : 'transparent' } ); } );
	
	
	$('#'+id).bind('click', function( ) {
									 
		if(hidelogos) { $('#container_logos').hide(); } else { $('#container_logos').show(); }
	
		if($('#player_box:visible').length == 1) {
	
			if(hideplayer) {
			
				$('#player_box').empty();
				$(this).animate( {opacity:"1.0"}, 200, function() {
					$('#player_box').hide("slow");
					$('#player_title').show();		
					$(this).animate( {opacity:"1.0"}, 200, function() {
						$('#container_content').show("slow");	
						$(this).animate( {opacity:"1.0"}, 200, function() {
							$('#container_content').load(content);
						});						
					});				
				});
				
			}
			
		} else {
		
			if(hideplayer) {
			
				$('#container_content').hide("slow", function () {
					$('#container_content').empty();
					$(this).animate( {opacity:"1.0"}, 200, function() {
						$('#container_content').load(content);
						$(this).animate( {opacity:"1.0"}, 200, function() {	
							$('#container_content').show("slow");	
							$('#player_title').show();			
						});
												
					});	
				});
				
					
					
				
			} else {
			
				$('#player_title').hide();
				$('#container_content').hide("slow", function () {
					$('#container_content').empty();
				});
				$(this).animate( {opacity:"1.0"}, 200, function() {	
					$('#player_box').show("slow");				
				});
				
				$(this).animate( {opacity:"1.0"}, 600, function() {							
					$('#player_box').append('<div id="container_flashplayer"></div>');	
					$('#container_flashplayer').load("../content/flash_warning.php");
					swfobject.embedSWF("player.swf", "container_flashplayer", "750", "510", "9.0.0", 
								"libraries/swfobject/expressInstall.swf", flashvars, params, attributes);					
				});
			
			}
			
		}
	
	});
	
};
