rem: var fct;  mg = document.body.clientWidth - 20; fct = ((Math.log(mg/original_w)/Math.log(mag_factor))); clicks = fct; zoom(); 
context: function fit_width() {    // this function resizes the image to fill the current window widthvar fct;    // the next 4 lines determine the magnification factor to fill the window width and applies it to the heightmg = document.body.clientWidth - 20;fct = ((Math.log(mg/original_w)/Math.log(mag_factor)));clicks = fct;zoom();}
meta: 6542	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6542/f585488a97ac3217cef5b6d5ac94d100a4c1f12e/img-lb2.js/buggy/src/webapp/templates/javascript/img-lb2.js