//Smooth Scrolling
	var jump=function(e)
	{
	       //prevent the "normal" behaviour which would be a "hard" jump
	       e.preventDefault();
	       //Get the target
	       var target = $(this).attr("href");
	       //perform animated scrolling
	       $('html,body').animate(
	       {
	               //get top-position of target-element and set it as scroll target
	               scrollTop: $(target).offset().top
	       //scrolldelay: 2 seconds
	       },2000,function()
	       {
	               //attach the hash (#jumptarget) to the pageurl
	               location.hash = target;
	       });

	}

	$(document).ready(function()
	{
	       $('a[href*=#]').bind("click", jump);
	       return false;
	});
	
	$(document).ready(function(){

        //Fancybox
        /* This is basic - uses default settings */
    
        $("a#single_image").fancybox({
         'titlePosition' : 'inside',
         'transitionIn'  : 'Fade in',
         'transitionOut' : 'Fade out',
        });
 
        /* Using custom settings */
    
        $("a#inline").fancybox({
        'hideOnContentClick': true
        });
 
        /* Apply fancybox to multiple items */
        $("a.group").fancybox();
        
        /* Overview IMG */
        $('.item img').mouseover(function() {
            $(this).stop().fadeTo(300, 0.5);
        });
        $('.item img').mouseout(function() {
            $(this).stop().fadeTo(400, 1.0);
        });
        
        /* Overview IMG */
        $('.item3 img').mouseover(function() {
            $(this).stop().fadeTo(300, 0.5);
        });
        $('.item3 img').mouseout(function() {
            $(this).stop().fadeTo(400, 1.0);
        });
        
        /* Overview IMG */
        $('#banner img').mouseover(function() {
            $(this).stop().fadeTo(300, 0.5);
        });
        $('#banner img').mouseout(function() {
            $(this).stop().fadeTo(400, 1.0);
        });
        
        /* Default IMG */
        $('.over img').mouseover(function() {
            $(this).stop().fadeTo(300, 0.5);
        });
        $('.over img').mouseout(function() {
            $(this).stop().fadeTo(400, 1.0);
        });

});

