function submit_form(name) {
	document.getElementById(name).submit();
}

 jQuery(document).ready(function($) {

  	$('a[rel*=facebox]').facebox();

	$('#tekst_afbeelding').hover(function(){
		$(".titel_afbeelding", this).stop().animate({bottom:'60px'},{queue:false,duration:160});
		}, function() {
		$(".titel_afbeelding", this).stop().animate({bottom:'0px'},{queue:false,duration:160});
	});

	//Caption Sliding (Partially Hidden to Visible)
	$('.boxgrid.caption').hover(function(){
		$(".cover", this).stop().animate({top:'280px'},{queue:false,duration:160});
		}, function() {
	$(".cover", this).stop().animate({top:'350px'},{queue:false,duration:160});
	});

	$('#slideshow').cycle({ 
		delay:  0, 
		speed:  2000, 
		timeout: 7500,
		pause:  1 
	}); 

	$('#banners-slide').cycle({ 
		delay:  0, 
		speed:  2000, 
		timeout: 7500,
		pause:  1 
	});
 
	$('#slideshow_tentoonstelling').cycle({ 
		fx:     'fade', 
		speed:  'fast', 
		timeout: 0, 
		next:   '#next', 
		prev:   '#prev'
	});

    // h$('div#viewport').scrollTo('#item', {duration:0});

    $("#draggable").draggable({
        axis: 'x'
    });
      
	$('#volgende').click(function() {
		$('div#viewport').scrollTo('+=601px', {duration:1500});
	});
	
	$('#vorige').click(function() {
		$('div#viewport').scrollTo('-=601px', {duration:1500});
	});
	
	$('#begin').click(function() {
		var p = $('div.horimg:first');
		$('div#viewport').scrollTo(p, {duration:1500});
	});
	
	$('#einde').click(function() {
		var p = $('div.horimg:last');
		$('div#viewport').scrollTo(p, {duration:1500});
	});
      
	$('#results-prev').click(function() {
		$('div#result-boxes').scrollTo('-=400px', {duration:500});
	});
	
	$('#results-next').click(function() {
		$('div#result-boxes').scrollTo('+=400px', {duration:500});
	});
	
	$('#results-first').click(function() {
		$('div#result-boxes').scrollTo('-=20000px', {duration:2000});
	});
	
	$('#results-last').click(function() {
		$('div#result-boxes').scrollTo('+=20000px', {duration:2000});
	});

});
		
Cufon.now();