﻿function selectTab(selectedTab) {
	var butArray = new Array("butSupport", "butDescription", "butSpecification", "butCompatibility", "butOptions", "butSimilar", "butDownloads", "butRange", "butHelp", "butRefurbished");
	var tabArray = new Array("tabSupport", "tabDescription", "tabSpecification", "tabCompatibility", "tabOptions", "tabSimilar", "tabDownloads", "tabRange", "tabHelp", "tabRefurbished");
	var item;
	for (item in butArray) {
		if (butArray[item] == selectedTab) {
			document.getElementById(butArray[item]).className = 'selected';
			document.getElementById(tabArray[item]).className = '';
		}
		else {
		    try {
		        document.getElementById(butArray[item]).className = '';
		    } catch (err) { }

		    try {
		        document.getElementById(tabArray[item]).className = 'hidden';
		    } catch (err) { }
		}
	}
}
