Cufon.replace('h1'); // Works without a selector engine
Cufon.replace('h2'); // Requires a selector engine for IE 6-7, see above
Cufon.replace('.payoff'); // Requires a selector engine for IE 6-7, see above




$(document).ready(function(){	
	$('#header_afbeelding').fadeIn('1200');
	$('#header_afbeelding_all').fadeIn('fast');
});

$(document).ready(function() {
	$(".hover").click( function() {
		if ($("#openCloseIdentifier").is(":hidden")) {
			$("#slider, #slider_red").animate({ 
				marginTop: "-67px"
				}, 500 );
			$("#topMenuImage").html('<a href="#"  class="hover" id="#topMenuImage">Login</a>');
			$("#openCloseIdentifier").show();
		} else {
			$("#slider, #slider_red").animate({ 
				marginTop: "0px"
				}, 500 );
			$("#topMenuImage").html('<a href="#"  class="hover" id="#topMenuImage">Login</a>');
			$("#openCloseIdentifier").hide();
		}
	});  
});





$('#example21').bt({
  showTip: function(box){
    $(box).fadeIn(500);
  },
  hideTip: function(box, callback){
    $(box).animate({opacity: 0}, 500, callback);
  },
  
  shrinkToFit: true,
  hoverIntentOpts: {
    interval: 0,
    timeout: 0
  }
})





function Animate2id(id2Animate){
    var animSpeed=1500; //animation speed
    var easeType="easeInOutExpo"; //easing type
    if($.browser.webkit){ //webkit browsers do not support animate-html
        $("body").stop().animate({scrollTop: $(id2Animate).offset().top}, animSpeed, easeType);
    } else {
        $("html").stop().animate({scrollTop: $(id2Animate).offset().top}, animSpeed, easeType);
    }
}

