	$(document).ready(function (){
		$("#toolbar").css({opacity: 0.9});
		/*
		//Useless fadeIn columns
		$('.cat').css({ opacity: 0 });
		$('#music').animate({ opacity: 1 },1000);
		$('#idea').fadeIn("slow").animate({opacity: 0},750).animate({ opacity: 1},1000);
		$('#anything').fadeIn("slow").animate({opacity: 0},1300).animate({ opacity: 1},1000);
		*/
		//Hide music text checkbox
		function countChecked() {
			var n = $("#HideMusicText:checked").length;
			var c = $("#FlashLinks:checked").length;
	
			if(n>0) {
				$("#mList").show();
				$("#music p").hide();
				$("#music a").clone().appendTo($("#mList")).after("<br/>");
			}
			else {
				$("#music p").show();
				$("#mList").hide();
				$("#mList").html("");
			}
		}
		countChecked();
		$(":checkbox").click(countChecked);

		$("#music a[href$='.mp3']").after('<img src="img/flashPlay.jpg" alt="" title="Show flash player">');
		$("#music img").click(function() {
			$("#mp3player code").remove();
			
			var page_links = $(this).parent().find("a").attr("href");
			var linkTitle = $(this).parent().find("a").html();
	
			var span = document.createElement("code");
			var url = "script/mediaplayertz5.swf?autostart=true&file="+escape(page_links)+"&song_title="+escape(linkTitle)
			var width = 240
			var height = 19
			code_str = ""
			code_str += " <object type=\"application/x-shockwave-flash\"\n"
			code_str += "id=\"fplayer\" \n"
			code_str += "name=\"fplayer\" \n"
			code_str += "data=\""+url+"\" \n"
			code_str += "width=\""+width+"\" height=\""+height+"\">\n"
			code_str += "<param name=\"movie\" \n"
			code_str += "value=\""+url+"\" />\n"
			code_str += "<param name=\"wmode\" \n"
			code_str +=	"value=\"transparent\" />\n"
			code_str += "</object>\n"
			span.innerHTML = code_str
			
			$("#mp3player").append(span);
		});//click end
	});//document.ready end