+Lightbox.prototype.switchToolBarPositioning = function(fixed) {
+ var tbs = this.toolbar.style;
+ if (fixed) {
+ this.toolbar.defaultCssText = this.toolbar.style.cssText;
+ tbs.width = String(this.toolbar.offsetWidth) + 'px';
+ tbs.height = String(this.toolbar.offsetHeight) + 'px';
+ tbs.position = 'fixed';
+ tbs.top = '0';
+ this.toolbarPlaceholder = document.createElement('div');
+ var phs = this.toolbarPlaceholder.style;
+ phs.cssText = tbs.cssText;
+ phs.position = 'relative';
+ this.toolbar.parentNode.insertBefore(this.toolbarPlaceholder, this.toolbar);
+ }
+ else {
+ this.toolbarPlaceholder.parentNode.removeChild(this.toolbarPlaceholder);
+ tbs.cssText = this.toolbar.defaultCssText;
+ }
+};
+
+