function img_pop( url ) {
	var myRequest = new Ajax.Updater('imagebox', url+'?ajax=1', {
		onLoading: function() {
			new Effect.Appear( 'loadingbox', { duration: 0.5 } );
		},
		onSuccess: function() {
			new Effect.Appear( 'imagebox', { duration: 0.5 } );
			new Effect.Fade( 'loadingbox', {duration: 0} );
		},
    	onFailure: function() {
			new Effect.Appear( 'ajaxerrorbox', { duration: 0.5} );
			new Effect.Fade( 'loadingbox', {duration: 0} );
		}
	});
}
function close_img_pop( ) {
	new Effect.Fade( 'imagebox', {duration: 0.5} );
}
function view_minireview( id ) {
	var myRequest = new Ajax.Updater('floatingbox', '/reviews/mini/'+id+'?ajax=1', {
		onLoading: function() {
			new Effect.Appear( 'loadingbox', {duration: 0.5} );
		},
		onSuccess: function() {
			new Effect.Appear( 'floatingboxouter', {duration: 0.5} );
			new Effect.Fade( 'loadingbox', {duration: 0} );
		},
    	onFailure: function(){
			new Effect.Appear( 'ajaxerrorbox', { duration: 0.5} );
			new Effect.Fade( 'loadingbox', {duration: 0} );
		}
	});
}
function view_help( topic ) {
	var myRequest = new Ajax.Updater('floatingbox', '/help/'+topic+'?ajax=1', {
		onLoading: function() {
			new Effect.Appear( 'loadingbox', {duration: 0.5} );
		},
    	onSuccess: function() {
			new Effect.Appear( 'floatingboxouter', {duration: 0.5} );
			new Effect.Fade( 'loadingbox', {duration: 0} );
		},
    	onFailure: function(){
			new Effect.Appear( 'ajaxerrorbox', { duration: 0.5} );
			new Effect.Fade( 'loadingbox', {duration: 0} );
		}
	});
}
function close_floatingbox( ) {
	new Effect.Fade( 'floatingboxouter', {duration: 0.5} );
}
function show_admin( ) {
	new Effect.BlindDown( 'login_open', {duration: 0.5} );
	new Effect.BlindUp( 'login_closed', {duration: 0.5} );
}
function hide_admin( ) {
	new Effect.BlindUp( 'login_open', {duration: 0.5} );
	new Effect.BlindDown( 'login_closed', {duration: 0.5} );
}