// PRELOADER



/*
*************** IMAGE PRELOADER *******************************************
*/
	if (document.images)
	{
	  pic1= new Image(100,25); 
	  pic2= new Image(100,25); 
	  pic3= new Image(100,25); 
 	  pic1.src="Components/Preloader/preload_bckg.jpg"; 
  	  pic2.src="Components/Preloader/preloader.jpg"; 
	  pic3.src="Components/Preloader/LoadIndicator.png"; 
	}

/*
*************** Loader *******************************************
*/

 	function fading() {
        //Ext.get('loading-mask3').remove();
		if (Ext.get('loading-mask1')) {
        Ext.get('loading-mask1').fadeOut({    
						endOpacity: 0, //can be any value between 0 and 1 (e.g. .5)
						easing: 'easeOut',
						duration: .5,
						remove: true,
						useDisplay: true
					});
        Ext.get('loading-mask2').fadeOut({    
						endOpacity: 0, //can be any value between 0 and 1 (e.g. .5)
						easing: 'easeOut',
						duration: .5,
						remove: true,
						useDisplay: true
					});
        Ext.get('loading-mask3').fadeOut({    
						//endOpacity: 0, //can be any value between 0 and 1 (e.g. .5)
						duration: .5,
					//	x: 34,
					//	y: 14,
						easing: 'easeOut',
						opacity: 0,
						remove: true,
						useDisplay: true
					});
        Ext.get('loading_percent').fadeOut({    
						//endOpacity: 0, //can be any value between 0 and 1 (e.g. .5)
					//	easing: 'easeOut',
						duration: .5,
					//	x: 34,
					//	y: 14,
						easing: 'easeOut',
						opacity: 0,
						remove: true
						//useDisplay: true
					});		
		}

		};


	//DIESE FUNKTION ENTFERNT DEN LOADER NACH X-MILISEKUNDEN ********************
	//setTimeout(fading, 4000);	// Länge in Milisekunden des Preloaders NORMAL: 4000 = 4 Sek.
	//setTimeout(function(){}, 4000);	// Länge in Milisekunden des Preloaders NORMAL: 4000 = 4 Sek.
