	Cufon.replace('div#echtis, .links a, .linkv a, #onsrechts, #onslinks', {
		fontFamily: 'Museo 300',
		hover: true
	});
			
	
	Cufon.replace('#echt, .nieuwsecht, .pretitel', { fontFamily: 'Museo 500' });
	Cufon.replace('#echtis, .nieuwskreet, .overonskreet, .nieuwstitel, #cmscontent h2, .overonsnaam', { fontFamily: 'Museo 300' });	
	
	Cufon.replace('.menuitem a, .nieuwsartikel, .klant_select', {
		fontFamily: 'Gill Sans MT Light',
		hover: true
	});
	

$(document).ready(function() {

	$('.fadeThise').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 1);
	  $(this).hover(function () {
	    $span.stop().fadeTo(500, 0);
	  }, function () {
	    $span.stop().fadeTo(500, 1);
	  });
	});
	
	$('.fadeThisc').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 1);
	  $(this).hover(function () {
	    $span.stop().fadeTo(500, 0);
	  }, function () {
	    $span.stop().fadeTo(500, 1);
	  });
	});
	
	$('.fadeThish').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 1);
	  $(this).hover(function () {
	    $span.stop().fadeTo(500, 0);
	  }, function () {
	    $span.stop().fadeTo(500, 1);
	  });
	});
	
	$('.fadeThist').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 1);
	  $(this).hover(function () {
	    $span.stop().fadeTo(500, 0);
	  }, function () {
	    $span.stop().fadeTo(500, 1);
	  });
	});

$("#menucontainer").hover(function(){
	 $(this).height(160);
	 $(this).animate({
	 	  marginTop: "-5px"
	 }, 300);
     $(".menuitem").animate({
          marginTop: "5px"        
    }, 300);
    $("#menubg").animate({
	 	  height: "160px"
	 }, 300);
    
    }, function () {
    $(this).height(30);
	 $(this).animate({
	 	  marginTop: "20px"
	 }, 300);
     $(".menuitem").animate({
          marginTop: "-26px"          
    }, 300);
    $("#menubg").animate({
	 	  height: "0px"
	 }, 300);
   
});

	jQuery('#nieuwscarousel').jcarousel({
		scroll: 4 
	});


$(".links").click(function(){  
  $('#onslinks').animate({"left": "-=1440px"}, "slow");
  $('#onsrechts').animate({"right": "-=1440px"}, "slow");
  $('.links').animate({"left": "-=1440px"}, "slow");
  $('.linkv').animate({"right": "-=1440px"}, "slow");
  $('#streep').animate({"left": "+=450px"}, "slow");
  $('#streep').hide(10);
  $('.strategie').animate({"left": "+=900px"}, "slow");
  $('.vormgeving').animate({"left": "+=900px"}, "slow");
  $('.strategie').show(10);
  $('#nieuwsdiv').fadeIn(10);
});

$(".linkv").click(function(){  
  $('#onslinks').animate({"left": "-=1440px"}, "slow");
  $('#onsrechts').animate({"right": "-=1440px"}, "slow");
  $('.links').animate({"left": "-=1440px"}, "slow");
  $('.linkv').animate({"right": "-=1440px"}, "slow");
  $('#streep').animate({"left": "-=450px"}, "slow");
  $('#streep').hide(10);
  $('.strategie').animate({"left": "-=0px"}, "slow");
  $('.vormgeving').animate({"left": "-=0px"}, "slow");
  $('.vormgeving').show(10);
  $('#nieuwsdiv').fadeIn(10);
});

$(".strategie").click(function(){  
  $('.strategieblok').animate({"left": "-=960px"}, "slow");
  $('.vormgevingblok').animate({"right": "+=960px"}, "slow");
  $('.strategie').animate({"left": "-=900px"}, "slow");
  $('.strategie').hide(10);
  $('.vormgeving').animate({"left": "-=900px"}, "slow");
  $('.vormgeving').show(10);
});

$(".vormgeving").click(function(){  
  $('.strategieblok').animate({"left": "+=960px"}, "slow");
  $('.vormgevingblok').animate({"right": "-=960px"}, "slow");
  $('.strategie').animate({"left": "+=900px"}, "slow");
  $('.strategie').show(10);
  $('.vormgeving').animate({"left": "+=900px"}, "slow");
  $('.vormgeving').hide(10);
});

});

var j = 0;


function echtisleuker(){
  if (j != 0) {
 		$('.e').animate({"right": "-=1430px"}, "slow");
  		$('.etekst').animate({"right": "-=1290px"}, "slow");
  		$('.etekstvak').animate({"right": "-=1200px"}, "slow");
  		$('.efoto').animate({"right": "-=480px"}, "slow");
  } 
  j++;
  
  $('.c').animate({"right": "+=1430px"}, "slow");
  $('.ctekst').animate({"right": "+=1290px"}, "slow");
  $('.ctekstvak').animate({"right": "+=1200px"}, "slow");
  $('.cfoto').animate({"right": "+=480px"}, "slow");
  
  setTimeout( "echtismooier()", 10000 );
};

function echtismooier(){
  if (j != 0) {
 		$('.c').animate({"right": "-=1430px"}, "slow");
  		$('.ctekst').animate({"right": "-=1290px"}, "slow");
  		$('.ctekstvak').animate({"right": "-=1200px"}, "slow");
  		$('.cfoto').animate({"right": "-=480px"}, "slow");
  } 
  j++;
  
  $('.h').animate({"right": "+=1430px"}, "slow");
  $('.htekst').animate({"right": "+=1290px"}, "slow");
  $('.htekstvak').animate({"right": "+=1200px"}, "slow");
  $('.hfoto').animate({"right": "+=480px"}, "slow");
  
  setTimeout( "echtislef()", 10000 );
};

function echtislef(){
  if (j != 0) {
 		$('.h').animate({"right": "-=1430px"}, "slow");
  		$('.htekst').animate({"right": "-=1290px"}, "slow");
  		$('.htekstvak').animate({"right": "-=1200px"}, "slow");
  		$('.hfoto').animate({"right": "-=480px"}, "slow");
  } 
  j++;
  
  $('.t').animate({"right": "+=1430px"}, "slow");
  $('.ttekst').animate({"right": "+=1290px"}, "slow");
  $('.ttekstvak').animate({"right": "+=1200px"}, "slow");
  $('.tfoto').animate({"right": "+=480px"}, "slow");
  
  setTimeout( "echtlevertop()", 10000 );
};

function echtlevertop(){  
  if (j != 0) {
 		$('.t').animate({"right": "-=1430px"}, "slow");
  		$('.ttekst').animate({"right": "-=1290px"}, "slow");
  		$('.ttekstvak').animate({"right": "-=1200px"}, "slow");
  		$('.tfoto').animate({"right": "-=480px"}, "slow");
  } 
  j++;
  
  $('.e').animate({"right": "+=1430px"}, "slow");
  $('.etekst').animate({"right": "+=1290px"}, "slow");
  $('.etekstvak').animate({"right": "+=1200px"}, "slow");
  $('.efoto').animate({"right": "+=480px"}, "slow");
  
  setTimeout( "echtisleuker()", 10000 );
};



