function wczytajOferte(adres1,adres2,lustro)
{
    if ( lustro == 1 ) adresAX = adres1 +','+ adres2 +','+ lustro +',oferta_detail_get_mirror.html';
    else adresAX = adres1 +','+ adres2 + ',oferta_detail_get.html';
    advAJAX.get({
        url : adresAX,
        tag : "oferta_detail",
        onLoading : function(obj)
        {            
            //document.getElementById(obj.tag).style.filter="Alpha(Opacity=70)";
            //document.getElementById(obj.tag).style.opacity=".7";
        },
        onSuccess : function(obj)
        { 
            document.getElementById(obj.tag).innerHTML = obj.responseText;
            flowplayer("player", "lib/flowplayer.swf", {
                plugins: {
                    controls: { playlist: false, play:false, volume:false, mute:false, time:false, stop:false, fullscreen:true,	scrubber: true,	autoHide: 'never', 
                                tooltips: { buttons: true, fullscreen: 'Zobacz na pełnym ekranie', fullscreenExit: 'Kliknij lub naciśnij klawisz Esc aby opuścić pełny ekran'	} 
                    }
                },
		         playlist: [ 
                    { 
                        url: 'images/animacja.png',
                        scaling: 'orig'
                    }, 
                    {
                        autoBuffering: true,
                        bufferLength: 10,
                        autoPlay: true,  
                        autoBuffering: true,
                        onBeforeFinish: function(){return false;} 
                    } 
		]
	    });
        },
        onError : function(obj)
        {
            document.getElementById(obj.tag).innerHTML = "Blad ("+ obj.status +") w trakcie pobierania danych, sprobuj ponownie... ";
        },
        onComplete : function(obj)
        {
            //document.getElementById(obj.tag).style.filter="Alpha(Opacity=100)";
            //document.getElementById(obj.tag).style.opacity="1.0";
        }
    });
}

