// variables for the little elemental images
var firePic = "<img src = 'images/automaton/fire.gif' alt = 'fire' valign = 'center'>";
var windPic = "<img src = 'images/automaton/wind.gif' alt = 'wind' valign = 'center'>";
var thunderPic = "<img src = 'images/automaton/thunder.gif' alt = 'thunder' valign = 'center'>";
var lightPic = "<img src = 'images/automaton/light.gif' alt = 'light' valign = 'center'>";
var icePic = "<img src = 'images/automaton/ice.gif' alt = 'ice' valign = 'center'>";
var earthPic = "<img src = 'images/automaton/earth.gif' alt = 'earth' valign = 'center'>";
var waterPic = "<img src = 'images/automaton/water.gif' alt = 'water' valign = 'center'>";
var darkPic = "<img src = 'images/automaton/dark.gif' alt = 'dark' valign = 'center'>";

var automatonSplash = "<form id = 'automaton' name = 'automaton'><table>";
automatonSplash += "<tr>";
automatonSplash += "<td>Head: <select name = 'autoHead' id = 'autoHead' onChange = 'javascript:autoMax()'>";
automatonSplash += "<option value = '0' selected = 'selected'>Harlequin</option>";
automatonSplash += "<option value = '1'>Sharpshot</option>";
automatonSplash += "<option value = '2'>Soulsoother</option>";
automatonSplash += "<option value = '3'>Spiritreaver</option>";
automatonSplash += "<option value = '4'>Stormwaker</option>";
automatonSplash += "<option value = '5'>Valoredge</option>";
automatonSplash += "</select></td>";
automatonSplash += "<td>Frame <select name = 'autoFrame' id = 'autoFrame' onChange = 'javascript:autoMax()'>";
automatonSplash += "<option value = '0' selected = 'selected'>Harlequin</option>";
automatonSplash += "<option value = '1'>Sharpshot</option>";
automatonSplash += "<option value = '2'>Stormwaker</option>";
automatonSplash += "<option value = '3'>Valoredge</option>";
automatonSplash += "</select></td>";
automatonSplash += "</tr>";
automatonSplash += "<tr>";
automatonSplash += "<td>Fire:<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoFire(document.getElementById(\"att\"))' id = 'att' name = 'att'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Attuner'>Attuner</a> " + firePic + " " + firePic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoFire(document.getElementById(\"fh\"))' id = 'fh' name = 'fh'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Flame_Holder'>Flame Holder</a> " + firePic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoFire(document.getElementById(\"in\"))' id = 'in' name = 'in'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Inhibitor'>Inhibitor</a> " + firePic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoFire(document.getElementById(\"rs\"))' id = 'rs' name = 'rs'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Reactive_Shield'>Reactive Shield</a> " + firePic + " " + firePic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoFire(document.getElementById(\"str\"))' id = 'str' name = 'str'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Strobe'>Strobe</a> " + firePic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoFire(document.getElementById(\"ts1\"))' id = 'ts1' name = 'ts1'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Tension_Spring'>Tension Spring</a> " + firePic + " " + firePic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '3' onChange = 'javascript:autoFire(document.getElementById(\"ts2\"))' id = 'ts2' name = 'ts2'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Tension_Spring_II'>Tension Spring II</a> " + firePic + " " + firePic +" " + firePic + "<br>";
automatonSplash += "</td>";
automatonSplash += "<td>Wind:<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoWind(document.getElementById(\"acc1\"))' id = 'acc1' name = 'acc1'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Accelerator'>Accelerator</a> " + windPic + " " + windPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '3' onChange = 'javascript:autoWind(document.getElementById(\"acc2\"))' id = 'acc2' name = 'acc2'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Accelerator_II'>Accelerator II</a> " + windPic + " " + windPic +" " + windPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoWind(document.getElementById(\"dm\"))' id = 'dm' name = 'dm'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Drum_Magazine'>Drum Magazine</a> " + windPic + " " + windPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoWind(document.getElementById(\"pr\"))' id = 'pr' name = 'pr'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Pattern_Reader'>Pattern Reader</a> " + windPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoWind(document.getElementById(\"rep\"))' id = 'rep' name = 'rep'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Replicator'>Replicator</a> " + windPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoWind(document.getElementById(\"scp\"))' id = 'scp' name = 'scp'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Scope'>Scope</a> " + windPic + " " + windPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoWind(document.getElementById(\"tc\"))' id = 'tc' name = 'tc'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Turbo_Charger'>Turbo Charger</a> " + windPic + " " + windPic + "<br>";
automatonSplash += "</td>";
automatonSplash += "<td>Thunder:<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoThunder(document.getElementById(\"dyn\"))' id = 'dyn' name = 'dyn'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Dynamo'>Dynamo</a> " + thunderPic + " " + thunderPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoThunder(document.getElementById(\"hskr\"))' id = 'hskr' name = 'hskr'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Heat_Seeker'>Heat Seeker</a> " + thunderPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoThunder(document.getElementById(\"sta1\"))' id = 'sta1' name = 'sta1'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Stabilizer'>Stabilizer</a> " + thunderPic + " " + thunderPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '3' onChange = 'javascript:autoThunder(document.getElementById(\"sta2\"))' id = 'sta2' name = 'sta2'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Stabilizer_II'>Stabilizer II</a> " + thunderPic + " " + thunderPic +" " + thunderPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoThunder(document.getElementById(\"tm\"))' id = 'tm' name = 'tm'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Target_Marker'>Target Marker</a> " + thunderPic + " " + thunderPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoThunder(document.getElementById(\"vg\"))' id = 'vg' name = 'vg'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Volt_Gun'>Volt Gun</a> " + thunderPic + " " + thunderPic + "<br><br>";
automatonSplash += "</td>";
automatonSplash += "<td>Light:<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoLight(document.getElementById(\"ark1\"))' id = 'ark1' name = 'ark1'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Auto-Repair_Kit'>Auto-Repair Kit</a> " + lightPic + " " + lightPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '3' onChange = 'javascript:autoLight(document.getElementById(\"ark2\"))' id = 'ark2' name = 'ark2'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Auto-Repair_Kit_II'>Auto-Repair Kit II</a> " + lightPic + " " + lightPic +" " + lightPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoLight(document.getElementById(\"dg\"))' id = 'dg' name = 'dg'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Damage_Gauge'>Damage Gauge</a> " + lightPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoLight(document.getElementById(\"era\"))' id = 'era' name = 'era'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Eraser'>Eraser</a> " + lightPic + " " + lightPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoLight(document.getElementById(\"fb\"))' id = 'fb' name = 'fb'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Flashbulb'>Flashbulb</a> " + lightPic + " " + lightPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoLight(document.getElementById(\"of\"))' id = 'of' name = 'of'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Optic_Fiber'>Optic Fiber</a> " + lightPic + "<br><br>";
automatonSplash += "</td>";
automatonSplash += "</tr>";
automatonSplash += "<tr>";
automatonSplash += "<td>Ice:<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoIce(document.getElementById(\"im\"))' id = 'im' name = 'im'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Ice_Maker'>Ice Maker</a> " + icePic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoIce(document.getElementById(\"ls1\"))' id = 'ls1' name = 'ls1'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Loudspeaker'>Loudspeaker</a> " + icePic + " " + icePic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '3' onChange = 'javascript:autoIce(document.getElementById(\"ls2\"))' id = 'ls2' name = 'ls2'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Loudspeaker_II'>Loudspeaker II</a> " + icePic + " " + icePic +" " + icePic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoIce(document.getElementById(\"mb\"))' id = 'mb' name = 'mb'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Mana_Booster'>Mana Booster</a> " + icePic + " " + icePic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoIce(document.getElementById(\"scn\"))' id = 'scn' name = 'scn'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Scanner'>Scanner</a> " + icePic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoIce(document.getElementById(\"tp\"))' id = 'tp' name = 'tp'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Tactical_Processor'>Tactical Processor</a> " + icePic + " " + icePic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoIce(document.getElementById(\"tran\"))' id = 'tran' name = 'tran'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Tranquilizer'>Tranquilizer</a> " + icePic + " " + icePic + "<br>";
automatonSplash += "</td>";
automatonSplash += "<td>Earth:<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoEarth(document.getElementById(\"anal\"))' id = 'anal' name = 'anal'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Analyzer'>Analyzer</a> " + earthPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoEarth(document.getElementById(\"ap1\"))' id = 'ap1' name = 'ap1'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Armor_Plate'>Armor Plate</a> " + earthPic + " " + earthPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '3' onChange = 'javascript:autoEarth(document.getElementById(\"ap2\"))' id = 'ap2' name = 'ap2'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Armor_Plate_II'>Armor Plate II</a> " + earthPic + " " + earthPic +" " + earthPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoEarth(document.getElementById(\"eq\"))' id = 'eq' name = 'eq'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Equalizer'>Equalizer</a> " + earthPic + " " + earthPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoEarth(document.getElementById(\"hm\"))' id = 'hm' name = 'hm'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Hammermill'>Hammermill</a> " + earthPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoEarth(document.getElementById(\"zen\"))' id = 'zen' name = 'zen'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Schurzen'>Schurzen</a> " + earthPic + " " + earthPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoEarth(document.getElementById(\"sa\"))' id = 'sa' name = 'sa'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Shock_Absorber'>Shock Absorber</a> " + earthPic + "<br>";
automatonSplash += "</td>";
automatonSplash += "<td>Water:<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoWater(document.getElementById(\"con\"))' id = 'con' name = 'con'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Condenser'>Condenser</a> " + waterPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoWater(document.getElementById(\"hsnk\"))' id = 'hsnk' name = 'hsnk'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Heatsink'>Heatsink</a> " + waterPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoWater(document.getElementById(\"mj1\"))' id = 'mj1' name = 'mj1'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Mana_Jammer'>Mana Jammer</a> " + waterPic + " " + waterPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '3' onChange = 'javascript:autoWater(document.getElementById(\"mj2\"))' id = 'mj2' name = 'mj2'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Mana_Jammer_II'>Mana Jammer II</a> " + waterPic + " " + waterPic +" " + waterPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoWater(document.getElementById(\"mc\"))' id = 'mc' name = 'mc'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Mana_Channeler'>Mana Channeler</a> " + waterPic + " " + waterPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoWater(document.getElementById(\"ss\"))' id = 'ss' name = 'ss'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Stealth_Screen'>Stealth Screen</a> " + waterPic + "<br><br>";
automatonSplash += "</td>";
automatonSplash += "<td>Dark:<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoDark(document.getElementById(\"econ\"))' id = 'econ' name = 'econ'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Economizer'>Economizer</a> " + darkPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '1' onChange = 'javascript:autoDark(document.getElementById(\"mcs\"))' id = 'mcs' name = 'mcs'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Mana_Conserver'>Mana Conserver</a> " + darkPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoDark(document.getElementById(\"mcv\"))' id = 'mcv' name = 'mcv'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Mana_Converter'>Mana Converter</a> " + darkPic + " " + darkPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoDark(document.getElementById(\"mt1\"))' id = 'mt1' name = 'mt1'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Mana_Tank'>Mana Tank</a> " + darkPic + " " + darkPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '3' onChange = 'javascript:autoDark(document.getElementById(\"mt2\"))' id = 'mt2' name = 'mt2'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Mana_Tank_II'>Mana Tank II</a> " + darkPic + " " + darkPic +" " + darkPic + "<br>";
automatonSplash += "<input type = 'checkbox' value = '2' onChange = 'javascript:autoDark(document.getElementById(\"sms\"))' id = 'sms' name = 'sms'><a target='_blank' href = 'http://wiki.ffxiclopedia.org/wiki/Smoke_Screen'>Smoke Screen</a> " + darkPic + " " + darkPic + "<br><br>";
automatonSplash += "</td>";
automatonSplash += "</tr>";
automatonSplash += "</table>";
automatonSplash += "<table>";
automatonSplash += "<tr>";
automatonSplash += "<td align = 'right'>";
automatonSplash += "<img src = 'images/automaton/fire.gif' alt = 'fire' valign = 'center'>";
automatonSplash += "<input type = 'text' readonly = 'readonly' name = 'tempFire' id = 'tempFire' value = '0' size = '1'> / <input type = 'text' readonly = 'readonly' name = 'maxFire' id = 'maxFire' size = '1' value = '4'></td>";
automatonSplash += "<td align = 'right'>";
automatonSplash += "<img src = 'images/automaton/wind.gif' alt = 'wind' valign = 'center'>";
automatonSplash += "<input type = 'text' readonly = 'readonly' name = 'tempWind' id = 'tempWind' value = '0' size = '1'> / <input type = 'text' readonly = 'readonly' name = 'maxWind' id = 'maxWind' size = '1' value = '4'></td>";
automatonSplash += "<td align = 'right'>";
automatonSplash += "<img src = 'images/automaton/thunder.gif' alt = 'thunder' valign = 'center'>";
automatonSplash += "<input type = 'text' readonly = 'readonly' name = 'tempThunder' id = 'tempThunder' value = '0' size = '1'> / <input type = 'text' readonly = 'readonly' name = 'maxThunder' id = 'maxThunder' size = '1' value = '4'></td>";
automatonSplash += "<td align = 'right'>";
automatonSplash += "<img src = 'images/automaton/light.gif' alt = 'light' valign = 'center'>";
automatonSplash += "<input type = 'text' readonly = 'readonly' name = 'tempLight' id = 'tempLight' value = '0' size = '1'> / <input type = 'text' readonly = 'readonly' name = 'maxLight' id = 'maxLight' size = '1' value = '0'></td>";
automatonSplash += "</tr>";
automatonSplash += "<tr>";
automatonSplash += "<td align = 'right'>";
automatonSplash += "<img src = 'images/automaton/ice.gif' alt = 'ice' valign = 'center'>";
automatonSplash += "<input type = 'text' readonly = 'readonly' name = 'tempIce' id = 'tempIce' value = '0' size = '1'> / <input type = 'text' readonly = 'readonly' name = 'maxIce' id = 'maxIce' size = '1' value = '4'></td>";
automatonSplash += "<td align = 'right'>";
automatonSplash += "<img src = 'images/automaton/earth.gif' alt = 'earth' valign = 'center'>";
automatonSplash += "<input type = 'text' readonly = 'readonly' name = 'tempEarth' id = 'tempEarth' value = '0' size = '1'> / <input type = 'text' readonly = 'readonly' name = 'maxEarth' id = 'maxEarth' size = '1' value = '4'></td>";
automatonSplash += "<td align = 'right'>";
automatonSplash += "<img src = 'images/automaton/water.gif' alt = 'water' valign = 'center'>";
automatonSplash += "<input type = 'text' readonly = 'readonly' name = 'tempWater' id = 'tempWater' value = '0' size = '1'> / <input type = 'text' readonly = 'readonly' name = 'maxWater' id = 'maxWater' size = '1' value = '4'></td>";
automatonSplash += "<td align = 'right'>";
automatonSplash += "<img src = 'images/automaton/dark.gif' alt = 'dark' valign = 'center'>";
automatonSplash += "<input type = 'text' readonly = 'readonly' name = 'tempDark' id = 'tempDark' value = '0' size = '1'> / <input type = 'text' readonly = 'readonly' name = 'maxDark' id = 'maxDark' size = '1' value = '0'></td>";
automatonSplash += "</tr>";
automatonSplash += "</table>";
automatonSplash += "</form>";