
function salamandDeployment( unit, positions ) {
  var prodder = ["skinkjavelin1.gif", "skinkjavelin2.gif", "skinkjavelin3.gif"];
  normalDeployment( unit, positions );

  for( var i=0; i<unit.count*3; i++ ) {
    positions.back.push( prodder );
  }

  return positions;
}

function skinksDeployment( unit, positions ) {
  var kroxigors = ["kroxigor1.gif", "kroxigor2.gif"];
  normalDeployment( unit, positions );

  if( unit.options.Kroxigor )
    for( var i=0; i<unit.options.Kroxigor; i++ ) {
      positions.middle.push( kroxigors );
    }

  return positions;
}

function maxOneOfWep( unit, optionName, count ) {
  return maxOneOf( unit, optionName, count, maxOneOfWep );
}

function maxOneOfMWep( unit, optionName, count ) {
  return maxOneOf( unit, optionName, count, maxOneOfMWep );
}

function maxOneMount( unit, optionName, count ) {
  return maxOneOf( unit, optionName, count, maxOneMount );
}

function maxOneOfMArm( unit, optionName, count ) {
  return maxOneOf( unit, optionName, count, maxOneOfMArm );
}

function giftChange( unit, optionName, count ) {
  var changeFunc = giftChange;
  var giftCount = 0; // count the number of gifts

  unit.forAllSelectedOptions( function(option, count) 
      { 
      var optionOptions = option[3];
      if( optionOptions &&
	optionOptions.changeFunction == changeFunc )
	  giftCount += unit.options[option[0]];

      } );

  // take back an invalid change
  if( giftCount>5 && count>0 ) {
    unit.options[optionName] = 0;
    $(unit.getId()+'_'+optionName).checked=false;
  }

  if( giftCount<1 && count<1 ) {
    unit.options[optionName] = 1;
    $(unit.getId()+'_'+optionName).checked=true;
  }
}


var optionsMagicWep = [
["mRunefang", "Runefang", 100, {oneOf:"mWeapon"}],
  ["mHelsturm", "The Mace of Helsturm", 60, {oneOf:"mWeapon"}],
  ["mSigmund", "Sword of Sigismund", 45, {oneOf:"mWeapon"}],
  ["mSFate", "Sword of Fate", 40, {oneOf:"mWeapon"}],
  ["mPower", "Sword of Power", 40, {oneOf:"mWeapon"}],
  ["mSwordStr", "Sword of Striking", 30, {oneOf:"mWeapon"}],
  ["mSteel", "Sword of Righteous Steel", 30, {oneOf:"mWeapon"}],
  ["mHJudgement", "Hammer of Judgement", 25, {oneOf:"mWeapon"}],
  ["mDragonBow", "Dragon Bow", 25, {oneOf:"mWeapon"}],
  ["mSwordBat", "Sword of Battle", 25, {oneOf:"mWeapon"}],
  ["mSwordMig", "Sword of Might", 20, {oneOf:"mWeapon"}],
  ["mSJustice", "Sword of Justice", 20, {oneOf:"mWeapon"}],
  ["mSWyrm", "Wyrmslayer Sword", 15, {oneOf:"mWeapon"}]
  ];

var optionsMagicArm = [
["mGilded", "The Gilded Armour", 40, {oneOf:"mArmour"}],
  ["mDawn", "Dawn Armour", 35, {oneOf:"mArmour"}],
  ["mTarnus", "Armour of Tarnus", 35, {oneOf:"mArmour"}],
  ["mIron", "Armour of Meteoric Iron", 25, {oneOf:"mArmour"}],
  ["mRatslayer", "Helm of the Ratslayer", 25, {oneOf:"mArmour"}],
  ["mGorgon", "Shield of the Gorgon", 25, {oneOf:"mArmour"}],
  ["mBronze", "Bronze Shield", 20, {oneOf:"mArmour"}],
  ["mEnchShld", "Enchanted Shield", 10, {oneOf:"mArmour"}]
  ];

var optionsMagicTal = [
["mMagnus", "Shroud of Magnus", 50],
  ["mHRelict", "Holy Relict", 45],
  ["mJade", "Jade Amulet", 40],
  ["mWhiteCl", "The White Cloak", 35],
  ["mCrimsonAm", "The Crimson Amulet", 20],
  ["mSSigmar", "Sigil of Sigmar", 15],
  ["mTalisPrt", "Talisman of Protection", 15.]
  ];

