// Part data
function generateList ()
{
objectTemplate = new Array
objectList = new Array
objectList[180062976]=listNode ("assembly", "")
objectList[180096704]=listNode ("viewpoint", "")
objectList[180099440]=listNode ("viewpoint light", "")
objectList[180102224]=listNode ("SPACE_TRAVELER", "")
objectList[180105016]=listNode ("ST_CABLE_ATTACHMENT", "ST_CABLE_ATTACHMENT.idb")
objectList[180124096]=listNode ("Base", "")
objectList[180211720]=listNode ("ST_BASE_BOTTOM", "ST_BASE_BOTTOM.idb")
objectList[180464176]=listNode ("ST_RUBBER_RING", "ST_RUBBER_RING.idb")
objectList[180575192]=listNode ("Top", "")
objectList[180385904]=listNode ("SCREW_TH_M3_25", "SCREW_TH_M3_25.idb")
objectList[180648992]=listNode ("SCREW_TH_M3_25", "SCREW_TH_M3_25.idb")
objectList[180264968]=listNode ("SCREW_TH_M3_25", "SCREW_TH_M3_25.idb")
objectList[180758088]=listNode ("CABLE", "CABLE.idb")
objectList[180676488]=listNode ("ST_DIGITAL_PCB", "ST_DIGITAL_PCB.idb")
objectList[180976160]=listNode ("Cap and Keys", "")
objectList[223179168]=listNode ("ST_KEYS", "ST_KEYS.idb")
objectList[224534536]=listNode ("ST_CAP", "ST_CAP.idb")
objectList[225406280]=listNode ("ST_BASE_TOP", "ST_BASE_TOP.idb")
objectList[226136072]=listNode ("ST_RING", "ST_RING.idb")
objectList[226819016]=listNode ("Cross Section", "")
}

// Data for generating tree
function generateTree()
{
var sub1, sub2, sub3
objectTree = folderNode(180062976, "javascript:selectit(180062976)")
sub1 = appendChild (objectTree, folderNode(180102224, "javascript:selectit(180102224)"))
appendChild(sub1, leafNode(180105016, "javascript:selectit(180105016)"))
sub2 = appendChild (sub1, folderNode(180124096, "javascript:selectit(180124096)"))
appendChild(sub2, leafNode(180211720, "javascript:selectit(180211720)"))
appendChild(sub2, leafNode(180464176, "javascript:selectit(180464176)"))
sub2 = appendChild (sub1, folderNode(180575192, "javascript:selectit(180575192)"))
appendChild(sub2, leafNode(180385904, "javascript:selectit(180385904)"))
appendChild(sub2, leafNode(180648992, "javascript:selectit(180648992)"))
appendChild(sub2, leafNode(180264968, "javascript:selectit(180264968)"))
appendChild(sub2, leafNode(180758088, "javascript:selectit(180758088)"))
appendChild(sub2, leafNode(180676488, "javascript:selectit(180676488)"))
sub3 = appendChild (sub2, folderNode(180976160, "javascript:selectit(180976160)"))
appendChild(sub3, leafNode(223179168, "javascript:selectit(223179168)"))
appendChild(sub3, leafNode(224534536, "javascript:selectit(224534536)"))
appendChild(sub3, leafNode(225406280, "javascript:selectit(225406280)"))
appendChild(sub3, leafNode(226136072, "javascript:selectit(226136072)"))
}

// Data for generating BOM
function generateBOM()
{
objectBOM = new Array
appendToBOM (objectBOM, BOMNode (1, 180105016, "javascript:selectit(180105016)"))
appendToBOM (objectBOM, BOMNode (1, 180211720, "javascript:selectit(180211720)"))
appendToBOM (objectBOM, BOMNode (1, 180464176, "javascript:selectit(180464176)"))
appendToBOM (objectBOM, BOMNode (3, 180385904,180648992,180264968, "javascript:selectit(180385904,180648992,180264968)"))
appendToBOM (objectBOM, BOMNode (1, 180758088, "javascript:selectit(180758088)"))
appendToBOM (objectBOM, BOMNode (1, 180676488, "javascript:selectit(180676488)"))
appendToBOM (objectBOM, BOMNode (1, 223179168, "javascript:selectit(223179168)"))
appendToBOM (objectBOM, BOMNode (1, 224534536, "javascript:selectit(224534536)"))
appendToBOM (objectBOM, BOMNode (1, 225406280, "javascript:selectit(225406280)"))
appendToBOM (objectBOM, BOMNode (1, 226136072, "javascript:selectit(226136072)"))
}

function get_assembly_name() { return "assembly.idasf"; }
// Instruction data
function generateInstructions ()
{
instrTemplate = new Array
instrList = new Array
appendField (instrTemplate, "Note")
instrList[1]=instrNode ("Step 1:", "Press the rubber ring into the groove under the base.", 0, 60, "", "javascript:playit(1,0,60)")
instrList[2]=instrNode ("Step 2:", "Snap together the base top, keys, and ring.", 60, 140, "", "javascript:playit(2,60,140)")
instrList[3]=instrNode ("Step 3:", "Secure the Cap using the three screws.", 140, 220, "", "javascript:playit(3,140,220)")
instrList[4]=instrNode ("Step 4:", "Attatch the cable to the top.", 220, 240, "", "javascript:playit(4,220,240)")
instrList[5]=instrNode ("Step 5:", "Snap the digitial pcb into place.", 240, 270, "", "javascript:playit(5,240,270)")
instrList[6]=instrNode ("Step 6:", "Press the top onto the base", 270, 290, "", "javascript:playit(6,270,290)")
instrList[7]=instrNode ("Step 7:", "Slide the cable attachment onto the cable and secure.", 290, 300, "", "javascript:playit(7,290,300)")
}

webPublish = new Object
webPublish["Company"]=""
webPublish["author"]=""
webPublish["comm"]=""
webPublish["date"]="30-Jul-2004"
webPublish["desc"]=""
webPublish["styleDir"]="C:\\Program Files\\Immersive Design\\WebPublish"
webPublish["title"]=""
webPublish["version"]="1,0,0,36"

function gtv(tag) { var v=webPublish[tag]; return (v)?v:"" }
function ptv(tag) { return gtv(tag)+"<br>" }

function get_title() { return gtv("title") }
function get_author() { return gtv("author") }
function get_description() { return gtv("desc") }
function get_comments() { return gtv("comm") }
function get_date() { return gtv("date") }

function print_title() { return get_title()+"<br>"; }
function print_author() { return get_author()+"<br>"; }
function print_description() { return get_description()+"<br>"; }
function print_comments() { return get_comments()+"<br>"; }
function print_date() { return get_date()+"<br>"; }

