var currTab=null; // Panels and tabs are not available until function is called. var currPanel=null; var currThumbPanel=null; var nextTab=null; var nextPanel=null; var nextThumbPanel=null; var fullImg=null; var thumbImg=null; var tabName=""; var benefitItem=""; var benefitItemId=""; var benefitItemArrow=""; function initTabs() { currTab = $('benefitsTab'); currPanel = $('benefitsPanel'); currThumbPanel = $('benefitsThumbs'); // Show the current panel and hide the other panels. currPanel.show(); $('featuresPanel').hide(); $('requirementsPanel').hide(); $('specificationsPanel').hide(); // Show the current thumb panel and hide the other thumb panels. currThumbPanel.show(); $('featuresThumbs').hide(); $('requirementsThumbs').hide(); $('specificationsThumbs').hide(); // Hide all of the lists in the Benefits panel. $('pdList1').hide(); $('pdList2').hide(); $('pdList3').hide(); // Hide the Flash movie. $('flashImg').hide(); } function onClickTabHandler(event) { $('flashImg').hide(); showOrHideLeftColumn(); // Make the selected tab the next tab and its panel the next panel // and set the image in the full image panel to the first full image // associated with the tab panel. nextTab = Event.element(event); if(nextTab.type == undefined || nextTab == currTab) { return; } // Use the event to get the id of the clicked element. Use the clicked element's id // to find out which tab was selected. Use the selected tab's index to get the index // of the associated panel. var tabsToCheck = $('tabbedPanels').childNodes[1].childNodes[1]; if(tabsToCheck == undefined || tabsToCheck.tagName != "UL") { tabsToCheck = $('tabSet').childNodes[0]; // childNodes in IE hides text element for node. for( var i=0; i