/**
 * @author .h0rsT
 */
var audionym;
if (!audionym) {
	audionym = {}
}
$.extend(audionym, {	
    init: function() {		
		
		//disclaimer lightbox
		jQuery('.disclaimer').click(function(){
			lightbox.create({type:'disclaimer', path:this.href});
			return false;
		});

	    //impressum lightbox
		jQuery('.imprint').click(function(){ 
			lightbox.create({type:'imprint'});
			return false;
		});	 
		
		jQuery('li.more').click(function(){
			if(jQuery(this).hasClass('follow')){
				return true;
			} else {
				jQuery(this).find('a.more').css('display','none');
				jQuery(this).find('.dspnone').fadeIn();			
				return false;
			}
		});
		
		//lightbox-call
		jQuery('.panel img').click(function(){ 
			if (jQuery(this).hasClass('mp3')) {
				element = jQuery(jQuery(this)).parent().find(".dspnone").find("a").attr('href')
				lightbox.create({
					type: 'mp3',
					path: element
				});
			}
			else {
				element = jQuery(jQuery(this)).parent().find(".dspnone").html();
				lightbox.create({ 
					type: 'youtube',
					path: element
				});
			}
		});
		
    },
	contentFader: function(){
		alert("contentFader")
		$('.content-fader li').click( function() { 				
			if ($(this).find("a").hasClass("active")) {
				return false;
			} else {
				headline = $(this).find("span").html();
				$('.content-main h2').html(headline);
				element = $(this).find("a").attr("href");
				$('.content-fader li a').removeClass("active");
				element = element.substr(1, 6);
				$('#cover-container li').fadeOut("slow");
				$('#' + element).fadeIn("slow");
				$(this).find("a").addClass("active");
				return false;
			}
		});
	}
})