jQuery(document).ready(function(){
	jQuery('a#newsletter-subscribe').click(function(event){
		event.preventDefault();
		
		jQuery('#home-section3').hide();
		jQuery('#home-subscribe').show();
	});
	jQuery('input[type=file]').each(function(){
        jQuery(this).addClass('file').addClass('hidden');
        jQuery(this).parent().append(jQuery('<div class="fakefile" />')
            .append(jQuery('<input type="text" />')
                .attr('id',jQuery(this).attr('id')+'__fake')
            )
            .append(jQuery('<img src="fileadmin/templates/shared/bladeren.png" alt="" />'))
        );
        
        jQuery(this).ready(function(){
            jQuery('#'+jQuery(this).attr('id')+'__fake').val(jQuery(this).val());;
        });
        
        jQuery(this).bind('change', function() {
            jQuery('#'+jQuery(this).attr('id')+'__fake').val(jQuery(this).val());;
        });
        jQuery(this).bind('mouseout', function() {
            jQuery('#'+jQuery(this).attr('id')+'__fake').val(jQuery(this).val());;
        });
    });
	
	jQuery('#btn-background img').hover(function(){
		$src = jQuery(this).attr('src');
		$src = $src.replace('button1', 'button2');
		jQuery(this).attr('src', $src);
	}, function(){
		$src = jQuery(this).attr('src');
		$src = $src.replace('button2', 'button1');
		jQuery(this).attr('src', $src);
	});
});


Shadowbox.init({
	slideshowDelay    : 3,
	animSequence      : 'hw',
	adapter           : 'jquery',
	continuous        : true,
	handleUnsupported : 'link',
	language          : 'nl',
	overlayColor      : '#000'
});


