// JavaScript Document

button_img0=new Image();
button_img1=new Image();
button_img2=new Image();
button_img3=new Image();

button_img0.src="wp-content/themes/cu/images/structure/cu_button_more_h.png";
button_img1.src="wp-content/themes/cu/images/structure/cu_button_previous_h.png";
button_img2.src="wp-content/themes/cu/images/structure/cu_button_next_h.png";
button_img3.src="wp-content/themes/cu/images/structure/cu_button_send_message_h.png";

var buttonClass="cu-button";

function onMouseOverButtonEvt(){
	this.src=this.src.replace("u.","h.");
}

function onMouseOutButtonEvt(){
	this.src=this.src.replace("h.","u.");
}

function initButtons(){
	var allELEMS=document.getElementsByTagName("*");
	var i=0;
	while(allELEMS.length>i){
		if(allELEMS[i].className.search(buttonClass)!=-1){
			allELEMS[i].onmouseover=onMouseOverButtonEvt;
			allELEMS[i].onmouseout=onMouseOutButtonEvt;
		}
		i++;
	}
}