var optionsMagicArc = [
["mSealDestr", "Seal of Destruction", 45],
  ["mStaffSor", "Staff of Sorcery", 50],
  ["mGreyWand", "Grey Wand", 40],
  ["mRodPower", "Rod of Power", 30],
  ["mLuckstone", "Luckstone", 25],
  ["mPowerStn", "Power Stone", 25, {maxCount:4} ],
  ["mDispel", "Dispel Scroll", 25, {maxCount:4} ],
  ["mBall", "Crystal Ball", 15],
  ["mWizardStaff", "Wizard's Staff", 10]
  ];

var optionsMagicEnc = [
["mLaurelsVictory", "Laurels of Victory", 55],
  ["mRodCommand", "Rod of Command", 50],
  ["mCasket", "Aldred's Casket of Sorcery", 35],
  ["mSilverHorn", "The Silver Horn", 35],
  ["mOrbTund", "The Orb of Thunder", 30],
  ["mDoomfire", "Doomfire Ring", 30],
  ["mVanHorstmanns", "Van Horstmann's Speculum", 30],
  ["mIconMagnus", "Icon of Magnus", 25],
  ["mRingVolans", "Ring of Volans", 20]
  ];

var optionsMagicBan25 = [
["WarBann", "War Banner", 25],
  ["steelStandard", "Steel Standard", 20],
  ["duty", "Banner of Duty", 10]
  ];

var optionsMagicBan50 = [
["DaemonBanner", "Banner of the Daemonslayer", 50],
  ["ValorBanner", "Banner of Valour", 30],
  ["StdArcWarding", "Standard of Arcane Warding", 30] ].concat(optionsMagicBan25  );

var optionsMagicBan = [
["ImperialBanner", "Imperial Banner", 100],
  ["BannerSigmund", "Banner of Sigismund", 60],
  ["GriphonStd", "Griffon Standard", 55] ].concat(optionsMagicBan50);

var iconFolder = "image/";

