// Funktion bei "CSS an, Bilder aus"
// TODO: anpassen und bei onload eintragen:
/*
function init(){
	checkImages();
}

function checkImages() {
  if (document.getElementById) {
    var x = document.getElementById('logo').offsetWidth;
    if (x != '236') {
      document.getElementById('nav-*').style.textIndent = '0';
    }
  }
}
*/



window.addEvent('domready',function() {
	$each($$('#mbCaption, .text, .text-right, .block h3, a, div.galerie dd'), function(el) {
		var original = el.getStyle('color');
		var morph = new Fx.Morph(el,{ 'duration':'300', link:'cancel' });
		el.addEvents({
			'mouseenter' : function() { morph.start({ 'color':'#000' }) },
			'mouseleave' : function() { morph.start({ 'color': original }) }
		});
	});
});


