var images = [];
var current_image = -1;

function next_image() {
	if (current_image < images.length - 1) {
		current_image++;
	} else {
		current_image = 0;
	}
	
	$('post_image_uri').value = images[current_image];
	$('post_image_img').src = images[current_image];
	$('next_image_button').value = "next image (" + (current_image+1) + "/" + images.length + ")" 
}

function mouse_over_image(event) {
	event.target.adjacent("p")[0].show();
}

function mouse_out_image(event) {
	event.target.adjacent("p")[0].hide();
}
