
var currentStatus;

function alertVideoStatus(status) {
    var newStatus = status;
    var videoIsPlaying = newStatus;
    //only post if there is a change in play status
    if (currentStatus != newStatus) 
    {
        if (videoIsPlaying) {            
            lpSendData('page', 'Video', 'Yes');
         }
         else {         
             lpSendData('page', 'Video', 'No');             
        }    
    }
    currentStatus = newStatus   
}

