var rotis = { src: 'AgfaRotisSansBold.swf',
			  ratios: [8, 1.42, 11, 1.38, 17, 1.32, 21, 1.3, 22, 1.29, 30, 1.28, 35, 1.27, 48, 1.26, 69, 1.25, 70, 1.24, 71, 1.25, 74, 1.24, 75, 1.25, 78, 1.24, 79, 1.25, 1.24]
};
sIFR.activate(rotis);
sIFR.replace(rotis, { selector: 'h1', css: '.sIFR-root { color: #12537f; }', wmode: 'transparent' });
sIFR.replace(rotis, { selector: 'h2', css: '.sIFR-root { color: #808080; }', wmode: 'transparent' });
sIFR.replace(rotis, { selector: 'h3', css: '.sIFR-root { color: #12537f; } .sIFR-root a { color: #0C344E; text-decoration:none; } .sIFR-root a:hover { color: #12537f; text-decoration:none; }' });
sIFR.replace(rotis, { selector: 'h4', css: '.sIFR-root { color: #ffcc66; }', wmode: 'transparent' });
//
window.addEvent('domready', function(){

	$$('.navigation a').each( function(nLink){
		// warum auch immer aber auf ä kann ich nicht testen daher String.fromCharCode(228)
		var ll = nLink.getText().split('/')[0].clean().toLowerCase().split(' ').join('-').split(String.fromCharCode(228)).join('ae').split('&').join('and');
		var lm = ll.split('-').join('_'); // sonderfall news cms
		var lj = window.location.pathname.split('/de/jobs').join('/de/karriere').split('/en/jobs').join('/en/careers'); // sonderfall jobs cms
		var hr = nLink.href;
		//alert( lj );//.charCodeAt(11)
		if(window.location.pathname.test(ll) || window.location.pathname.test(lm) || lj.test(ll) || (window.location.pathname.match(/downloads/) && hr.test(window.location.pathname))){
			nLink.addClass('current');
			$(nLink.rel).addClass('open');
      $(nLink.rel).removeClass('closed');
		}else{
			nLink.removeClass('current');
		}
	});
});

function rebuild(){
	//alert( $('divisions').value +" "+$('locations').value +" "+$('languages').value );
	$('filter').submit();
}