// JavaScript Document







/////////////////////////////////////////////////////

// Class InterfaceIHM

//

// !! normalement singleton !!



		

var InterfaceIHM = function(name,txt){

	//alert('constructeur IHM');
	// div loader

	this._div_loading ='_loading';
	this._div_loading_img ='_loading_img';
	this._div_loading_txt ='_loading_txt';
	this._div_loading_fullPage ='_loading_fullPage';
	

	this.status_loading_on = false;
	this._txt = txt;

	this.Page = new Array();
	this.Page_Vente;
	this.Galerie;
	this.Btn = new Array();
	this.Loadding;
	

	

	

	this.loadingFullOn = function(){
			$(this._div_loading_img).style.display='block';
			$(this._div_loading_img).style.visibility='visible';
			
			$(this._div_loading_fullPage).style.display='block';
	};
	
	this.loadingOn = function(){

			// affiche le div Loading...
			
			$(this._div_loading_img).style.display='block';
			
					
			if (typeof(this._txt)!="undefined")
			{ 
					$(this._div_loading).style.display='block';
					$(this._div_loading_txt).style.display='block';
			}
			else 
			{
					$(this._div_loading_fullPage).style.display='block';
			}

		//alert($(this._div_loading_img).innerHTML);
		//y insert une image ainsi que la zone de text

		/*var str ='';

		str='<img src="bin/js/ajax-loader.gif" width="32px"  height="32px" align="middle"/>'

		str +=' <div id="text_loading" ';

		str +=' style="opacity:0.5; position:absolute; ';

		str +=' top:-60px; left:165px; width:500px; height:60px; overflow:auto; padding:10px; border:2px; border-style:solid;">'

		str +='<br /><center>---------- Rapport d\'activitée ---------</center><br /> ';

		str +='</div>';

		document.getElementById('img_loading').innerHTML =str;

		*/

		//alert(str);
	};

	

	

	this.loadingOff = function(){

			// masque le div de loading...

			$(this._div_loading).style.display='none';

			$(this._div_loading_img).style.display='none';

			$(this._div_loading_txt).style.display='none';

			$(this._div_loading_fullPage).style.display='none';

	};

	

	this.debug_affiche = function(txt){

		/*var str='';

		//str +=' <div style="width:500px; opacity:0.5; filter: alpha(opacity=50); position:absolute; top:-50px; left:200px;">'

		str +='<br/>';

		str +='&nbsp;&nbsp;&nbsp;'+ txt;

		if( $('text_loading') ) alert('Messages du loader désactivés');

		document.getElementById('text_loading').innerHTML +=str;	

		*/

	};





};









