function loadImages() {
    for (var i = 0; i < arguments.length; i++) {
        var temp = makeId(arguments[i]);
        eval(temp +"= new Image()");
        eval(temp+".src ='"+ arguments[i] +"'");
    }
}
function makeId(path) {
    return path.substring( path.lastIndexOf("/")+1, path.lastIndexOf("."));
}

function setlisteners()
{
	var action_elements;
	action_elements = document.images
	
	for (var i=0; i < action_elements.length;i++)
	{
		if (action_elements[i].getAttribute('oversrc'))
		{
			
			action_elements[i].onmouseover = swapimage;
			action_elements[i].onmouseout = swapimage;
		}
	}
}

function swapimage()
{
	var temp = this.src;
	this.src = this.getAttribute('oversrc');
	this.setAttribute('oversrc',temp);
}

function onloadImages(){
          loadImages('images/button_1_on.gif','images/button_2_on.gif','images/button_3_on.gif','images/button_4_on.gif','images/button_5_on.gif','images/button_6_on.gif','images/button_7_on.gif');            
      } 
