$(document).ready(function() {
	
	$("#nav > .hlist > ul > li").hover(
			function() { $(this).addClass("hover"); },
			function() { $(this).removeClass("hover"); });
	
	$.fn.tinyLightbox.defaults = {
	        item: 'a', // selector inside of container
	        slideshowSpeed: 5000, 
	        slideshowAutostart: false,
	        pathAttr: 'href', // zoom image path
	        descrAttr: 'title', // description attribute                            
	        speed: 300, // animations speed
	        labelImage: 'Abbildung', //translation
	        labelOf: 'von', //translation
	        animation: 'original', //animation extension name
	        keyNavigation: true, // keyboard navigation enabled/disabled
	        cycle: false, // go to the first item after the last one
	        minWidth: 250, // if the image is smaller than minWidth, minWidth will be used instead
	        minHeight: 190, //the same like minWidth
	        overlayOpacity: 0.7, 
	        bgiframe: true  // fix selectboxes for ie6, 
	};
	$("#lightbox").tinyLightbox();
    
    $(".slider div").hide();
    $(".slider h3").mouseover(function() {
        var slider = $("div", $(this).parent());
        if (!slider.hasClass("sliding")) {
            $(".slider div").stop().hide().removeClass("sliding");
            slider.addClass("sliding");        
            slider.show("normal");
        }
    });

	
});
