$(document).ready(function(){


	if (jQuery.browser.msie && jQuery.browser.version < 7) {	
		$(document).ready(function(){
	        $(document).pngFix(); 
	    });
	
		// pngFix hides the img and ads a span containing a background image filter.
		// therefore we need to adress it differently for IE6. Cheers, M$!!
		$("#materialien .group1 span").each( function(i) {
			$(this).mouseover( function () {
				$("#materialien .group1 p span").text($(this).attr("title"));
			})
		});
		
		$("#materialien .group2 span").each( function(i) {
			$(this).mouseover( function () {
				$("#materialien .group2 p span").text($(this).attr("title"));
			})
		});
		
		
	} else {
		
		$("#materialien .group1 img").each( function(i) {
			$(this).mouseover( function () {
				$("#materialien .group1 p span").text($(this).attr("title"));
			})
		});

		$("#materialien .group2 img").each( function(i) {
			$(this).mouseover( function () {
				$("#materialien .group2 p span").text($(this).attr("title"));
			})
		});	
	}

	$('a.lightbox').lightbox({
			fileLoadingImage: '/images/lightbox_loading.gif',
			fileBottomNavCloseImage: '/images/lightbox_closelabel.gif'
	});
	
	
});
