// remap jQuery to $
(function($){

$(document).ready(function (){

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

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


/* INITIATE LIGHTBOX
------------------------------------------------------------ */

/* 	$('.lightbox').lightbox(); */

 
/* HOVER EXAMPLE
------------------------------------------------------------ */

/*
	$(".logo-left, .logo-right").hover(function() {

		$(".logo-left, .logo-right").stop(true, true).fadeTo( 300, 1.0);	
	
	},function() {

		$(".logo-left, .logo-right").stop(true, true).fadeTo( 300, 0.8);

	});
*/





/* FADING & COLOUR ANIMATE EXAMPLE
------------------------------------------------------------ */

/*
	$(".nav ul li .hover-bkg").hide();
	
	$(".nav ul li").hover(function() {

		$(this).find("a").stop(true, true).animate({ color: "#fff" }, 300);
		$(this).find(".hover-bkg").stop(true, true).fadeTo( 300, 1.0);	
	
	},function() {

		$(this).find("a").stop(true, true).animate({ color: "#b4b29e" }, 300);
		$(this).find(".hover-bkg").stop(true, true).fadeTo( 300, 0.0);	

	});
*/




/* EXAMPLE OF AN IF STATEMENT
------------------------------------------------------------ */


    /* GET BODY ID */

/*     var bodyid = $("body").attr("id"); */


    /* APPLY ACTIVE STYLES ACCORDING TO PAGE */

/*
    if (bodyid == 'page-index')
    {

        $('.nav ul li.first').removeClass('first').addClass('first-active');

    }

    else if (bodyid == 'page-about')
    {

        $('.nav ul li.about').addClass('active');

    }
*/





 

});

})(window.jQuery);
