/**

        (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/

        ascii chewy lives here: http://www.smileproject.com/chewy

*/

    function tired (src, pause, speed, count){
        this.setProperties(src, pause, speed, count);

    };

    tired.prototype = new BaseSequence();
    tired.prototype.constructor = new BaseSequence;
    tired.superclass = BaseSequence.prototype;

    tired.prototype.setProperties = function(src, pause, speed, count){

		tired.superclass.setProperties.call(this, src, pause, speed, count);
		this.return_mode = MODE_SLEEP;
		this.name        = "tired";
		return this;
    };

    tired.prototype.mouse_over = function(){

	    // this.rent.objArt.className = "psyched";
		this.return_mode = MODE_BALL_GET;
		this.stop();

		return this;
	};

    tired.prototype.actout = function actout(){

        tired.superclass.actout.call(this); // this takes care of count down, etc...

        var num  = this.get_random_number(this.count);
        if (num > (this.count/5)) this.prog = "yawn()";

        return(this.prog);
    }

