$('document').ready(function() {
			
			//Hide Message
			$('#hideMessage').click(function() {
				
				$('#message').fadeOut(1000, function() {
					
					$('#hideMessage').fadeOut(1000);	
					
				});
				
			});
			
			//When Page Content Button is Clicked
			$('a[id="pageContent"]').click(function() {
				
				//Show Form
				$("div[id$='main']").fadeOut(1000, function() {
					
					$("div[id='content_main']").delay(300).fadeIn(1000);
						
				});	
				
			});
			
			//When Ad Button is Clicked
			$('a[id="ad_content"]').click(function() {
				
				//Show Form
				$("div[id$='main']").fadeOut(1000, function() {
					
					$("div[id='ads_main']").delay(300).fadeIn(1000);
						
				});	
				
			});

			
			//Detect if side buttons have been clicked	
			$('#side_nav td a').click(function() {
				
				$('#side_nav td a').removeClass("selected");
				$(this).addClass("selected");	
				
				
			});
			
			//Slideshow Area
			$('#middle_image').cycle({

				fx: 'fade'

			});
			
			//Text Input Hover
			$('input[type="text"], textarea, input[type="submit"]').each(function() {


				$(this).hover(function() {


						$(this).css("background-color", "#edfff1")
						$(this).css("color", "#4c4e44")
						

					}, function() {



						$(this).css("background-color", "#4c4e44")
						$(this).css("color", "#edfff1")

					



				});



			});
			
			//Detect When the texture button is clicked

			$('#textures').click(function() {

				//Hide Texures Container
				$('#cloudsGroup').fadeOut(700, function() {

				//Show Clouds
				$('#texturesGroup').fadeIn(700);


				});


			});


			$('#texturesGroup img[alt$="thumb"]').css("margin-bottom", "7px");
			$('#texturesGroup img[alt$="thumb"]').css("margin-top", "7px");

			//Table highlight
			$('#texturesGroup tr:odd').each(function () {


				//Row Hover
				$(this).hover(function() {


				$(this).css("background-color", "#edfff1")
				$(this).css("color", "#4c4e44")


					}, function() {

				$(this).css("background-color", "")
				$(this).css("color", "#edfff1")


				});
				

			
			});
			
			//Clouds Container
			$('#cloudsGroup img[alt$="thumb"]').css("margin-bottom", "7px");
			$('#cloudsGroup img[alt$="thumb"]').css("margin-top", "7px");

			//Table highlight
			$('#cloudsGroup tr:odd').each(function () {


				//Row Hover
				$(this).hover(function() {


				$(this).css("background-color", "#edfff1")
				$(this).css("color", "#4c4e44")


					}, function() {

				$(this).css("background-color", "")
				$(this).css("color", "#edfff1")


				});
				

			
			});

			//Detect When the Clouds button is clicked

			$('#clouds').click(function() {

				//Hide Texures Container
				$('#texturesGroup').fadeOut(700, function() {

				//Show Clouds
				$('#cloudsGroup').fadeIn(700);


				});



			});


			$('#texturesGroup img[alt$="thumb"]').css("margin-bottom", "7px");
			$('#texturesGroup img[alt$="thumb"]').css("margin-top", "7px");

			//Table highlight
			$('#texturesGroup tr:odd').each(function () {


				//Row Hover
				$(this).hover(function() {


				$(this).css("background-color", "#edfff1")
				$(this).css("color", "#4c4e44")


					}, function() {

				$(this).css("background-color", "")
				$(this).css("color", "#edfff1")


				});
				

			
			});
			
			///////////////////////////////////////Jplayer Begins/////////////////////////////////////////////////////
			
			
			
				var myPlaylist = new jPlayerPlaylist({
		jPlayer: "#jquery_jplayer_1",
		cssSelectorAncestor: "#jp_container_1"
	}, [
		{
			title:"Stronger",
			artist:"Kanye West",
			mp3:"js/kw_stronger.mp3",
			poster: "site_images/media_thumbnails/thumb_1.jpg"
		},
		{
			title:"Good Night",
			artist:"Roesco Dash",
			mp3:"js/rd_good_night.mp3",
			poster: "site_images/media_thumbnails/thumb_2.jpg"
		}
	], {
		
		playlistOptions: {

			autoPlay: true,
			enableRemoveControls: true,
			loopOnPrevious: false,
			shuffleTime: 'slow',
			wmode: "windows"
		

		},
		
		swfPath: "js/",
		supplied: "webmv, ogv, m4v, oga, mp3"
	});
			
			//Play List
	$(".jp-play").click(function() {
	
			
			myPlaylist.play(0);
		
	});
	
	//Autoplay
	//myPlaylist.play(0);
			///////////////////////////////////////Jplayer Ends/////////////////////////////////////////////////////
			
			
		///User Comments Table Begins

			//Table Background Color
			$("#comments_main").css("background-color", "blue");


		///User Comments Table Ends
			
		});
	
