/* article.js */ function switchTab(activeTab, activeBoxId) { if (document.getElementById) { var allTabs = activeTab.parentNode; var activeBox = document.getElementById(activeBoxId); var allBoxes = activeBox.parentNode; // loop through tabs and change them to off state for (i=0; i 974) { return "970px"; } else { return "auto"; } }