// The following is a jQuery implementation for the javascript behaviour used with the site

$(function() {
	
	//Add the default prompts
	//$(".footer .buttonRow input").defaultvalue("Keyword");
	//$(".formCheckboxes .formRow input.short").defaultvalue("Please enter the tour date");
	
	//Add the page turner slide out logic
	$(".pageTurner .off").hover(
		function() {
			var $off = $(this);
			var $on = $off.children(".on");
			$off.stop(true, false);
			$on.stop(true, false);
			$off.animate({width: "189px"}, "fast");
			$on.animate({opacity: "1"}, "normal");
		},
		function() {
			var $off = $(this);
			var $on = $off.children(".on");
			$off.stop(true, false);
			$on.stop(true, false);
			$off.animate({width: "65px"}, "fast");
			$on.animate({opacity: "0"}, "normal");
		}
	);
	
	//Randomise the strings background
	$(".strings").css("background-image", "url(/images/strings/string" + (Math.round(Math.random() * 3) + 1) + ".gif)");
	
});