host = "/";if (document.images) {	buttons = new Array();}function create_button(buttonName) {	buttons[buttonName] = new button(buttonName,buttonName);}function create_arrow_button(buttonName) {	buttons[buttonName] = new button(buttonName,"arrow");}function create_back_button(buttonName) {	buttons[buttonName] = new button(buttonName,"backarrow");}function button(buttonName,imgName) {	this.name = buttonName;        this.out = new Image();	this.out.src = host + "images/button/" + imgName + ".gif";        this.over = new Image();	this.over.src = host + "images/button/" + imgName + "_over.gif";        this.down = new Image();	this.down.src = host + "images/button/" + imgName + "_down.gif";	this.state_over = 0;	this.state_down = 0;	return this;}function all_buttons_out(buttonName) {	for (i = 0; i < buttons.length; i++) {		button_out(buttons[i].name);	}}function button_out(buttonName) {        buttons[buttonName].state_over = 0;        buttons[buttonName].state_down = 0;        if(document.images) {                document.images[buttonName].src = buttons[buttonName].out.src;        }}function button_over(buttonName) {        buttons[buttonName].state_over = 1;        if (buttons[buttonName].state_down == 1) {		button_down(buttonName);	}        else if(document.images) {                document.images[buttonName].src = buttons[buttonName].over.src;        }}function button_down(buttonName) {        buttons[buttonName].state_down = 1;        if (document.images) {                document.images[buttonName].src = buttons[buttonName].down.src;        }}function button_up(buttonName) {	buttons[buttonName].state_down = 0;        if (buttons[buttonName].state_over == 1) {		button_over(buttonName);	}}function button_html(url,buttonName,altText) {	document.write("<A HREF=\"" + url + "\" onMouseOver=\"button_over('" + buttonName + "')\" onMouseDown=\"button_down('" + buttonName + "')\" onMouseUp=\"button_up('" + buttonName + "')\" onMouseOut=\"button_out('" + buttonName + "')\"><IMG NAME=login SRC=\"" + host + "images/button/" + buttonName + ".jpg\" ALIGN=RIGHT ALT=\"" + altText + "\" BORDER=0></A>");}
