/**
 * Defines global variable: <code>ImagePlaceConfig</code>
 */

/**
 * This jsclass contains common values constants for image place.
 *
 * @constructor
 * @version
 * @lastmodified
 * @extends ComponentConfig
 */
function JSImagePlaceConfig() {

	/**
   * image manager popup name<br>
   * default: <code>"imagemanager"</code>
   * @type String
   */
	this.imageManagerWindowName = "imagemanager";
	
	/**
   * image manager popup url
   * @type String
   */
	this.imageManagerURL = "image-manager.html";
	
	/**
   * image manager popup params, window propertie<br>
   * default: <code>"width=400, height=400"</code>
   * @type String
   * @link http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp
   * @link http://www.mozilla.org/docs/dom/domref/dom_window_ref76.html
   */
	this.imageManagerOpenParams = "width=400,height=400";
	
	/**
	 * image manager default width
	 * @type int
	 */
	this.defaultWidth = 70;
	
	/**
	 * image manager default height
	 * @type int
	 */
  this.defaultHeight = 70;
}

if(window.JSComponentConfig) JSImagePlaceConfig.prototype = new JSComponentConfig();
var ImagePlaceConfig = new JSImagePlaceConfig();

/*
 *	default template for image place
 */
var 
  COMPONENCE_DEFAULT_IMAGE_PLACE = 
      '<span id="{imagePreviewerId}">{imageFieldValue}</span>' +
      '<br><br>'+
      '<input class="formlabel" id="{showPictureButtonId}" type="button" value="Plaatje kiezen" onclick="{showImageManager}">&nbsp' +
      '<input class="formlabel" id="{hidePictureButtonId}" type="button" value="Plaatje verwijderen" onclick="{hidePicture}">';

