$(document.body).ready(function() {
	$("#about").click(function () {	
		$(".player_div").empty();
		$(".player_div").prepend(insertPlayer());
      $(".quick-links,.quick-links2,.resources,.resources2,.contact,.contact2").slideUp("fast"); 
      	$(".menu-spacer,.about,.about2").slideDown("fast");			
	});
});

$(document.body).ready(function() {
	$("#resources").click(function () {
		$(".player_div").empty();
		$(".player_div").prepend(insertPlayer());	
      $(".quick-links,.quick-links2,.about,.about2,.contact,.contact2").slideUp("fast");
      	$(".menu-spacer,.resources,.resources2").slideDown("fast");			
	});
});

$(document.body).ready(function() {
	$("#contact").click(function () {
		$(".player_div").empty();
		$(".player_div").prepend(insertPlayer());	
      $(".quick-links,.quick-links2,.about,.about2,.resources,.resources2").slideUp("fast");
      	$(".menu-spacer,.contact,.contact2").slideDown("fast");			
	});
});

$(document.body).ready(function() {
	$("#quick-links").click(function () {
		$(".player_div").empty();
		$(".player_div").prepend(insertPlayer());	
      $(".resources,.resources2,.about,.about2,.contact,.contact2").slideUp("fast");
      	$(".menu-spacer,.quick-links,.quick-links2").slideDown("fast");			 
	});
});

	function insertPlayer(){
 
		var sounds = ['menu-open.mp3']
 
	    var playerpath	= 'http://velocitycleveland.org/wordpress/wp-content/themes/demar/flash/singlemp3player.swf';
		var path		= 'http://velocitycleveland.org/wordpress/wp-content/themes/demar/sounds/';
		var filename	= path + sounds;
 
		var mp3html = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
		mp3html += 'width="1" height="1" ';
		mp3html += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">';
		mp3html += '<param name="movie" value="'+playerpath+'?';
		mp3html += 'showDownload=false&file=' + filename + '&autoStart=true';
		mp3html += '&backColor=ffffff&frontColor=ffffff';
		mp3html += '&repeatPlay=false&songVolume=50" />';
		mp3html += '<param name="wmode" value="transparent" />';
		mp3html += '<embed wmode="transparent" width="1" height="1" ';
		mp3html += 'src="' + playerpath + '?'
		mp3html += 'showDownload=false&file=' + filename + '&autoStart=true';
		mp3html += '&backColor=ffffff&frontColor=ffffff';
		mp3html += '&repeatPlay=false&songVolume=50" ';
		mp3html += 'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		mp3html += '</object>';
		return mp3html;
 
	}