+ <style type="text/css">
+ .olPopup {
+ <?php printf("_width: %dpx;\n", ($thumbsmaxsize + 40))?>
+ }
+ .olPopup img {
+ <?php printf("max-height: %dpx;\n", $thumbsmaxsize)?>
+ <?php printf("max-width: %dpx;\n", $thumbsmaxsize)?>
+
+ /* for IE (does not understand max-heigth max-width) */
+ <?php printf("_height: expression((this.scrollHeight>this.scrollWidth) ?
+ Math.min(parseInt(this.scrollHeight), %d ) + 'px' : 'auto');\n", $thumbsmaxsize)?>
+ <?php printf("_width: expression((this.scrollWidth>this.scrollHeight) ?
+ Math.min(parseInt(this.scrollWidth), %d ) + 'px' : 'auto');\n", $thumbsmaxsize)?>
+ }
+ </style>