// has to be outside document.ready
$('html').attr('id', 'js');

$(function(){ 
	
	/* Text replace */
        Cufon.replace('#coaching h1');
        Cufon.replace('.ctMain h1');
	Cufon.replace('.ctMain h2');
        Cufon.replace('h2.navheadings');
	Cufon.replace('.ctMain h3');
	Cufon.replace('.ctColumn h3');
        Cufon.replace('h3.homeH3');
	
	$("body:not('#index') .head a, #coaching .head").append('<p><a title="Navigation ausblenden" class="toggleNav" href="#">&ndash;</a></p>');	
	
    $(".page .head p a.toggleNav").toggle(
      function () {
        $('.nav').fadeOut();
		$(this).text('+');
		$(this).attr('title', 'Navigation einblenden');
      },
      function () {
        $('.nav').fadeIn();
		$(this).text('-');
		$(this).attr('title', 'Navigation ausblenden');
      }
    );

    $("a.images, a.artist").fancybox();
	
    $(".page a.showreel").toggle(
      function () {
        $('.flvplayer').fadeIn();
		$(this).attr('title', 'Showreel ausblenden');
      },
      function () {
        $('.flvplayer').fadeOut();
		$(this).attr('title', 'Showreel einblenden');
      }
    );


	$('a.more').toggle(function() {
		$('.moretext').show();
	}, function() {
		$('.moretext').hide();
	});
	
	
});
