/**

        (c) copyright 2005 Jason Van Anden. Some rights reserved.

        This work is protected under a Creative Commons license.

        Other terms can be found here:
        http://creativecommons.org/licenses/by-nc-sa/2.5/

        This code causes Chewy to twitch.

        ascii chewy lives here: http://www.smileproject.com/chewy

*/

    function twitch (pause, speed, count, side){
        this.setProperties(pause, speed, count, side);
    };

    twitch.prototype = new BaseSequence();
    twitch.prototype.constructor = new BaseSequence;
    twitch.superclass = BaseSequence.prototype;

    twitch.prototype.setProperties = function(pause, speed, count, side){

		twitch.superclass.setProperties.call(this, pause, speed, count);

        this.side     = side;
		this.def_prog = "wink_left()"
		this.prog     = this.def_prog;

		return this;
    };

    twitch.prototype.actout = function actout(){

        twitch.superclass.actout.call(this); // this takes care of count down, etc...

        if (this.side == "right") this.prog = "wink_right()";

        setTimeout("start_face()", this.speed);

        return(this.prog);
    }

