$(document).ready(function(){
   
$.localScroll({
   offset: {left: 0, top: -50}
});





  

	$('#leftnav ul li').click(function(){
	$('#leftnav ul li').removeClass('active');
 	 $(this).addClass('active');
});


$('#profiles .profile_3').hover(
function() {
$(this).stop().animate({width: 640}, 'slow');
},
function() {
$(this).stop().animate({width: 375}, 'slow');
});

//	$("#seegnals .seegnal_4").click(function() {  
//     $(this).animate({ backgroundPosition: '(-83px 0px)'}, 800);  
//          },function() {  
//        $(this).stop().animate({ backgroundPosition: '(0px 0px)'}, 800); 
//     });  

//			$(this).css('background-image','url(../images/content/seegnal_1_hover.png)'); 		

//$(document).scroll(function() {
//    var cutoff = $(window).scrollTop();
//    $('.content_box h2').removeClass('view').each(function() {
//        if ($(this).offset().top > cutoff) {
//            $(this).addClass('view');
//            return false;
//        }
//    });
//});



$('.toplink').click(function(){
	$('#leftnav ul li').removeClass('active');
	$('#content h2').removeClass('view');
});

$('#leftnav #start_link').click(function(){
	$('#content h2').removeClass('view');
  $('#start h2').addClass('view');
});

$('#leftnav #highlights_link').click(function(){
	$('#content h2').removeClass('view');
  $('#highlights h2').addClass('view');
});

$('#leftnav #facts_link').click(function(){
	$('#content h2').removeClass('view');
  $('#facts h2').addClass('view');
});

$('#leftnav #anwendung_link').click(function(){
	$('#content h2').removeClass('view');
  $('#anwendung h2').addClass('view');
});

$('#leftnav #anwendung_link2').click(function(){
	$('#content h2').removeClass('view');
  $('#anwendung2 h2').addClass('view');
});

$('#leftnav #custom_link').click(function(){
	$('#content h2').removeClass('view');
  $('#custom h2').addClass('view');
});

	$('#toplink').hide()
	$(window).scroll(function() {
if($(window).scrollTop() >= 1)
 {
 $('#toplink').fadeIn();
 }
 else
{
$('#toplink').fadeOut()
 }
});

	
$('#toplink').click(function(){
	$( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );							 
});
  
   $('#nav .topnav li:not(:last-child)').append('|');
   
      $('#index .start_link a').mouseenter(function () {
	$(this).stop();												 
    $(this).children('.lightson').fadeIn('slow');
  });
	  
	     $('#index .start_link a').mouseleave(function () {
														$(this).stop();	
	$(this).children('.lightson').fadeOut('slow');
    $(this).children('.lightsout').fadeIn('slow');
	
  });

   $('#seegnals .lightsout, #profiles .lightsout, #planons .lightsout').mouseenter(function () {
    $(this).prev('img').fadeIn('slow');
  });

   $('#seegnals .lightson, #profiles .lightson, #planons .lightson').mouseleave(function () {
	$(this).stop(true, true).fadeOut('slow');
    $(this).next('img').hasClass('lightsout').fadeIn('slow');
  });

 
//   $('a#image_big').hover(function(){
//		$(this).addClass('zoom_hover').fadeIn();								   
//	});

 });

