$(document).ready(function() {
	/*
	$('a#next').bind('click keypress', function(event) {
		event.preventDefault(); // prevent browser from following the actual href
		
		// animate the image to new location
		$('img.current-img').animate({"left": "-=564px"}, 1000);
		$('img.next-img').animate({"left": "-=564px"}, 1000);
		
		// move arrow
		$('#article-thumbs li.current').css("background", "none");
		$('#article-thumbs li.current + li').addClass("current");
		$('#article-thumbs li.current:first').removeClass("current");
		$('#article-thumbs li.current').css("background", "url('../img/media-nav-current.png') no-repeat 50% 2px;");
		
		// update roll bar if it need to change 
		
		// update current url of next and previous arrow
		
		// change class name
		$('img.current-img').removeClass("current-img").addClass("previous-img");
		$('img.next-img').removeClass("next-img").addClass("current-img");
		
		// add link to current img
		$('img.current-img').wrap("<a class='lightbox' href='#'></a>");
		
		// load new img ; find a way to know the next item identifier
		var nextIdentifier = $(this).attr('href').substring($(this).attr('href').lastIndexOf('/')+1);
		var themeURL = $(this).attr('href').substring($(this).attr('href').indexOf('/', 1)+1,$(this).attr('href').lastIndexOf('/'));
				
		$.post("/collection/ajax/getNextIdentifier", {current_theme_url: themeURL, current_item_identifier: nextIdentifier}, function(data){
				
				$(this).attr('href', "/collection/"+ themeURL +"/"+ data);
				alert($(this).attr('href'));
			});

		$('#media-bar').append("<img class='next-img' src='/static/collection/medium/"+ nextIdentifier +".jpg' alt=''");
		
		// remove no longer needed img
		$('img.previous-img:first').remove();
	});
	*/
});
