if ( document.images ) {
	buttonstrip_l = new Image();
	buttonstrip_l.src = smf_images_url + "/buttonstrip-l.gif";
	buttonstrip_l_ov = new Image();
	buttonstrip_l_ov.src = smf_images_url + "/buttonstrip-l_ov.gif";
	
	buttonstrip_m = new Image();
	buttonstrip_m.src = smf_images_url + "/buttonstrip-m.gif";
	buttonstrip_m_ov = new Image();
	buttonstrip_m_ov.src = smf_images_url + "/buttonstrip-m_ov.gif";
	
	buttonstrip_r = new Image();
	buttonstrip_r.src = smf_images_url + "/buttonstrip-r.gif";
	buttonstrip_r_ov = new Image();
	buttonstrip_r_ov.src = smf_images_url + "/buttonstrip-r_ov.gif";
}

function toggleButton( sender, hilited ) {
	if ( document.images ) {
		var id = sender.id;
		
		if ( hilited ) {
			document.getElementById( id ).style.backgroundImage = "url(" + smf_images_url + "/buttonstrip-m_ov.gif)";
		} else {
			document.getElementById( id ).style.backgroundImage = "url(" + smf_images_url + "/buttonstrip-m.gif)";
		}
		
		var left = document.getElementById( id + "-left" );
		if ( left ) {
			if ( hilited ) {
				left.style.backgroundImage = "url(" + smf_images_url + "/buttonstrip-l_ov.gif)";
			} else {
				left.style.backgroundImage = "url(" + smf_images_url + "/buttonstrip-l.gif)";
			}
		}
		
		var right = document.getElementById( id + "-right" );
		if ( right ) {
			if ( hilited ) {
				right.style.backgroundImage = "url(" + smf_images_url + "/buttonstrip-r_ov.gif)";
			} else {
				right.style.backgroundImage = "url(" + smf_images_url + "/buttonstrip-r.gif)";
			}
		}
	}
}

