function Photo(id,_w,_h, _ow, _oh){ 
    this.field =    $('#'+id); 
	if (this.field){
	this.w =        _w; 
    this.h =         _h; 
    this.old_w =        _ow; 
    this.old_h =         _oh; 
    this.open =        false; 
    this.init(); }
} 
Photo.prototype= { 

 init : function(){ 
        var oThis = this; 
        this.field.mouseover(function(){oThis.ResizeUp(this)}) 
        this.field.mouseout(function(){oThis.ResizeDown(this)}) 

    }, 
    ResizeUp : function(sThis){ 
              if(!this.open){ 
			this.open = true; 
            $(sThis).animate({width: this.w, height: this.h},'slow'); }
         
    }, 
    ResizeDown : function(sThis){ 
              if(this.open){ 
			$(sThis).animate({width: this.old_w, height: this.old_h},'slow'); 
            this.open = false; }
         
    } 

} 

