document.observe("dom:loaded", function() {   
    arr_Thumbs = $$('img.Picture_128');
    obj_FullPicture = $('Picture_180');
    
    arr_Thumbs.each(function(obj_Element) { 
    obj_Element.observe('click', function(img_Event) {
        obj_CurrentImage = Event.element(img_Event); 
        
        new Ajax.Request('wwews/ajax.php?id=' + obj_CurrentImage.id, {
        method: 'get',
        requestHeaders: { 'Pragma': 'no-cache', 'Cache-Control': 'must-revalidate', 'If-Modified-Since': 'document.lastModified' },
        onComplete: function(Element) {
                        if(Element.responseText != "false") {
                            obj_FullPicture.update(Element.responseText);
                            obj_FullPicture.show();                        
                        }
                   }
        });        
        
    });
    
    obj_FullPicture.observe('click', function(img_Event) { 
        obj_FullPicture.hide();
    });
    });
});