	
function c4_showFuncBar() {
			if(Cookie.get("showFuncbar", 0)) {
				Cookie.set('showFuncbar', 1);
				
				$('c4_showFuncBar').hide();
				$('c4_sb_logoBox').hide();	
				$('c4_body').setStyle({top: "15px"});
				$('c4_footer').setStyle({top: "10px"});
				//$('c4_sb_smallBox').show();
				$('c4_hideFuncBar').show();
				$('c4_sb_messageBoxHolder').setStyle({top: "4px"});
				$('c4_sb_iconMenu').setStyle({top: "4px"});				
				$('c4_sb_leftMenu').setStyle({top: "5px"});				
				$('c4_sb_zusatzMenu').setStyle({top: "11px"});
				// $('c4_sb_newsletterBox').setStyle({top: "54px"});
	
				 new Effect.Appear($('c4_funcBar'), {duration: 1.5});
				
				// c4_activateEngine(Cookie.get('activeEngine'));
			}
}

function c4_hideFuncBar(animate) {
				if(animate == null) { animate = true; }
				
				Cookie.set('showFuncbar', 0);
	
				$('c4_fb_charitySelectionList').hide();
			   	$('c4_fb_partnerSelectionList').hide();
	
				$('c4_funcBar').hide();
				$('c4_hideFuncBar').hide();
				//$('c4_sb_smallBox').hide();
				$('c4_body').setStyle({top: "2px"});
				$('c4_footer').setStyle({top: "10px"});
				$('c4_showFuncBar').show();
				$('c4_sb_messageBoxHolder').setStyle({top: "18px"});
				$('c4_sb_iconMenu').setStyle({top: "18px"});
				$('c4_sb_leftMenu').setStyle({top: "19px"});
				$('c4_sb_zusatzMenu').setStyle({top: "25px"});
				// $('c4_sb_newsletterBox').setStyle({top: "33px"});
				
				new Effect.Appear($('c4_sb_logoBox'), {duration: (animate ? 1.5 : 0)});
}
		
function c4_fb_mouseover(id,bild)
{
	$(id).setStyle({
		//backgroundImage: 'url(./templates/images/de/website/fb_charitySelector_active.png)'
		//backgroundImage: bild
	});
}

/*function c4_sb_zusatzMenuClick(id)
{
	if ($(id + '_content').visible()) {
		new Effect.SlideUp(id + '_content', { duration: 0.5 });
		$(id).writeAttribute('src', dirGPackLang + 'menus/' + id + '_inactive.png');
	} 
	else {
		new Effect.SlideDown(id + '_content', { duration: 0.5 });
		$(id).writeAttribute('src', dirGPackLang + 'menus/' + id + '_active.png');
	}
}*/

function start_slideshow(start_frame, end_frame, delay) {
	var frame = start_frame + Math.floor(Math.random()*(0.99+end_frame-start_frame));
	Effect.Appear('c4_sb_messageBoxContent' + frame );
	setTimeout(switch_slides(frame,start_frame,end_frame, delay), delay);
}
                                               
function switch_slides(frame, start_frame, end_frame, delay) {
		return (function() {
			Effect.Fade('c4_sb_messageBoxContent' + frame);
			if (frame == end_frame) { frame = start_frame; } else { frame = frame + 1; }
			setTimeout("Effect.Appear('c4_sb_messageBoxContent" + frame + "');", 850);
			setTimeout(switch_slides(frame,start_frame,end_frame, delay), delay + 850);	
		})
}


if (activeMenu != 17) {	
Event.observe(window, 'load', function() {
	
		    // zusatzMenu
		    //Event.observe('c4_sb_zusatz2', 'click', function(){
		    //    addthis_open(this, '', 'http://www.clicks4charity.net', 'clicks4charity. Die neue Art zu spenden.');
		    //    $('c4_sb_zusatz2').writeAttribute('src', dirGPackLang + 'menus/c4_sb_zusatz2_active.png');
		    //});
		    //Event.observe('c4_sb_zusatz2', 'mouseover', function(){
		    //    addthis_open(this, '', 'http://www.clicks4charity.net', 'clicks4charity. Die neue Art zu spenden.');
		    //    $('c4_sb_zusatz2').writeAttribute('src', dirGPackLang + 'menus/c4_sb_zusatz2_active.png');
		    //});
		    //Event.observe('c4_sb_zusatz2', 'mouseout', function(){
		    //    addthis_close();
		    //    $('c4_sb_zusatz2').writeAttribute('src', dirGPackLang + 'menus/c4_sb_zusatz2_inactive.png');
		    //});
		    
		    /*Event.observe('c4_sb_zusatz1', 'click', function(){
		        c4_sb_zusatzMenuClick('c4_sb_zusatz1')
		    });*/
		    
		    //if (activeMenu == 17) $('c4_fb_enginesBox').hide();

		    // FuncBar On/Off
		    Event.observe('c4_showFuncBar', 'click', function(){
				  c4_showFuncBar();
		    });
		    Event.observe('c4_hideFuncBar', 'click', function(){
					c4_hideFuncBar();
		    });
		    
		    start_slideshow(2,3,10000); 


// INITIALISIERUNG

			if(Cookie.get('showFuncbar') == null) {
				Cookie.set('showFuncbar', 1);
			}

			if(Cookie.get('showFuncbar') == 0) {
				c4_hideFuncBar(false);
			} // IE kann unsichtbaren Elementen keinen Focus geben 
			else {
				c4_activateEngine(Cookie.get('activeEngine'));
				}
			
			//if (Prototype.Browser.IE) supersleight.init(); 

			/* Der Blog wird im IFRAME getrackt */
			//if (activeMenu != 8) {
			//	_uacct = "UA-2277128-1";
			//	urchinTracker();
			//}
			
			//if (mmid = 3) PartnerHeight();

		});
}
	/*
				var testimonialSlideshow = new SlideShow($('testimonialSlides'),{
				 slides: [1,2],
				 prefix: dirGPackLang + 'testimonials/',
				 suffix: '.jpg',
				 delay: 6
				});
				testimonialSlideshow.start();
	*/
	
	var RecaptchaOptions = {
				theme : 'white',
   				lang : 'de'
				};



