function finishStep(wizard, state)
{
    var currentStep = wizard.find(".steps li").eq(state.currentIndex);

    if (wizard.triggerHandler("finishing", [state.currentIndex]))
    {
        currentStep.addClass("done").removeClass("error");
        wizard.triggerHandler("finished", [state.currentIndex]);
    }
    else
    {
        currentStep.addClass("error");
    }
}
Triggers the onFinishing and onFinished event.

@static
@private
@method finishStep
@param wizard {Object} The jQuery wizard object
@param state {Object} The state container of the current wizard