// What is $(document).ready ? See: http://flowplayer.org/tools/using.html#document_ready

$(document).ready(function() {



var triggers = $("a.modalInput").overlay({



	// some expose tweaks suitable for modal dialogs

	expose: {

		color: '#222',

		loadSpeed: 200,

		opacity: 0.8

	},



	closeOnClick: false

});







$("#prompt form").submit(function(e) {
	// close the overlay
	triggers.eq(1).overlay().close();

	// get user input
	var input = $("input", this).val();

	// do something with the answer
	triggers.eq(1).html(input);

	// do not submit the form
	return e.preventDefault();
});



$("#add_to_fav form").submit(function(e) {
	// close the overlay
	triggers.eq(1).overlay().close();

	// get user input
	var input = $("input", this).val();

	// do something with the answer
	triggers.eq(1).html(input);

	// do not submit the form
	return e.preventDefault();
});


$("#comment_profile form").submit(function(e) {
	// close the overlay
	triggers.eq(1).overlay().close();

	// get user input
	var input = $("input", this).val();

	// do something with the answer
	triggers.eq(1).html(input);

	// do not submit the form
	return e.preventDefault();
});



});