intActiveFeature = 1;

function fnFeatureChange(intFeature) {
	document.getElementById("feature-nav-" + intActiveFeature).style.backgroundPosition = "top left";
	document.getElementById("feature-" + intActiveFeature).style.display = "none";

	document.getElementById("feature-nav-" + intFeature).style.backgroundPosition = "bottom left";
	document.getElementById("feature-" + intFeature).style.display = "inline";
	
	intActiveFeature = intFeature;
}

function fnFeatureNext(){
	(intActiveFeature == (arrayFeatureCaption.length - 1)) ? fnFeatureChange(1) : fnFeatureChange(intActiveFeature + 1);
}

function fnFeaturePrevious(){
	(intActiveFeature == 1) ? fnFeatureChange((arrayFeatureCaption.length - 1)) : fnFeatureChange(intActiveFeature - 1);
}
