/* Aviation Week Scripting LeapFrog Interactive. evitiello, 2006-11-10 */ // switch tabs off and on. // function switchTabs(source, tabID, tabsClassName) { // source: the source of the event // the ID of the tab page to show // the className associatied with all of the tab pages // handle the tabs themselves. var kids = source.parentNode.parentNode.childNodes; // first, turn everyone off. for (i=0; i< kids.length; i++) { kids[i].className=''; } // then turnon the good one. source.parentNode.className = 'current'; // get all of the tab pages var pages = getElementsByClassName(document, "div", tabsClassName); // hide all tabs. for (i=0; i