// JavaScript Document

$(function() {
	if (typeof $.fn.fancybox != "undefined") {
		$(".fancybox").fancybox();
		
		$("a[rel=lightbox]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
	}
	
	if (typeof $.fn.accordion != "undefined") {
		$(".accordion").accordion({
			autoHeight: false,
			active: false,
			collapsible: true
		});
		
		$(".accordion2").accordion({
			autoHeight: false,
			active: false,
			collapsible: true
		});
	}
});
