Shadowbox.init({
	players: ["iframe"]
});

$(document).ready(function() {

// cycle 
	$('div.home-cycle').cycle({ 
			fx:		'scrollLeft', 
			speed:		300,
			delay:		200,
			timeout:	5000,
			pause:		1,
			random:		1
	});

// supersized2
	$('#supersize').supersized(); 

// navigation
	$('#nav li a').mouseover(function() {
		$(this).stop().animate({
			'backgroundPosition': '0 0'
		}, 300, 'easeInOutCubic')
	}).mouseout(function() {
		$(this).stop().animate({
			'backgroundPosition': '0 6px'
		}, 300, 'easeInOutCubic')
	});

	$('#nav li a#nav-contactus').mouseover(function() {
		$(this).stop().animate({
			'backgroundPosition': '5px 3px'
		}, 250, 'easeInOutCubic')
	}).mouseout(function() {
		$(this).stop().animate({
			'backgroundPosition': '0 0'
		}, 250, 'easeInOutCubic')
	});

	$('#header-title').mouseover(function() {
		$(this).stop().animate({
			'backgroundPosition' : '0 0'
		}, 300, 'easeInOutCubic')
	}).mouseout(function() {
		$(this).stop().animate({
			'backgroundPosition' : '0 -20px'
		}, 300, 'easeInOutCubic')
	});

	$('#home-upcomingevents ul li a').mouseover(function() {
		$(this).parent().css({
			'backgroundPosition' : '0 center'
		})
	}).mouseout(function() {
		$(this).parent().css({
			'backgroundPosition' : '-400px center'
		})
	});

});

/* <3<3<3 */