rem: document.getElementById('image').style.paddingTop = Math.floor((ah-h)/2)+'px'; 
add: document.getElementById('image_view').style.paddingTop = Math.floor((ah-h)/2)+'px'; 
context: function image_fit(getstr) { if (!getstr && !document.view) return; var w = data_iw[image_index], h = data_ih[image_index]; var aw = app_ww, ah = app_wh - toolbar_getheight(), a=0; if (w > aw || h > ah) {  if ((a = h/w) < ah/aw) {   w = aw; h = Math.round(aw*a);  } else {   w = Math.round(ah/a); h = ah;  } } if (image_zoomon) {  if (getstr || !a) image_zoom(0,1);  else { image_zoom(1); return; } } document.getElementById('image').style.paddingTop = Math.floor((ah-h)/2)+'px'; document.fit_size.className = 'off'; document.full_size.className = a?'on':'off'; if (getstr) {  return 'width="' + w + '" height="' + h + '"'; } else {  document.view.width = w;  document.view.height = h; }}
meta: 3727	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3727/4b9bc056d71582bbc4a0d9358e02e0e62ca4f22e/hybrid.js/clean/gallery2/layouts/hybrid/templates/hybrid.js