// load all inline scripts here




// ------------------------------------------------------------------ Gallery

$(document).ready(function () {
	$('.gal-item img').asynchImageLoader({placeholder : "assets/templates/site/images/loading-thumb.gif"});
});


// ------------------------------------------------------------------ Fancybox

$(document).ready(function() {
	$("a#example2").fancybox({
		'overlayShow'	: false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic'
	});
	
	$("a#inline").fancybox({
			'hideOnContentClick': true,
			'overlayShow'	: false,
			'transitionIn'	: 'elastic',
			'transitionOut'	: 'elastic'
			});
});


// ------------------------------------------------------------------ slider

$(window).load(function() {
	$('.blueberry').blueberry();
});



// ------------------------------------------------------------------ Color

$(function(){
	$('.button').hover(function(){$(this).stop().animate({backgroundColor:'#dcdcdc'},300)},function(){$(this).stop().animate({backgroundColor:'#573426'})})
	
	$('.button_team').hover(function(){$(this).stop().animate({backgroundColor:'#dcdcdc'},300)},function(){$(this).stop().animate({backgroundColor:'#573426'})})

})

// ------------------------------------------------------------------ Toggler


	$(document).ready(function(){
		$('div.toggler-1').toggleElements( );
		$('ul.toggler-2').toggleElements( );
		$('div.toggler-3').toggleElements( { fxAnimation:'show', fxSpeed:'slow', className:'toggler2' } );
		$('ul.toggler-4').toggleElements( { fxAnimation:'show', fxSpeed:'slow', className:'toggler2' } );
		$('div.toggler-5').toggleElements( { fxAnimation:'show', fxSpeed:'slow', className:'toggler2' } );
		$('ul.toggler-6').toggleElements( { fxAnimation:'fade', fxSpeed:1000, className:'toggler' } );
		$('div.toggler-7').toggleElements( { fxAnimation:'fade', fxSpeed:1000, className:'toggler' } );
		$('ul.toggler-8').toggleElements( { fxAnimation:'show', fxSpeed:'fast', className:'none' } );
		$('fieldset.toggler-9').toggleElements( { fxAnimation:'show', fxSpeed:1000, className:'toggler', onClick:doOnClick, onHide:doOnHide, onShow:doOnShow } );
		$('div.toggler-10').toggleElements( );
	});
	
function doOnClick() {
	alert('callback: onClick');
}
function doOnHide() {
	alert('callback: onHide');
}
function doOnShow() {
	alert('callback: onShow');
}








