<!--
		/************************************************************
        **  ActiveButton, v1.1 - D.Leeson, Aug 1999.
        **  (c) 1999, Carvel Solutions Ltd.
        **      All rights reserved.
        **  Please feel free to use this code, but if you do, make
        **  sure you display this copyright message with it.
        **  See http://www.carvel.co.uk/carvel/development/javascript/
        **  for more details.
        ************************************************************/
        function ActiveButton_nothing() { return; }
        function ActiveButton_debug() {
            var sText = "**** ActiveButton (debug) ****\n";
            for ( key in this ) {sText = sText + "this." + key + " = " + this[key] + "\n"; }
            alert(sText);
        }
        function ActiveButton_rollOn() {
            this.bx.src = document[this.imgname].src;
            document[this.imgname].src = this.on.src;
            if ( this.comment != null ) window.status = this.comment;
            if ( this.labelname != null ) {
                this.lx.src = document[this.labelname].src;
                document[this.labelname].src = this.lbl.src;
            }
        }
        function ActiveButton_rollOff() {
            document[this.imgname].src = this.bx.src;
            window.status = '';
            if ( this.labelname != null ) document[this.labelname].src = this.lx.src;
            if ( this.timeout != null ) window.clearTimeout( this.timeout );
        }
        function ActiveButton_clicked() {
            //document[this.imgname].src = this.dn.src;
        	var newwin = window.open(this.url, this.target);
        	newwin.focus();
            //this.timeout = window.setTimeout("this.rolloff()", 200);
        }
        function ActiveButton_writeHTML() {
            var sText = "<A HREF=\"" + this.url + "\" TARGET=\"" + this.target + "\"";
            if ( 3 <= this.version ) {
                sText = sText + " onMouseOver='" + this.varname + ".rollon(); return true' " +
                "onMouseOut='" + this.varname + ".rolloff(); return true' " +
                "onClick='" + this.varname + ".clicked(); return true'";
            }
            sText = sText + '\076' +
                "<IMG NAME=\"" + this.imgname + "\" SRC=\"" + this.imgpath + "-off.gif\" " +
                "WIDTH=" + this.width + " HEIGHT=" + this.height + " BORDER=0 " +
                "ALT=\"" + this.comment + "\"" + '\076' + "<\/A" + '\076'
            document.write(sText);
        }
        function ActiveButton_setLabel( sLabelName ) {
        /* a bug in Netscape 3.x prevents use of label swapping */
            if ( 4 <= this.version ) {
                this.labelname = sLabelName;
                this.lbl = new Image(); this.lbl.src = this.imgpath + "-lbl.gif";
            }
        }
        function ActiveButton( sName, sPath, iWidth, iHeight, sURL, sComment, sTarget ) {
            this.varname = sName;
            this.imgname = sName + "_image";
            this.imgpath = sPath;
            this.width = iWidth;
            this.height = iHeight;
            this.url = sURL;
            this.comment = sComment;
            this.target = sTarget;
            this.version = parseInt(navigator.appVersion);
            this.debug = ActiveButton_debug;
            if ( 3 <= this.version ) {
                this.bx = new Image();
                this.lx = new Image();
                this.on = new Image(); this.on.src = this.imgpath + "-on.gif";
                this.dn = new Image(); this.dn.src = this.imgpath + "-on.gif";
                this.rollon = ActiveButton_rollOn;
                this.rolloff = ActiveButton_rollOff;
                this.clicked = ActiveButton_clicked;
                this.setLabel = ActiveButton_setLabel;
            }
            else {
                this.rollon = ActiveButton_nothing;
                this.rolloff = ActiveButton_nothing;
                this.clicked = ActiveButton_nothing;
                this.setLabel = ActiveButton_nothing;
            }
            this.writeHTML = ActiveButton_writeHTML;
        }

        function show_image( sImgName, iWidth, iHeight ) {
            var sURL = "/home/gallery/focus/" + sImgName + ".html";
            iWidth += 25; iHeight += 25;
            var h = window.open( sURL, sImgName, "'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + iWidth + ",height=" + iHeight + "'");
            return true;
        }
	function show_picture( sImgName, iWidth, iHeight ) {
	    var sURL = sImgName;
	    iWidth += 25; iHeight += 25;
	    var h = window.open( sURL, "ZOOM", "'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + iWidth + ",height=" + iHeight + "'");
	    return true;
	}
// -->