/*
 * Wellspring Worldwide, LLC - CONFIDENTIAL
 * Unpublished Copyright (c) 2004-2010 Wellspring Worldwide, All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains the property of
 * Wellspring Worldwide. The intellectual and technical concepts contained
 * herein are proprietary to Wellspring Worldwide and may be covered by U.S.
 * and Foreign Patents, patents in process, and are protected by trade secret
 * or copyright law.
 *
 * Dissemination of this information or reproduction of this material is
 * strictly forbidden unless prior written permission is obtained from
 * Wellspring Worldwide.
 *
 * Usage of this software is subjected to the terms and condition of the
 * Wellspring Worldwide Software license. By using this software you expressly
 * understand and agree that your use of the services is at your sole risk and
 * that the services are provided "as is" and "as available."
 *
 * Wellspring authorizes the use of the Software in the United States.
 * Under no circumstances may Licensee export use of the Software or
 * documentation outside of the United States without Wellspring's prior written
 * consent. If Wellspring authorizes any export, Licensee agrees to comply fully
 * with all relevant export or import laws and regulations of the United States
 * or any other nation.
 */
function clipOnStart(clip){
    clipEventHandler(clip, 'begin');
}
function clipOnFinish(clip){
    clipEventHandler(clip, 'finish');
}
function clipOnPause(clip, offset){
    clipEventHandler(clip, 'pause', offset);
}
function clipEventHandler(clip, event, offset){
    var data_var = {'clip' : clip.completeUrl, 'event' : event};
    if(event == 'pause') data_var['offset'] = offset;
    $.ajax({ url: root+"video/event/", data: data_var, success: function(text){ }, cache: false});
}