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

        // select #flowplanes and make it scrollable. use circular and navigator plugins
        $("#display-schedule").scrollable({

	size: 1,
	
	onSeek: function() {
	
	// $('#display-schedule div.items').find('div.calendar:not(.cloned)').eq(this.getPageIndex()).attr('divheight');
	
	$('#display-schedule').css('height', $('#display-schedule div.items').find('div.calendar:not(.cloned)').eq(this.getPageIndex()).attr('divheight'));
	
	/*  console.log( $('#display-schedule div.items').find('div.calendar:not(.cloned)') );
	
		console.log(this.getPageIndex()); */
	
	}
	
	}).circular().navigator({
	
		// select #flowtabs to be used as navigator
	navi: "#tabs",
	
	// 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'
	
	});
});


