/**
 *
 */

var mynheer = {
	
	init: function() {
		
		mynheer.init_gallery();
		
		$('.text-zone tr:odd td').addClass('alt-row');
		
	}
	
	,init_gallery: function() {
		
		$('.gallery-thumbs a:first').fadeTo('fast', 0.2);
		
		$('.gallery-thumbs a').click(function() {
			$(this).blur();

			$('.gallery-thumbs a').fadeTo('fast', 1);
			$(this).fadeTo('normal', 0.2);

			var img = $(this).attr('href');
			var img_title = $(this).find('img').attr('title');
			var img_description = $(this).attr('title');
			var img_size = $(this).attr('rel');
			
			$('.gallery-image img').attr('src', img);
			$('.gallery-info-title').html( img_title );
			$('.gallery-info-description').html( img_description );
			$('.gallery-info-size').html( img_size );

			return false;
		});
		
	}
	
};

$(document).ready(mynheer.init);