var sCategory = '';
var sSubCategory = '';
var sSubSubSection = '';
var sNowShowing = '';

function updateNowShowing(sTargetId,sText) {
	if (sText!=null) {
		$(sTargetId).innerHTML = sText;
	} else {
		$(sTargetId).innerHTML = sNowShowing;
	}
}

function selectCategory(iStep,sSelectionName,sSelectionStrippedName) {
	if (iStep==1) {
		//update texts in strings
		sCategory = sSelectionName;
		sNowShowing = sCategory;
		
		//toggle visibility of main area content
		Effect.BlindUp('wizardStep1', {duration: 0.2, queue: {position:'front', scope: 'contentScope'}});
		Effect.BlindDown('wizardStep2_'+sSelectionStrippedName, {duration: 0.4, queue: {position:'end', scope: 'contentScope'}});
		
		//toggle visibility of instruction field
		//step1instructions
		Effect.Fade('step1instructions', {duration: 0.15, queue: {position:'front', scope: 'instructionScope'}});
		Effect.Appear('step2instructions', {duration: 0.3, queue: {position:'end', scope: 'instructionScope'}});
	} else if (iStep==2) {
		sSubCategory = sSelectionStrippedName;
	} else if (iStep==3) {
		sSubSubSection = sSelectionStrippedName
	}
}