$(document).ready (function ()
{
	$('body').removeClass ("noJs");
	
	$("a.fancy").fancybox({
		'transitionIn'	:	'none',
		'transitionOut'	:	'none',
		'overlayOpacity': 	1,
		'overlayColor'	: 	'#333',
		'changeSpeed'  	: 	1,
		'speedIn'		:	200, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
		'titleShow'		: 	true,
		'cyclic'		: 	true,
		'padding'		: 	0,
		'margin'		: 	40,
		'width'			: 	960,
		'height'		: 	640,
		'hideOnOverlayClick': false
	});
	
	$('#fb').hover (function()
	{
		$(this).animate ({right: '-15px'}, 150);
	}, function()
	{
		$(this).animate ({right: '-25px'}, 150);
	});
	
	$("img.lazy").lazyload({ 
	    effect : "fadeIn"
	});
	
	$('.content-wrap a').hover (function ()
	{
		$(this).animate ({color: '#ccc', borderBottomColor: '#ccc'}, 200);
	}, function()
	{
		$(this).animate ({color: '#74C043', borderBottomColor: '#74C043'}, 200);
	});

	$('.menu li:not(.current-menu-item) a').hover (function ()
	{
		$(this).css ('border-bottom', '1px dotted #e0e0e0');
		$(this).animate ({color: '#74C043', borderBottomColor: '#74C043'}, 200);
	}, function()
	{
		$(this).animate ({color: '#898989', borderBottomColor: '#e0e0e0'}, 200, function()
		{
			$(this).css ('border-bottom', 'none');
		});
	});
});

