//Gestione caricamento immagini
<!--
function ImageLoader(id,url){
    this.i = new Image();
    this.indicator = new Image();
    this.indicator.src='ajax-loader.gif';
    this.id = id;
    this.url = url;
    this.rand = Math.floor(Math.random()*100000000000); //cache verhindern
    this.imEl=document.getElementById(id);

    this.loadImage = function(){
		objRef=this;
        this.imEl.src=this.indicator.src;
        this.i.src=this.url+'?r='+this.rand;
        objRef.waitForImage();
    };
    
    this.waitForImage = function(){
        if(objRef.i.complete){
            objRef.imEl.src=this.i.src;
        }else{
            setTimeout('objRef.waitForImage()', 0);
        }    
    };
}
function lo(id,url){
    loa=new ImageLoader(id,url);
    loa.loadImage();
} 
-->	
