jQuery.noConflict();
			
jQuery(window).bind("load", function() {
	viewer.init();
});

var viewer;
viewer = {
	thumbs : '',
	main_image : '',
	
	init : function() {
		viewer.thumbs = jQuery('#content > .photos > .thumbs > .thumb');
		viewer.main_image = jQuery('#content > .photos > #main_image');
		
		viewer.thumbs.click(function() {
			viewer.change(this.href);
			
			return false;
		});
	},
	change : function(_url) {
		viewer.thumbs.removeClass("active");
		viewer.thumbs.filter('[href='+_url+']').addClass("active");
		viewer.main_image.attr("src", _url);
	}
};