ImageViewer = {
	
	open: function( ID, Data ) {
		
		$('.Print').hide();
		
		$('.Right').slideUp('slow', function() {
			
			ImageViewer.show( ID, Data );
			
		});
		
	},
	show: function( ID, Data ) {
		/*
		if( Data.length > 1 ) {
			
			$('#LeftButton').css({display: 'block'});
			$('#LeftButton').click(function() { ImageViewer.change(ID < 1 ? Data.length-1 : ID-1, Data); });
			
			$('#RightButton').css({display: 'block'});
			$('#RightButton').click(function() { ImageViewer.change(Data.length > ID+1 ? ID+1 : 0, Data); });
			
		}
		*/
		$('#ImageDescription').html(Data[ID][3]/*+' ('+(ID+1)+'/'+Data.length+')'*/);
		
		$('#Image').attr({src: Data[ID][0]});
		//$('#Image').attr({width: Data[ID][1]});
		//$('#Image').attr({height: Data[ID][2]});
		$('#Image').load(function() {
		
			$('#ImageViewer').slideDown('slow', function() {
			
				$('.Close').show();
			
			});
			
		});
		
	},
	change: function( ID, Data ) {
		
		$('#Frame').fadeOut(300, function() {
		
			ImageViewer.show( ID, Data );
			
		});
		
	},
	close: function() {
		
		$('.Close').hide();
		
		$('#ImageViewer').slideUp('slow', function() {
			
			$('.Right').slideDown('slow', function() {
			
				$('.Print').show();
			
			});
			
		});
		
	}
	
}




$(document).ready
(
 	function()
	{
		$('.LightBox').fancybox();
	}
);
