jQuery(document).ready(function($) {
    // $() will work as an alias for jQuery() inside of this function



//dims

$('#blackfield').css('opacity',"0");
$('#blackfield').hover(function(){
	$(this).stop(true, false).animate({opacity: "0.9"}, 1500);
	},function(){
	$(this).delay(600).stop(true, false).animate({opacity: "0"}, 15000);

});

$('#pics').hover(function(){
	$('.fullBg').delay(3000).animate({opacity: "0.4"}, 600);
	},function(){
	$('.fullBg').stop(true, false).animate({opacity: "1"}, 1000);

});


//move


$.localScroll.defaults.axis = 'x';
$.localScroll();


//anchor target switcher
/*
var checkit=0;
$('.go.right').click(function(){
	if (checkit == 0) {	$(this).attr('href', '#contact' );	checkit=1;	}
	else if (checkit == 1){	$(this).attr('href', '#blackfield' );	checkit=2;	}
	else if (checkit == 2){	$(this).attr('href', '#pics' );	checkit=0;	}
	});
	
$('.picslink').click(function(){
	if (checkit == 0) {
	$('.go.right').attr('href', '#contact' );
	checkit=1;
}
	});
*/
	
	
	

	
	
	

/*

$('.go.right').hover(function(){
	$('#blackfield').animate({left: "-1300"}, 
	1000);

});

$('.go.left').hover(function(){
	$('#blackfield').animate({left: "0"}, "slow");

});
*/





}); //end of doc ready

