/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$(function() {
    
    function addMega(){
        $(this).addClass("hovering");
    }

    function removeMega(){
        $(this).removeClass("hovering");
    }

    var megaConfig = {
        interval: 50,
        sensitivity: 4,
        over: addMega,
        timeout: 500,
        out: removeMega
    };
    $("li.mega").hoverIntent(megaConfig);
    $('#wizard').smartWizard({transitionEffect:'slideLeft',onFinish:onFinishCallback,enableFinishButton:true});
    $('#hidediv').click(function(){
        $('#contentwizard').toggle(400);
    });
    function onFinishCallback(){
        $('#formwizard').submit();
    }
    
});

