$(document)
.ready(
		function() {
			$.localScroll.defaults.axis = 'xy';

			$('.nav_ul, .footer ul').localScroll( {
				target : '.scroll_part',
				duration : 0,
				axis : 'x'
			});
			$('#home .home_left').animate( {
				'left' : '0px'
			}, {
				duration : 600,
				easing : 'easeOutBounce'
			});
			$('#home .home_right').animate( {
				'right' : '0px'
			}, {
				duration : 600,
				easing : 'easeOutBounce'
			});
			$('.nav_ul li').click(function() {
				$('.nav_ul li').removeClass('active');
				$(this).addClass('active');
			});
			$('#home .pane').jScrollPane( {
				showArrows : true
			});
			$('#band .pane').jScrollPane( {
				showArrows : true
			});
			$('#photos .pane').jScrollPane( {
				showArrows : true
			});
			
			$('#thumbs').galleriffic( {
				imageContainerSel : '#slideshow'
			});
			$("#nav_home a, #logo a, #f_home a").click(function() {
				$('.home_left').animate( {
					'left' : '0px'
				}, {
					duration : 600,
					easing : 'easeOutBounce'
				});
				$('.home_right').animate( {
					'right' : '0px'
				}, {
					duration : 600,
					easing : 'easeOutBounce'
				});
			});
			$(
			'#nav_band a, #nav_music a, #nav_photos a, #nav_contacts a, #nav_blog a, #f_band a, #f_music a, #f_photos a, #f_contacts a, #f_blog a')
			.click(function() {
				$('.home_left').animate( {
					'left' : '-550px'
				}, {
					duration : 0
				});
				$('.home_right').animate( {
					'right' : '-550px'
				}, {
					duration : 0
				});
			});
			$("#nav_band a, #f_band a").click(function() {
				$('#band .band_left').animate( {
					'left' : '0px'
				}, {
					duration : 600,
					easing : 'easeOutBounce'
				});
				$('#band .band_right').animate( {
					'right' : '0px'
				}, {
					duration : 600,
					easing : 'easeOutBounce'
				});
			});
			$(
			'#nav_home a, #logo a, #nav_music a, #nav_photos a, #nav_contacts a, #nav_blog a, #f_home a, #f_music a, #f_photos a, #f_contacts a, #f_blog a')
			.click(function() {
				$('#band .band_left').animate( {
					'left' : '-580px'
				}, {
					duration : 0
				});
				$('#band .band_right').animate( {
					'right' : '-385px'
				}, {
					duration : 0
				});
			});
			$("#nav_photos a, #f_photos a").click(function() {
				$('.photos_column').animate( {
					'top' : '0px'
				}, {
					duration : 600,
					easing : 'easeOutBounce'
				});
			});
			$(
			'#nav_home a, #logo a, #nav_music a, #nav_band a, #nav_contacts a, #nav_blog a, #f_home a, #f_music a, #f_band a, #f_contacts a, #f_blog a')
			.click(function() {
				$('.photos_column').animate( {
					'top' : '-400px'
				}, {
					duration : 0
				});
			});
			$("#nav_music a, #f_music a").click(function() {
				$('#music .band_left').animate( {
					'left' : '0px'
				}, {
					duration : 600,
					easing : 'easeOutBounce'
				});
				$('#music .band_right').animate( {
					'right' : '0px'
				}, {
					duration : 600,
					easing : 'easeOutBounce'
				});
			});
			$(
			'#nav_home a, #logo a, #nav_band a, #nav_photos a, #nav_contacts a, #nav_blog a, #f_home a, #f_band a, #f_photos a, #f_contacts a, #f_blog a')
			.click(function() {
				$('#music .band_left').animate( {
					'left' : '-580px'
				}, {
					duration : 0
				});
				$('#music .band_right').animate( {
					'right' : '-385px'
				}, {
					duration : 0
				});
			});
			$("#nav_contacts a, #f_contacts a").click(function() {
				$('.contacts_left').animate( {
					'left' : '0px'
				}, {
					duration : 600,
					easing : 'easeOutBounce'
				});
				$('.contacts_right').animate( {
					'right' : '0px'
				}, {
					duration : 600,
					easing : 'easeOutBounce'
				});
			});
			$(
			'#nav_home a, #logo a, #nav_band a, #nav_photos a, #nav_music a, #nav_blog a, #f_home a, #f_band a, #f_photos a, #f_music a, #f_blog a')
			.click(function() {
				$('.contacts_left').animate( {
					'left' : '-400px'
				}, {
					duration : 0
				});
				$('.contacts_right').animate( {
					'right' : '-700px'
				}, {
					duration : 0
				});
			});
			Cufon.replace('.title', {
				fontFamily : 'GrotzecHdCn'
			});
			Cufon.replace('.more', {
				fontFamily : 'GrotzecHdCnBlack'
			});
		});
