// wait until document is fully scriptable
$(document).ready(function() {

	// select #gallerypanes and make it scrollable. use circular and navigator plugins
	$("#gallerypanes").scrollable({size: 1}).circular().navigator({

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

		// 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'

	});
	
	
	// select #gallerypanes and make it scrollable. use circular and navigator plugins
	$("#emailpanes").scrollable({size: 1, next: ".nextEmail", prev: ".prevEmail", clickable: false}).circular();
});
