$(document).ready(function() {
	//alert('Welcome to StarTracker!')
	slideShow();	
	
	
	/* Banner */
	//$('#banner').ready(function() {
	//	$('#banner img').hide();
	//	$('#banner img').fadeIn(3000);
	//});

	
	/* Banner Slideshow */
	function slideShow() {
		$('#banner img').hide();
		var current = $('#banner .show');
		var next = current.next().length ? current.next() : current.parent().children(':first');
		current.hide().removeClass('show');
		next.fadeIn(3000).addClass('show');
		setTimeout(slideShow, 6000);
	}
	

    /* When mouse rolls over */
    //$("li").mouseover(function(){
    //    $(this).stop().animate({height:'150px'},{queue:false, duration:600, easing: 'easeOutBounce'})
    //});

    /* When mouse is removed */
    //$("li").mouseout(function(){
    //    $(this).stop().animate({height:'50px'},{queue:false, duration:600, easing: 'easeOutBounce'})
    //});


	/* FAQ and Contact form */
	$('.trigger').ready(function() {
		$('.block').hide();
		$('.trigger').click(function() {
        		$(this).next().slideToggle('slow');  //toggles next element after .faqTitle which is the p
                        //$(this).toggleClass("active").next().slideToggle("slow");
                        return false;
		});
	});



	/* Hide (Collapse) the toggle containers on load */
	//$("div.container").hide(); 

	/* Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state) */
	//	$(this).toggleClass("active").next().slideToggle("slow");
	//	return false; //Prevent the browser jump to the link anchor

	//});
       

	/* This is basic - uses default settings */
	$("a#single_image").fancybox();
		
	/* Using custom settings */	
	$("a#inline").fancybox({
		'hideOnContentClick': true
	});

	/* Apply fancybox to multiple items */
	$("a.group").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
	
	
	
	
	
});
