//cross-fade warten-index
$(window).load(function() {
 // executes when complete page is fully loaded, including all frames, objects and images
	 $('article#klicken .section-content h1#warten').delay(500).fadeOut(2000);
	 $('article#klicken .section-content h1#clicken').delay(500).fadeIn(2000);
});

// replace 'weiter' text with 'zuletzt' on demnächst
$(document).ready(function($) {
	$('#demnaechst .access ul.nav-menu li.nav-item:first-child a').replaceWith('<a href="#zuletzt" class="weiter">Zuletzt</a>');
});

// replace 'zurück' text with 'demnächst' on zuletzt
$(document).ready(function($) {
	$('#zuletzt .access ul.nav-menu li.nav-item:first-child a').replaceWith('<a href="#demnaechst" class="auf-mass-gefertigt">Demnächst</a>');
});

// the scrolling stuff
jQuery(function($) {
    $.localScroll.defaults.axis = 'xy';   
    $.localScroll({
        duration:3000,
        hash:true,
    });
});

// replace title with seite + number
jQuery(function($) {
//ahp lesen
	$('article#atemkontrolle-hustenanfall-pheromoncheck-2 h2.section-title a').text('Seite 2');
	$('article#atemkontrolle-hustenanfall-pheromoncheck-3 h2.section-title a').text('Seite 3');
	$('article#atemkontrolle-hustenanfall-pheromoncheck-4 h2.section-title a').text('Seite 4');
	$('article#atemkontrolle-hustenanfall-pheromoncheck-5 h2.section-title a').text('Seite 5');
//ethische anarchie
	$('article#ethische-anarchie-von-martin-hinze-2 h2.section-title a').text('Seite 2');
	$('article#ethische-anarchie-von-martin-hinze-3 h2.section-title a').text('Seite 3');
//yoga aktuell
	$('article#interview-mit-mathias-tietke-fuer-yoga-aktuell-ausgabe-juni-juli-2010-2 h2.section-title a').text('Seite 2');	$('article#interview-mit-mathias-tietke-fuer-yoga-aktuell-ausgabe-juni-juli-2010-3 h2.section-title a').text('Seite 3');	$('article#interview-mit-mathias-tietke-fuer-yoga-aktuell-ausgabe-juni-juli-2010-4 h2.section-title a').text('Seite 4');
	$('article#interview-mit-mathias-tietke-fuer-yoga-aktuell-ausgabe-juni-juli-2010-5 h2.section-title a').text('Seite 5');
//ma lesen
	$('article#ma-15-idiosyncrasy-sin-x-ly-fx2-lesen-2 h2.section-title a').text('Seite 2');
//rope tech
	$('article#rope-techniques-2 h2.section-title a').text('Seite 2');
//ma bilder
	$('article#ma-15-idiosyncrasy-sin-x-ly-fx-bilder-2 h2.section-title a').text('Seite 2');
	$('article#ma-15-idiosyncrasy-sin-x-ly-fx-bilder-3 h2.section-title a').text('Seite 3');
//y+b
	$('article#yoga-und-bondage-2 h2.section-title a').text('Seite 2');
	$('article#yoga-und-bondage-3 h2.section-title a').text('Seite 3');
	$('article#yoga-und-bondage-4 h2.section-title a').text('Seite 4');
//brussels 2010
	$('article#workshop-group-brussels-2010-2 h2.section-title a').text('Seite 2');
	$('article#workshop-group-brussels-2010-3 h2.section-title a').text('Seite 3');
//london
	$('article#london-festival-of-japanese-rope-art-2010-2 h2.section-title a').text('Seite 2');
	$('article#london-festival-of-japanese-rope-art-2010-3 h2.section-title a').text('Seite 3');
	$('article#london-festival-of-japanese-rope-art-2010-4 h2.section-title a').text('Seite 4');
//sang bleu
	$('article#sang-bleu-issue-v-2 h2.section-title a').text('Seite 2');
	$('article#sang-bleu-issue-v-3 h2.section-title a').text('Seite 3');
	$('article#sang-bleu-issue-v-4 h2.section-title a').text('Seite 4');
});

// columnise demnächst for internet explorer
jQuery(function($) {
	if ($.browser.msie && parseInt($.browser.version) < 10) {
		$('.events .section-content').columnize ({
			columns: 2
		});
	}
});








