+
+function scalePhotosToSize(size) {
+ $('.photoingallery, .albumingallery').each(function(index) {
+ if(this.height > this.width) {
+ this.width = this.width*size/this.height;
+ this.height = size;
+ }
+ else {
+ this.height = this.height*size/this.width;
+ this.width = size;
+ }
+ });
+ return false;
+}
\ No newline at end of file