-if @images 
	#pagination
	
		-if @next_image and @prev_image
			-url_1 = @next_image.photo.url+"?"+@next_image.updated_at.to_s.to_slug
			-url_2 =@prev_image.photo.url+"?"+@next_image.updated_at.to_s.to_slug
		
			<script>
		
			$(window).load(function(){
			preload([
			="'"+url_1+"',"
			="'"+url_2+"',"
			]);
			});
		
			</script>
			
		%span{:style => "position:relative;top:-0.5em;position:absolute;top:20px;left:0px;right:10px;text-align:center;"}="#"+@images.current_page.to_s+"/"+@images.num_pages.to_s
		=link_to "<", portfolio_path(:slug => @portfolio.slug, :page => @prev_page, :format => :js), :style => "font-size:3em;position:absolute;bottom:10px;right:60px;", :remote => true, :id => "prev"
		
		=link_to ">", portfolio_path(:slug => @portfolio.slug, :page => @next_page, :format => :js), :style => "font-size:4em;position:absolute;bottom:10px;right:15px;", :remote => true, :id => "next"