  function rbIsIE() {
        if (navigator.appName == "Microsoft Internet Explorer") {
            return true;
        }
        return false;
    }


    function rbIsOpera() {
        if (navigator.appName == "Opera") {
            return true;
        }
        return false;
    }


    function rbSupportsFixed() {
        if (navigator.appName == "Microsoft Internet Explorer") {
            var _1 = navigator.userAgent;
            var re = new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");
            var _3;
            if (re.exec(_1) != null) {
                _3 = parseFloat(RegExp.$1);
            }
            if (_3 < 7) {
                return false;
            }
        }
        return true;
    }

    var rbCenter = false;

    function rbInit() {
        if (rbSupportsFixed()) {
            div = document.getElementById("rbBackgroundDiv");
            div.style.position = "fixed";
        }
        setTimeout("rbReposition()", 50);
        rbResize();
    }

    var rbLastScrollTop = null;
    var rbSimulateTop = 0;
	
	function rbReload() {
		location.reload();
	}

    function rbResize() {
        var _4;
        var _5;
        var x, y, w, h;
        if (rbIsIE()) {
            if (rbSupportsFixed()) {
                _4 = parseInt(document.documentElement.clientWidth);
                _5 = parseInt(document.documentElement.clientHeight) + 3;
            } else {
                _4 = parseInt(document.body.clientWidth);
                _5 = parseInt(document.body.clientHeight);
            }
        } else {
            if (rbIsOpera()) {
                _4 = parseInt(window.innerWidth) - 16;
                _5 = parseInt(window.innerHeight);
            } else {
                testsize = document.getElementById("rbTestSizeDiv");
                _4 = testsize.scrollWidth;
                _5 = testsize.scrollHeight;
            }
        }
        div = document.getElementById("rbBackgroundDiv");
        img = document.getElementById("rbBackground");
		if (img.width == 0) {
			setTimeout("rbResize()", 1000);
			return;
		}
        if (_4 > 1350) {
            if (_5 > 830) {
                h = 830;
                y = (_5 - h) / 2;
            } else {
                h = 1350 * (img.height / img.width);
                y = (_5 - h) / 2;
            }
            w = 1350;
            x = (_4 - w) / 2;
        } else {
            if (_5 > 830) {
                h = 830;
                y = (_5 - h) / 2;
                w = 830 * (img.width / img.height);
                x = (_4 - w) / 2;
            } else {
                h = 1350 * (img.height / img.width);
                y = (_5 - h) / 2;
                w = 830 * (img.width / img.height);
                x = (_4 - w) / 2;
            }
        }
        div.style.left = parseInt(x) + "px";
        if (rbSupportsFixed()) {
            div.style.top = parseInt(y) + "px";
        } else {
            rbSimulateTop = parseInt(y);
        }
        img.style.width = parseInt(w) + "px";
        img.style.height = parseInt(h) + "px";
        div.style.visibility = "visible";
        rbLastScrollTop = null;
        rbReposition();
    }


    function rbReposition() {
        if (rbSupportsFixed()) {
            return;
        }
        setTimeout("rbReposition()", 50);
        body = document.documentElement;
        var _7 = body.scrollTop;
        if (_7 == rbLastScrollTop) {
            return;
        }
        rbLastScrollTop = _7;
        div = document.getElementById("rbBackgroundDiv");
        var _8 = document.getElementById("rbBodyDiv");
        var _9 = 0;
        var _a = _8.offsetHeight - _8.clientHeight;
        if (_a < 0) {
            _a = 0;
        }
        if (_7 <= _a) {
            _9 = _7;
        } else {
            _9 = _a;
        }
        if (_9 < 0) {
            _9 = 0;
        }
        div.style.top = _9 + rbSimulateTop;
    }


    function rbOpen(_b) {
        rbCenter = _b;
        document.write("<div id='rbBodyDiv' style='position: relative; z-index: 2'>\n");
    }


    function rbClose(_c) {
        document.write("</div>\n");
        str = "<div " + "id='rbBackgroundDiv' " + "style='position: absolute; " + "  visibility: hidden; " + "  top: 0px; " + "  left: 0px; " + "  z-index: 0'>" + "  <img src='" + _c + "' id='rbBackground'>" + "</div>\n";
        document.write(str);
        document.write("<div id='rbTestSizeDiv' style='width: 100%;   height: 100%;   position: fixed;   left: 0;   top: 0;   visibility: hidden;   z-index: -1'></div>\n");
    }