HsExpander.prototype.doFullExpand = function () {    try {        hs.purge(this.fullExpandIcon);        this.fullExpandIcon.parentNode.removeChild(this.fullExpandIcon);        this.focus();        this.x.min = parseInt(this.wrapper.style.left) - (this.fullExpandWidth - this.content.width) / 2;        if (this.x.min < hs.marginLeft) this.x.min = hs.marginLeft;                this.wrapper.style.left = this.x.min +'px';        var borderOffset = this.wrapper.offsetWidth - this.content.width;                this.content.width = this.fullExpandWidth;        this.content.height = this.fullExpandHeight;        this.x.span = this.content.width;        this.wrapper.style.width = (this.x.span + borderOffset) +'px';        this.y.span = this.wrapper.offsetHeight - 2 * this.offsetBorderH;        this.positionOutline(this.x.min, this.y.min, this.x.span, this.y.span);        // reposition overlays        for (x = 0; x < this.overlays.length; x++) {            hs.purge(this.overlays[x]);            this.overlays[x].parentNode.removeChild(this.overlays[x]);        }                if (hs.showCredits) this.writeCredits();        this.createCustomOverlays();        this.redoShowHide();    } catch (e) {        window.location.href = hs.expanders[this.key].content.src;    }};