/* TAGS */

$(document).ready(function() {

	$(function(){
		$('.tags').toggle(function(){
			$(this).find('div').show('300');
			$(this).find('div').find('a').click(
				function(){
					window.location=this.href;
				}
			);
		},
		function(){
			$(this).find('div').hide('300');
		});
	});
	
	/* MUSIC PLAYER */
	
	$(function(){
		$('.track-listing a').toggle(function(){
			$(this).parent().find('ul').show('300');
		},
		function(){
			$(this).parent().find('ul').hide('300');
		});
	});
	
	/** clear search boxes on click **/
		$("#postcode").focus(function() {
			if ( $(this).val() == "Please enter your full postcode.") {
				$(this).val('');
			}
		});
		
		$("#event_name").focus(function() {
			if ( $(this).val() == "Search on event or venue name.") {
				$(this).val('');
			}
		});
		
		
		$("#artist_name").focus(function() {
			if ( $(this).val() == "Search on artist name.") {
				$(this).val('');
			}
		});
		
		$("#gallery_name").focus(function() {
			if ( $(this).val() == "Search on gallery name.") {
				$(this).val('');
			}
		});
		
		$("#review_title").focus(function() {
			if ( $(this).val() == "Search on review title.") {
				$(this).val('');
			}
		});
		$("#news_title").focus(function() {
			if ( $(this).val() == "Search on news title.") {
				$(this).val('');
			}
		});
		$("#blog_title").focus(function() {
			if ( $(this).val() == "Search on blog title.") {
				$(this).val('');
			}
		});
	
	

});
