function Connection(id)
{
	//-Configuration---------------------------------------------------------------------------------------------------------
	
	/**
	 * @cfg
	 * @type (String) 
	 */
	this.id = id;
		
	//-Properties---------------------------------------------------------------------------------------------------------

	/**
	 * @property
	 * @type (DOMObject) 
	 */
	this.imageView = null;
	
	//-Private Methods---------------------------------------------------------------------------------------------------------
	
	/**
	 * @method
	 * @private 
	 */
	Connection.prototype.createView = function(parentView){				
		var fileName = $.trimLeft($.trimRight(this.id.toLowerCase(),' '), ' ').replace(/\s/g,'_');
		
		var url = $.replaceVariables(DestinationConfig.CONNECTION_IMAGE_URL, {fileName: fileName});
		//console.log(url);
				
		this.imageView = $('<div class="kurve"></div>');
		this.imageView.css('background-image', url);		
				
		parentView.append(this.imageView);		
	};
		
	//-Event Handler-----------------------------------------------------------------------------------------------------------
	//-Public------------------------------------------------------------------------------------------------------------------
	
	/**
	 * @method
	 */
	Connection.prototype.create = function(parentView){
		this.createView(parentView);
	};	
	
	/**
	 * @method
	 */
	Connection.prototype.destroy = function()
	{		
		if (this.imageView) 
		{
			this.imageView.remove();
			this.imageView = null;
		}
	};
		
}			
