jQuery(document).ready(function() {
	jQuery('#Navigation a').each(function(){
		  if(((this.pathname == location.pathname) || ('/'+this.pathname == location.pathname)) && (this.search.replace(/&lang=en|&lang=de/g, "") == location.search.replace(/&lang=en|&lang=de/g, ""))) {
		   jQuery(this).addClass('CurrItem').parents('ul').prev('a').addClass('CurrItem');
		  }
		 });
	/*Slider Ticker*/
	$('.horizontal_scroller').SetScroller({	
		velocity: 	 80,
		direction: 	 'horizontal',
		startfrom: 	 'right',
		loop:		 'infinite',
		movetype: 	 'linear',
		onmouseover: 'pause',
		onmouseout:  'play',
		onstartup: 	 'play',
		cursor: 	 'pointer'
	});		
	
	fontResizer('1em','1.1em','1.2em');
	
	jQuery('#Lang a').each(function(){
		var regex = /(.*?\.jsf)(.*?)\?(.*)/;
		regex.exec(this.href);
		this.href = RegExp.$1+'?'+RegExp.$2+'&'+RegExp.$3;
		this.href = this.href.replace('?&', '?');
	});
});
