

//jQuery
$(document).ready(function() {

//$("a.active").prepend("test");


//External links
$('a[rel="external"]').attr('target','_blank');


/* About Andrew */
$("a.about").click(function(){
	$("#about").slideToggle({
		easing: "easeOutQuad"
	});
	return false;
});

$("a.close").click(function(){
	$("#about").slideToggle({
		easing: "easeOutQuad"
	});
	return false;
});

$("a.next").click(function(){
	return false;
});



/* scroller */


// main vertical scroller
$("#scroller").scrollable({

	// basic settings
	vertical: true,
	size: 1,
//	easing: "easeOutBounce",
	easing: "easeOutQuad",
	clickable: false,
	speed: 500,
	

	
//	loop: true,
	//items: '.itemwebsites',
	//navi:'#portfolio .naviwebsites'


	// up/down keys will always control this scrollable
	keyboard: 'static',

	// assign left/right keys to the actively viewed scrollable
	onSeek: function(event, i) {
		horizontal.scrollable(i).focus();
	}

// main navigator 
}).navigator("#scrollerNav");

// horizontal scroller
var horizontal = $(".scrollable").scrollable({

	size: 1,
	easing: "easeOutQuad",
	speed: 500,
//	interval: 20000,
	clickable: false
//	autoplay: true
	
}).circular().navigator(".navi");


// when page loads setup keyboard focus on the first horzontal scrollable
horizontal.eq(0).scrollable().focus();


});



  