// Portfolio JavaScript Document

//localScroll jQuery plugin
jQuery(function( $ ){
    $.localScroll.defaults.axis = 'xy';
    
    $.localScroll.hash({
        target: '#content', 
        queue:true,
        duration:1500
    });
    
	$.localScroll({
        target: '#content',
        queue:true,
        duration:1000,
        hash:true,
        onBefore:function( e, anchor, $target ){
        },
        onAfter:function( anchor, settings ){
        }
    });
    
$("a").click(function(event) {
	  event.preventDefault();
		console.log("Prevented!");
	});    
    
});

//FancyBox plugin

$(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.[rel=metromix_group]").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	});
		
});
