$(document).ready(function(){
   //search text
   $('#searchwords').focus(function() {
		this.value = '';							
	});
    /*$('#searchwords').blur(function() {
		this.value = 'to search, type + press enter';							
	}); */
	//feature options
	$("#hide-feature").click(function() {
		$("#feature").toggle("slow"), $(".next-feature").toggle()
										
		//change text node
		//save cookie
		
		
	})

	$('.homePage #maincontent p:first-child').attr("id", "homepageintro");
	
	$(".next-feature").click(function() {
		/*alert("'next' feature not available yet");						  
		$("#feature").css("visibility", "hidden");
		return false;*/
	});	
	
	//hide the media player onload
	//$("#mp3player").css("display", "none");
	
	//show/hide the media player from the courtesy nav
	/*$("#listen-link").toggle(function() {

		$("#mp3player").show("fade");
		return false;
		}, function() {
		$("#mp3player").hide("fade");
		return false;

	});*/
	//open the media player in popup #openmp3player
	
	$(".listen-link").click(function() {
		window.open(this.href, '', 'right=0,top=0,width=720,height=200,resizable=yes,location=no');	
		//$("#mp3player").hide("fast");
		return false;

	})	
	/*$("#hideplayer").click(function() {
		$("#mp3player").hide("fast");
		return false;

	})	*/
	$('.popup').click(function() {
		window.open(this.href, '', 'right=0,top=0,width=450,height=360,resizable=yes,location=no,scrollbars=yes');
		return false;
	});
		
});
