function widgetTabSelection(thisTabSelectionButton) {
	var thisTabSelectionIndex = thisTabSelectionButton.parent().index();
	thisTabSelectionButton.parent().parent().children().each(function() {
		var thisElem = $(this);
		var thisElemImgSrc = thisElem.find('img').attr('src').split('_');
		if(thisElemImgSrc.length == 3) {
			thisElem.find('img').attr('src', thisElemImgSrc[0] + '_' + thisElemImgSrc[2]);
		}
	});
	var useSrc = thisTabSelectionButton.find('img').attr('src').split('_');
	thisTabSelectionButton.find('img').attr('src', useSrc[0] + '_selected_' + useSrc[1] );
	// Show data
	var thisTabDataElem = thisTabSelectionButton.parent().parent().parent().children('.data').children()[thisTabSelectionIndex];
	thisTabSelectionButton.parent().parent().parent().children('.data').children().css('display', 'none');
	$(thisTabDataElem).css('display', 'block');
}
