///////////////////////////////////////////////////////////////////////
// JavaScript Button Utilies
// Written by Malcolm Bader (mbader@slauson.com)
// Usage:
// <script type="text/javascript" src="buttons.js"></script> 
//
// <a href="show_cart.php"
// onmouseout="button_off('view_cart_button'); return true"
// onmouseover="button_on('view_cart_button'); return true"><img
// src="images/view_cart_button_off.png" style="border: none;" id="view_cart_button"></a>
//
///////////////////////////////////////////////////////////////////////

if ( document.images )
{
alpha_num_off = new Image ( );
alpha_num_on = new Image ( );
alpha_a_off = new Image ( );
alpha_a_on = new Image ( );
alpha_b_off = new Image ( );
alpha_b_on = new Image ( );
alpha_c_off = new Image ( );
alpha_c_on = new Image ( );
alpha_d_off = new Image ( );
alpha_d_on = new Image ( );
alpha_e_off = new Image ( );
alpha_e_on = new Image ( );
alpha_f_off = new Image ( );
alpha_f_on = new Image ( );
alpha_g_off = new Image ( );
alpha_g_on = new Image ( );
alpha_h_off = new Image ( );
alpha_h_on = new Image ( );
alpha_i_off = new Image ( );
alpha_i_on = new Image ( );
alpha_j_off = new Image ( );
alpha_j_on = new Image ( );
alpha_k_off = new Image ( );
alpha_k_on = new Image ( );
alpha_l_off = new Image ( );
alpha_l_on = new Image ( );
alpha_m_off = new Image ( );
alpha_m_on = new Image ( );
alpha_n_off = new Image ( );
alpha_n_on = new Image ( );
alpha_o_off = new Image ( );
alpha_o_on = new Image ( );
alpha_p_off = new Image ( );
alpha_p_on = new Image ( );
alpha_q_off = new Image ( );
alpha_q_on = new Image ( );
alpha_r_off = new Image ( );
alpha_r_on = new Image ( );
alpha_s_off = new Image ( );
alpha_s_on = new Image ( );
alpha_t_off = new Image ( );
alpha_t_on = new Image ( );
alpha_u_off = new Image ( );
alpha_u_on = new Image ( );
alpha_v_off = new Image ( );
alpha_v_on = new Image ( );
alpha_w_off = new Image ( );
alpha_w_on = new Image ( );
alpha_x_off = new Image ( );
alpha_x_on = new Image ( );
alpha_y_off = new Image ( );
alpha_y_on = new Image ( );
alpha_z_off = new Image ( );
alpha_z_on = new Image ( );

alpha_num_off.src = "images/alpha_num_off.gif";
alpha_num_on.src = "images/alpha_num_on.gif";
alpha_a_off.src = "images/alpha_a_off.gif";
alpha_a_on.src = "images/alpha_a_on.gif";
alpha_b_off.src = "images/alpha_b_off.gif";
alpha_b_on.src = "images/alpha_b_on.gif";
alpha_c_off.src = "images/alpha_c_off.gif";
alpha_c_on.src = "images/alpha_c_on.gif";
alpha_d_off.src = "images/alpha_d_off.gif";
alpha_d_on.src = "images/alpha_d_on.gif";
alpha_e_off.src = "images/alpha_e_off.gif";
alpha_e_on.src = "images/alpha_e_on.gif";
alpha_f_off.src = "images/alpha_f_off.gif";
alpha_f_on.src = "images/alpha_f_on.gif";
alpha_g_off.src = "images/alpha_g_off.gif";
alpha_g_on.src = "images/alpha_g_on.gif";
alpha_h_off.src = "images/alpha_h_off.gif";
alpha_h_on.src = "images/alpha_h_on.gif";
alpha_i_off.src = "images/alpha_i_off.gif";
alpha_i_on.src = "images/alpha_i_on.gif";
alpha_j_off.src = "images/alpha_j_off.gif";
alpha_j_on.src = "images/alpha_j_on.gif";
alpha_k_off.src = "images/alpha_k_off.gif";
alpha_k_on.src = "images/alpha_k_on.gif";
alpha_l_off.src = "images/alpha_l_off.gif";
alpha_l_on.src = "images/alpha_l_on.gif";
alpha_m_off.src = "images/alpha_m_off.gif";
alpha_m_on.src = "images/alpha_m_on.gif";
alpha_n_off.src = "images/alpha_n_off.gif";
alpha_n_on.src = "images/alpha_n_on.gif";
alpha_o_off.src = "images/alpha_o_off.gif";
alpha_o_on.src = "images/alpha_o_on.gif";
alpha_p_off.src = "images/alpha_p_off.gif";
alpha_p_on.src = "images/alpha_p_on.gif";
alpha_q_off.src = "images/alpha_q_off.gif";
alpha_q_on.src = "images/alpha_q_on.gif";
alpha_r_off.src = "images/alpha_r_off.gif";
alpha_r_on.src = "images/alpha_r_on.gif";
alpha_s_off.src = "images/alpha_s_off.gif";
alpha_s_on.src = "images/alpha_s_on.gif";
alpha_t_off.src = "images/alpha_t_off.gif";
alpha_t_on.src = "images/alpha_t_on.gif";
alpha_u_off.src = "images/alpha_u_off.gif";
alpha_u_on.src = "images/alpha_u_on.gif";
alpha_v_off.src = "images/alpha_v_off.gif";
alpha_v_on.src = "images/alpha_v_on.gif";
alpha_w_off.src = "images/alpha_w_off.gif";
alpha_w_on.src = "images/alpha_w_on.gif";
alpha_x_off.src = "images/alpha_x_off.gif";
alpha_x_on.src = "images/alpha_x_on.gif";
alpha_y_off.src = "images/alpha_y_off.gif";
alpha_y_on.src = "images/alpha_y_on.gif";
alpha_z_off.src = "images/alpha_z_off.gif";
alpha_z_on.src = "images/alpha_z_on.gif";

}

function button_on ( imgId )
{
  if ( document.images )
  {
    butOn = eval ( imgId + "_on.src" );
    document.getElementById(imgId).src = butOn;
  }
}

function button_off ( imgId )
{
  if ( document.images )
  {
    butOff = eval ( imgId + "_off.src" );
    document.getElementById(imgId).src = butOff;
  }
}

