var rotis = { src: 'http://www.bergler-schaumstofftechnik.de/css/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: #000000; }' });
sIFR.replace(rotis, { selector: 'h2', css: '.sIFR-root { color: #808080; }' });
sIFR.replace(rotis, { selector: 'h3', css: '.sIFR-root { color: #1A7854; } .sIFR-root a { color: #1A7854; text-decoration:none; } .sIFR-root a:hover { color: #1A7854; text-decoration:none; }' });
sIFR.replace(rotis, { selector: 'h4', css: '.sIFR-root { color: #000000; }' });
//
var nfx;
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(String.fromCharCode(246)).join('oe').split('&').join('and').split('ß').join('ss');
		var hr = nLink.href;
		//alert(hr +'-'+window.location.pathname);
    if(window.location.pathname.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');
		}
	});

});
