+if (browser.isGecko) {
+ Lightbox.prototype.disableDefaultDragging = function(element) {
+ if (!element) {
+ element = this.grid;
+ }
+ var i, j, name, elements;
+ var elementsNames = ['a', 'img'];
+ for (i=0 ; i < elementsNames.length ; i++) {
+ name = elementsNames[i];
+ elements = element.getElementsByTagName(name);
+ for (j=0 ; j < elements.length ; j++) {
+ elements[j].draggable=false;
+ }
+ }
+ };
+}
+else {
+ Lightbox.prototype.disableDefaultDragging = function() {};
+}
+