/* 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 984) { return "980px"; } else { return "auto"; } }