//Generic Display code //Updated 20 June 2008 - updated outline3() var L_COLLAPSE_TEXT="Hide All"; var L_EXPAND_TEXT="Show All"; function ExpandAll() { // Expand all var iSpan var iSpanSource var oSpan var sCaption var sAction var sImage // Determine the action, and the picture to replace sCaption=document.getElementById("ExpandAll").innerHTML; if (sCaption==L_EXPAND_TEXT) { sAction="expanded"; sImage="bluedrop.gif" document.getElementById("picHeader").src="collapsetri.gif"; document.getElementById("ExpandAll").innerHTML=L_COLLAPSE_TEXT; } else { sAction="collapsed"; sImage="blueup.gif" document.getElementById("picHeader").src="expandtri.gif"; document.getElementById("ExpandAll").innerHTML=L_EXPAND_TEXT; } // Run the action for all expand SPANs for (iSpan=0; iSpan < document.getElementsByTagName("DIV").length; iSpan++) { oSpan=document.getElementsByTagName("DIV").item(iSpan); iSpanSource=oSpan.sourceIndex; if (oSpan.id=="ExpCol") { document.getElementsByTagName("DIV").item(iSpan).className=sAction; if(document.getElementsByTagName("*")[iSpanSource-1].tagName=="IMG" && document.getElementsByTagName("*")[iSpanSource-2].tagName!="IMG") { document.getElementsByTagName("*")[iSpanSource-1].src=sImage; } else if(document.getElementsByTagName("*")[iSpanSource-2].tagName=="IMG") { document.getElementsByTagName("*")[iSpanSource-2].src=sImage } } // Handle the Q tag added late for Loc if (document.getElementsByTagName("*")[iSpanSource-1].tagName=="Q") { document.getElementsByTagName("*")[iSpanSource-2].src=sImage; } } // Run the action for all expand SPANs --- spans, hbertram for (iSpan=0; iSpan < document.getElementsByTagName("SPAN").length; iSpan++) { oSpan=document.getElementsByTagName("SPAN").item(iSpan); iSpanSource=oSpan.sourceIndex; if (oSpan.id=="ExpCol") { document.getElementsByTagName("SPAN").item(iSpan).className=sAction; } } // Change the text and the picture of the main caller document.getElementById("ExpandAll").className="DropDown"; // Now we do the inline defs var cLinks = document.getElementsByTagName("A"); var iNumLinks = cLinks.length; for (var i=0;i