$j(document).ready(function() {
	/* Menu */
	$j('img.menu')
		.mouseover(function() { 
			var src = $j(this).attr("src").match(/[^\.]+/) + "-over.jpg";
			$j(this).attr("src", src);
		})
		.mouseout(function() {
			var src = $j(this).attr("src").replace("-over", "");
			$j(this).attr("src", src);
		});	
	/* Menu End */	


	/* Wines */
	$j('img.wines')
		.mouseover(function() { 
			var src = $j(this).attr("src").match(/[^\.]+/) + "-over.png";
			$j(this).attr("src", src);
		})
		.mouseout(function() {
			var src = $j(this).attr("src").replace("-over", "");
			$j(this).attr("src", src);
		});	
	/* Wines End */	
	
	
	/* Contact Form */
	/* attach a submit handler to the form 
	$j("#contact").submit(function(event) {

		stop form from submitting normally 
		event.preventDefault(); 
							
		get some values from elements on the page: 
		var $jform = $j( this ),
			name = $jform.find( 'input[name="name"]' ).val(),
			email = $jform.find( 'input[name="email"]' ).val(),
			comments = $jform.find( 'input[name="comments"]' ).val(),
			url = $jform.attr( 'action' );

		Send the data using post and put the results in a div 
		$j.post( url, { name: name, email: email, comments: comments },
			function( data ) {
				var content = $j( data );
				$j( "#contact-form" ).empty().append(content).fadeIn("slow");
			}
		);
	});
	*/
	/* Contact Form End */
});
