
function send_mail_cb(response)
{
    if (response == 'SUCCES')
        $("#form").find('.message').html('Email is succesvol verzonden.');
    else
        $("#form").find('.message').html('Error: '+response);
}
function send_mail(formId)
{
    
    $('#loading').show ();
    $.post ('forms/form_email.php', 
    {
        submit: 'send_form', 
        name: $("#".formId).find("input[@name='name']").val(), 
        email: $("#".formId).find("input[@name='email']").val(), 
        subject: $("#".formId).find("input[@name='subject']").val(), 
        message: $("#".formId).find("textarea[@name='message']").val()
    }, send_mail_cb);
    
}

$(document).ready(function()
{
    /** IE7 li:hover + quirksmode fix **/
    /** Note: remove csshover.htc from stylesheet! anders gaatie knipperen!**/
    
        /*$("ul#nav li")
            .mouseover(function()
            {
                $(this).find('ul').show();
            })
            .mouseout(function()
            {
                $(this).find('ul').hide();
            });
            
        $("ul.navigation li")
            .mouseover(function()
            {
                $(this).find('ul').show();
            })
            .mouseout(function()
            {
                $(this).find('ul').hide();
            });*/
        
});