function testimonials(slideid,imges,divid,picwid,pichei,backgr,sdur,fdur,steps,startwhen,shuffle,showcontr,contr){
	startwhen=(startwhen.toLowerCase()=="y")?1:0;
	shuffle=(shuffle.toLowerCase()=="y")?1:0;
	showcontr=(showcontr.toLowerCase()=="y")?1:0;
	var ftim=fdur*1000/steps;
	var stim=sdur*1000;
	var emax=imges.length;
	var self = this;
	var stopit=1;
	var startim=1;
	var u=0;
	var parr = new Array();
	var ptofade,pnext,factor,mytimeout;
//check if there are at least 3 pictures, elswhere double the array
	if(imges.length<=2){imges=imges.concat(imges);}
//shuffle images if set
  if(shuffle){var i;for(i=0;i<=Math.floor(Math.random()*imges.length);i++){imges.push(imges.shift());}}
  
//push images into array and get things going
	this.b_myfade = function(){
		var a,idakt,paktidakt,ie5exep;
		for(a=1;a<=emax;a++){
			idakt="img_"+slideid+"_"+a;paktidakt=document.getElementById(idakt);
    	ie5exep=new Array(paktidakt);parr=parr.concat(ie5exep);
    }
		if(startwhen){
			stopit=0;
 			mytimeout=setTimeout(function(){self.b_slide();},stim);
 		}
	}

//prepare current and next and trigger slide
	this.b_slide = function(){
		clearTimeout(mytimeout);
		u=0;
		ptofade=parr[startim-1];
		if(startim<emax){pnext=parr[startim];}
		else{pnext=parr[0];}
		pnext.style.zIndex=1;
		pnext.style.visibility="visible";
		pnext.style.filter="Alpha(Opacity=100)";
		pnext.style.MozOpacity=1;
		pnext.style.opacity=1;
		ptofade.style.zIndex=2;
		ptofade.style.visibility="visible";
		ptofade.style.filter="Alpha(Opacity=100)";
		ptofade.style.MozOpacity=1;
		ptofade.style.opacity=1;
		factor=100/steps;
		if(stopit=="0"){
			this.b_slidenow();
		}
	}

//one step forward
	this.b_forw = function(){
		stopit=1;
		clearTimeout(mytimeout);
		ptofade=parr[startim-1];
		if(startim<emax){pnext=parr[startim];startim=startim+1;}
		else{pnext=parr[0];startim=1;}
		ptofade.style.visibility="hidden";
		ptofade.style.zIndex=1;
		pnext.style.visibility="visible";
		pnext.style.zIndex=2;
		self.b_slide();
	}

//one step back
	this.b_back = function(){
		stopit=1;
		clearTimeout(mytimeout);
		if(u==0){ //between two slides
			ptofade=parr[startim-1];
			if(startim<emax){pnext=parr[startim];}
			else{pnext=parr[0];}
			pnext.style.visibility="hidden";
			ptofade.style.zIndex=1;
			ptofade.style.visibility="visible";
			if(startim>=2){startim=startim-1;}
			else{startim=emax;}
			self.b_slide();
		}
		else{ //whilst sliding
			self.b_slide();
		}
	}

//slide as said, then give back
	this.b_slidenow = function(){
		var check1,maxalpha,curralpha;
		check1=ptofade.style.MozOpacity;
		maxalpha=(100-factor*u)/100*105;
		if(check1<=maxalpha/100){u=u+1;}
		curralpha=100-factor*u;
		ptofade.style.filter="Alpha(Opacity="+curralpha+")";
		ptofade.style.MozOpacity=curralpha/100;
		ptofade.style.opacity=curralpha/100;
		if(u<steps){ //slide not finished
			if(stopit=="0"){mytimeout=setTimeout(function(){self.b_slidenow();},ftim);}
			else {this.b_slide();}
		}
		else{ //slide finished
			if(startim<emax){
				ptofade.style.visibility="hidden";
				ptofade.style.zIndex=1;
				pnext.style.zIndex=2;
				startim=startim+1;u=0;
				mytimeout=setTimeout(function(){self.b_slide();},stim);
			}
			else{
				ptofade.style.visibility="hidden";
				ptofade.style.zIndex=1;
				pnext.style.zIndex=2;
				startim=1;u=0;
				mytimeout=setTimeout(function(){self.b_slide();},stim);
			}
		}
	}

//manual start
	this.b_start= function(){
		if(stopit==1){
 			stopit=0;
 			mytimeout=setTimeout(function(){self.b_slide();},stim);
 		}
	}

//manual stop
	this.b_stop= function(){
		clearTimeout(mytimeout);
		stopit=1;
		this.b_slide();
	}

//insert css and images
	this.b_insert= function(){
		var b, thestylid, thez, thevis, slidehei;
		slidehei=(showcontr)?(pichei+25):(pichei); //add space for the controls
		var myhtml="<div style='width:"+picwid+"px;height:"+slidehei+"px;'>";
   			myhtml+="<div style='position:absolute;width:"+picwid+"px;height:"+pichei+"px;'>";
		for(b=1;b<=emax;b++){
			thez=1;thevis='hidden';
			if(b<=1) {thez=2; thevis='visible';}
			  myhtml+="<div id='img_"+slideid+"_"+b+"' style='font-size:10px;line-height:13px;margin:0;padding:0;text-align:right;visibility:"+thevis+";z-index:"+thez+";position:absolute;left:0;top:0;width:"+picwid+"px;height:"+pichei+"px;background-color:"+backgr+";'>";
				myhtml+= imges[(b-1)]+"</div>";
		}
   			myhtml+="</div>";
//show controls
		if(showcontr){
				for(b=1;b<=4;b++){
					var check=contr[b-1].substring(contr[b-1].length-3).toLowerCase(); //check for buttons
					contr[b-1]=(check=="jpg"||check=="gif"||check=="png")?(contr[b-1]):(contr[b-1]);
				}
   			myhtml+="<div style='display:block;width:"+picwid+"px;padding-top:"+(pichei+3)+"px;text-align:right;'>";
   			myhtml+="<a href='javascript:be_"+slideid+".b_back();' style='text-decoration:none'>"+contr[0]+"</a>&nbsp;";
   			myhtml+="<a href='javascript:be_"+slideid+".b_start();' style='text-decoration:none'>"+contr[1]+"</a>&nbsp;";
   			myhtml+="<a href='javascript:be_"+slideid+".b_stop();' style='text-decoration:none'>"+contr[2]+"</a>&nbsp;";
   			myhtml+="<a href='javascript:be_"+slideid+".b_forw();' style='text-decoration:none'>"+contr[3]+"</a>";
		}
   			myhtml+="</div>";
		document.getElementById(divid).innerHTML=myhtml;
		self.b_myfade();
	}

//call autostart-function
daisychain(this.b_insert);
	
}

