	function loading(){
			var x =document.images.length
			for(i=0;i<=x;i++){
				try{
					if(!document.getElementsByTagName('img')[i].id==null || 
						document.getElementsByTagName('img')[i].id!='undefined' ||
						document.getElementsByTagName('img')[i].id=='imgloading_'+i
						){
							var loading = document.getElementById('imgloading_'+i);
							if(loading.height!=null && loading.width!=null){
								document.getElementById('loading_'+i).style.height = loading.height;
								document.getElementById('loading_'+i).style.width = loading.width;
								document.getElementById('loading_'+i).style.backgroundPosition = 'center';
								//document.getElementById('loading['+i+']').style.border = '1px solid #C0C0C0';
							}else{
								document.getElementById('loading_'+i).style.height = 50;
								document.getElementById('loading_'+i).style.width = 50;
								document.getElementById('loading_'+i).style.backgroundPosition = 'center';
								//document.getElementById('loading['+i+']').style.border = '1px solid #C0C0C0';
							}
							document.getElementById('loading_'+i).style.display='block';
							document.getElementById('loading_'+i).style.backgroundRepeat='no-repeat';
							document.getElementById('loading_'+i).style.backgroundImage='url(images/spinner.gif)';
							
							if(loading.complete){
								//loading.style.display='block';
								document.getElementById('loading_'+i).style.backgroundImage='';
								document.getElementById('loading_'+i).style.backgroundRepeat='';
								document.getElementById('loading_'+i).style.backgroundPosition='';
								document.getElementById('loading_'+i).style.width='0px';	
								document.getElementById('loading_'+i).style.display='none';	
								document.getElementById('loading_'+i).style.height = 0;
								document.getElementById('loading_'+i).style.width = 0;
								fedeFun(i);
							}else{
								loading.style.display='none';
								document.getElementById('loading_'+i).style.backgroundRepeat='no-repeat';
								document.getElementById('loading_'+i).style.backgroundPosition='center';
							}
						}
					}catch(err){}
			}		
	}
