$(document).ready(function() {
	$('#recent').fadeIn(1000);
	$(".nav, .head").localScroll( {
		target : ".scroll_part",
		queue : true,
		axis: 'x',
		duration : 0
		
	});         
	$(".drop_up").localScroll( {
		target : ".footer_scroll",
		queue : true,
		duration : 0,
		axis: 'x'
	}); 
	$('#nav_recent').click(function() {
		$('#recent').fadeIn(1000);
		$('#macro, #nature,#people,#animals').fadeOut('fast');
	});
	$('.logo').click(function() {
		$('#recent').fadeIn(1000);
		$('#macro, #nature,#people,#animals').fadeOut('fast');
	});
	$('#nav_macro').click(function() {
		$('#macro').fadeIn(1000);
		$('#recent, #nature, #people, #animals').fadeOut('fast');
	});
	$('#nav_animals').click(function() {
		$('#animals').fadeIn(1000);
		$('#recent, #nature, #people, #macro').fadeOut('fast');
	});
	$('#nav_people').click(function() {
		$('#people').fadeIn(1000);
		$('#carusel').jcarousel({showArrows : false});
		$('#recent, #nature, #macro, #animals').fadeOut('fast');
	});
	$('#nav_nature').click(function() {
		$('#nature').fadeIn(1000);
		$('#recent, #macro, #people, #animals').fadeOut('fast');
	});
	$('a.zoom').fancyzoom( {
		Speed : 400,
		showoverlay : false
	});
	$('#recent a.zoom').click(function(){
		$('#recent a.zoom').removeClass('tyk');
		$(this).addClass('tyk');
	});
	$('#macro a.zoom').click(function(){
		$('#macro a.zoom').removeClass('tyk');
		$(this).addClass('tyk');
	});
	$('#people a.zoom').click(function(){
		$('#people a.zoom').removeClass('tyk');
		$(this).addClass('tyk');
	});
	$('#nature a.zoom').click(function(){
		$('#nature a.zoom').removeClass('tyk');
		$(this).addClass('tyk');
	});
	$('#animals a.zoom').click(function(){
		$('#animals a.zoom').removeClass('tyk');
		$(this).addClass('tyk');
	});
	$('.nav a').click(function() {
		$('.nav a').removeClass('current');
		$(this).addClass('current');
	});
	$('.logo').click(function() {
		$('.nav a').removeClass('current');
		$('#nav_recent').addClass('current');
	});
	$('#drop_about').click(function() {
		$('.drop_nav li').removeClass('active');
		$('#drop_about').addClass('active');
	});	
	$('#drop_contact').click(function() {
		$('.drop_nav li').removeClass('active');
		$('#drop_contact').addClass('active');
	});
	$('#drop_about').click(function() {
		$('.drop_up').animate({'top':'400px'}, 1000);
		$('#about').fadeIn(1000);
		$('#about .pane').jScrollPane( {
			showArrows : true
		});
		$('#contacts').fadeOut(1000);
		$('#hide').fadeIn(1000);
	});
	
	$('#drop_contact').click(function() {
		$('.drop_up').animate({'top':'400px'}, 1000);
		$('#contacts').fadeIn(1000);
		$('#about').fadeOut('fast');
		$('#hide').fadeIn(1000);
	});
	$('#hide').click(function(){
		$('.drop_up').animate({'top':'578px'}, 1000);
		$('.drop_nav li').removeClass('active');
		$('#about').fadeOut('fast');
		$('#contacts').fadeOut('fast');
		$('#hide').fadeOut(1000);
		});
	Cufon.replace('.contact_by span', {
		fontFamily : 'Standart',
		fontSize : '12px'
	});
	Cufon.replace('.contact_form p', {
		fontFamily : 'Standart',
		fontSize : '12px'
	});
	Cufon.replace('.copyright', {
		fontFamily : 'Standart',
		fontSize : '12px'
	});


});
