//---------------------------------------------------------------------------
// 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", "SimuPLC's Fundament", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("1.1", "What is the SimuPLC?", "fundamentals.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.2", "The SimuPLC 2.0.0", "thesimuplc2_0_0.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.3", "The SimuPLC 2.1.0", "thesimuplc2_1_0.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.4", "The SimuPLC 2.1.1", "newitem.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.5", "The SimuPLC 3.0.0", "thesimuplc3_0_0.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.6", "The SimuPLC 3.1.0", "thesimuplc3_1_0.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.7", "The SimuPLC 3.2.0", "thesimuplc3_2_0.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.8", "The SimuPLC 3.3.0", "thesimuplc3_3_0.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.9", "The SimuPLC 4.0.0", "thesimuplc4_0_0.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.10", "The SimuPLC 4.1.0", "thesimuplc4_1_0.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.11", "Electric Commands Language - LCE", "lce.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.12", "Instruction List - IL", "instruction_list.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.13", "Logic-Bits Basic Instructions", "bit_instructions.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("1.14", "Variables, Constants and Types", "var_and_types.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2", "Operation of the Simulator", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.1", "General View", "main_menu.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2", "Menu", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.1", "File", "file.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.1.1", "New", "new.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.1.2", "Open", "open.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.1.3", "Save", "save.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.1.4", "Save As", "save_as.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.1.5", "Save Generated  IL", "save_generated_il.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.1.6", "Compile", "compile.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.1.7", "Check Non-Associated Variables", "checknon_associatedvariables.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.1.8", "Clean Inputs", "clean_inputs.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.1.9", "Show/Hide Source Program LCE", "show_lce_source_code.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.1.10", "Visualize IL", "visualize_il.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.1.11", "Print", "print.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.1.12", "Exit", "quit.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.1.13", "Recently Open Files", "recent_files.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2", "Edit", "edition.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.2.1", "UnDo Alteration", "undo.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.2", "Search Text ...", "search_text.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.3", "Replace Text ...", "replace_text.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.4", "Copy", "copy.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.5", "Cut", "cut.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.6", "Paste", "paste.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.7", "Copy All", "copy_all.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.8", "Paste All", "paste_all.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.9", "Format Program", "format_source_text.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.10", "Change Font ...", "change_fonts.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.11", "Customize Fonts/Colors", "customize_fonts_colors.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.12", "Save/Open Configuration", "save_open_configuration.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.13", "Standard Customization", "standard_configuration.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.14", "Hides/Show Tools Bar", "hide_tools_bar.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.15", "LEDs Colors", "leds_colors.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.16", "Translate Reserved Words", "translation_reserved_words.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.2.17", "AIW16-AIW31", "aiw16_aiw31.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.3", "Run Mode", "run_mode.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.4", "Multiple Cycles", "multiple_cycles.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.5", "Step-by-Step", "step_by_step.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.6", "Initiate", "initiate.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.7", "Bigger Screen", "bigger_screen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.8", "See Cycle", "see_cycle.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.9", "Var. Program", "significative_variables.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10", "Eletric Commands", "electrical_commands.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.10.1", "network", "network_clause.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.2", "If", "if.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.3", "Assignment of Single Value", "assignment.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.4", "Assignment of Expression", "expression_assignment.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.5", "Switch Operations", "switch_operations.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.6", "Mathematical Operations", "mathematical_operations.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.7", "Logical Operations", "logical_operations.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.8", "Run Controls", "execution_control.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.9", "Timers", "timers.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.10", "Counters", "counters.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.11", "High-Speed Counters", "high_speed_counters.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12", "Commands in Language  IL", "il_commands.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.10.12.1", "NETWORK", "network.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.2", "LD", "ld.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.3", "AND e OR", "and_or.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.4", "ST", "st.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.5", "Timers - TON, TOF, TONR e TOFR", "timers_ton_tof_tonr_tofr.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.6", "Counters - CU, CD e CUD", "counters_cu_cd_cud.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.7", "LPS, LRD e LPP", "lps_lrd_lpp.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.8", "ALD e OLD", "ald_old.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.9", "EU e ED", "eu_ed.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.10", "NOT", "not.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.11", "JMP e LBL", "jmp_lbl.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.12", "FOR e NEXT", "for_next.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.13", "CALL, SBR E CRET", "call_sbre_cret.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.14", "LSCR, SCRT e SCRE", "lscr_scrt_scre.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.15", "STOP e END", "stop_end.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.16", "SWAP", "swap.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.17", "TRUNC e ROUND", "trunc_round.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.18", "MUL e DIV", "mul_div.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.19", "BCDI e IBCD", "bcdi_ibcd.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.20", "SDirTipo e RDirTipo", "sdirtype_rdirtype.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.21", "opTipo", "optype.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.22", "MOVTipo", "movtype.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.23", "Tipo1TTipo2", "type1ttype2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.24", "AND, OR e XOR", "and_or_xor.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.25", "INV", "inv.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.26", "INC e DEC", "inc_dec.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.27", "DECO e ENCO", "deco_enco.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.28", "SEG", "seg.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.29", "SPID1, SPID2, SPID3 e PID", "spid1_spid2_spid3_pid.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.30", "SQRT", "sqrt.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.31", "SIN", "sin.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.32", "COS", "cos.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.33", "TAN", "tan.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.34", "LN", "ln.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.35", "RAND", "rand.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.36", "EXP", "exp.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.37", "MOD", "mod.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.38", "NOP", "nop.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.39", "Meaningful Variable", "meaningful_var.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.40", "ENI e DISI", "eni_disi.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.41", "ATCH e DTCH", "atch_dtch.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.42", "INT e CRETI", "int_creti.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.43", "RCV e XMT", "xmt_rcv.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.44", "WDR", "wdr.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.45", "O_COM", "o_com.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.46", "S_COM", "s_com.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.47", "B.COM", "b_com.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.12.48", "C_COM", "c_com.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.13", "Types of Condition", "condition_types.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.14", "PID - Loop Feedback Control", "pid_loop_control.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.15", "Chronological Variables", "chronological_variables.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.16", "Interrupt Handling", "interrupt_handling.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.10.16.1", "Enable Interrupt", "enable_interrupt.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.16.2", "Disable Interrupt", "disable_interrupt.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.16.3", "Attach Interrupt Handle", "attach.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.16.4", "Detach Event", "detach.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.16.5", "Interrupt Events", "interrupt_events.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.16.6", "Definition Interrupt Handle", "interrupt_handle_definition.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.17", "Communication by the Virtual Ports", "ports_communication.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.10.17.1", "Receive Byte from Ports", "receive_byte.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.17.2", "Transmit Byte in the Ports", "transmit_byte.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.18", "Watchdog Timer Error", "watchdog_timer.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.10.18.1", "WatchDog Reset", "watchdog_timer_reset.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.18.2", "Maximum Time of the Scan Cycle ...", "tempomáximodociclodevarre.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19", "SoftPLC - Real I/O on COM and LPT1 Ports", "softplc_iofromcom1tocom.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.10.19.1", "Open COM Port (RS-232C)", "opencomport(rs_232c).htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.2", "Set Baud Rate on COM Port", "setbaudrateoncomport.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.3", "Transmit Byte in COM Port", "transmitbyteincomport.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.4", "Close COM Port", "closecomport.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.5", "SoftPLC Interrupt Events", "softplcinterruptevents.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.10.19.5.1", "Byte Has Arrived in COM", "bytehasarrivedincom1.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.5.2", "Transmission Has Finished in COM", "transmissionhasfinishedinc.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.5.3", "Error Has Occurred in Port", "erroroccurredinport.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.6", "Variables That Refer to the COM and LPT1 Ports", "variablesthatrefertotheco.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.10.19.6.1", "Port Is Open", "portisopen.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.6.2", "Byte Has Arrived in Port", "bytehasarrivedinport.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.6.3", "Received Byte in Port", "receivedbyteinport.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.6.4", "Received Bits in Port", "receivedbitsinport.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.6.5", "Transmission Has Finished in Port", "transmissionhasfinishedinp.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.6.6", "Error Has Occurred in Port", "errorhasoccurredinport.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.7", "Variables That Refer to the LPT1 Port", "variablesthatrefertothelp.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.10.19.7.1", "Output Pins", "outpins.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.7.2", "Input Pins", "inputpins.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.7.3", "Output Byte", "outputbyte.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.10.19.7.4", "Input Value (5-bit)", "inputvalue(5_bit).htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.11", "Virtual Plants", "virtualplants2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.12", "I/O", "io.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.13", "SoftPLC", "softplc.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("2.2.13.1", "Manual Settings of the Communication Ports", "manualsettingsofthecommuni.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.13.2", "Open Manually Port", "openmanuallyport.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.13.3", "Close Manually Port", "closemanuallyport.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.13.4", "Send Manually Byte IB0 to COM Port", "sendmanuallybyteib0.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.13.5", "Activate/Deactivate LPT1 Port", "activatedeactivatelpt1port.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.14", "Help?", "help.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.2.15", "English/Portugu&ecirc;s", "english_português.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.3", "Bit Inputs and Outputs", "bit_inputs_outputs.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.4", "Analogical Inputs and Outputs", "analogical_inputs_outputs.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.5", "Current Scan Cycle", "current_scan_cycle.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.6", "Scroll Bars of the Ladder Diagram", "scroll_bars.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.7", "Duration of the Scan Cycle", "scan_cycle_duration.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.8", "plc and var", "plc_var.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.9", "Comments in the  LCE", "comments_lce.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("2.10", "Comments in the IL", "comments_il.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3", "Reserved Words", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("3.1", "Reserved Words and Synonymous - LCE", "reserved_words_lce.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("3.2", "Reserved Words and Synonymous - IL", "reserved_words_il.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4", "Virtual Plants", "virtualplants.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.1", "Simulated Tanks of Liquids", "simulatedtanksofliquids.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.1.1", "Feeding Valves", "feedingvalves.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.2", "Drain Valves", "drainvalves.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.3", "Beater", "beater.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.4", "Heater/Cooler", "heatercooler.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.5", "Thermometer", "thermometer.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.6", "Level Sensor", "levelsensor.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.7", "Buoys", "buoys.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.8", "Principal Menu of Tanks", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.1.8.1", "Turn PLC On/Off", "turnplcon.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.8.2", "Settings", "settings.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.8.3", "Colors of the Liquids", "colorsoftheliquids.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.8.4", "ReStart the Plant", "restarttheplant.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.8.5", "Reset the Plant", "resettheplant.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.8.6", "Hide the Plant", "hidetheplant.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.8.7", "ReDraw", "redesign.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.8.8", "Help?", "help2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.1.8.9", "Portugu&ecirc;s/English", "português.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2", "Simulated Elevator", "simulatedelevator.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.2.1", "Controls of Cabin", "controlsofcabin.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.2", "User's Actions", "user'sactions.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.3", "Signaling On Floors", "signalingonfloors.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.4", "Commands Upon the Cabin", "commandsuponthecabin.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.5", "Calling the Cabin", "callingthecabin.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.6", "Principal Menu of Elevator", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.2.6.1", "Turn PLC On/Off", "turnplconoff.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.6.2", "Reset Error/Emergency", "reseterroremerg_.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.6.3", "Settings", "settings2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.6.4", "ReStart the Plant", "restarttheplant2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.6.5", "Reset the Plant", "resettheplant2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.6.6", "Hide the Plant", "hidetheplant2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.6.7", "ReDraw", "redesign2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.6.8", "Speed of the Cabin", "speedofthecabin.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.6.9", "Help?", "help3.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.2.6.10", "Portugu&ecirc;s/English", "portuguêsenglish.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3", "Simulated Cooperative Robots", "simulatedcooperativerobots.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.3.1", "Simulated Robots-Based Manufacture", "simulatedrobotbasedmanufact.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.2", "Definition of the Piece To Be Mounted", "definitionofthepiecetobe.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.3", "Definition of Origin and Destination of the Piece", "definitionoftheoriginandd.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.4", "Setting the Piece To Be Mounted Into Virtual Plant", "settingintovirtualplantof.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.5", "Controls of Movement of the Robots", "controlsofmovimentofthero.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.6", "Sensoring the Piece and the Robots", "sensorsofthepieceandofro.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.7", "Principal Menu of Cooperative Robots", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.3.7.1", "Turn PLC On/Off", "turnplconoff2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.7.2", "Settings", "settings3.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.7.3", "ReStart the Plant", "restarttheplant3.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.7.4", "Reset the Plant", "resettheplant3.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.7.5", "Hide the Plant", "hidetheplant3.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.7.6", "ReDraw", "redraw.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.7.7", "Trace Visible / Invisible", "tracevisible.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.7.8", "Hide Trace", "hidetrace.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.7.9", "Help?", "help4.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.3.7.10", "Portugu&ecirc;s/English", "portuguêsenglish2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4", "Simulated Stepping Motor Based Mat", "simulatedsteppingmotorbased.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.4.1", "Automatic Bottle Filling", "bottlefilling.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.2", "Definition of the Stepping Motor", "definitionofthesteppingmot.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.3", "Definition of the Bottle", "definitionofthebottle.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.4", "Setting and Removing Bottle Into Virtual Mat", "settingthebottleintovirtua.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.5", "Control of the Movement of the Mat", "controlsofmovementofthema.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.6", "Control of the Liquid Feeder", "controloftheliquidfeeder.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.7", "Sensoring the Mat and the Bottle To Be or Being Filling", "sensoringthematandthebott.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.8", "Principal Menu of Mini-Mat", "", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("4.4.8.1", "Turn PLC On/Off", "turnplconoff3.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.8.2", "Reset Error", "reseterror.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.8.3", "Settings", "settings4.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.8.4", "ReStart the Plant", "restarttheplant4.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.8.5", "Reset the Plant", "resettheplant4.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.8.6", "Hide the Plant", "hidetheplant4.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.8.7", "ReDraw", "redraw2.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.8.8", "Help?", "help5.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("4.4.8.9", "Portugu&ecirc;s / English", "portuguêsenglish3.htm", "", "cicon9.gif", "");
tocTab[ir++] = new Array ("5", "SoftPLC - Concept", "softplc2.htm", "", "cicon1.gif", "cicon2.gif");
tocTab[ir++] = new Array ("5.1", "SoftPLC", "softplc3.htm", "", "cicon9.gif", "");
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 (e) {
ctrlKeyDown = (isIE) ? e.ctrlKey : (e.modifiers==2);
if (tocChange && ctrlKeyDown) tocChange = 2;
}
toc.document.clear();
toc.document.write("<html>\n\r<head></head>\n\r<style type=\"text/css\">\n\r       SPAN.heading1 { font-family: Top; font-weight: normal; font-size: pt; color: #000000; text-decoration: none }\n\r       SPAN.heading2 { font-family: Previous; font-weight: normal; font-size: pt; color: #000000; text-decoration: none }\n\r       SPAN.heading3 { font-family: Next; font-weight: normal; font-size: pt; color: #000000; text-decoration: none }\n\r       SPAN.heading4 { font-family: Helvetica,Arial; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r       SPAN.heading5 { font-family: Helvetica,Arial; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r       SPAN.heading6 { font-family: Helvetica,Arial; font-weight: normal; font-size: 8pt; color: #000000; text-decoration: none }\n\r\n\r       SPAN.hilight1 { font-family: Top; font-weight: normal; font-size: pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight2 { font-family: Previous; font-weight: normal; font-size: pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight3 { font-family: Next; font-weight: normal; font-size: pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight4 { font-family: Helvetica,Arial; font-weight: normal; font-size: 8pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight5 { font-family: Helvetica,Arial; font-weight: normal; font-size: 8pt; color: #FFFFFF; background: #002682; text-decoration: none }\n\r       SPAN.hilight6 { font-family: Helvetica,Arial; 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=\"Top\" size=\"4\"><b>\n\rPLC Simulator - SimuPLC 4.1.0\n\r  </b></font>\n\r  <br>\n\r  <br>\n\r\n\r  <!-- Place holder for the TOC, do not delete the line below -->\n\r  ");var currentNumArray = currentNumber.split(".");
var currentLevel = currentNumArray.length-1;
var currentIndex = 1;
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][2] == currentNumber && tocTab[i][2] != "") {
currentIndex = i;
break;
}
if (tocTab[i][0] == currentNumber) {
currentIndex = i;
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);
}
}
}
var scrollY=0, addScroll=tocScroll;
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];
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>");
}
}
if (!noLink) {
oldLastVisitNumber = oldCurrentNumber;
oldCurrentNumber = currentNumber;
}
toc.document.write("\n\r\n\r  <br>\n\r  <hr>\n\r  <font face=\"Top\" size=\"1\">\n\rCopyright &copy; 2002 Andr&eacute; Luiz Barbosa<br><br>Registration at INPI n&ordm; 00044692<br><br>Web Site: www.andrebarbosa.eti.br\n\r  </font>\n\r</body>\n\r</html>\n\r");
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;
}
