$(document).ready(function() { 

// scroll plugin

$.localScroll({
	offset: 	{top:-150},
	hash: 		true,
	duration: 	1000,
});



// menu rotations

var rotations = new Array('rotate2d', 'rotate4d', 'rotate-3d', 'rotate3d');

$('#header ul li').each(function() {
	
	var rand = Math.round( Math.random() * (rotations.length - 1) );
	
	console.log(this);
	
	$(this).addClass( rotations[rand] );
	
});




// cursor change

$('.slide h4').hover(function() {

	$(this).css('cursor','pointer');

	}, function() {

	$(this).css('cursor','auto');

});


// sliding and hiding content 

$('.slide div').hide();

$('.slide h4').click(function() {

	$('.slide div').slideUp('fast'); 
	$(this).parent('.slide').children('div').slideDown('fast');

});


	




});
