/*
|--------------------------------------------------------------------------
| MeerSite Extras
|--------------------------------------------------------------------------
|
| The function 'newPageExtras' is called after each page load or ajax
| content injection. It dqn contain site specific code that is not
| offered by the MeerSite Core library.
|
| It is safe to remove this file if this additional functionality is not
| required.
|
|--------------------------------------------------------------------------
*/

MeerSite = new Class({

	Extends: MeerSite,
	
	newPageExtras: function(){
		if ($('slidea') && !$('slidea').retrieve('processed')) {
			slides = new MSTabs($('slidea'), {
				siteBase: this.options.siteBase,
				transDuration: 3000,
				autoPlayDelay: 4000,
				showLoading: true,
				supportDir: this.options.supportDir
			});
		}
		if ($('slideb') && !$('slideb').retrieve('processed')) {
			slides = new MSTabs($('slideb'), {
				siteBase: this.options.siteBase,
				transDuration: 3000,
				autoPlayDelay: 4000,
				showLoading: true,
				supportDir: this.options.supportDir,
				autoPlayInitDelay: 6000
			});
		}
		if ($('slidec') && !$('slidec').retrieve('processed')) {
			slides = new MSTabs($('slidec'), {
				siteBase: this.options.siteBase,
				transDuration: 3000,
				autoPlayDelay: 4000,
				showLoading: true,
				supportDir: this.options.supportDir,
				autoPlayInitDelay: 8000
			});
		}
	}
	
});