// Spoiling function with hider and de-hider
jQuery(document).ready(function() {
    jQuery("span.spoiler").hide();
    jQuery("a.reveal").click(function() {
        jQuery(this).parent().siblings('li').children('p').children('a,span').fadeIn(1500);
        jQuery(this).fadeOut(600);
    });
    jQuery("a.hide").click(function() {
        jQuery(this).siblings("span.spoiler").fadeOut(600);
        jQuery(this).parent().parent().siblings('li').children(".reveal").fadeIn(1500);
        jQuery(this).fadeOut(600)
    });
    // Function for hovering over images via overlay	
    jQuery("a.hoverize").mouseover(function() {
        jQuery(this).children('img').attr('src', 'http://www.operationauge.de/wp-content/uploads/2011/07/overlay-hover-new.png')
    });
    jQuery("a.hoverize").mouseout(function() {
        jQuery(this).children('img').attr('src', 'http://www.operationauge.de/wp-content/uploads/2011/07/overlay-final.png')
    });
		// optimized Spoiling function with hider and de-hider(fixed problems with other elements than <li>) - now its more universal
});


