Event.observe(window, 'load', function() {
    var image_container  = $('big_image');
    var image            = $('image');
    
    var dims = image.getDimensions();
    $('image_next').style.height = dims.height;
    $('next_container').style.height = (dims.height-20)+"px";
    
    $('next_container').onmouseover = function() {
	$('image_next').style.visibility      = 'visible';
	document.body.style.cursor            = 'pointer';
    }
    $('next_container').onmouseout  = function() {
	$('image_next').style.visibility      = 'hidden';
	document.body.style.cursor            = 'auto';
    }
    
    if ($('image_prev') && $('prev_container')) {
    	$('image_prev').style.height = dims.height;
    	$('prev_container').style.height = (dims.height-20)+"px";
        $('prev_container').onmouseover = function(){
	    $('image_prev').style.visibility      = 'visible';
	    document.body.style.cursor            = 'pointer';
	}
	$('prev_container').onmouseout  = function(){
	    $('image_prev').style.visibility      = 'hidden';
	    document.body.style.cursor            = 'auto';
	}
    }

    //preload next image
});
