//Class Afficheur
var Afficheur = Class.create({
	
	initialize: function(reload,origine,id){
		$_A_ = this;
	},
    
	show: function(url,width){
		this.att = new Attente();
		this.att.show();
		var contenu = '<div id="A_screen"></div>';
		$('A_loader').setStyle({width :width + 'px'});
		$('A_loader').update(contenu);
		var pos_y = ((window.screen.height + this.att.getScrollPosition())/2 - 150);
		this.displayImage(url,width);
	},
	
	displayImage: function(url,width){
		$('A_screen').setStyle({background : 'url(module/Importateur/uploaded/' + url + ') no-repeat center center',width:width+'px'});
		$('A_background').onclick = function(){$_A_.hideImage()};
		$('A_container').onclick = function(){$_A_.hideImage()};
	},
	
	hideImage: function(){
		if($('A_screen')) $('A_screen').remove();
		this.att.hide();
	}
});
