function shadowImageGallery(galleryArray) {
	
	$.fancybox(galleryArray.split("|")
	, {
		'padding'			: 18,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'changeFade'        : 500,
		'autoDimensions'	: true,
		'overlayColor'		: '#000000',
		'overlayOpacity'	: 0.85,
		'titleShow'			: true,
		'type'				: 'image',
		'titlePosition' 	: 'inside',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
					if (currentArray.length > 1) {
					var str = '';
					for (var i = 0; i < currentArray.length; i++) {
						if (i == currentIndex) {
							str += '<img src="media/images/bullet-on.gif" />';
						} else {
							str += '<a href="javascript:gotoPos('+i+')"><img src="media/images/bullet-off.gif" border=0 /></a>';
						}
					}
			
		    		return '<span id="fancybox-title-inside">' + str + '</span>';
					}
				}
		
	});
	
}

function shadowVideoGallery(galleryArray) {

	$.fancybox(galleryArray.split("|")
	, {
		'padding'			: 18,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'changeFade'        : 500,
		'overlayColor'		: '#000000',
		'overlayOpacity'	: 0.85,
		'width'				: 711,
		'height'			: 425,
		'titlePosition' 	: 'inside',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
					if (currentArray.length > 1) {
					var str = '';
					for (var i = 0; i < currentArray.length; i++) {
						if (i == currentIndex) {
							str += '<img src="media/images/bullet-on.gif" />';
						} else {
							str += '<a href="javascript:gotoPos('+i+')"><img src="media/images/bullet-off.gif" border=0 /></a>';
						}
					}
			
		    		return '<span id="fancybox-title-inside">' + str + '</span>';
					}
				},
		'type'				: 'swf',
		'swf'				: {
								'wmode': 'transparent',
								'allowfullscreen' : 'true'
							}
	});

}

function shadowAudioGallery(galleryArray) {
	
	$.fancybox(galleryArray.split("|")
	, {
		'padding'			: 18,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'changeFade'        : 500,
		'autoDimensions'	: true,
		'overlayColor'		: '#000000',
		'overlayOpacity'	: 0.85,
		'width'				: 711,
		'height'			: 150,
		'titlePosition' 	: 'inside',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
					if (currentArray.length > 1) {
					var str = '';
					for (var i = 0; i < currentArray.length; i++) {
						if (i == currentIndex) {
							str += '<img src="media/images/bullet-on.gif" />';
						} else {
							str += '<a href="javascript:gotoPos('+i+')"><img src="media/images/bullet-off.gif" border=0 /></a>';
						}
					}
			
		    		return '<span id="fancybox-title-inside">' + str + '</span>';
					}
				},
		'type'				: 'swf',
		'swf'				: {
								'wmode': 'transparent'
							}
	});
	
}

function gotoPos(ARG_position) {
	$.fancybox.pos(ARG_position);
}
