function ButtonOnOff()
{
	//botões onOff
	
	$("img.btn_onOff").hover(
							 function() {
								 		  var img = $(this).attr("src").replace("_off", "_on");
										  if($(this).attr("enabled") != "false") $(this).attr({src:img});
										  
										  img = $(this).css("background-image").replace("_off", "_on");
										  $(this).css({"background-image":img});
										},
							 function() {
								 			var img = $(this).attr("src").replace("_on", "_off");
										  	if($(this).attr("enabled") != "false") $(this).attr({src:img});
											
											img = $(this).css("background-image").replace("_on", "_off");
										    if($(this).attr("enabled") != "false") $(this).css({"background-image":img})
								 		}
							 );
	
	$("img.btn_onOff").rollOut = function ()
											{
												alert("rollOut");
												
												/*var img = $(this).attr("src").replace("_on", "_off");
										  		if($(this).attr("enabled") != "false") $(this).attr({src:img});
											
												img = $(this).css("background-image").replace("_on", "_off");
										    	if($(this).attr("enabled") != "false") $(this).css({"background-image":img});*/
											}
}

$(document).ready(ButtonOnOff);