			
			var rotationID=550;
			var opacity=0;
			var anz=8;
			var pause=0;
			
			function checkBrowserName(name){  
			var agent = navigator.userAgent.toLowerCase();  
			if (agent.indexOf(name.toLowerCase())>-1) {  
					return true;  
			}  
				return false;  
			}  
			
			function changeAktiv()
			{
					opacity = opacity - 0.06;
					if(checkBrowserName('MSIE')){  
						document.getElementById('rota'+rotationID).style.filter = "alpha(opacity="+(opacity*100)+")";
					} else {
						document.getElementById('rota'+rotationID).style.opacity = opacity;
					}
					
					if(pause == 1)
					{
						stopID = rotationID;
						if(opacity < 0.40) stopID++;			
						if(checkBrowserName('MSIE')){  
							document.getElementById('rota'+stopID).style.filter = "alpha(opacity=100)";
							if(opacity < 0.40) document.getElementById('rota'+rotationID).style.filter = "alpha(opacity=0)";
						} else {
							document.getElementById('rota'+stopID).style.opacity = 1;
							if(opacity < 0.40) document.getElementById('rota'+rotationID).style.opacity = 0;
						}
						pause=0;
					}
					else
					{
						if(opacity > 0.01) 
						{
							setTimeout(changeAktiv,60);
						}
						else
						{
							document.getElementById('rota'+rotationID).style.zIndex = (1000-rotationID);
							if(checkBrowserName('MSIE')){  
								document.getElementById('rota'+rotationID).style.filter = "alpha(opacity=100)";
							} else {
								document.getElementById('rota'+rotationID).style.opacity = 1;
							}
							rotation(rotationID+1,8);
						}
					}
					
			}
			
			function rotation(newid, anzahl) {
				rotationID=newid;
				anz = anzahl;
				if (rotationID>anz)
				{
					rotationID=1;
					for (a=1;a<=anz;a++)
					{
						document.getElementById('rota'+a).style.zIndex=(1100-a);
					}
				}
				var time = 3000;
				opacity=0.99;
				
				setTimeout( changeAktiv, time);
								
			}
			
			function pauseRotaion() {
					pause=1;
			}
