// Activate Sliding Navigation
$('#navigation').spasticNav();

// Sliding Container Settings
$(function() {

	// select #flowplanes and make it scrollable. use circular and navigator plugins
	$("#slidercontainer").scrollable({ circular: false, mousewheel: false, keyboard: false, vertical: false, easing:"swing", touch:false, speed: 500 }).navigator({

		// select #flowtabs to be used as navigator
		navi: "#navigation",

		// select A tags inside the navigator to work as items (not direct children)
		naviItem: 'a',

		// assign "current" class name for the active A tag inside navigator
		activeClass: 'current',

		// make browser's back button work
		history: true
		

	});
});



$(document).ready(function() {
	//Setup all images
	if($("#image1").length > 0) {
		$("#image1").rbFullscreen();
	}
	/*
	if($("#image2").length > 0) {
		$("#image2").rbFullscreen();
	}

	
	if($("#image3").length > 0) {
		$("#image3").rbFullscreen();
	}

	
	if($("#image4").length > 0) {
		$("#image4").rbFullscreen();
	}

	
	if($("#image5").length > 0) {
		$("#image5").rbFullscreen();
	}*/

	
	$(window).resize(function(){
		$.fn.rbFullscreenResize();
	});

	//resize all images
	$.fn.rbFullscreenResize();

});
