$(function(){
	$("#slides").slides({
		effect: 'fade',
		play: 3000
	});
	$("a#image").fancybox();
	$("a.fancy").fancybox();	
	$("a[rel=fancygroup]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'inside',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-inside">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});		
});

      
	$('ul#cnct-tabs li a').click(function() {
		$('ul#cnct-tabs li a').removeClass('active');
		var show_menu =	$(this).attr('id');
		var table 		=	$(this).attr('tid');
		$('#'+show_menu).addClass('active');
		
		$('div.cnct-tab').hide();
		$("#"+table).fadeIn('slow'); 
		return false;
	})

/* Subnav 
$(document).ready(function(){	

	//Hide (Collapse) the toggle containers on load
	$("ol.dropped").hide(); 

	//Switch the "Open" and "Close" state per click
	$("a.trigger").toggle(function(){
		$(this).addClass("active");
		$("a.trigger").addClass("last");
		}, function () {
		$("a.trigger").removeClass("last");
	});

	//Slide up and down on click
	$("a.trigger").click(function(){
		$(this).next("ol.dropped").slideToggle("fast");
	});
});	*/
