jQuery(document).ready(function(){
	jQuery(".quickBtn img").hover(function(){
		imgHover(jQuery(this),'off');
	},function(){
		imgHover(jQuery(this),'on');
	});

	jQuery(".utilMenu img").hover(function(){
		imgHover(jQuery(this),'off');
	},function(){
		imgHover(jQuery(this),'on');
	});
       

	jQuery(".Rbtn img").hover(function(){
		imgHover(jQuery(this),'off');
	},function(){
		imgHover(jQuery(this),'on');
});

jQuery(".Lbtn img").hover(function () {
    imgHover(jQuery(this), 'off');
}, function () {
    imgHover(jQuery(this), 'on');
});
/*
	jQuery(".leftMenu img").hover(function(){
		imgHover(jQuery(this),'off');
	},function(){
		imgHover(jQuery(this),'on');
	});
// */
});


function imgHover(imgObj,s){
	var f;
	var c = jQuery(imgObj).attr("src");
	if(s == 'off'){
		f = /_off/g;
	}else if(s == 'on'){
		f = /_on/g;
	}

	if( f.test(c) ){
		if(s == 'off'){
			jQuery(imgObj).attr("src", jQuery(imgObj).attr("src").replace(f,"_on" ));
		}else if(s == 'on'){
			if(!jQuery(imgObj).hasClass("current")){
				jQuery(imgObj).attr("src", jQuery(imgObj).attr("src").replace(f,"_off" ));
			}
		}
	}
}

