//---------------------------------------------------------------------------
// This script is based on the work of Dieter Bungers - http://www.infovation.de
// The original example for the "Cross Browser Expanding and Collapsing TOC"
// was published on http://www.siteexperts.com/tips/techniques/ts03/index.htm
//---------------------------------------------------------------------------

var tocTab = new Array();var ir=0;
tocTab[ir++] = new Array ("1", "Overview", "overview.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("2", "Installation Instructions", "installationinstructions.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("3", "Registration Information", "registrationinformation.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("4", "License Agreement", "licenseagreement.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("5", "Contact", "contact.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6", "CaptionButton", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("6.1", "TCaptionButton", "tcaptionbutton.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2", "Properties", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("6.2.1", "AllowPress", "captionbuttonallowpress.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.2", "BtnOrder", "captionbuttonbtnorder.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.3", "Cursor", "captionbuttoncursor.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.4", "CursorDown", "captionbuttoncursordown.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.5", "Down", "captionbuttondown.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.6", "Enabled", "captionbuttonenabled.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.7", "Glyph", "captionbuttonglyph.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.8", "GlyphDown", "captionbuttonglyphdown.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.9", "GlyphTransparent", "captionbuttonglyphtransparent.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.10", "Hint", "captionbuttonhint.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.11", "PopupMenu", "captionbuttonpopupmenu.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.12", "SeparatorWidth", "captionbuttonseparatorwidth.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.13", "ShowHint", "captionbuttonshowhint.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.14", "Sign", "captionbuttonsign.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.15", "SignFont", "captionbuttonsignfont.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.16", "SignLeft", "captionbuttonsignleft.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.17", "SignTop", "captionbuttonsigntop.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.18", "SystemMenu", "captionbuttonsystemmenu.htm", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("6.2.18.1", "ApplyToMenu", "captionbuttonsystemmenuapplyto.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.18.2", "Caption", "captionbuttonsystemmenucaption.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.18.3", "Position", "captionbuttonsystemmenupositio.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.18.4", "Separators", "captionbuttonsystemmenuseparat.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.2.19", "Visible", "captionbuttonvisible.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.3", "Methods", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("6.3.1", "RefreshButton", "captionbuttonrefreshbutton.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.3.2", "RefreshNCArea", "captionbuttonrefreshncarea.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.4", "Events", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("6.4.1", "OnCaptionDblClick", "captionbuttononcaptiondblclick.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.4.2", "OnClick", "captionbuttononclick.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.4.3", "OnPressed", "captionbuttononpressed.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("6.4.4", "OnReleased", "captionbuttononreleased.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7", "FormTopmost", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("7.1", "TFormTopmost", "tformtopmost.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2", "Properties", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("7.2.1", "CaptionButton", "formtopmostcaptionbutton.htm", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("7.2.1.1", "BtnOrder", "formtopmostcaptionbuttonbtnord.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2.1.2", "Cursor", "formtopmostcaptionbuttoncursor.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2.1.3", "CursorDown", "formtopmostcaptionbuttoncur1.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2.1.4", "Enabled", "formtopmostcaptionbuttonenable.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2.1.5", "Hint", "formtopmostcaptionbuttonhint.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2.1.6", "SeparatorWidth", "formtopmostcaptionbuttonsepara.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2.1.7", "ShowHint", "formtopmostcaptionbuttonshowhi.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2.1.8", "Visible", "formtopmostcaptionbuttonvisibl.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2.2", "SystemMenu", "formtopmostsystemmenu.htm", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("7.2.2.1", "ApplyToMenu", "formtopmostsystemmenuapplytome.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2.2.2", "Caption", "formtopmostsystemmenucaption.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2.2.3", "Position", "formtopmostsystemmenuposition.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2.2.4", "Separators", "formtopmostsystemmenuseparator.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.2.3", "Topmost", "formtopmosttopmost.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("7.3", "Events", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("7.3.1", "OnTopmostChanged", "formtopmostontopmostchanged.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8", "FormRoller", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("8.1", "TFormRoller", "tformroller.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2", "Properties", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("8.2.1", "Animate", "formrolleranimate.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.2", "AnimateSpeed", "formrolleranimatespeed.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.3", "CaptionButton", "formrollercaptionbutton.htm", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("8.2.3.1", "BtnOrder", "formrollercaptionbuttonbtnorde.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.3.2", "Cursor", "formrollercaptionbuttoncursor.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.3.3", "CursorDown", "formrollercaptionbuttoncursord.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.3.4", "Enabled", "formrollercaptionbuttonenabled.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.3.5", "Hint", "formrollercaptionbuttonhint.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.3.6", "SeparatorWidth", "formrollercaptionbuttonseparat.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.3.7", "ShowHint", "formrollercaptionbuttonshowhin.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.3.8", "Visible", "formrollercaptionbuttonvisible.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.4", "HintRollDown", "formrollerhintrolldown.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.5", "HintRollUp", "formrollerhintrollup.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.6", "RemainHeight", "formrollerremainheight.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.7", "RollUp", "formrollerrollup.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.8", "SystemMenu", "formrollersystemmenu.htm", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("8.2.8.1", "ApplyToMenu", "formrollersystemmenuapplytomen.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.8.2", "Caption", "formrollersystemmenucaption.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.8.3", "Position", "formrollersystemmenuposition.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.2.8.4", "Separators", "formrollersystemmenuseparators.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("8.3", "Events", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("8.3.1", "OnRollerChanged", "formrolleronrollerchanged.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9", "FormTrayIcon", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("9.1", "TFormTrayIcon", "tformtrayicon.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2", "Properties", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("9.2.1", "Animate", "formtrayiconanimate.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.2", "AnimateInterval", "formtrayiconanimateinterval.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.3", "CaptionButton", "formtrayiconcaptionbutton.htm", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("9.2.3.1", "BtnOrder", "formtrayiconcaptionbuttonbtnor.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.3.2", "Cursor", "formtrayiconcaptionbuttoncurso.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.3.3", "CursorDown", "formtrayiconcaptionbuttoncu1.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.3.4", "Enabled", "formtrayiconcaptionbuttonenabl.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.3.5", "Hint", "formtrayiconcaptionbuttonhint.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.3.6", "SeparatorWidth", "formtrayiconcaptionbuttonsepar.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.3.7", "ShowHint", "formtrayiconcaptionbuttonshowh.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.3.8", "Visible", "formtrayiconcaptionbuttonvisib.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.4", "Hint", "formtrayiconhint.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.5", "Icon", "formtrayiconicon.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.6", "ImageIndex", "formtrayiconimageindex.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.7", "ImageList", "formtrayiconimagelist.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.8", "Options", "formtrayiconoptions.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.9", "PlaySysActionSounds", "formtrayiconplaysysactionsound.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.10", "PopupMenu", "formtrayiconpopupmenu.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.11", "PopupMenuRestoreItem", "formtrayiconpopupmenurestoreit.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.12", "PopupMenuTrayMinimizeItem", "formtrayiconpopupmenutrayminim.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.13", "ShowHint", "formtrayiconshowhint.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.14", "StartMinimized", "formtrayiconstartminimized.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.15", "SystemMenu", "formtrayiconsystemmenu.htm", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("9.2.15.1", "ApplyToMenu", "formtrayiconsystemmenuapplytom.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.15.2", "Caption", "formtrayiconsystemmenucaption.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.15.3", "Position", "formtrayiconsystemmenuposition.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.15.4", "Separators", "formtrayiconsystemmenuseparato.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.16", "Visible", "formtrayiconvisible.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.17", "Win2kInfoBalloon", "formtrayiconwin2kinfoballoon.htm", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("9.2.17.1", "Enabled", "formtrayiconwin2kinfoballoonen.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.17.2", "Icon", "formtrayiconwin2kinfoballoonic.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.17.3", "Text", "formtrayiconwin2kinfoballoonte.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.17.4", "Timeout", "formtrayiconwin2kinfoballoonti.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.2.17.5", "Title", "formtrayiconwin2kinfoballoo1.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.3", "Methods", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("9.3.1", "MinimizeToTray", "formtrayiconminimizetotray.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.3.2", "RestoreFromTray", "formtrayiconrestorefromtray.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.3.3", "ShowInfoBalloon", "formtrayiconshowinfoballoon.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.4", "Events", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("9.4.1", "OnAnimate", "formtrayicononanimate.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.4.2", "OnCaptionDblClick", "formtrayicononcaptiondblclick.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.4.3", "OnClick", "formtrayicononclick.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.4.4", "OnDblClick", "formtrayiconondblclick.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.4.5", "OnHide", "formtrayicononhide.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.4.6", "OnMinimize", "formtrayicononminimize.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.4.7", "OnMouseDown", "formtrayicononmousedown.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.4.8", "OnMouseMove", "formtrayicononmousemove.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.4.9", "OnMouseUp", "formtrayicononmouseup.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.4.10", "OnPopupMenu", "formtrayicononpopupmenu.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.4.11", "OnRestore", "formtrayicononrestore.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("9.4.12", "OnShow", "formtrayicononshow.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10", "AppAutoRun", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("10.1", "TAppAutoRun", "tappautorun.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2", "Properties", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("10.2.1", "AutoRun", "appautorunautorun.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.2", "CaptionButton", "appautoruncaptionbutton.htm", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("10.2.2.1", "BtnOrder", "appautoruncaptionbuttonbtnorde.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.2.2", "Cursor", "appautoruncaptionbuttoncursor.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.2.3", "CursorDown", "appautoruncaptionbuttoncursord.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.2.4", "Enabled", "appautoruncaptionbuttonenabled.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.2.5", "Hint", "appautoruncaptionbuttonhint.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.2.6", "SeparatorWidth", "appautoruncaptionbuttonseparat.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.2.7", "ShowHint", "appautoruncaptionbuttonshowhin.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.2.8", "Visible", "appautoruncaptionbuttonvisible.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.3", "LogonNotice", "appautorunlogonnotice.htm", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("10.2.3.1", "Caption", "appautorunlogonnoticecaption.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.3.2", "Enabled", "appautorunlogonnoticeenabled.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.3.3", "Text", "appautorunlogonnoticetext.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.4", "RunFor", "appautorunrunfor.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.5", "RunOnce", "appautorunrunonce.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.6", "SystemMenu", "appautorunsystemmenu.htm", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("10.2.6.1", "ApplyToMenu", "appautorunsystemmenuapplytomen.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.6.2", "Caption", "appautorunsystemmenucaption.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.6.3", "Position", "appautorunsystemmenuposition.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.2.6.4", "Separators", "appautorunsystemmenuseparators.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.3", "Events", "", "", "msdn_closedbook.gif", "msdn_openbook.gif");
tocTab[ir++] = new Array ("10.3.1", "OnAutoRun", "appautorunonautorun.htm", "", "msdn_topic.gif", "");
tocTab[ir++] = new Array ("10.3.2", "OnButtonClick", "appautorunonbuttonclick.htm", "", "msdn_topic.gif", "");
isContent = true,
isIndex = false,
showNumbers = false,
textSizes = new Array(1, 1, 0.7, 0.7),
tocBehaviour = new Array(1,1),
tocScroll=true,
tocLinks = new Array(1,0);
var isIE = navigator.appName.toLowerCase().indexOf("explorer") > -1;
var mdi = (isIE) ? textSizes[1]:textSizes[3];
var sml = (isIE) ? textSizes[2]:textSizes[4];
var oldCurrentNumber = "", oldLastVisitNumber = "";
var toDisplay = new Array();
for (ir=0; ir<tocTab.length; ir++) {
toDisplay[ir] = tocTab[ir][0].split(".").length==1;
}
function reDisplay(currentNumber,tocChange,noLink,e) {
if (isIndex && (toc.location.href.substring(toc.location.href.lastIndexOf("/")+1,toc.location.href.length) != "captionbuttons_kwindex.htm")) { isIndex=false; isContent=true; }
if (currentNumber == "navIndex") { isContent=false; }
if (currentNumber == "navContent") { isIndex=false; isContent=true; }
if (e) {
ctrlKeyDown = (isIE) ? e.ctrlKey : (e.modifiers==2);
if (tocChange && ctrlKeyDown) tocChange = 2;
}
var currentNumArray = currentNumber.split(".");
var currentLevel = currentNumArray.length-1;
var currentIndex = 0;
var scrollY=0, addScroll=tocScroll;
if (currentNumber == "") currentNumber = top.location.href.substring(top.location.href.lastIndexOf("?")+1,top.location.href.length);
for (i=0; i<tocTab.length; i++) {
if ((tocTab[i][0] == currentNumber) || (tocTab[i][2] == currentNumber && tocTab[i][2] != "")) {
currentIndex = i;
currentNumber = tocTab[i][0];
currentNumArray = currentNumber.split(".");
currentLevel = currentNumArray.length-1;
break;
}
}
if (currentIndex < tocTab.length-1) {
nextLevel = tocTab[currentIndex+1][0].split(".").length-1;
currentIsExpanded = nextLevel > currentLevel && toDisplay[currentIndex+1];
}
else currentIsExpanded = false;
theHref = (noLink) ? "" : tocTab[currentIndex][2];
theTarget = tocTab[currentIndex][3];
for (i=1; i<tocTab.length; i++) {
if (tocChange) {
thisNumber = tocTab[i][0];
thisNumArray = thisNumber.split(".");
thisLevel = thisNumArray.length-1;
isOnPath = true;
if (thisLevel > 0) {
for (j=0; j<thisLevel; j++) {
isOnPath = (j>currentLevel) ? false : isOnPath && (thisNumArray[j] == currentNumArray[j]);
}
}
toDisplay[i] = (tocChange == 1) ? isOnPath : (isOnPath || toDisplay[i]);
if (thisNumber.indexOf(currentNumber+".")==0 && thisLevel > currentLevel) {
if (currentIsExpanded) toDisplay[i] = false;
else toDisplay[i] = (thisLevel == currentLevel+1);
}
}
}
if (!isContent && !isIndex) {
toc.location.href = "captionbuttons_kwindex.htm";
isIndex = true;
}
if (isContent) {
toc.document.write("<html>\n\r<head></head>\n\r<style type=\"text/css\">\n\r       SPAN.heading1 { font-family: Arial,Helvetica; font-weight: normal; font-size: 10pt; color: #000000; text-decoration: none }\n\r       SPAN.heading2 { font-family: Arial,Helvetica; font-weight: normal; font-size: 9pt; color: #000000; text-decoration: none }\n\r       SPAN.heading3 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r       SPAN.heading4 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r       SPAN.heading5 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r       SPAN.heading6 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r\n\r       SPAN.hilight1 { font-family: Arial,Helvetica; font-weight: normal; font-size: 10pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight2 { font-family: Arial,Helvetica; font-weight: normal; font-size: 9pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight3 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight4 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight5 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight6 { font-family: Arial,Helvetica; font-weight: normal; font-size: 8pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r</style>\n\r<body bgcolor=\"#FFFFFF\">\n\r  <font face=\"Arial,Helvetica\" size=\"4\"><b>\n\rCaptionButtons\n\r  </b></font>\n\r  <br>\n\r\n\r  <!-- Place holder for the TOC, do not delete the line below -->\n\r  ");}
for (i=0; i<tocTab.length; i++) {
if (toDisplay[i]) {
thisNumber = tocTab[i][0];
thisNumArray = thisNumber.split(".");
thisLevel = thisNumArray.length-1;
isCurrent = (i == currentIndex);
if (i < tocTab.length-1) {
nextLevel = tocTab[i+1][0].split(".").length-1;
img = (thisLevel >= nextLevel) ? tocTab[i][4] : ((toDisplay[i+1]) ? tocTab[i][5] : tocTab[i][4]);
}
else img = tocTab[i][4];
if (isContent) {
thisTextClass = ((thisNumber==currentNumber)?("hilight"):("heading"));
if (addScroll) scrollY+=((thisLevel<2)?mdi:sml)*25;
if (isCurrent) addScroll=false;
toc.document.write("<table border=0 cellspacing=0 cellpadding=2>");
toc.document.write("<tr><td width=" + ((thisLevel+1) * 20) + " align=right valign=top>");
toc.document.write("<a href=\"javaScript:history.go(0)\" onMouseDown=\"parent.reDisplay('" + thisNumber + "'," + tocBehaviour[0] + "," + tocLinks[0] + ",event)\">");
toc.document.write("<img src=\"" + img + "\" border=0></a>");
toc.document.write("</td><td align=left>");
toc.document.write("<a href=\"javaScript:history.go(0)\" onMouseDown=\"parent.reDisplay('" + thisNumber + "'," + tocBehaviour[1] + "," + tocLinks[1] + ",event)\">");
toc.document.write("<span class=\""  + thisTextClass + ((thisLevel>5) ? 6 : thisLevel+1) + "\">");
toc.document.write( ((showNumbers)?(thisNumber+" "):"") + tocTab[i][1]);
toc.document.write("</span></a>");
toc.document.writeln("</td></tr></table>");
} //isContent
}
}
if (!noLink) {
oldLastVisitNumber = oldCurrentNumber;
oldCurrentNumber = currentNumber;
}
if (isContent) {
toc.document.write("\n\r\n\r  <br>\n\r  <hr>\n\r  <font face=\"Arial,Helvetica\" size=\"1\">\n\rCopyright © 1998-2002, Utilmind Solutions. All Rights Reserved.\n\r  </font>\n\r</body>\n\r</html>");
toc.document.close();
if (tocScroll) toc.scroll(0,scrollY);
}
if (theHref)
if (theTarget=="top") top.location.href = theHref;
else if (theTarget=="parent") parent.location.href = theHref;
else if (theTarget=="blank") open(theHref,"");
else content.location.href = theHref;
}

