// stop BackgroundImageCache voor IE				
try	{ document.execCommand("BackgroundImageCache", false, true); } catch(e) { }

Cufon.replace('h1, h2');

/**
 * variabelen met jQuery met een $ beginnen!!!
 */
$(function()
{
	/* submenu effectje en timeout */
	Menu.apply("#menu > li");
	
	/* Hoverclick */
	$("#laatste-nieuws li").hoverClick();
	$("#nieuwsoverzicht li").hoverClick();
	
	/* Effectje */
	$("#contenttop #specialmenu li a:not(.actief)").hover(
	function() {
		$(this).stop().css({ width: 232 }).animate({ width: 250 }, 400, 'easeOutBack');
	},
	function() {
		$(this).animate({ width: 232 }, 300, 'easeOutQuad');
	});
	
	// default value bij formulieren
	$("input:text[title], textarea[title]").each(function() { 
		$(this).defaultvalue( $(this).attr("title") );
	});
	
	// Formulier focus op velden
	$(":input").not("input[type=button], input[type=submit], input[type=radio], input[type=checkbox]")
		.focus(function() 	{ $(this).addClass("veldfocus"); })
		.blur(function() 	{ $(this).removeClass("veldfocus"); });
		
	// Contactformulier
	$("#contactpagina a.sluit").click(function()
	{
		$("#contactpagina .formmodule").hide();
		$("#contactpagina .toonformulier").fadeIn(300);
		return false;
	});
	$("#contactpagina a.toonformulier").click(function()
	{
		$("#contactpagina .formmodule").show();
		$("#contactpagina .toonformulier").fadeOut(300);
		return false;
	});

});
