$(document).ready(function() {

	$('.searchform').submit(function() {
		window.location = "http://" + window.location.host + "/search/" + $('.textbox').val();
		return false;
	});

	$('#watch_video').click(function() {
		$('#watch_video_div').toggle();
		return false;
	});

	$('#listen').click(function() {
		$('#listen_div').toggle();
		return false;
	});

	$('.textbox').click(function() {
		if ($(this).val() == 'Enter here the name of the artist, album or track')
			$(this).val('');
	});

	$('img[id="click_big_photo"]').click(function () {
		$('#b_picture').fadeOut("fast")
		$('#b_picture').html('<img style="max-width:480px" src="' + $(this).attr("bp") + '">');
		$('#b_picture').fadeIn("fast");
		return false;
	});

//	$('#click_big_photo').click(function() {
//		alert($(this).attr('bp'));
//	});

});
