// Gaia Ajax Widgets Copyright (C) 2007  Frost Innovation AS. details at http://ajaxwidgets.com/
/* 
 * Gaia Ajax Widgets, an Ajax Widget Library
 * Copyright (C) 2007  Frost Innovation AS
 * All rights reserved.
 * This program is distributed under either GPL version 2 
 * as published by the Free Software Foundation or the
 * Gaia Commercial License version 1 as published by
 * Frost Innovation AS
 * read the details at http://ajaxwidgets.com/
 */




/* ---------------------------------------------------------------------------
   Class basically wrapping the ASP.Image WebControl class
   --------------------------------------------------------------------------- */
Gaia.Image = function(element, options){
  this.initialize(element, options);
}

// Inheriting from WebControl
Object.extend(Gaia.Image.prototype, Gaia.WebControl.prototype);

// Adding custom parts
Object.extend(Gaia.Image.prototype, {
  // "Constructor"
  initialize: function(element, options){
    // Calling base class constructor
    this.baseInitializeWebControl(element, options);
  },

  setImageUrl: function(value){
    this.element.src = value;
    return this;
  },

  _getElementPostValue: function(){
    return '';
  },

  _shouldSerializeValue: function(){
    return false;
  }
});

Gaia.Image.browserFinishedLoading = true;
