function dymek_pomocy(adres,szerokosc,wysokosc){
   // alert("przerabiam, nie tykać nic");
    
    var bg = new Element('div',
    {'class': 'popup-bg',
        'id': 'popup-bg',
        'events': {
            'click': function() {


         new Fx.Morph(div2, {duration: 500,onComplete:
            function() {
                this.destroy();
                div.destroy();
                        }.bind(this)
                        }).start(
    {'height': 10+"px",
     'width': 10+"px",
     'top': (scroll.y/2)+'px',
     'left': (scroll.x/2)+'px'
    });




            }}}).injectInside(document.body);

    var div = new Element('div',{
        'class': 'div-popup',
        'id': 'div-popup-div'
    }).injectInside(document.body);

    var div2    =   new Element('div',{'class':'div2-popup'}).injectInside(div);
    div2.setStyle("width",10+"px");
    div2.setStyle("height",10+"px");
    var imgLoader = new Element("img",{'src':"images/loading.gif",'class':'div2_loader'}).injectInside(div2);

    imgLoader.setStyle("margin-top",((wysokosc/2)-26)+"px");
    //div.setStyle("width",10+"px");
    //div.setStyle("height",10+"px");

    var divClose= new Element('div',{'class':'div-close'}).injectInside(div);
    var close   =  new Element('img',{'src':'images/closelabel.gif','class':"div-close-img",
        'events':{
            'click':function(e){

   new Fx.Morph(div2, {duration: 500,onComplete:
            function() {
                bg.destroy();
                div.destroy();
                        }}).start(
    {'height': 10+"px",
     'width': 10+"px",
     'top': (scroll.y/2)+'px',
     'left': (scroll.x/2)+'px'
    });

}}}).injectInside(divClose);
   
	var page = getSize();
	var sc = getScrollSize();
	var scroll = getScroll();

	bg.setStyles({
            'height': sc.y.toInt()+'px',
            'width': sc.x.toInt()+'px'
        });
	div.setStyles({
            'top': scroll.y+(page.y/2-(div.getStyle('height').toInt()/2))+'px',
            'left': scroll.x+(sc.x/2-(div.getStyle('width').toInt()/2))+'px'
        });


        
// animacja
    var myEffect1 = new Fx.Morph(div, {duration: 300});
    myEffect1.start({
    'top': scroll.y+(page.y/2-((wysokosc+10)/2))+'px',
    'left': scroll.x+(sc.x/2-((szerokosc+10)/2))+'px'
});

    var myEffect2 = new Fx.Morph(div2, {duration: 500});
    myEffect2.start({
    'height': (wysokosc+10)+"px", //Morphs the 'height' style from 10px to 100px.
    'width': (szerokosc+10)+"px"
});

//  wypełnienie treścią

            new Request.HTML({
        url:"help/"+adres,
         onSuccess:function(a,b,c) {

         
             imgLoader.destroy();
           div2.set("html",c);
    }
    }).get({show:"file"});



}