/**
 * Cufon
 */
// Tekst in Cufon zetten
Cufon.replace('h1,#footer address,#header > q,#content .overzicht h2,#header .ingelogd,#fotoboek h2,#fotoboek li span')	
 
// Quote "Vast en Zeker met text shadow
Cufon.replace('q strong', 
			  {
			  	textShadow: '#643b28 1px 3px'
			  });	//text-shadow: #643b28 20px -12px 2px;
			
// separate separate voor de h2 in de zijbalk. 
Cufon.replace('#zijbalk h2');
	
	  

// 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");
    Menu.apply("#topmenu > li");
	
	// Hovers
	$("#zijbalk .nieuws ul li,#content .overzicht li,#content .navigatie ol li,fotoboek ul li").hoverClick();
	
	// default value bij formulieren
	$("input:text[title], textarea[title]").each(function() { 
		$(this).defaultvalue( $(this).attr("title") );
	});
	
	// Automatisch textareas vergroten
    $("form").each(function()
    {
        if( $('textarea', this).length == 1 )
        {
            $('textarea', this).css({ display: 'block' }).autoResize().hide().keydown().show();
        }
    });
});
