Cufon.replace('.quote')('.nav')('.title');
Cufon.replace('h2.slideheader',{hover:true, hoverables: { h2: true }});

$(document).ready(function(){
	//setBackground();
	$('#slideshow').cycle({  
		timeout:         6000 
	});

	$('#quote div').cycle({  
		timeout:         6000,
		containerResize: 1,
		cleartype:       !$.support.opacity, 
    	cleartypeNoBg:   true
	});

	$('#txtslide').tekstslider();
	
	$('a.nav').each(function(){
	
	if (!$.browser.msie) {
		firstTop = '-11px';
		overTop = '-128px';
	}else{
		if(($.browser.version.substring(0, 2)=="8.") || ($.browser.version.substring(0, 2)=="9.") || ($.browser.version.substring(0, 2)=="10.")){
			firstTop = '-11px';
			overTop = '-128px';
		} else {
			firstTop = '-2px';
			overTop = '-102px';
		}
	}
	$('a.hoofdNavActive2').find('.sprite').css({
		marginTop: overTop
	});
	if (!$(this).hasClass('hoofdNavActive2')) {
		$(this).find('.sprite').css({
			marginTop: firstTop
		});
		$(this).mouseover(function(){
			$(this).find('.sprite').stop().animate({
				marginTop: overTop
			},150)
		});
		$(this).mouseout(function(){
			$(this).find('.sprite').stop().animate({
				marginTop: firstTop
			},150)
		});
	}
	});
	
});

