
    function wakeup (src, pause, speed, count, side){
		if (count == undefined) count = 1;
        this.setProperties(src, pause, speed, count, side);
    };

    wakeup.prototype = new BaseSequence();
    wakeup.prototype.constructor = new BaseSequence;
    wakeup.superclass = BaseSequence.prototype;

    wakeup.prototype.setProperties = function(src, pause, speed, count, side){

		wakeup.superclass.setProperties.call(this, src, pause, speed, count);

		this.def_prog = "dazed_blink_open()";
		this.alt_prog = "dazed_blink_crazed()";
		this.prog     = "dazed_open()";

		this.return_mode = MODE_SHAKE_HEAD;

		this.name     = "wakeup";

		return this;
    };

    wakeup.prototype.actout = function actout(){

        if (this.first_time) this.first_time = false;
        else {

            // this.pause -= 50;
            wakeup.superclass.actout.call(this); // this takes care of count down, etc...

            if (this.count < this.start_count - 3) {
			    this.prog = "dazed_blink_open()";
			}
			else {

				if ((this.count % 2)==0)  this.prog = "dazed_blink_open();";
				else this.prog = "dazed_blink_closed();";
			}
	    }

        return(this.prog);
    }
