the title of the DIV, So try to get the title from an element within the DIV. Go through the list of elements in this.titleElements (typically heading elements ['h2','h3','h4']) */ for (i2=0; i2/gi," "); t.headingText = t.headingText.replace(/<[^>]+>/g,""); } break; } } } if (!t.headingText) { /* Title was not found (or is blank) so automatically generate a number for the tab. */ t.headingText = i + 1; } /* Create a list element for the tab */ DOM_li = document.createElement("li"); /* Save a reference to this list item so we can later change it to the "active" class */ t.headingText.replace(/
/gi," "); t.headingText = t.headingText.replace(/<[^>]+>/g,""); } break; } } } if (!t.headingText) { /* Title was not found (or is blank) so automatically generate a number for the tab. */ t.headingText = i + 1; } /* Create a list element for the tab */ DOM_li = document.createElement("li"); /* Save a reference to this list item so we can later change it to the "active" class */ t.headingText.replace(/
/gi," "); t.headingText = t.headingText.replace(/<[^>]+>/g,""); } break; } } } if (!t.headingText) { /* Title was not found (or is blank) so automatically generate a number for the tab. */ t.headingText = i + 1; } /* Create a list element for the tab */ DOM_li = document.createElement("li"); /* Save a reference to this list item so we can later change it to the "active" class */ t.li = DOM_li; /* Create a link to activate the tab */ DOMxt.replace(/<[^>]+>/g,""); } DOM_a.appendC } } if (!t.headineadingText)); /* Title was not found (or is blank) so automatically generate a number for the tab. */ t.headingText = i + 1; } /* Create a list element for the tab */ DOM_li = document.createElement("li"); /* Save a reference to this list item so we can later change it to the "active" class */ t.li = DOM_li; /* Create a link to activate the tab */ DOM_a = document.createElement("a"); DOM_a.appendChild(document.createTextNode(t.headingText)); DOM_a.href = "javascript:void(null);"; DOM_a.title = t.headingText; DOM_a.onclick = this.navClick; /* Add some properties to the link so we can identify which tab was clicked. Later the navClick method will need this. */ DOM_a.tabber = this; DOM_a.tabberIndex = i; /* Do we need to add an id to DOM_a? */ if (this.addLinkId && this.linkIdFormat) { /* Getermine the id name */ aId = this.linkIdFormat; aId = aId.replace(//gi, this.id); aId = aId.replace(//gi, i+1); /* Add some propertieabtitle>/gi, t.headican identify which tab was clicked. Later the navClick method will need this. */ DOM_a.tabber = this; DOM_a.tabberIndex = i; /* Do we need to add an id to DOM_a? */ if (this.addLinkId && this.linkIdFormat) { /* Getermine the id name */ aId = this.linkIdFormat; aId = aId.replace(//gi, this.id); aId = aId.replace(//gi, i); aId = aId.replace(//gi, i+1); aId = aId.replace(//gi, t.headingText.replace(/[^a-zA-Z0-9\-]/gi, '')); DOM_a.id = aId; } /* Add the link to the list element */ DOM_li.appendChild(DOM_a); /* Add the list element to the list */ DOM_ul.appendChild(DOM_li); } /* Add the UL list to the beginning of the tabber div */ e.insertBefore(DOM_ul, e.firstChild); /* Make the tabber div "live" so different CSS can be applied */ e.className = e.className.replace(this.REclassMain, this.classMainLive); /* Activate the default tab, and do not call the onclick handler */ this.tabShow(defaultTab); /* If the user specified an onLoad function, call it now. */ if (typeof this.onLoad == 'fut element to the lis.onLoad({tabber:this}); } return this; }; tabbL ějst to the beginning of the tabber div */ e.insertBefore(DOM_ul, e.firstChild); /* Make the tabber div "live" so different CSS can be applied */ e.className = e.className.replace(this.REclassMain, this.classMainLive); /* Activate the default tab, and do not call the onclick handler */ this.tabShow(defaultTab); /* If the user specified an onLoad function, call it now. */ if (typeof this.onLoad == 'function') { this.onLoad({tabber:this}); } return this; }; tabberObj.prototype.navClick = function(event) { /* This method should only be called by the onClick event of an element, in which case we will determine which tab was clicked by examining a property that we previously attached to the element. Since this was triggered from an onClick event, the variable "this" refers to the element that triggered the onClick event (and not to the tabberObj). When tabberObj was initialized, we added some extra properterObj.prototype.navClick = function(e purpose of retThis method should only be called by the onClick event of an element, in which case we will determine which tab was clicked by examining a property that we previously attached to the element. Since this was triggered from an onClick event, the variable "this" refers to the element that triggered the onClick event (and not to the tabberObj). When tabberObj was initialized, we added some extra properties to the element, for the purpose of retrieving them now. Get the tabberObj object, plus the tab number that was clicked. */ var rVal, /* Return value from the user onclick function */ a, /* element that triggered the onclick event */ self, /* the tabber object */ tabberIndex, /* index of the tab that triggered the event */ onClickArgs; /* args to send the onclick function */ a = this; if (!a.tabber) { return false; } self = a.tabber; tabberIndex = a.tabberIndex; /* Remove focus from the link becarieving them now. Get on't know if this is a gus the tab number that was clicked. */ var rVfied an eturn value from the user onclick function */ a, /* element that triggered the onclick event */ self, /* the tabber object */ tabberIndex, /* index of the tab that triggered the event */ onClickArgs; /* args to send the onclick function */ a = this; if (!a.tabber) { return false; } self = a.tabber; tabberIndex = a.tabberIndex; /* Remove focus from the link because it looks ugly. I don't know if this is a good idea... */ a.blur(); /* If the user specified an onClick function, call it now. If the function returns false then do not continue. */ if (typeof self.onClick == 'function') { onClickArgs = {'tabber':self, 'index':tabberIndex, 'event':event}; /* IE uses a different way to access the event object */ if (!event) { onClickArgs.event = window.event; } rVal = self.onClick(onClickArgs); if (rVal === false) { return false; } } self.tabShow(tabberIndex); return false; }; tabberObj.prototype.tabHideAll = function() { var i; /*w. If the /* Hide all tabs and make all navigontinue. */ if (typeof self.onClick == 'function') { onClickArgs = {'tabber':self, 'index':tabberIndex, 'event':event}; /* IE uses a different way to access the event object */ if (!event) { onClickArgs.event = window.event; } rVal ptions == 'undefined') { tabberAutomaticOnLoad(); } else { if (!tabberOptions['manualStartup']) { tabberAutomaticOnLoad(tabberOptions); } } function productDetail(detail) { var detailBox = eval('document.getElementById("' + detail + 'Detail")'); //var iconImage = eval('document.getElementById("' + detail + 'Arrow")'); //var toggleText = eval('document.getElementById("' + detail + 'Tog")'); if (detailBox.style.display != "block") { detailBox.style.display = "block"; //iconImage.src = "images/arrow-down.png"; //toggleText.innerHTML = "[ x Hide Details ]"; // toggleText.style.color = "#666"function productDetail(detail) { var detailBox = eval('document.getElementById("' + detail + 'Detail")'); //var iconImage = eval('document.getElementById("' + detail + 'Arrow")'); //var toggleText = eval('document.getElementById("' + detail + 'Tog")'); if (detailBox.style.display != "block") { detailBox.style.display = "block"; //iconImage.src = "images/arrow-down.png"; //toggleText.innerHTML = "[ x Hide Details ]"; // toggleText.style.color = "#666"; } else { detailBox.style.display = "none"; //iconImage.src = "images/arrow-left.png";*/ //toggleText.innerHTML = "[ + Show Details ]";*/ } }