// stop BackgroundImageCache voor IE				
try	{ document.execCommand("BackgroundImageCache", false, true); } catch(e) { }

/**
 * variabelen met jQuery met een $ beginnen!!!
 */
$(function()
{
	/* submenu effectje en timeout */
	Menu.apply("#menu > li");
	
	// Hover Click
	$("#overzicht li").hoverClick();
	$("#sidebar .blok-projecten").hoverClick();
	
	// Formulier focus op velden
	$(":input").not("input[type=button], input[type=submit], input[type=radio], input[type=checkbox]").focus(function() { $(this).addClass("veldfocus"); });
	$(":input").not("input[type=button], input[type=submit], input[type=radio], input[type=checkbox]").blur(function() { $(this).removeClass("veldfocus"); });
	
	// video blok klikbaar maken
	$("#sidebar .blok-video").css("cursor","pointer");
	$("#sidebar .blok-video").attr("title", $("a:first", this).attr("title"));
	$("#sidebar .blok-video").click(function()
	{
		$("a:first", this).trigger('click');
	});
	
	// Video
	$("#sidebar .blok-video a").fancybox({ 
		overlayShow			: true,
		zoomSpeedIn			: 500,
		zoomSpeedOut		: 0,
		easingIn			: 'easeOutQuad',
		hideOnContentClick	: true,
		callbackOnShow 		: function()
		{
			var s = new SWFObject(submap+"fla/flvplayer.swf", "single", "425", "355", "7");
			s.addParam("allowfullscreen","true");
			s.addVariable("file",video_crud);
			s.addVariable("width","425");
			s.addVariable("height","355");
			s.addVariable("autostart","true");
			s.write("fancy_div");
		},
		callbackOnClose		: function()
		{
			$("#fancy_div").empty();
		}
	});	


});

Cufon.replace('h1');
