try{
	soundManager.url = 'fileadmin/soundmanager/swf/';
	soundManager.flashVersion = 9; // optional: shiny features (default = 8)
	soundManager.useFlashBlock = false; // optionally, enable when you're ready to dive in

	var snd= {}
	soundManager.onready(function(oStatus){
		snd.startton= soundManager.createSound({
				id:'startton',
				url:'fileadmin/snd/startseiteton.mp3',
				onfinish:function(){}
		});
	})
}catch(e){}

var text= [
		[{str:'Image',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0},{str:'Kampagnen',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1}],
		[{str:'Image',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0},{str:'Entwicklung',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1}],
		[{str:'Editorial',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1},{str:'Entwicklung',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0}],
		/**/
		[{str:'Editorial',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0},{str:'Design',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1}],
		[{str:'Medien',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1},{str:'Design',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0}],
		[{str:'Medien',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0},{str:'Kommunikation',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1}],
		[{str:'Marken',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1},{str:'Kommunikation',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0}],
		[{str:'Marken',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0},{str:'Entwicklung',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1}],
		[{str:'Kampagnen',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1},{str:'Entwicklung',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0}],
		[{str:'Kampagnen',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0},{str:'Design',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1}],
		[{str:'Corporate',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1},{str:'Design',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0}],
		[{str:'Corporate',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0},{str:'Marken',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1}],
		[{str:'Medien',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1},{str:'Marken',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0}],
		[{str:'Medien',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0},{str:'Kommunikation',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1}],
		[{str:'Unternehmens',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1},{str:'Kommunikation',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0}],
		[{str:'Unternehmens',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0},{str:'Kampagnen',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1}],
		[{str:'Digitale',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1},{str:'Kampagnen',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0}],
		[{str:'Digitale',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0},{str:'Medien',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1}],
		[{str:'Design',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1},{str:'Medien',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0}],
		[{str:'Design',fontColor:'#E31781',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0},{str:'Kampagnen',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1}],
		[{str:'Image',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:1},{str:'Kampagnen',fontColor:'#00AFE8',fontSize:'',fontWeight:'normal',fontFamily:'',hightlight:0}],

		[{str:'',fontColor:'',fontSize:'',fontWeight:'',fontFamily:''},{str:'',fontColor:'',fontSize:'',fontWeight:'',fontFamily:''}]

	];

var fx_text= {
	containerId: '',
	numWords: 0, // number words in string
	isInit: 0,

	pos_x: [255,255],
	text: [],
	index: 0,
	length: 0,

	init: function(opt){
		this.isInit= 1;
		this.length= opt.text.length;
		this.numWords= opt.text[0].length;
		this.text= opt.text;
		this.containerId= opt.id;
		var elmContainer= document.getElementById(this.containerId);
		//elmContainer.innerHTML= '';

		for(var i=0; i < this.numWords; i++){
			elmContainer.innerHTML+= '<div id="'+this.containerId+'_'+i+'" style="position:absolute;top:0px;left:'+this.pos_x[i]+'px;color:'+this.text[0][i].fontColor+';">'+this.text[0][i].str+'</div>';
		}
		this.index= 1;
	},

	start: function(options){
		if(!this.isInit){this.init(options)} // init bei erste row in array
		this.animString();
		//this.finish();
	},

	animString: function(){
		var self= this;
		var row= fx_text.text[self.index];
		var color;
		var hightlight_idx= 0;

		var size= [0,0];

		for(var i=0; i < this.numWords; i++){
			if(row[i].hightlight){
				color= row[i].fontColor;
				hightlight_idx= i;
			}
			elm= document.getElementById(this.containerId+'_'+i);
			size[i]= js(elm).css('width');
		}

		var start= self.pos_x[1];
		var end= self.pos_x[0]+size[0];

		this.row= row;
		this.color= color;
		this.size= size;
		this.hightlight_idx= hightlight_idx;

		js(this.containerId+'_'+1).effect({
			css:{left:{param:[start,end],easing:'swing'}},
			fps:25,
			duration:800,

			onFrame: function(){},

			callback: function(){

				fx_text.index++;
				if(fx_text.index >= fx_text.length){
					fx_text.index= 0;
					self.finish();
					return;
				}
				self.pos_x[1]=end;
				setTimeout('fx_text.hightlight()',600);

			}// effect.callback
		});// effect

	},//

	hightlight: function(){
		var self= this;
		//try{snd.startton.play()}catch(e){}
		js(self.containerId+'_'+self.hightlight_idx).hightlight({
			css:{color:{param:[self.color],easing:'easeOutCubicE'}},
			hightlight:'#FFFFFE',fps:15,durationIn:150,durationOut:500,
			onHightlight: function(){
				var elm= document.getElementById(self.containerId+'_'+self.hightlight_idx);
				elm.innerHTML= self.row[self.hightlight_idx].str;
				js(elm).css('fontWeight',self.row[self.hightlight_idx].fontWeight);
				self.size[self.hightlight_idx]= js(elm).css('width');
			},
			callback: function(){
				fx_text.animString();
			}
		}); // hightlight
	},

	finish: function(){
		var end= -50;

	   js(this.containerId).effect({
			css:{top:{param:[end],easing:'easeInBackQuartic'}},
			fps:35,
			duration:1800,
			callback: function(){js.redirect('http://'+window.location.hostname+'/2011.php')}
	   });

	   js('address_str').effect({
			css:{opacity:{param:[100],easing:'linear'}},
			fps:20,
			duration:2000
	   });

	 js('body').effect({
			css:{backgroundColor:{param:['#FFFFFF'],easing:'linear'}},
			fps:20,
			duration:800
	   });


	}//


}//#

