/* utf8 marker ö */

// ----------------------------------------------------------------
// create the Icon class
// ----------------------------------------------------------------
mlvi.Icon = function(){
};
mlvi.Icon.prototype = {
	// ----------------------------------------------------------------
	// place the icon in the correct location
	// ----------------------------------------------------------------
	mlviPlace: function(){
		var iconStyles = {
			'float':	'left'
		};
		
		//control zoom, resize and set scales ...
		iconStyles.width 	= this.VIcontainer.mlviTransformX(
			this.VIcontainer.mlviImageDefinition.elements[this.VIelement.mlviIndex].icon.width
		);
		iconStyles.height 	= this.VIcontainer.mlviTransformY(
			this.VIcontainer.mlviImageDefinition.elements[this.VIelement.mlviIndex].icon.height
		);

		//set styles to the container
		this.setStyle(
			iconStyles		
		);

		
	},
	// ----------------------------------------------------------------
	// save the icon ID
	// ----------------------------------------------------------------
	mlviSetIconID: function(id){
		if(this.VIcontainer.mlviImageDefinition.elements[this.VIelement.mlviIndex].icon!=null){
			this.VIcontainer.mlviImageDefinition.elements[this.VIelement.mlviIndex].icon.id = id;
		}
	},
	
	// ----------------------------------------------------------------
	// get the icon ID
	// ----------------------------------------------------------------
	mlviGetIconID: function(){
		//save the text in the data structure
		if(
			this.VIcontainer.mlviImageDefinition.elements[this.VIelement.mlviIndex].icon!=null
			&& this.VIcontainer.mlviImageDefinition.elements[this.VIelement.mlviIndex].icon.id!=null
		){
			return this.VIcontainer.mlviImageDefinition.elements[this.VIelement.mlviIndex].icon.id;
		}
		
		return 0;
	},
	
	
	
	
	
	NADA: ''
};


