// JavaScript Document

            $(function() {
                $(window).scroll(function(){
					var scrollTop = $(window).scrollTop();
					if(scrollTop != 0)
						$('#main').stop().animate({'opacity':'0.1'},400);
					else	
						$('#main').stop().animate({'opacity':'1'},400);
				});
				
				$('#main').hover(
					function (e) {
						var scrollTop = $(window).scrollTop();
						if(scrollTop != 0){
							$('#main').stop().animate({'opacity':'1'},400);
						}
					},
					function (e) {
						var scrollTop = $(window).scrollTop();
						if(scrollTop != 0){
							$('#main').stop().animate({'opacity':'0.0'},400);
						}
					}
				);
            });
			
            $(function() {
                $(window).scroll(function(){
					var scrollTop = $(window).scrollTop();
					if(scrollTop != 0)
						$('#footer').stop().animate({'opacity':'0.2'},400);
					else	
						$('#footer').stop().animate({'opacity':'1'},400);
				});
				
				$('#footer').hover(
					function (e) {
						var scrollTop = $(window).scrollTop();
						if(scrollTop != 0){
							$('#footer').stop().animate({'opacity':'0.9'},400);
						}
					},
					function (e) {
						var scrollTop = $(window).scrollTop();
						if(scrollTop != 0){
							$('#footer').stop().animate({'opacity':'0.2'},400);
						}
					}
				);
            });
			
            $(function() {
                $(window).scroll(function(){
					var scrollTop = $(window).scrollTop();
					if(scrollTop != 0)
						$('#top').stop().animate({'opacity':'0.5'},400);
					else	
						$('#top').stop().animate({'opacity':'0.1'},400);
				});
				
				$('#top').hover(
					function (e) {
						var scrollTop = $(window).scrollTop();
						if(scrollTop != 0){
							$('#top').stop().animate({'opacity':'1'},400);
						}
					},
					function (e) {
						var scrollTop = $(window).scrollTop();
						if(scrollTop != 0){
							$('#top').stop().animate({'opacity':'0.5'},400);
						}
					}
				);
            });
		
		


// AUFKLAPPEN
function toggleMe(a){
  var e=document.getElementById(a);
  if(!e)return true;
  if(e.style.display=="none"){
    e.style.display="block"
  } else {
    e.style.display="none"
  }
  return true;
}
// SLIDESHOW
$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    speed:   1000, 
    timeout: 8000
	});
});

// LIGHTBOX
    $(function() {
        $('#inhalt_links a').lightBox();
    });
<!--

  // jQuery.noConflict();
  
  // VAR
  
  var inPullNav = false;  
  
  // RUN
  


//-->



$(document).ready(function(){
						   $(".latest_img").fadeTo("slow", 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".latest_img").hover(function(){
						   $(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 0.3); // This should set the opacity back to 30% on mouseout
						   });
						   });

