function getffAcx() {



$$("div.fadecon").each(function (e,i) {
     $$("div.fadecon")[i].set('id','ffacx'+i);
     e.setStyles({position: "relative", 'width': '100%'});
	   var ic=0;
    var hh = 0;
    var plinks ="";
	   
	 	$$("#ffacx"+i+" .fadediv").each(function (ey,yy) {
	 	   ey.fade('out');
	 	   ey.setStyles({position: "absolute",top:0,left:0, 'width': '100%'});
	     ic++;
	     plinks=plinks+'<a href="#" class="fftogl">'+ic+'</a> / ';

	 });
	 var addnavpb  = new Element('div', {html: '<p>Seite '+plinks+'</p>', id: 'toggl'+i});
	 addnavpb.inject($$("div.fadecon")[i], 'before');
	 	 
	 new Fx.Morph($$("div.fadecon")[i]).start({'height':$$("#ffacx"+i+" .fadediv")[0].getStyle('height').toInt()}).chain(function() {
											$$("#ffacx"+i+" .fadediv")[0].fade('in');
											$$("#ffacx"+i+" .fadediv")[0].addClass("targetz");
							}).addEvent("onComplete", function() {
              
              	 $$("#toggl"+i+" .fftogl").each(function (exy,yxy) {
                
                	 exy.addEvent("click", function(event) { 
                	       event.stop();
                	       new Fx.Morph($$("div.fadecon")[i]).start({'height':$$("#ffacx"+i+" .fadediv")[yxy].getStyle('height').toInt()}).chain(function() {
                	       $$("#ffacx"+i+" .targetz").fade('out');
                	       $$("#ffacx"+i+" .fadediv")[yxy].fade('in');
                	       $$("#ffacx"+i+" .fadediv")[yxy].addClass("targetz");
                	       });
                       
                       });
                       
                    });
                    

              }); 
							

	});
	
	
}

window.addEvent('domready', function() {

getffAcx();
 });