// stop BackgroundImageCache voor IE				
try	{ document.execCommand("BackgroundImageCache", false, true); } catch(e) { }

// cufon
Cufon.replace('#teaser .content h1, #content h1, #main .uitgelicht h1, #main .nieuws h1, #product .info h2, #sidebar h2, #footer .vcard, #sidebar-container #sidebar-left h2');

/**
 * variabelen met jQuery met een $ beginnen!!!
 */
$(function()
{
	/* submenu effectje en timeout */
	Menu.apply("#menu > li");
	
	// 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();
        }
    });

    if ( $("body.en .formulier li.verplicht").length )
    {
        $("body.en .formulier li.verplicht").text('(*) Required');
    }

    if ( $("body.en .formulier li#fm_form1_melding").length )
    {
        $("body.en .formulier li#fm_form1_melding").text('Please fill out the coloured fields!');
    }

	// Slider
	$('#slider').nivoSlider(
		{
            pauseTime:5000,
            pauseOnHover:false,
            effect:'fold',
            directionNav: false,
            controlNav: false
        }
	);
});
