// stop BackgroundImageCache voor IE				
try	{ document.execCommand("BackgroundImageCache", false, true); } catch(e) { }

Cufon.replace('h1, h2, #mainheader .fotos ul q, #footer address', { fontFamily: 'Anivers' });
Cufon.replace('#footer q', { fontFamily: 'Amerigo BT' });

/**
 * variabelen met jQuery met een $ beginnen!!!
 */
$(function()
{
	/* submenu effectje en timeout */
	Menu.apply("#menu > li");

    /* hoverclick */
    $("#content .overzicht li").hoverClick();
	
	// default value bij formulieren
	$("input:text[title], textarea[title]").each(function() { 
		$(this).defaultvalue( $(this).attr("title") );
	});

    /**
     * Cycle
     */
    $('#mainheader .fotos ul').cycle({
        timeout:       8000,
        speed:         3000,
        delay:         -4000
    });
	
	// Automatisch textareas vergroten
    $("form").each(function()
    {
        if( $('textarea', this).length == 1 )
        {
            $('textarea', this).css({ display: 'block' }).autoResize();
        }
    });

    /* hoogte gelijk stellen */
    var lihoogte = 0;
    $('.overzicht li').each(function()
    {
        if( $(this).height() > lihoogte )
        {
            lihoogte = $(this).height();
        }
    }).css({ height: lihoogte });
});
