

function aktivstart(id , error)  {

 document.getElementById(id).className = 'menuactive';
 document.getElementById(error).className = 'hide_error';
} 


//Linkstyle ändern

/* IE PNG fix multiple filters */
(function ($) {
    if (!$) return;
    $.fn.extend({
        fixPNG: function(sizingMethod, forceBG) {
                if (!($.browser.msie)) return this;
                var emptyimg = "clear.gif"; //Path to empty 1x1px GIF goes here
                sizingMethod = sizingMethod || "scale"; //sizingMethod, defaults to scale (matches image dimensions)
                this.each(function() {
                        var isImg = (forceBG) ? false : jQuery.nodeName(this, "img"),
                                imgname = (isImg) ? this.src : this.currentStyle.backgroundImage,
                                src = (isImg) ? imgname : imgname.substring(5,imgname.length-2);
                        this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + sizingMethod + "')";
                        if (isImg) this.src = emptyimg;
                        else this.style.backgroundImage = "url(" + emptyimg + ")";
                });
                return this;
        }
    });
})(jQuery);



function aktiv(id)  {
document.getElementById('linkstart').className = 'menu';
document.getElementById('linkabout').className = 'menu';
document.getElementById('linkfaq').className = 'menu';	
 document.getElementById('linkspenden').className = 'menu';	
 document.getElementById('linkimpress').className = 'menu';	
 
 document.getElementById(id).className = 'menuactive';
 //document.getElementById(id).style.background = 'black';
} 
	
// Bilderwechsel rechts	
	$(document).ready(function() {

		$('#s2').cycle({ 
    		fx:     'fade', 
    		speed:   2000, 
    		timeout: 5500, 
    		prev:   '#prev2', 
   	 		next:   '#next2', 
   	 		pause:   0, 
   	 		random:  true,
   	 		cleartype: true, cleartypeNoBg: true
   	 		
		});
	});

//Bilderwechsle Sternchen
	$(document).ready(function() {

		$('#s3').cycle({ 
    		fx:     'fade', 
    		speed:   1000, 
    		timeout: 4000, 
    		prev:   '#prev2', 
   	 		next:   '#next2', 
   	 		pause:   0,
   	 		cleartype: true, cleartypeNoBg: true

		});
	});
	

          
//Einausblenden Inhalt

res = false;
res = 'start';

$(document).ready(function() {
	
	
	
	//alle ausblenden ausser Start
	$("#faq").hide();
	$("#impress").hide();
	$("#spenden").hide();
	$("#about").hide();

   
 // #####################################   STArT ###############################  
  $("#linkstart").click(function() {

        if (res == 'impress'){

				$("#impress").fadeOut("normal", function() {
    								$("#start").fadeIn("normal"); 
    								
    								});
    	}
    		
    		
        if (res == 'faq'){

				$("#faq").fadeOut("normal", function() {
    								$("#start").fadeIn("normal"); 
    								
    								});
    	}
    	
    	if (res == 'spenden'){

				$("#spenden").fadeOut("normal", function() {
    								$("#start").fadeIn("normal"); 
    								
    								});
    	}
    		
    	if (res == 'about'){

				$("#about").fadeOut("normal", function() {
    								$("#start").fadeIn("normal"); 
    								
    								});
    	}
    	res = 'start';
 	 });
  // #####################################   About ###############################  
  $("#linkabout").click(function() {

        if (res == 'impress'){

				$("#impress").fadeOut("normal", function() {
    								$("#about").fadeIn("normal"); 
    								
    								});
    	}
    		
    		
        if (res == 'faq'){

				$("#faq").fadeOut("normal", function() {
    								$("#about").fadeIn("normal"); 
    								
    								});
    	}
    	
    	if (res == 'start'){

				$("#start").fadeOut("normal", function() {
    								$("#about").fadeIn("normal"); 
    								
    								});
    	}
    	if (res == 'spenden'){

				$("#spenden").fadeOut("normal", function() {
    								$("#about").fadeIn("normal"); 
    								
    								});
    	}
    	res = 'about';
 	 });
 	 	 
 // #####################################   Spenden ###############################  
  $("#linkspenden").click(function() {

        if (res == 'impress'){

				$("#impress").fadeOut("normal", function() {
    								$("#spenden").fadeIn("normal"); 
    								
    								});
    	}
    		
    		
        if (res == 'faq'){

				$("#faq").fadeOut("normal", function() {
    								$("#spenden").fadeIn("normal"); 
    								
    								});
    	}
    	
    	if (res == 'start'){

				$("#start").fadeOut("normal", function() {
    								$("#spenden").fadeIn("normal"); 
    								
    								});
    	}
    	if (res == 'about'){

				$("#about").fadeOut("normal", function() {
    								$("#spenden").fadeIn("normal"); 
    								
    								});
    	}
    	res = 'spenden';
    	

 	 });

 	 
 // #####################################   FAQ ###############################
 $("#linkfaq").click(function() {
 	
 	
   		if (res == 'start'){

				$("#start").fadeOut("normal", function() {
    								$("#faq").fadeIn("normal"); 
    								
    								});
    	}
    		
    		
        if (res == 'impress'){

				$("#impress").fadeOut("normal", function() {
    								$("#faq").fadeIn("normal"); 
    								
    								});
    	}
    	if (res == 'spenden'){

				$("#spenden").fadeOut("normal", function() {
    								$("#faq").fadeIn("normal"); 
    								
    								});
    	}
    	if (res == 'about'){

				$("#about").fadeOut("normal", function() {
    								$("#faq").fadeIn("normal"); 
    								
    								});
    	}
    	res = 'faq';
 	 });
  

 
 // #####################################   IMPRESSUM ###############################	 
   $("#linkimpress").click(function() {
   	
   	
   		if (res == 'start'){

				$("#start").fadeOut("normal", function() {
    								$("#impress").fadeIn("normal"); 
    								
    								});
    	}
    		
    		
        if (res == 'faq'){

				$("#faq").fadeOut("normal", function() {
    								$("#impress").fadeIn("normal"); 
    								
    								});
    	}
    	if (res == 'spenden'){

				$("#spenden").fadeOut("normal", function() {
    								$("#impress").fadeIn("normal"); 
    								
    								});
    	}
    	if (res == 'about'){

				$("#about").fadeOut("normal", function() {
    								$("#impress").fadeIn("normal"); 
    								
    								});
    	}
    	res = 'impress';
    	
 	 });
// #####################################   Spendometer ###############################  
  $("#spendometer").click(function() {

        if (res == 'impress'){

				$("#impress").fadeOut("normal", function() {
    								$("#spenden").fadeIn("normal"); 
    								
    								});
    	}
    		
    		
        if (res == 'faq'){

				$("#faq").fadeOut("normal", function() {
    								$("#spenden").fadeIn("normal"); 
    								
    								});
    	}
    	
    	if (res == 'start'){

				$("#start").fadeOut("normal", function() {
    								$("#spenden").fadeIn("normal"); 
    								
    								});
    	}
    	if (res == 'about'){

				$("#about").fadeOut("normal", function() {
    								$("#spenden").fadeIn("normal"); 
    								
    								});
    	}
    	res = 'spenden';
 	 });


  
});
	
