rem: if (watermark_height > (0.9 * background_height)) { scale = Math.min(scale, (0.9 * background_height) / watermark_height); 
add: if (watermark_height > (0.85 * background_height)) { scale = Math.min(scale, (0.85 * background_height) / watermark_height); 
context: function initWatermarkFloater(floater_id, background_id, watermark_width,			      watermark_height, xPercentage, yPercentage) {    floater_el = document.getElementById(floater_id);    background_el = document.getElementById(background_id);    background_width = background_el.width || pxToNumber(background_el.style.width);    background_height = background_el.height || pxToNumber(background_el.style.height);    background_dd = new YAHOO.util.DDTarget(background_id);    background_x = YAHOO.util.Dom.getX(background_id);    background_y = YAHOO.util.Dom.getY(background_id);    floater_dd = new YAHOO.util.DD(floater_id);    var scale = 1.0;    if (watermark_width > (0.9 * background_width)) {	scale = (0.9 * background_width) / watermark_width;    }    if (watermark_height > (0.9 * background_height)) {	scale = Math.min(scale, (0.9 * background_height) / watermark_height);    }    floater_el.width = watermark_width * scale;    floater_el.style.width = floater_el.width + "px";    floater_el.height = watermark_height * scale;    floater_el.style.height = floater_el.height + "px";    floater_width = pxToNumber(floater_el.style.width);    floater_height = pxToNumber(floater_el.style.height);    var floater_x = YAHOO.util.Dom.getX(floater_id);    var floater_y = YAHOO.util.Dom.getY(floater_id);    YAHOO.util.Dom.setXY(	floater_id,	[ background_x + Math.round(xPercentage / 100 * (background_width - floater_el.width)),	  background_y + Math.round(yPercentage / 100 * (background_height - floater_el.height))]);    var floater_x_offset = (YAHOO.util.Dom.getX(floater_id) - background_x);    var floater_y_offset = (YAHOO.util.Dom.getY(floater_id) - background_y);    floater_dd.setXConstraint(floater_x_offset - 1,	                      background_width - floater_x_offset - floater_width, 1);    floater_dd.setYConstraint(floater_y_offset - 1,	                      background_height - floater_y_offset - floater_height, 1);}
meta: 3727	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3727/e3f28b160b41bbb3582edf835e03b3e52a8f51e8/watermark.js/clean/gallery2/modules/watermark/watermark.js