
    function shake_head (src, pause, speed, count, side){
		if (count == undefined) count = 1;
        this.setProperties(src, pause, speed, count, side);
    };

    shake_head.prototype = new BaseSequence();
    shake_head.prototype.constructor = new BaseSequence;
    shake_head.superclass = BaseSequence.prototype;

    shake_head.prototype.setProperties = function(src, pause, speed, count, side){

		shake_head.superclass.setProperties.call(this, src, pause, speed, count);

		this.def_prog = "shake_head_left()";
		this.alt_prog = "shake_head_left()";
		this.prog     = "shake_head_left()";

		this.return_mode = MODE_NORMAL;
		
		// this.rent.objArt.className = "psyched";		

		this.name     = "shake_head";

		return this;
    };

    shake_head.prototype.actout = function actout(){

        if (this.first_time) {
			this.first_time = false;

		}
        else {
            shake_head.superclass.actout.call(this); // this takes care of count down, etc...

            if ((this.count % 3) == 0) {this.prog = "shake_head_left()";}
            else if ((this.count % 2) == 0) {this.prog = "shake_head_middle()";}
            else {this.prog = "shake_head_right()";}

	    }

        return(this.prog);
    }
