rem: if (original_w < mw) clicks = 0; 
add:  if (clicks > 0) { clicks = 0; } 
context: function fit_both() {    // this function resizes the image to fill the current window width    // the next 4 lines determine the magnification factor to fill the window width and applies it to the heightmw = parent.frames.imageframe.document.body.clientWidth - 20;fctw = ((Math.log(mw/original_w)/Math.log(mag_factor)) );mh = parent.frames.imageframe.document.body.clientHeight - 20;fcth = ((Math.log(mh/original_h)/Math.log(mag_factor)) );fct = Math.min(fctw, fcth);clicks = fct;if (original_w < mw) clicks = 0;fit_both_mode = 1;zoom();}
meta: 6542	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6542/b5258642dd068361177f71dfa17133aa686710e2/img-lb2.js/clean/src/webapp/templates/javascript/img-lb2.js