rem:  for (var i=0; i<6; i++) { for (var j=0; j<6; j++) { var id = i+'.'+j; var xx = x+i-2; var yy = y+j-2; var img = document.getElementById(id); if (img) { if (!img.xx) { img.xx = xx; } if (!img.yy) { img.yy = yy; } if (!img.galleryimg) { img.galleryimg = false; } if (drag_x + img.offsetLeft > 762) { image_rotate(img, -6, 0); } else if (drag_x + img.offsetLeft < -508) { image_rotate(img, 6, 0); } else if (drag_y + img.offsetTop > 762) { image_rotate(img, 0, -6); } else if (drag_y + img.offsetTop < -508) { image_rotate(img, 0, 6); } continue; } img = document.createElement('img'); img.id = id; img.style.position = 'absolute'; img.style.width = this.tilewidth + 'px'; img.style.height = this.tileheight + 'px'; img.style.left = ((i-2)*self.tilewidth) + 'px'; img.style.top = ((j-2)*self.tileheight) + 'px'; img.galleryimg = false; img.xx = xx; img.yy = yy; image_rotate(img, 0, 0); img.alt = 'Loading...'; this.drag.appendChild(img); } } 
context:     this.update = function(dx, dy, noMove) {        drag_x += dx;        drag_y += dy;        this.point.x = x + 1 - drag_x/this.tilewidth;        this.point.y = y + 1 - drag_y/this.tileheight;        if (!noMove) {            this.drag.style.left = drag_x + 'px';            this.drag.style.top = drag_y + 'px';        }        for (var i=0; i<6; i++) {            for (var j=0; j<6; j++) {                var id = i+'.'+j;                var xx = x+i-2;                var yy = y+j-2;                var img = document.getElementById(id);                if (img) {                    if (!img.xx) { img.xx = xx; }                    if (!img.yy) { img.yy = yy; }                    if (!img.galleryimg) { img.galleryimg = false; }                    if (drag_x + img.offsetLeft > 762) {                        image_rotate(img, -6, 0);                    } else if (drag_x + img.offsetLeft < -508) {                        image_rotate(img, 6, 0);                    } else if (drag_y + img.offsetTop > 762) {                        image_rotate(img, 0, -6);                    } else if (drag_y + img.offsetTop < -508) {                        image_rotate(img, 0, 6);                    }                    continue;                }                img = document.createElement('img');                img.id = id;                img.style.position = 'absolute';                img.style.width = this.tilewidth + 'px';                img.style.height = this.tileheight + 'px';                img.style.left = ((i-2)*self.tilewidth) + 'px';                img.style.top = ((j-2)*self.tileheight) + 'px';                img.galleryimg = false;                img.xx = xx;                img.yy = yy;                image_rotate(img, 0, 0);                img.alt = 'Loading...';                this.drag.appendChild(img);            }        }        return false;    };
meta: 9585	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9585/9475220c2f73e604e77e18c9e5f268ed78560a35/js.js/buggy/web/js.js