$(function() {
	$(".bild a[rel]").overlay({
		mask: 'black',
		effect: 'default',
		fixed: false,
		onBeforeLoad: function() {
			var wrap = this.getOverlay().find(".contentWrap");
			wrap.load(this.getTrigger().attr("href"));
		}
	});
});

$(function() {
	$("#content a[rel]").overlay({
		mask: 'black',
		effect: 'default',
				fixed: false,

		onBeforeLoad: function() {
			var wrap = this.getOverlay().find(".contentWrap");
			wrap.load(this.getTrigger().attr("href"));
		}
	});
});

$(function() {
	$("#admin a[rel]").overlay({
		mask: 'black',
		effect: 'default',
				fixed: false,

		onBeforeLoad: function() {
			var wrap = this.getOverlay().find(".contentWrap");
			wrap.load(this.getTrigger().attr("href"));
		}
	});
});

$(function() {
	$("#schotterecke a[rel]").overlay({
		mask: {
		color: 'white',
		loadSpeed: 0,
		opacity: 0
		},
		effect: 'default',
		top: 0,
		onBeforeLoad: function() {
			var wrap = this.getOverlay().find(".contentWrap");
			wrap.load(this.getTrigger().attr("href"));
		}
	});
});

$(document).ready(function(){
  var option = {
  x:      1, 
  y:      1, 
  radius: 2,
  color:  "#666666"
}

$("#content h1").textShadow( option );
});


$(function(){

    $('a[href*=#]').click(function() {
    
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
        
            var $target = $(this.hash);
            
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            
            if ($target.length) {
            
                var targetOffset = $target.offset().top;
                
                $('html,body').animate({scrollTop: targetOffset}, 1000);
                    
                return false;
                
            }
            
        }
        
    });
    
});

