jQuery.noConflict();

jQuery(document).ready(function() {
	if(typeof document.body.style.maxHeight === "undefined") {
		jQuery('li.menuitem').each(function() {
			jQuery(this).hover(
				function() { jQuery(this).addClass('hover'); },
				function() { jQuery(this).removeClass('hover'); }
			);
		});
	}
});

jQuery(document).ready(function() {
	var images = [];
	for (var i=1; i < 10; ++i) {
		images.push('fileadmin/ecsa/template/img/header' + i + '.jpg');
	}
	new RandomBackground('header-img', images, 15);
});

jQuery(document).ready(function() {
	var h = 0;
	var y = 0;
	jQuery('#footer li.menuitem.level0').each(function() {
		var q = jQuery(this);
		if (y < q.position().top) {
			y = q.position().top;
			h = q.height();
		}
		else {
			h = Math.max(h, q.height());
			q.height(h);
		}
	});
});


