
jQuery(window).load(function($) {
	jQuery("document").ready(function($) {
		$("#rechtespalte .infobox").each(function(i) {
			if ( $(this).find("img").height() < 120) {
				$(this).attr('id','js_formed_infobox_'+i);
			} else {
				$(this).attr('id','js_formed_infobox_'+i);
			}
		});
		$("#navigation a").hover(
			function () { $(this).parents("#navigation").addClass("hover"); }, 
			function () { $(this).parents("#navigation").removeClass("hover"); }
		);
		
		$("#subnavigation a").hover(
			function () { $(this).parents("#subnavigation").addClass("hover"); }, 
			function () { $(this).parents("#subnavigation").removeClass("hover"); }
		);
		
		
		
	});
	
});


jQuery(document).ready(function(){
	$("#slides").slides({
		play: 10000,
		pause: 1500,
		hoverPause: true,
		effect: 'fade',
		generatePagination: true
	});
	
});



function MM_openBrWindow(theURL,winName,features) { //v2.0
			window.open(theURL,winName,features);
		}
