// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

var Photo = {

	show: function(url) {
		$('photo').src = url;
		$('mask').show();
		$('photo-wrapper').visualEffect('appear', {duration:0.5});
	},

	hide: function() {
		$('mask').hide();
		$('photo-wrapper').visualEffect('fade', {duration:0.5});
		$('photo').src = ""
	}

}
