var pic_shadow_wrapper = new Class({
	Implements: [Chain, Options],
	/* standart egenskap */
	options: {
		imgs_info							: null
	},  	  
	/* -- constructor -- */
	initialize: function($options){
		this.setOptions($options);				
		for (pic_ind in this.options.imgs_info){			
			var pic_info = this.options.imgs_info[pic_ind];			
			var flashvars = this.create_swf_var();			
			flashvars.img_src = $(pic_info.id).getProperty('src');
			$extend(flashvars, pic_info.flashvars);			
			var attributes = this.create_swf_attr();
			attributes.name = $(pic_info.id).getProperty('name');	
			attributes.id = $(pic_info.id).getProperty('id');		
			swfobject.embedSWF(EDIT_CORE.JSSiteRoot + "site/main/swf/shadow_img_wraper.swf", pic_info.id, pic_info.w.toInt()+flashvars.sh_blurX.toInt()+(flashvars.border_w.toInt() * 2), pic_info.h.toInt()+flashvars.sh_blurY.toInt()+(flashvars.border_w.toInt()*2), "9.0.0", EDIT_CORE.JSSiteRoot + "site/pages/html/flash_expressInstall", flashvars, this.swf_params, attributes);
		}		
	},
	create_swf_var : function (){
		return {
		img_src:'',
		img_link:'',
		img_link_target:'',
		sh_alpha:"0.75",
		sh_distance: '2',
		sh_blurX:'4',
		sh_blurY:'4',
		sh_angle:"90",
		border_w:"2"
		//border_c: '0xff0000'
		}
	},
	create_swf_attr : function(){
		return {	  		
		styleclass :"flash_fade_class_1",
		standby:"Laster ned",
		align:"left"
		};
	},
	swf_params : {
		  bgcolor:"#ffffff",
		  wmode  :"transparent",
		  allowNetworking  :"all",
		  allowScriptAccess  :"always"
	  }
});