var slideTestimonials = new Array(
    //'<div class="testimonialswrap"><div class="testimonialstext">TEXT</div><div><img src="/i/testimonials/bild.jpg" alt=""/></div></div><div class="testimonialssub"><span class="testimonialssubheader">NAME</span><br/></div>',
    '<div class="testimonialswrap"><div class="testimonialstext">Mit dem Alpen-Adria Kommunalforum bieten wir eine optimale Plattform, um Gemeinden, Regionen und Unternehmen aus Slowenien, Italien und Kärnten nachhaltig zu vernetzen. Der hohe Praxisbezug bietet den Teilnehmern dabei optimale Möglichkeiten für konkrete Kooperationen und innovative Lösungsansätze.</div><div><img src="/aakf/i/testimonials/josef-martinz.jpg" alt=""/></div></div><div class="testimonialssub"><span class="testimonialssubheader">Landesrat Dr. Josef Martinz</span><br/>Gemeindereferent Land Kärnten</div>',
    '<div class="testimonialswrap"><div class="testimonialstext">Das Alpen-Adria Kommunalforum soll zu einem jährlichen kommunal- und wirtschaftspolitischen Fixpunkt der Alpen-Adria-Region und Südosteuropas werden, das "Davos" für die Kommunalwirtschaft. Dabei werden die Themen und der regionale Fokus sukzessive erweitert.</div><div><img src="/aakf/i/testimonials/franz-sturm.jpg" alt=""/></div></div><div class="testimonialssub"><span class="testimonialssubheader">Dr. Franz Sturm</span><br/>Leiter Gemeindeabteilung Land Kärnten</div>',
    '<div class="testimonialswrap"><div class="testimonialstext">Die Gemeinden sehen sich zukünftig auf Grund der geänderten Rahmenbe-dingungen mit neuen Herausforderungen konfrontiert. Die Finanzierbarkeit von Dienstleistungen erfordert neue innovative Ansätze und eine engere Kooperation zwischen den Gemeinden. Diese Kooperation darf aber nicht bei den Landesgrenzen enden. Ich begrüße daher die Durchführung des 1. Alpen-Adria Kommunalforums und erwarte mir neue Lösungswege.</div><div><img src="/aakf/i/testimonials/hans-ferlitsch.jpg" alt=""/></div></div><div class="testimonialssub"><span class="testimonialssubheader">Hans Ferlitsch</span><br/>Präsident Kärntner Gemeindebund</div>',
    '<div class="testimonialswrap"><div class="testimonialstext">Da die allgemeine Wirtschaftskrise auch vor den Städten und Gemeinden nicht Halt gemacht hat, sind hier neue Lösungsansätze, wie innovative Finanzierungsformen und Modelle zur Kosteneinsparung und Kooperationen auch über die nationalen Grenzen hinaus gefragt. Dieses erste Kommunalforum im Alpen-Adria Raum bietet eine gute Möglichkeit für KommunalpolitikerInnen und Führungskräfte aus der Verwaltung von Kärnten, Italien und Slowenien, sich zu vernetzen und gemein-sam Problemlösungen zu schaffen.</div><div><img src="/aakf/i/testimonials/helmut-manzenreiter.jpg" alt=""/></div></div><div class="testimonialssub"><span class="testimonialssubheader">Helmut Manzenreiter</span><br/>Präsident Kärntner Städtebund</div>'
);
var be_1= new testimonials(
    1, // 0
    slideTestimonials, //imgArray
    'slideshowTestimonials', //divID
    297, //height
    200, //width
    '#F7F7F7', //background
    10, // sdur
    1, // fdur
    20, //steps
    'y', // startwhen
    'y', // shuffle
    'n', // showcontr
    '' // contr
);