var baseDefinition = {
  name: "Empire",
  maxsize: 1,
  noSpecialName: 1,
  subDefinitions: {

karlFranz: {
	  name:       "Karl Franz",
	  fullName:   "The Emperor Karl Franz",
	  points:     350,
	  itemPoints: 0,
	  basicText:  "Runefang, The Silver Seal, full plate armour",
	  maxsize:    1,
	  icons:      ["swordman01.gif"],
	  options:    [
	    [
	    ["iGriffon", "Deathclaw", 225, {oneOf:"mount", icons: ["carnoswordman01.gif"] } ],
	    ["iDragon", "Imperial Dragon", 320, {oneOf:"mount", icons: ["carnoswordman01.gif"] } ],
	    ["iPegasus", "Imperial Pegasus", 50, {oneOf:"mount", icons: ["carnoswordman01.gif"] } ],
	    ["iWarhorseBarding", "Warhorse with barding", 21, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ]
	      ]
	      ]
	},
  
helborg: {
	  name:       "Kurt Helborg",
	  fullName:   "Kurt Helborg",
	  points:     325,
	  itemPoints: 0,
	  basicText:  "Runefang, full plate armour, Barded Warhorse",
	  maxsize:    1,
	  icons:      ["stegadon1.gif"],
	  options:    []
	},

volkmar: {
	  name:       "Theogonist Volkmar",
	  fullName:   "Grand Theogonist Volkmar",
	  points:     360,
	  itemPoints: 0,
	  basicText:  "The Jade Griffon, the Staff of Command and the Horn of Sigismund",
	  maxsize:    1,
	  icons:      ["carnoswordman01.gif"],
	  options:    []
	},

gelt: {
	  name:       "Balthasar Gelt",
	  fullName:   "Balthasar Gelt",
	  points:     400,
	  itemPoints: 0,
	  basicText:  "Imperial Pegasus, Sword, Al-kahest, Staff of Volans, The Cloak of Molten Metal, Amulet of Sea Gold",
	  maxsize:    1,
	  options:    []
	},

general: {
	  name:       "General of the Empire",
	  points:     80,
	  itemPoints: 100,
	  basicText:  "",
	  maxsize:    1,
	  icons:      ["swordman01.gif"],
	  options:    [
	    [
	    ["iGreatWep", "Great Weapon", 6, {changeFunction: maxOneOfWep}],
	  ["iExtraHand", "Extra Hand Weapon", 6, {changeFunction: maxOneOfWep}],
	  ["iLance", "Lance", 6, {changeFunction: maxOneOfWep}],
	  null,
	  ["iPistol", "Pistol", 6],
	  ["iLongbow", "Longbow", 10],
	  ["iHandgun", "Handgun", 10],
	  null,
	  ["iLightArmor", "Light Armour", 3],
	  ["iHeavyArmor", "Heavy Armour", 6],
	  ["iPlateArmor", "Full plate Armour", 12],
	  ["iShield", "Shield", 3],
	  null,
	  ["iWarhorse", "Warhorse", 15, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ],
	  ["iWarhorseBarding", "Warhorse with barding", 21, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ],
	  ["iPegasus", "Imperial Pegasus", 50, {oneOf:"mount", icons: ["carnoswordman01.gif"] } ],
	  ["iGriffon", "Griffon", 200, {oneOf:"mount", icons: ["carnoswordman01.gif"] } ]
	  ],
	  optionsMagicWep,
	  optionsMagicArm,
	  optionsMagicTal,
	  optionsMagicEnc
	    ]
	 },

templar: {
	  name:       "Templar Grand Master",
	  points:     145,
	  itemPoints: 100,
	  basicText:  "Warhorse with barding, Full Plate Armour, Master of Battle",
	  maxsize:    1,
	  icons:      ["swordman01.gif"],
	  options:    [
	    [
	    ["iLance", "Lance and Shield", 0, {oneOf: "weapon"}],
	  ["iGreatWep", "Great Weapon", 0, {oneOf: "weapon"}]
	  ],
	  optionsMagicWep,
	  optionsMagicArm,
	  optionsMagicTal,
	  optionsMagicEnc
	    ],
	  defaultOptions: { iLance: 1 }
	 },

lector: {
	  name:       "Arch Lector of Sigmar",
	  points:     125,
	  itemPoints: 100,
	  basicText:  "Blessings of Sigmar, Righteaus Fury, Prayers of Sigmar",
	  maxsize:    1,
	  icons:      ["swordman01.gif"],
	  options:    [
	    [
	    ["iGreatWep", "Two-handed hammer", 6, {changeFunction: maxOneOfWep}],
	  ["iExtraHand", "Extra hammer", 6, {changeFunction: maxOneOfWep}],
	  null,
	  ["iLightArmor", "Light Armour", 3],
	  ["iHeavyArmor", "Heavy Armour", 6],
	  ["iShield", "Shield", 3],
	  null,
	  ["iWarhorse", "Warhorse", 15, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ],
	  ["iWarhorseBarding", "Warhorse with barding", 21, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ],
	  ["iAltar", "War Altar of Sigmar", 100, {oneOf:"mount", icons: ["carnoswordman01.gif"] } ]
	  ],
	  optionsMagicWep,
	  optionsMagicArm,
	  optionsMagicTal,
	  optionsMagicEnc
	    ]
	 },

wizardLord: {
	  name:       "Wizard Lord",
	  points:     175,
	  itemPoints: 100,
	  basicText:  "Level 3 Wizard",
	  maxsize:    1,
	  icons:      ["swordman01.gif"],
	  options:    [
	    [
	    ["Magic2", "Level 4 Upgrade", 35],
	  null,
	  ["iWarhorse", "Warhorse", 15, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ],
	  ["iWarhorseBarding", "Warhorse with barding", 21, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ]
	  ],
	  optionsMagicWep,
	  optionsMagicTal,
	  optionsMagicEnc,
	  optionsMagicArc
	    ]
	 },

schwarzhelm: {
	  name:       "Ludwig Schwarzhelm",
	  fullName:   "Ludwig Schwarzhelm",
	  points:     220,
	  itemPoints: 0,
	  basicText:  "Barded Warhorse, Sword of Justice, full plate armour",
	  maxsize:    1,
	  options:    []
	},

huss: {
	  name:       "Luthor Huss",
	  fullName:   "Luthor Huss",
	  points:     180,
	  itemPoints: 0,
	  basicText:  "Barded Warhorse, Two-handed warhammer, heavy armour",
	  maxsize:    1,
	  options:    []
	},

chaptain: {
	  name:       "Chaptain of the Empire",
	  points:     80,
	  itemPoints: 50,
	  basicText:  "",
	  maxsize:    1,
	  icons:      ["swordman01.gif"],
	  options:    [
	    [
	    ["iGreatWep", "Great Weapon", 4, {changeFunction: maxOneOfWep}],
	  ["iExtraHand", "Extra Hand Weapon", 4, {changeFunction: maxOneOfWep}],
	  ["iLance", "Lance", 4, {changeFunction: maxOneOfWep}],
	  null,
	  ["iPistol", "Pistol", 6],
	  ["iLongbow", "Longbow", 10],
	  ["iHandgun", "Handgun", 10],
	  null,
	  ["iBSB", "Battle Standard Bearer", 25, {changeFunction: maxOneOfWep}],
	  null,
	  ["iLightArmor", "Light Armour", 2],
	  ["iHeavyArmor", "Heavy Armour", 4],
	  ["iPlateArmor", "Full plate Armour", 8],
	  ["iShield", "Shield", 2],
	  null,
	  ["iWarhorse", "Warhorse", 10, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ],
	  ["iWarhorseBarding", "Warhorse with barding", 14, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ],
	  ["iPegasus", "Imperial Pegasus", 50, {oneOf:"mount", icons: ["carnoswordman01.gif"] } ]
	  ],
	  optionsMagicWep,
	  optionsMagicArm,
	  optionsMagicTal,
	  optionsMagicEnc,
	  optionsMagicBan
	    ]
	 },

priest: {
	  name:       "Warrior Priest",
	  points:     90,
	  itemPoints: 50,
	  basicText:  "Blessings of Sigmar, Righteaus Fury, Prayers of Sigmar",
	  maxsize:    1,
	  icons:      ["swordman01.gif"],
	  options:    [
	    [
	    ["iGreatWep", "Two-handed hammer", 4, {changeFunction: maxOneOfWep}],
	  ["iExtraHand", "Extra hammer", 4, {changeFunction: maxOneOfWep}],
	  null,
	  ["iLightArmor", "Light Armour", 2],
	  ["iHeavyArmor", "Heavy Armour", 4],
	  ["iShield", "Shield", 2],
	  null,
	  ["iWarhorse", "Warhorse", 10, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ],
	  ["iWarhorseBarding", "Warhorse with barding", 14, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ]
	  ],
	  optionsMagicWep,
	  optionsMagicArm,
	  optionsMagicTal,
	  optionsMagicEnc
	    ]
	 },

wizard: {
	  name:       "Battle Wizard",
	  points:     65,
	  itemPoints: 50,
	  basicText:  "Level 1 Wizard",
	  maxsize:    1,
	  icons:      ["swordman01.gif"],
	  options:    [
	    [
	    ["Magic2", "Level 2 Upgrade", 35],
	  null,
	  ["iWarhorse", "Warhorse", 10, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ],
	  ["iWarhorseBarding", "Warhorse with barding", 14, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ]
	  ],
	  optionsMagicWep,
	  optionsMagicTal,
	  optionsMagicEnc,
	  optionsMagicArc
	    ]
	 },

engineer: {
	  name:       "Master Engineer",
	  points:     65,
	  itemPoints: 0,
	  basicText:  "Master of Ballistics, Extra Crewman",
	  maxsize:    1,
	  icons:      ["swordman01.gif"],
	  options:    [
	    [
	    ["iRptPistol", "Repeater Pistol", 10, {changeFunction: maxOneOfWep}],
	  ["iHochland", "Hochland long rifle", 20, {changeFunction: maxOneOfWep}],
	  ["iBlunderbuss", "Grenade launching blunderbuss", 10, {changeFunction: maxOneOfWep}],
	  ["iRptHandgun", "Repeater Handgunn", 15, {changeFunction: maxOneOfWep}],
	  ["iPigeon", "Pigeon Bombs", 25]
	  ],[
	  ["iLightArmor", "Light Armour", 2]
	  ],[
	  ["iWarhorse", "Warhorse", 10, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ],
	  ["iWarhorseBarding", "Warhorse with barding", 14, {oneOf:"mount", icons: ["swordman_hero02.gif"] } ]
	    ]
	    ]
	 },

halberdiers: {
	  name:       "Halberdiers",
	  points:     5,
	  basicText:  "Halberd, Light Armour",
	  minsize:    10,
	  icons:      ["swordman01.gif", "swordman04.gif"],
	  options:    [
	    [
	    ["iShield", "Shield", 1, { icons: ["swordman_spear01.gif", "swordman_spear02.gif"] } ]
	    ],[
	  ["Music", "Musician", 4, { icons: ["swordman_music01.gif"] }],
	  ["Std", "Standard Bearer", 8, { icons: ["swordman_std01.gif"] } ],
	  ["Champ", "Sergeant", 8, { icons: ["swordman_champ01.gif" ] } ]
	    ],
	  optionsMagicBan50 
	    ]
	},

spearmen: {
	  name:       "Spearmen",
	  points:     5,
	  basicText:  "Spear, Light Armour",
	  minsize:    10,
	  icons:      ["swordman01.gif", "swordman04.gif"],
	  options:    [
	    [
	    ["iShield", "Shield", 1, { icons: ["swordman_spear01.gif", "swordman_spear02.gif"] } ]
	    ],[
	  ["Music", "Musician", 4, { icons: ["swordman_music01.gif"] }],
	  ["Std", "Standard Bearer", 8, { icons: ["swordman_std01.gif"] } ],
	  ["Champ", "Sergeant", 8, { icons: ["swordman_champ01.gif" ] } ]
	    ],
	  optionsMagicBan50 
	    ]
	},

swordsmen: {
	  name:       "Swordsmen",
	  points:     6,
	  basicText:  "Sword, Light Armour, Shield",
	  minsize:    10,
	  icons:      ["swordman01.gif", "swordman04.gif"],
	  options:    [
	    [
	  ["Music", "Musician", 5, { icons: ["swordman_music01.gif"] }],
	  ["Std", "Standard Bearer", 10, { icons: ["swordman_std01.gif"] } ],
	  ["Champ", "Sergeant", 10, { icons: ["swordman_champ01.gif" ] } ]
	    ],
	  optionsMagicBan50 
	    ]
	},

knights: {
	  name:       "Knights",
	  points:     23,
	  basicText:  "Barded Warhorse, full plate armour",
	  minsize:    5,
	  icons:      ["swordman01.gif", "swordman04.gif"],
	  options:    [
	    [
	    ["iLance", "Lance and Shield", 0, {oneOf: "weapon"}],
	  ["iGreatWep", "Great Weapon", 0, {oneOf: "weapon"}],
	  null,
	  ["iCircle", "Inner Circle", 3 ]
	  ],[
	  ["Music", "Musician", 8, { icons: ["swordman_music01.gif"] }],
	  ["Std", "Standard Bearer", 16, { icons: ["swordman_std01.gif"] } ],
	  ["Champ", "Preceptor", 16, { icons: ["swordman_champ01.gif" ] } ]
	    ],
	  optionsMagicBan50 
	    ],
	  defaultOptions: { iLance: 1 }
	},

handgunners: {
	  name:       "Handgunners",
	  points:     8,
	  basicText:  "Handgun",
	  minsize:    10,
	  icons:      ["swordman01.gif", "swordman04.gif"],
	  options:    [
	    [
	  ["Music", "Musician", 5, { icons: ["swordman_music01.gif"] }],
	  ["Std", "Standard Bearer", 10, { icons: ["swordman_std01.gif"] } ],
	  ["Champ", "Marksman", 5, { icons: ["swordman_champ01.gif" ] } ]
	    ],[
	  ["iHochland", "Hochland long rifle", 20, {oneOf: "champweap"}],
	  ["iRptHandgun", "Repeater Handgun", 15, {oneOf: "champweap"}],
	    ["iPistols", "brace of Pistol", 0, {oneOf: "champweap"}]
	    ],
	  optionsMagicBan50 
	    ],
	  defaultOptions: { iHochland: 1 }
	},

crossbowmen: {
	  name:       "Crossbowmen",
	  points:     8,
	  basicText:  "Crossbow",
	  minsize:    10,
	  icons:      ["swordman01.gif", "swordman04.gif"],
	  options:    [
	    [
	  ["Music", "Musician", 5, { icons: ["swordman_music01.gif"] }],
	  ["Std", "Standard Bearer", 10, { icons: ["swordman_std01.gif"] } ],
	  ["Champ", "Marksman", 5, { icons: ["swordman_champ01.gif" ] } ]
	    ],
	  optionsMagicBan50 
	    ]
	},

archers: {
	  name:       "Archers",
	  points:     8,
	  basicText:  "Bow",
	  minsize:    10,
	  maxsize:    20,
	  icons:      ["swordman01.gif", "swordman04.gif"],
	  options:    [
	    [
	  ["iHuntsmen", "Huntsmen upgrade", 2 ],
	  ["Champ", "Marksman", 5, { icons: ["swordman_champ01.gif" ] } ]
	    ],
	  optionsMagicBan50 
	    ]
	},

freeCompany: {
	  name:       "Free Company",
	  points:     5,
	  basicText:  "Extra Hand Weapon",
	  minsize:    10,
	  icons:      ["swordman01.gif", "swordman04.gif"],
	  options:    [
	    [
	    ["Music", "Musician", 4, { icons: ["swordman_music01.gif"] }],
	  ["Std", "Standard Bearer", 8, { icons: ["swordman_std01.gif"] } ],
	  ["Champ", "Sergeant", 8, { icons: ["swordman_champ01.gif" ] } ]
	    ]
	    ]
	},

greatswords: {
	  name:       "Greatswords",
	  points:     10,
	  basicText:  "Two-handed sword, full plate armour",
	  minsize:    5,
	  icons:      ["swordman01.gif", "swordman04.gif"],
	  options:    [
	    [
	    ["Music", "Musician", 6, { icons: ["swordman_music01.gif"] }],
	  ["Std", "Standard Bearer", 12, { icons: ["swordman_std01.gif"] } ],
	  ["Champ", "Count's Champion", 12, { icons: ["swordman_champ01.gif" ] } ]
	    ],
	  optionsMagicBan50
	    ]
	},

pistoliers: {
	  name:       "Pistoliers",
	  points:     18,
	  basicText:  "Brace of pistols, light armour, Warhorse",
	  minsize:    5,
	  icons:      ["swordman01.gif", "swordman04.gif"],
	  options:    [
	    [
	  ["Music", "Musician", 7, { icons: ["swordman_music01.gif"] }],
	  ["Champ", "Outrider", 7, { icons: ["swordman_champ01.gif" ] } ],
	  ["iRptPistol", "Repeater Pistol for Outrider", 10]
	    ]
	    ]
	},

outriders: {
	  name:       "Outriders",
	  points:     21,
	  basicText:  "Repeater handgun, light armour, Warhorse",
	  minsize:    5,
	  icons:      ["swordman01.gif", "swordman04.gif"],
	  options:    [
	    [
	  ["iBarding", "Barding", 2 ],
	  ["Music", "Musician", 8, { icons: ["swordman_music01.gif"] }],
	  ["Champ", "Outrider Champion", 16, { icons: ["swordman_champ01.gif" ] } ]
	    ],[
	  ["iRptPistol", "Repeater Pistol for Champion", 0, {changeFunction: maxOneOfWep}],
	  ["iHochland", "Hochland long rifle for Champion", 5, {changeFunction: maxOneOfWep}],
	  ["iBlunderbuss", "Grenade launching blunderbuss for Champion", 0, {changeFunction: maxOneOfWep}]
	    ]
	    ]
	},

cannon: {
	  name:       "Great Cannon",
	  points:     100,
	  maxsize:    1,
	  basicText:  "",
	  icons:      ["stegadon01.gif"],
	  options:    []
	},

mortar: {
	  name:       "Mortar",
	  points:     75,
	  maxsize:    1,
	  basicText:  "",
	  icons:      ["stegadon01.gif"],
	  options:    []
	},

flagellants: {
	  name:       "Flagellant Warband",
	  points:     10,
	  basicText:  "Flail",
	  minsize:    5,
	  maxsize:    30,
	  icons:      ["swordman01.gif", "swordman04.gif"],
	  options:    [
	    [
	    ["Champ", "Prophet of Doom", 10, { icons: ["swordman_champ01.gif" ] } ]
	    ]
	    ]
	},

helblaster: {
	  name:       "Helblaster Volley Gun",
	  points:     110,
	  maxsize:    1,
	  basicText:  "",
	  icons:      ["stegadon01.gif"],
	  options:    []
	},

rocket: {
	  name:       "Helstorm Rocket",
	  points:     115,
	  maxsize:    1,
	  basicText:  "",
	  icons:      ["stegadon01.gif"],
	  options:    []
	},

steamTank: {
	  name:       "Steam Tank",
	  points:     300,
	  maxsize:    1,
	  basicText:  "",
	  icons:      ["stegadon01.gif"],
	  options:    []
	}
  }
};

var baseUnit = new Unit( null, null );

