Cufon.replace('.rightpart h3')('.bottom-list h3')('#content .leftpart UL.referenties LI .logo-link A.link')('#header UL LI A')('H2')('#content H1');
$(document).ready(function(){
	

			
			$(".loginpop").colorbox({width:"560px", height:"400px", iframe:true});
	
jQuery('.col, .menu-sidebar').accordion({ 
    autoheight: false,
	header: 'A.hdr-accordion'
});

	$('#header UL LI.hassubmenu').hover(
		function(){	$(this).addClass('active').children('.submenu').css("display","block")},
		function(){	$(this).removeClass('active').children('.submenu').css("display","none")}
	);
	
	$(".producten LI A").fancybox({
			titleShow: false,
			showCloseButton: true
		});
	
	$(".galery").jCarouselLite({ 
	    	speed: 'fast',
			visible: 1,
			auto: 10000,
			speed: 1000,
			vertical: true
	 });
	
	
	   $("div#controller").jFlow({
            slides: "#producten-container",
            width: "650px",
            height: "290px",
            duration: 400
        });
		
	//$('.producten LI A').lightBox();


	 $('.autohint').focus(function(){
	if ($(this).attr('value') == $(this).attr('title')) $(this).attr('value', '');
	});
	$('.autohint').blur(function(){
		if ($(this).attr('value') == '') $(this).attr('value', $(this).attr('title'));
	}); 
	
	$('#content .leftpart UL.referenties LI .logo-link A.link').click(function(){
		if ($(this).hasClass('opened')){return false;}
		else { 
			$('#content .leftpart UL.referenties LI .logo-link A.link').removeClass('opened');
			$(this).addClass('opened');
			$('#content .leftpart UL.referenties LI').css('z-index','100');
			$(this).parents('li').css('z-index','500');
			$('#content .leftpart UL.referenties LI .inner').css('display','none');
			$(this).parents('.forindex').children('.inner').css('display','block');
			return false;
		}
	})
	$('#content .leftpart UL.referenties LI .inner A.close').click(function(){
		$(this).parents('.forindex').children('.logo-link').children('A.link').removeClass('opened');
		$(this).parents('LI').css('z-index','5')
		$(this).parent().css('display','none');
		return false;
	})
	
})
