/**

*/

    function look_around (src, pause, speed, count, side){

        if (count == undefined) count = 20;
        this.setProperties(src, pause, speed, count, side);
    };

    look_around.prototype = new BaseSequence();
    look_around.prototype.constructor = new BaseSequence;
    look_around.superclass = BaseSequence.prototype;

    look_around.prototype.setProperties = function(src, pause, speed, count, side){

		look_around.superclass.setProperties.call(this, src, pause, speed, count);

		this.name     = "look_around";
		this.def_prog = "look_straight()";
		this.prog     = "interested()";

		this.last_look = this.prog;
	    this.return_mode = MODE_DOUBLE_TAKE;

		this.rent.objArt.className = "normal";

		return this;
    };


    look_around.prototype.mp = function(posX, posY){

		look_around.superclass.mp.call(this, posX, posY);

	    if (((this.lastX - posX > 1 ) || (this.lastX - posX < -1 )) && ((this.lastY - posY > 1 ) || (this.lastY - posY < -1 ))) {
		    this.count += 1;
		    if (this.count > 30) this.count = 30;
	    }

		this.lastX = posX;
		this.lastY = posY;
	}

    look_around.prototype.mouse_over = function(){

		var rnd_num = this.get_random_number(3);

		if (rnd_num == 2) this.return_mode = MODE_BALL_GET;
		else this.return_mode = MODE_PSYCHED;

		this.stop();

		return this;
	};


    look_around.prototype.actout = function actout(){

        if (this.first_time) {
	        this.rent.obj.color = "#333333";
			this.first_time = false;
		}
        else {

            look_around.superclass.actout.call(this); // this takes care of count down, etc...

			switch(this.mouse_relative_position){

				case (this.pos_n):  this.prog = "look_n()";  break;
				case (this.pos_ne): this.prog = "look_ne()"; break;
				case (this.pos_e):  this.prog = "look_e()";  break;
				case (this.pos_se): this.prog = "look_se()"; break;
				case (this.pos_s):  this.prog = "look_s()";  break;
				case (this.pos_sw): this.prog = "look_sw()"; break;
				case (this.pos_w):  this.prog = "look_w()";  break;
				case (this.pos_nw): this.prog = "look_nw()"; break;

				default: this.prog = "interested()"; break;
			}
	    }

        this.last_look = this.prog;
        return(this.prog);
    }


