// stop BackgroundImageCache voor IE				
try	{ document.execCommand("BackgroundImageCache", false, true); } catch(e) { }

//Cufon.replace('h1');


/**
 * variabelen met jQuery met een $ beginnen!!!
 */
$(function()
{
	// submenu effectje en timeout
	Menu.apply("#menu > li");

	// twitter scroller
	$('#footer .twitter ol').innerfade({ 
		animationtype: 'slide', 
		speed: 2000, 
		timeout: 10000, 
		type: 'sequence', 
		containerheight: '24px' }); 
	
	// sponsors
	$("#footer ul.sponsors li").css("opacity", 0.66).hover(
		function() { $(this).stop().fadeTo(200, 1); },
		function() { $(this).stop().fadeTo(200, 0.66); }
	);
	
	// actueel footer links
	$("#footer .actueel li, #frontpage .agenda li").hoverClick();
	
	// shadowbox
	$('a[href$=jpg]').shadowbox({gallery: "fotos"});	
	
	// fotoalbum sliders
	
	$(".no-frontpage .fotoalbum .slider").jcarousel({
		scroll: 4,
		initCallback: function(carousel)		{
			$('.fotoalbum a.next, .fotoalbum a.prev').bind('click', function() {
		        carousel[this.className]();
		        return false;
		    });
		},
		buttonNextHTML: null,
		buttonPrevHTML: null
	});	
	
	$(".frontpage .fotoalbum-1 .slider").jcarousel({
		scroll: 4,
		initCallback: function(carousel)		{
			$('.fotoalbum-1 a.next, .fotoalbum-1 a.prev').bind('click', function() {
		        carousel[this.className]();
		        return false;
		    });
		},
		buttonNextHTML: null,
		buttonPrevHTML: null
	});
	
		// fotoalbum sliders
	$(".frontpage .fotoalbum-2 .slider").jcarousel({
		scroll: 4,
		initCallback: function(carousel)		{
			$('.fotoalbum-2 a.next, .fotoalbum-2 a.prev').bind('click', function() {
		        carousel[this.className]();
		        return false;
		    });
		},
		buttonNextHTML: null,
		buttonPrevHTML: null
	});
	
	


});


function headerFlash()
{
	$("#header .foto").flash({ 
		src: submap + '/fla/header.swf',
		width: 990,
		height: 440,
		wmode: 'transparent',
		menu: 'false' 
		}, { 
		version: 8,
		menu: 'false' 
	});
}
