// Source code Copyright © vanAnnies.  All Rights Reserved.
// Contact GetTheGhost.com for Licensing
function vanGhostAnim(l,s,r,f) { this.layer = null; this.repeat = true; this.steps = null; this.stepndx = 0; this.step = null; if(l) this.layer = document.getElementById(l); if(s) this.steps = s; if(r !== undefined) this.repeat = r; if(f) this.step = f; } vanGhostAnim.shiftSteps = function(steps, percent) { if(!steps || !percent || percent < 0 || percent > 1) return steps; var howmany = Math.round(steps.length * percent); var chunk = steps.splice(0, howmany); steps = steps.concat(chunk); return steps; }; vanGhostAnim.run = function() { vanGhostTimer.run(); }; 