rem: var id = i+'.'+j; 
add: var jj = (j + tile_x) % 6; var id = ii+'.'+jj; 
context:     success: function(o) {        var tiles = eval(o.responseText);	var drag = document.getElementById('drag');	for (var i=0; i<6; i++) {	    for (var j=0; j<6; j++) {	        var id = i+'.'+j;		var xx = x+j;		var yy = y+5-i;		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; }		    continue;		}		img = document.createElement('input');		img.type = 'image';                img.src = 'http://tilma.mysociety.org/tileserver/10k-full-london/' + tiles[i][j];		img.name = 'tile_' + xx + '.' + yy;		img.id = id;		img.style.position = 'absolute';		img.style.width = tilewidth + 'px';		img.style.height = tileheight + 'px';		img.style.top = ((i-2)*tileheight) + 'px';		img.style.left = ((j-2)*tilewidth) + 'px';		img.galleryimg = false;		img.xx = xx;		img.yy = yy;		img.alt = 'Loading...';		drag.appendChild(img);	    }	}    }
meta: 9585	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9585/9475220c2f73e604e77e18c9e5f268ed78560a35/js2.js/buggy/web/js2.js