code:
:: Manage Corporation [nobr]

<<set $nextButton = "Back", $nextLink = "Manage Economy", $showEncyclopedia = 1, $encyclopedia = "The Corporation">>

<<if $corpIncorporated == 0>>
__Incorporation__

//Please consider that the market price of slaves has quite the impact on the profitability of your corporation.//

//Focus on acquisition when prices are high, exploitation if prices are low. Slave improvement is a safe choice either way.//

//Also note the option for a 8 - 7 share split instead of the vanilla 2 - 1, this makes the initial investment cheaper but leaves you with relatively less shares.//

<<if $vanillaShareSplit == 1>> /*Picking a starting division*/
	<<if $cash > 150000>>
		You can lay the groundwork for a slave corporation and choose to start out with;

A focus on breaking slaves. <<print cashFormat(150000)>> [[Slave Breaking|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(150000), "stocksTraded"), $corpDiv = 1, $corpDivBreak = 1, $corpDivBreakDev = 10, $corpDivBreakSlaves = 10, $corpDivBreakSlaves2 = 0, $corpDivBreakToMarket = 1, $corpDivBreakFromMarket = 1, $corpCash = 35000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 100000, $corpAssetsSlave = 0, $corpAssetsDevOld = 90000, $corpAssetsDev = 0]]
		<<if $cash > 200000>>

A focus on extralegal enslavement. <<print cashFormat(200000)>> [[Extralegal Enslavement|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(200000), "stocksTraded"), $corpDiv = 1, $corpDivExtra = 1, $corpDivExtraDev = 10, $corpDivExtraSlaves = 0, $corpDivExtraToMarket = 1, $corpCash = 100000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsDevOld = 200000, $corpAssetsDev = 0, $corpAssetsSlave = 0, $corpAssetsSlaveOld = 0]]
			<<if $cash > 210000>>

A focus on operating sex arcades. <<print cashFormat(210000)>> [[Sex Arcades|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(210000), "stocksTraded"), $corpDiv = 1, $corpDivArcade = 1, $corpDivArcadeDev = 20, $corpDivArcadeSlaves = 20, $corpDivArcadeFromMarket = 1, $corpCash = 15000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 200000, $corpAssetsSlave = 0, $corpAssetsDevOld = 100000, $corpAssetsDev = 0]]
				<<if $cash > 250000>>

A focus on legal enslavement. <<print cashFormat(250000)>> [[Legal Enslavement|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(250000), "stocksTraded"), $corpDiv = 1, $corpDivLegal = 1, $corpDivLegalDev = 10, $corpDivLegalSlaves = 0, $corpDivLegalToMarket = 1, $corpCash = 125000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsDevOld = 250000, $corpAssetsDev = 0, $corpAssetsSlave = 0, $corpAssetsSlaveOld = 0]]
					<<if $cash > 270000>>

A focus on physical slave modifications. <<print cashFormat(270000)>> [[Slave Modifications|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(270000), "stocksTraded"), $corpDiv = 1, $corpDivSurgery = 1, $corpDivSurgeryDev = 10, $corpDivSurgerySlaves = 10, $corpDivSurgerySlaves2 = 0, $corpDivSurgeryToMarket = 1, $corpDivSurgeryFromMarket = 1, $corpCash = 55000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 150000, $corpAssetsSlave = 0, $corpAssetsDevOld = 200000, $corpAssetsDev = 0]]

A focus on milking slaves. <<print cashFormat(270000)>> [[Dairy|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(270000), "stocksTraded"), $corpDiv = 1, $corpDivDairy = 1, $corpDivDairyDev = 10, $corpDivDairySlaves = 10, $corpDivDairyFromMarket = 1, $corpCash = 25000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 230000, $corpAssetsSlave = 0, $corpAssetsDevOld = 150000, $corpAssetsDev = 0]]
						<<if $cash > 300000>>

A focus on training slaves. <<print cashFormat(300000)>> [[Slave Training|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(300000), "stocksTraded"), $corpDiv = 1, $corpDivTrain = 1, $corpDivTrainDev = 10, $corpDivTrainSlaves = 10, $corpDivTrainSlaves2 = 0, $corpDivTrainToMarket = 1, $corpDivTrainFromMarket = 1, $corpCash = 50000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 150000, $corpAssetsSlave = 0, $corpAssetsDevOld = 250000, $corpAssetsDev = 0]]

A focus on offering menial services. <<print cashFormat(300000)>> [[Menial Services|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(300000), "stocksTraded"), $corpDiv = 1, $corpDivMenial = 1, $corpDivMenialDev = 20, $corpDivMenialSlaves = 20, $corpDivMenialFromMarket = 1, $corpCash = 20000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 300000, $corpAssetsSlave = 0, $corpAssetsDevOld = 130000, $corpAssetsDev = 0]]
							<<if $cash > 340000>>

A focus on whoring out slaves. <<print cashFormat(340000)>> [[Escort Service|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(340000), "stocksTraded"), $corpDiv = 1, $corpDivWhore = 1, $corpDivWhoreDev = 10, $corpDivWhoreSlaves = 10, $corpDivWhoreFromMarket = 1, $corpCash = 50000, $personalShares = 2000, $publicShares = 1000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 260000, $corpAssetsSlave = 0, $corpAssetsDevOld = 200000, $corpAssetsDev = 0]]
							<<else>>
								You lack the funds for the final option. You need @@.yellowgreen;<<print cashFormat(340000)>>@@ for it.
							<</if>>
						<<else>>
							You lack the funds for some options. You need at least @@.yellowgreen;<<print cashFormat(300000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(340000)>>.@@
						<</if>>
					<<else>>
						You lack the funds for some options. You need at least @@.yellowgreen;<<print cashFormat(270000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(340000)>>.@@
					<</if>>
				<<else>>
					You lack the funds for some options. You need at least @@.yellowgreen;<<print cashFormat(250000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(340000)>>.@@
				<</if>>
			<<else>>
				You lack the funds for many options. You need at least @@.yellowgreen;<<print cashFormat(210000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(340000)>>.@@
			<</if>>
		<<else>>
			You lack the funds for most options. You need at least @@.yellowgreen;<<print cashFormat(200000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(340000)>>.@@
		<</if>>
	<<else>>
		You lack the funds to found a slave corporation. You need at least @@.yellowgreen;<<print cashFormat(150000)>>@@ and at most @@.yellowgreen;<<print cashFormat(340000)>>.@@
	<</if>>

[[8-7 Share Split|Manage Corporation][$vanillaShareSplit = 0]]
<<else>> /*8/7 split on the shares instead of 2/1*/
	<<if $cash > 120000>>
		You can lay the groundwork for a slave corporation and choose to start out with;

A focus on breaking slaves. <<print cashFormat(120000)>> [[Slave Breaking|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(120000), "stocksTraded"), $corpDiv = 1, $corpDivBreak = 1, $corpDivBreakDev = 10, $corpDivBreakSlaves = 10, $corpDivBreakSlaves2 = 0, $corpDivBreakToMarket = 1, $corpDivBreakFromMarket = 1, $corpCash = 35000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 100000, $corpAssetsSlave = 0, $corpAssetsDevOld = 90000, $corpAssetsDev = 0]]
		<<if $cash > 160000>>

A focus on extralegal enslavement. <<print cashFormat(160000)>> [[Extralegal Enslavement|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(160000), "stocksTraded"), $corpDiv = 1, $corpDivExtra = 1, $corpDivExtraDev = 10, $corpDivExtraSlaves = 0, $corpDivExtraToMarket = 1, $corpCash = 100000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsDevOld = 200000, $corpAssetsDev = 0]]
			<<if $cash > 168000>>

A focus on operating sex arcades. <<print cashFormat(168000)>> [[Sex Arcades|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(168000), "stocksTraded"), $corpDiv = 1, $corpDivArcade = 1, $corpDivArcadeDev = 20, $corpDivArcadeSlaves = 20, $corpDivArcadeFromMarket = 1, $corpCash = 15000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 200000, $corpAssetsSlave = 0, $corpAssetsDevOld = 100000, $corpAssetsDev = 0]]
				<<if $cash > 200000>>

A focus on legal enslavement. <<print cashFormat(200000)>> [[Legal Enslavement|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(200000), "stocksTraded"), $corpDiv = 1, $corpDivLegal = 1, $corpDivLegalDev = 10, $corpDivLegalSlaves = 0, $corpDivLegalToMarket = 1, $corpCash = 125000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsDevOld = 250000, $corpAssetsDev = 0]]
					<<if $cash > 216000>>

A focus on physical slave modifications. <<print cashFormat(216000)>> [[Slave Modifications|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(216000), "stocksTraded"), $corpDiv = 1, $corpDivSurgery = 1, $corpDivSurgeryDev = 10, $corpDivSurgerySlaves = 10, $corpDivSurgerySlaves2 = 0, $corpDivSurgeryToMarket = 1, $corpDivSurgeryFromMarket = 1, $corpCash = 60000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 150000, $corpAssetsSlave = 0, $corpAssetsDevOld = 200000, $corpAssetsDev = 0]]

A focus on milking slaves. <<print cashFormat(216000)>> [[Dairy|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(216000), "stocksTraded"), $corpDiv = 1, $corpDivDairy = 1, $corpDivDairyDev = 10, $corpDivDairySlaves = 10, $corpDivSurgeryFromMarket = 1, $corpCash = 25000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 230000, $corpAssetsSlave = 0, $corpAssetsDevOld = 150000, $corpAssetsDev = 0]]
						<<if $cash > 240000>>

A focus on training slaves. <<print cashFormat(240000)>> [[Slave Training|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(240000), "stocksTraded"), $corpDiv = 1, $corpDivTrain = 1, $corpDivTrainDev = 10, $corpDivTrainSlaves = 10, $corpDivTrainSlaves2 = 0, $corpDivTrainToMarket = 1, $corpDivTrainFromMarket = 1, $corpCash = 50000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 150000, $corpAssetsSlave = 0, $corpAssetsDevOld = 250000, $corpAssetsDev = 0]]

A focus on offering menial services. <<print cashFormat(240000)>> [[Menial Services|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(240000), "stocksTraded"), $corpDiv = 1, $corpDivMenial = 1, $corpDivMenialDev = 20, $corpDivMenialSlaves = 20, $corpDivMenialFromMarket = 1, $corpCash = 20000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 300000, $corpAssetsSlave = 0, $corpAssetsDevOld = 130000, $corpAssetsDev = 0]]
							<<if $cash > 272000>>

A focus on whoring out slaves. <<print cashFormat(272000)>> [[Escort Service|Manage Corporation][$corpIncorporated = 1, cashX(forceNeg(272000), "stocksTraded"), $corpDiv = 1, $corpDivWhore = 1, $corpDivWhoreDev = 10, $corpDivWhoreSlaves = 10, $corpDivWhoreFromMarket = 1, $corpCash = 50000, $personalShares = 8000, $publicShares = 7000, $corpDividend = 0, $dividendTimer = 13, $corpRev = 0, $corpRevOld = 0, $corpAssetsSlaveOld = 260000, $corpAssetsSlave = 0, $corpAssetsDevOld = 200000, $corpAssetsDev = 0]]
							<<else>>
								You lack the funds for the final option. You need @@.yellowgreen;<<print cashFormat(272000)>>@@ for it.
							<</if>>
						<<else>>
							You lack the funds for some options. You need at least @@.yellowgreen;<<print cashFormat(240000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(272000)>>.@@
						<</if>>
					<<else>>
						You lack the funds for some options. You need at least @@.yellowgreen;<<print cashFormat(216000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(272000)>>.@@
					<</if>>
				<<else>>
					You lack the funds for some options. You need at least @@.yellowgreen;<<print cashFormat(200000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(272000)>>.@@
				<</if>>
			<<else>>
				You lack the funds for many options. You need at least @@.yellowgreen;<<print cashFormat(168000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(272000)>>.@@
			<</if>>
		<<else>>
			You lack the funds for most options. You need at least @@.yellowgreen;<<print cashFormat(160000)>>@@ for the next option and at most @@.yellowgreen;<<print cashFormat(272000)>>.@@
		<</if>>
	<<else>>
		You lack the funds to found a slave corporation. You need at least @@.yellowgreen;<<print cashFormat(120000)>>@@ and at most @@.yellowgreen;<<print cashFormat(272000)>>.@@
	<</if>>

[[2-1 Share Split|Manage Corporation][$vanillaShareSplit = 1]]
<</if>>

<<else>> /*When the corporation exists*/

<<set _corpDivBreakSlavesRoom = corpDivBreakSlavesRoom(),
_corpDivSurgerySlavesRoom = corpDivSurgerySlavesRoom(),
_corpDivTrainSlavesRoom = corpDivTrainSlavesRoom(),
_corpDivArcadeSlavesRoom = corpDivArcadeSlavesRoom(),
_corpDivMenialSlavesRoom = corpDivMenialSlavesRoom(),
_corpDivDairySlavesRoom = corpDivDairySlavesRoom(),
_corpDivWhoreSlavesRoom = corpDivWhoreSlavesRoom()>>

__Corporation Overview__

Last Week's Revenue: @@.yellowgreen;<<print cashFormat($corpRevOld)>>@@ /*Returns last week's revenue, gets calculated in corporationDevelopments, but slaves sold here also added to it for next week*/
<<if ($cheatMode) && ($cheatModeM) && $corpNeighborBonus > 0>>

Including Last Week's Neighbor Bonus: @@.yellowgreen;<<print cashFormat($corpNeighborBonus)>>@@
<</if>>

Last Week's Operating Expenses: @@.red;<<print cashFormat($corpOpCostOld)>>@@ /*Just like revenue, except for operating expenses (all calculated in corporationDevelopments)*/

Last Week's Slave Expenses: <<if $corpAssetsSlaveOld > 0>>@@.red;<<print cashFormat($corpAssetsSlaveOld)>>@@<<else>>@@.yellowgreen;<<print cashFormat($corpAssetsSlaveOld)>>@@<</if>> /*buying slaves to work on adds to this expense, works just like revenue*/

Last Week's Asset Expenses: <<if $corpAssetsDevOld > 0>>@@.red;<<print cashFormat($corpAssetsDevOld)>>@@<<else>>@@.yellowgreen;<<print cashFormat($corpAssetsDevOld)>>@@<</if>> /*costs associated with expanding divisions end up here, reports costs from last week, not current*/
<<if $corpOverheadOld > 0>>
Last Week's Overhead: @@.red;<<print cashFormat($corpOverheadOld)>>@@<</if>>
<<if ($cheatMode) && ($cheatModeM)>>
	<<if $corpEcon < 0>>

Last Week's Economic Expenses: @@.red;<<print cashFormat(-$corpEcon)>>@@
	<<else>>

Last Week's Economic Windfall: @@.yellowgreen;<<print cashFormat($corpEcon)>>@@
	<</if>>
<</if>>

Last Week's Profit: <<if $corpProfitOld > 0>>@@.yellowgreen;<<print cashFormat($corpProfitOld)>>@@<<else>>@@.red;<<print cashFormat($corpProfitOld)>>@@<</if>>

Available Liquidity:
<<if ($cheatMode) && ($cheatModeM)>>

	@@.yellowgreen;<<print $corpCash>>@@

	<<set _TcorpCash = $corpCash>>
	<<textbox "_TcorpCash" _TcorpCash>>
	<<link "Apply">>
	<<set $corpCash = Math.trunc(Number(_TcorpCash)) || $corpCash, $cheater = 1>>
	<<replace "#corpCash">>
	@@.yellowgreen;<<print $corpCash>>@@
	<</replace>>
	<</link>>
<<elseif $corpCash > 0>>
	@@.yelllowgreen;<<print cashFormat($corpCash)>>@@
<<else>>
	@@.red;<<print cashFormat($corpCash)>>@@
<</if>>

Total Corporate Value: @@.yellowgreen;<<print cashFormat(corpValue())>>@@

Accumulated Dividend for Payout: @@.yellowgreen;<<print cashFormat($corpDividend)>>@@

Weeks until Dividend Payout:
<<if $dividendTimer == 1>>
	End of this week
<<else>>
	$dividendTimer
<</if>>

__Division Management__
<<if $corpDivExtra == 0>>
	<<if $corpExpandToken > 0>> /*is the corporation large enough to expand into another division?*/
		<<if $corpDivBreak > 0 || $corpDivArcade > 0>> /*Is there a link from another division to this one?*/
			<<if $corpCash > 200000>>

The corporation can expand by starting an extralegal enslavement division at a cost of @@.yelllowgreen;<<print cashFormat(200000)>>.@@ [[Add Division|Manage Corporation][$corpDivExtra = 1, $corpCash -= 200000, $corpDivExtraSlaves = 0, $corpDivExtraDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsDev += 200000]]

			<<else>>

The corporation does not have the funds to add an extralegal enslavement division; @@.yellowgreen;<<print cashFormat(200000)>>@@ required.

			<</if>>
		<</if>>
	<</if>>
<<else>>
	<<set _corpDivExtraCost = 7500 * $corpDivExtraDev + 5 * Math.pow($corpDivExtraDev, 2),
	_corpDivExtraCostPU = Math.trunc(_corpDivExtraCost / $corpDivExtraDev),
	_corpDivExtraRev = menialSlaveCost() * 10>> /*bit of statistics setup to help make informed decisions*/

The corporation has an extralegal enslavement division.

It averages @@.green;$corpDivExtraDev new slaves@@ each week.

It costs @@.red;<<print cashFormat(_corpDivExtraCost)>>@@ to run. On average that is @@.red;<<print cashFormat(_corpDivExtraCostPU)>>@@ per slave.

The slaves acquired can be sold for @@.yellowgreen;<<print cashFormat(_corpDivExtraRev)>>@@ each.
	<<if $corpDivExtraSlaves > 0>>

Currently the division is holding
		<<if $corpDivExtraSlaves > 1>>
			@@.green;$corpDivExtraSlaves slaves.@@
		<<else>>
			@@.green;one slave.@@
		<</if>>
		<<if _corpDivArcadeSlavesRoom > 0>> /*sending slaves to linked divisions if possible*/

You can send up to <<print _corpDivArcadeSlavesRoom>> to the arcade division. [[Send 1|Manage Corporation][$corpDivArcadeSlaves += 1, $corpDivExtraSlaves -= 1]]
			<<if $corpDivExtraSlaves >= 10 && _corpDivArcadeSlavesRoom >= 10>>
				| [[Send 10|Manage Corporation][$corpDivArcadeSlaves += 10, $corpDivExtraSlaves -= 10]]
			<</if>>
			<<if $corpDivExtraSlaves >= _corpDivArcadeSlavesRoom>>
				| [[Fill|Manage Corporation][$corpDivArcadeSlaves += _corpDivArcadeSlavesRoom, $corpDivExtraSlaves -= _corpDivArcadeSlavesRoom]]
			<</if>>
		<</if>>
		<<if _corpDivBreakSlavesRoom > 0>>

You can send up to <<print _corpDivBreakSlavesRoom>> to the arcade division. [[Send 1|Manage Corporation][$corpDivBreakSlaves += 1, $corpDivExtraSlaves -= 1]]
			<<if $corpDivExtraSlaves >= 10 && _corpDivBreakSlavesRoom >= 10>>
				| [[Send 10|Manage Corporation][$corpDivBreakSlaves += 10, $corpDivExtraSlaves -= 10]]
			<</if>>
			<<if $corpDivExtraSlaves >= _corpDivBreakSlavesRoom>>
				| [[Fill|Manage Corporation][$corpDivBreakSlaves += _corpDivBreakSlavesRoom, $corpDivExtraSlaves -= _corpDivBreakSlavesRoom]]
			<</if>>
		<</if>> /*selling slaves that are done is always an option*/

You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += 10 * menialSlaveCost(), $corpDivExtraSlaves -= 1, $menialDemandFactor -= 1, $corpRev += 10 * menialSlaveCost()]]
		<<if $corpDivExtraSlaves >= 10>>
			| [[Sell 10|Manage Corporation][$corpCash += 100 * menialSlaveCost(-10), $corpDivExtraSlaves -= 10, $menialDemandFactor -= 10, $corpRev += 100 * menialSlaveCost(-10)]]
		<</if>>
		<<if $corpDivExtraSlaves >= 100>>
			| [[Sell 100|Manage Corporation][$corpCash += 1000 * menialSlaveCost(-100), $corpDivExtraSlaves -= 100, $menialDemandFactor -= 100, $corpRev += 1000 * menialSlaveCost(-100)]]
		<</if>>
		| [[Sell all|Manage Corporation][$corpCash += $corpDivExtraSlaves * 10 * menialSlaveCost(-$corpDivExtraSlaves), $corpDivExtraSlaves = 0, $menialDemandFactor -= $corpDivExtraSlaves, $corpRev += $corpDivExtraSlaves * 10 * menialSlaveCost(-$corpDivExtraSlaves)]]
	<</if>>

Expanding the division costs @@.red;<<print cashFormat(20000)>>.@@ Downsizing recoups 80% of the investment. /*changing the division's size*/

<<if $corpCash > 20000>>
		[[Expand Division|Manage Corporation][$corpDivExtraDev += 1, $corpCash -= 20000, $corpAssetsDev += 20000]]
	<</if>>
	<<if $corpCash > 200000>>
		| [[Expand x10|Manage Corporation][$corpDivExtraDev += 10, $corpCash -= 200000, $corpAssetsDev += 200000]]
	<</if>>
	<<if $corpDivExtraDev > 10>>
		<<if $corpCash > 20000>>
		|
		<</if>>
		[[Downsize Division|Manage Corporation][$corpDivExtraDev -= 1, $corpCash += 16000, $corpAssetsDev -= 16000]]
	<</if>>
	<<if $corpDivExtraDev > 20>>
		| [[Downsize x10|Manage Corporation][$corpDivExtraDev -= 10, $corpCash += 160000, $corpAssetsDev -= 160000]]
	<</if>>

Rules:
	<<if $corpDivArcade > 0>> /*setting auto move rules for the division*/
		<<if ndef $corpDivExtraToArcade>>
			Do not auto send slaves to the arcade [[Auto Send|Manage Corporation][$corpDivExtraToArcade = 1]]
		<<else>>
			Auto send slaves to the arcade <<link "Stop Auto Send">><<unset $corpDivExtraToArcade>><<goto "Manage Corporation">><</link>>
		<</if>> |
	<</if>>
	<<if $corpDivBreak > 0>>
		<<if ndef $corpDivExtraToBreak>>
			Do not auto send slaves to slave breaking [[Auto Send|Manage Corporation][$corpDivExtraToBreak = 1]]
		<<else>>
			Auto send slaves to slave breaking <<link "Stop Auto Send">><<unset $corpDivExtraToBreak>><<goto "Manage Corporation">><</link>>
		<</if>> |
	<</if>>
	<<if ndef $corpDivExtraToMarket>>
		Do not auto sell slaves to the market [[Auto Sell|Manage Corporation][$corpDivExtraToMarket = 1]]
	<<else>>
		Auto sell slaves to the market <<link "Stop Auto Sell">><<unset $corpDivExtraToMarket>><<goto "Manage Corporation">><</link>>
	<</if>>
	<<if $corpDiv > 1>> /*killing the division*/

Dissolve the division. @@.orange;//Think before you click//@@
		<<link "Dissolve">>
			<<set $corpCash += $corpDivExtraSlaves * 10 * menialSlaveCost(-$corpDivExtraSlaves) + $corpDivExtraDev * 16000,
			$corpRev += $corpDivExtraSlaves * 10 * menialSlaveCost(-$corpDivExtraSlaves),
			$corpAssetsDev -= $corpDivExtraDev * 16000,
			$corpExpandToken += 1,
			$menialDemandFactor -= $corpDivExtraSlaves,
			$corpDivExtra = 0,
			$corpDivExtraDev = 0>>
			<<unset $corpDivExtraSlaves>>
 			<<goto "Manage Corporation">>
		<</link>>
	<</if>>

<</if>>

<<if $corpDivLegal == 0>>
	<<if $corpExpandToken > 0>>
		<<if $corpDivTrain > 0 || $corpDivMenial > 0 || $corpDivSurgery > 0>>
			<<if $corpCash > 250000>>

The corporation can expand by starting a legal enslavement division at a cost of @@.yelllowgreen;<<print cashFormat(250000)>>.@@ [[Add Division|Manage Corporation][$corpDivLegal = 1, $corpCash -= 250000, $corpDivLegalSlaves = 0, $corpDivLegalDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsDev += 250000]]

			<<else>>

The corporation does not have the funds to add an extralegal enslavement division; @@.yellowgreen;<<print cashFormat(250000)>>@@ required.

			<</if>>
		<</if>>
	<</if>>
<<else>>
	<<set _corpDivLegalCost = 12000 * $corpDivLegalDev + 6 * Math.pow($corpDivLegalDev, 2),
	_corpDivLegalCostPU = Math.trunc(_corpDivLegalCost / $corpDivLegalDev),
	_corpDivLegalRev = menialSlaveCost() * 15>>

The corporation has a legal enslavement division.

It averages @@.green;$corpDivLegalDev new slaves@@ each week.

It costs @@.red;<<print cashFormat(_corpDivLegalCost)>>@@ to run. On average that is @@.red;<<print cashFormat(_corpDivLegalCostPU)>>@@ per slave.

The slaves acquired can be sold for @@.yellowgreen;<<print cashFormat(_corpDivLegalRev)>>@@ each.
	<<if $corpDivLegalSlaves > 0>>

Currently the division is holding @@.green;<<if $corpDivLegalSlaves > 1>>$corpDivLegalSlaves slaves<<else>>one slave<</if>>.@@
		<<if _corpDivMenialSlavesRoom > 0>>

You can send up to <<print _corpDivMenialSlavesRoom>> to the menial slave division. [[Send 1|Manage Corporation][$corpDivMenialSlaves += 1, $corpDivLegalSlaves -= 1]]
			<<if $corpDivLegalSlaves >= 10 && _corpDivMenialSlavesRoom >= 10>>
				| [[Send 10|Manage Corporation][$corpDivMenialSlaves += 10, $corpDivLegalSlaves -= 10]]
			<</if>>
			<<if $corpDivLegalSlaves >= _corpDivMenialSlavesRoom>>
				| [[Fill|Manage Corporation][$corpDivMenialSlaves += _corpDivMenialSlavesRoom, $corpDivLegalSlaves -= _corpDivMenialSlavesRoom]]
			<</if>>
		<</if>>
		<<if $corpDivSurgery == 1>>
			<<if _corpDivSurgerySlavesRoom > 0>>

You can send up to <<print _corpDivSurgerySlavesRoom>> to the surgery division. [[Send 1|Manage Corporation][$corpDivSurgerySlaves += 1, $corpDivLegalSlaves -= 1]]
				<<if $corpDivLegalSlaves >= 10 && _corpDivSurgerySlavesRoom >= 10>>
					| [[Send 10|Manage Corporation][$corpDivSurgerySlaves += 10, $corpDivLegalSlaves -= 10]]
				<</if>>
				<<if $corpDivLegalSlaves >= _corpDivSurgerySlavesRoom>>
					| [[Fill|Manage Corporation][$corpDivSurgerySlaves += _corpDivSurgerySlavesRoom, $corpDivLegalSlaves -= _corpDivSurgerySlavesRoom]]
				<</if>>
			<</if>>
		<<else>>
			<<if _corpDivTrainSlavesRoom > 0>>

You can send up to <<print _corpDivTrainSlavesRoom>> to the slave training division. [[Send 1|Manage Corporation][$corpDivTrainSlaves += 1, $corpDivLegalSlaves -= 1]] <<if $corpDivLegalSlaves >= 10 && _corpDivTrainSlavesRoom >= 10>>
					| [[Send 10|Manage Corporation][$corpDivTrainSlaves += 10, $corpDivLegalSlaves -= 10]]
				<</if>>
				<<if $corpDivLegalSlaves >= _corpDivTrainSlavesRoom>>
					| [[Fill|Manage Corporation][$corpDivTrainSlaves += _corpDivTrainSlavesRoom, $corpDivLegalSlaves -= _corpDivTrainSlavesRoom]]
				<</if>>
			<</if>>
		<</if>>

You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += 15 * menialSlaveCost(), $corpDivLegalSlaves -= 1, $menialDemandFactor -= 1, $corpRev += 15 * menialSlaveCost()]]
		<<if $corpDivLegalSlaves >= 10>>
			| [[Sell 10|Manage Corporation][$corpCash += 150 * menialSlaveCost(-10), $corpDivLegalSlaves -= 10, $menialDemandFactor -= 10, $corpRev += 150 * menialSlaveCost(-10)]]
		<</if>>
		<<if $corpDivLegalSlaves >= 100>>
			| [[Sell 100|Manage Corporation][$corpCash += 1500 * menialSlaveCost(-100), $corpDivLegalSlaves -= 100, $menialDemandFactor -= 100, $corpRev += 1500 * menialSlaveCost(-100)]]
		<</if>>
		| [[Sell all|Manage Corporation][$corpCash += $corpDivLegalSlaves * 15 * menialSlaveCost(-$corpDivLegalSlaves), $corpDivLegalSlaves = 0, $menialDemandFactor -= $corpDivLegalSlaves, $corpRev += $corpDivLegalSlaves * 15 * menialSlaveCost(-$corpDivLegalSlaves)]]
	<</if>>

Expanding the division costs @@.red;<<print cashFormat(25000)>>.@@ Downsizing recoups 80% of the investment.

<<if $corpCash > 25000>>
		[[Expand Division|Manage Corporation][$corpDivLegalDev += 1, $corpCash -= 25000, $corpAssetsDev += 25000]]
	<</if>>
	<<if $corpCash > 250000>>
		| [[Expand x10|Manage Corporation][$corpDivLegalDev += 10, $corpCash -= 250000, $corpAssetsDev += 250000]]
	<</if>>
	<<if $corpDivLegalDev > 10>>
		<<if $corpCash > 25000>>
		|
		<</if>>
		[[Downsize Division|Manage Corporation][$corpDivLegalDev -= 1, $corpCash += 20000, $corpAssetsDev -= 20000]]
	<</if>>
	<<if $corpDivLegalDev > 19>>
		| [[Downsize x10|Manage Corporation][$corpDivLegalDev -= 10, $corpCash += 200000, $corpAssetsDev -= 200000]]
	<</if>>

Rules:
	<<if $corpDivMenial > 0>>
		<<if ndef $corpDivLegalToMenial>>
			Do not auto send slaves to the menial services[[Auto Send|Manage Corporation][$corpDivLegalToMenial = 1]]
		<<else>>
			Auto send slaves to the menial services <<link "Stop Auto Send">><<unset $corpDivLegalToMenial>><<goto "Manage Corporation">><</link>>
		<</if>>
		|
	<</if>>
	<<if $corpDivSurgery > 0>>
		<<if ndef $corpDivLegalToSurgery>>
			Do not auto send slaves to undergo surgery [[Auto Send|Manage Corporation][$corpDivLegalToSurgery = 1]]
		<<else>>
			Auto send slaves to undergo surgery <<link "Stop Auto Send">><<unset $corpDivLegalToSurgery>><<goto "Manage Corporation">><</link>>
		<</if>>
		|
		<<if def $corpDivLegalToTrain>>
			<<unset $corpDivLegalToTrain>>
		<</if>>
	<<elseif $corpDivTrain > 0>>
		<<if ndef $corpDivLegalToTrain>>
			Do not auto send slaves to slave training [[Auto Send|Manage Corporation][$corpDivLegalToTrain = 1]]
		<<else>>
			Auto send slaves to slave training <<link "Stop Auto Send">><<unset $corpDivLegalToTrain>><<goto "Manage Corporation">><</link>>
		<</if>>
		|
	<</if>>
	<<if ndef $corpDivLegalToMarket>>
		Do not auto sell slaves to the market [[Auto Sell|Manage Corporation][$corpDivLegalToMarket = 1]]
	<<else>>
		Auto sell slaves to the market <<link "Stop Auto Sell">><<unset $corpDivLegalToMarket>><<goto "Manage Corporation">><</link>>
	<</if>>
	<<if $corpDiv > 1>>

Dissolve the division. @@.orange;//Think before you click//@@
		<<link "Dissolve">>
			<<set $corpCash += $corpDivLegalSlaves * 15 * menialSlaveCost(-$corpDivLegalSlaves) + $corpDivLegalDev * 20000,
			$menialDemandFactor -= $corpDivLegalSlaves,
			$corpRev += $corpDivLegalSlaves * 15 * menialSlaveCost(-$corpDivLegalSlaves),
			$corpAssetsDev -= $corpDivLegalDev * 20000,
			$corpExpandToken += 1,
			$corpDivLegal = 0,
			$corpDivLegalDev = 0>>
			<<unset $corpDivLegalSlaves>>
			<<goto "Manage Corporation">>
		<</link>>
	<</if>>

<</if>>

<<if $corpDivBreak == 0>>
	<<if $corpExpandToken > 0>>
		<<if $corpDivTrain > 0 || $corpDivMenial > 0 || $corpDivSurgery > 0 || $corpDivExtra > 0>>
			<<if $corpCash > 190000>>

The corporation can expand by starting a slave breaking division at a cost of @@.yelllowgreen;<<print cashFormat(190000)>>.@@ [[Add Division|Manage Corporation][$corpDivBreak = 1, $corpCash -= 190000, $corpDivBreakSlaves = 10, $corpDivBreakSlaves2 = 0, $corpDivBreakDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsSlave += 100000, $corpAssetsDev += 90000]]

			<<else>>

The corporation does not have the funds to add a slave breaking division; @@.yellowgreen;<<print cashFormat(190000)>>@@ required.

			<</if>>
		<</if>>
	<</if>>
<<else>>
	<<set _corpDivBreakCost = 450 * $corpDivBreakSlaves + Math.trunc(0.6 * Math.pow($corpDivBreakDev, 2)),
	_corpDivBreakCostPU = Math.trunc(_corpDivBreakCost / ($corpDivBreakSlaves * 0.3)),
	_corpDivBreakRev = menialSlaveCost() * 15,
	_corpDivBreakProc = Math.trunc($corpDivBreakDev * 0.3)>>

The corporation has a slave breaking division.

It can break an average of @@.green;<<print _corpDivBreakProc>> slaves@@ each week when filled to capacity ($corpDivBreakDev).

It costs @@.red;<<print cashFormat(_corpDivBreakCost)>>@@ to run. On average that is @@.red;<<print cashFormat(_corpDivBreakCostPU)>>@@ per slave broken.

The broken slaves can be sold for @@.yellowgreen;<<print cashFormat(_corpDivBreakRev)>>@@ each.
	<<if $corpDivBreakSlaves > 0>>

Currently the division is attempting to break <<if $corpDivBreakSlaves > 1>>@@.green;$corpDivBreakSlaves slaves.@@<<else>>@@.green;one slave.@@<</if>>
		<<if $corpDivBreakSlaves < $corpDivBreakDev>>

There is room to work on more slaves.
			<<if $corpCash >= 10 * menialSlaveCost()>>
				If you do not have eligible slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 10 * menialSlaveCost(), $corpDivBreakSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 10 * menialSlaveCost()]]
				<<if $corpCash > 100 * menialSlaveCost(10)>>
					| [[Buy 10|Manage Corporation][$corpCash -= 100 * menialSlaveCost(10), $corpDivBreakSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 100 * menialSlaveCost(10)]]
				<</if>>
				<<if $corpCash > 10 * menialSlaveCost($corpDivBreakDev - $corpDivBreakSlaves) * ($corpDivBreakDev - $corpDivBreakSlaves)>>
					| [[Fill|Manage Corporation][$corpCash -= 10 * menialSlaveCost($corpDivBreakDev - $corpDivBreakSlaves) * ($corpDivBreakDev - $corpDivBreakSlaves), $corpDivBreakSlaves = $corpDivBreakDev, $menialSupplyFactor -= $corpDivBreakDev - $corpDivBreakSlaves, $corpRev += 10 * menialSlaveCost($corpDivBreakDev - $corpDivBreakSlaves) * ($corpDivBreakDev - $corpDivBreakSlaves)]]
				<</if>>
			<</if>>
		<</if>>
	<</if>>
	<<if $corpDivBreakSlaves2 > 0>>
		It also holds <<if $corpDivBreakSlaves2 > 1>>@@.green;$corpDivBreakSlaves2 broken slaves.@@<<else>>@@.green;one broken slave.@@<</if>>
		<<if _corpDivMenialSlavesRoom > 0>>

You can send up to <<print _corpDivMenialSlavesRoom>> to the menial slave division. [[Send 1|Manage Corporation][$corpDivMenialSlaves += 1, $corpDivBreakSlaves2 -= 1]]
			<<if $corpDivBreakSlaves2 >= 10 && _corpDivMenialSlavesRoom >= 10>>
				| [[Send 10|Manage Corporation][$corpDivMenialSlaves += 10, $corpDivBreakSlaves2 -= 10]]
			<</if>>
			<<if $corpDivBreakSlaves2 >= _corpDivMenialSlavesRoom>>
				| [[Fill|Manage Corporation][$corpDivMenialSlaves += _corpDivMenialSlavesRoom, $corpDivBreakSlaves2 -= _corpDivMenialSlavesRoom]]
			<</if>>
		<</if>>
		<<if $corpDivSurgery == 1>>
			<<if _corpDivSurgerySlavesRoom > 0>>

You can send up to <<print _corpDivSurgerySlavesRoom>> to the surgery division. [[Send 1|Manage Corporation][$corpDivSurgerySlaves += 1, $corpDivBreakSlaves2 -= 1]]
				<<if $corpDivBreakSlaves2 >= 10 && _corpDivSurgerySlavesRoom >= 10>>
					| [[Send 10|Manage Corporation][$corpDivSurgerySlaves += 10, $corpDivBreakSlaves2 -= 10]]
				<</if>>
				<<if $corpDivBreakSlaves2 >= _corpDivSurgerySlavesRoom>>
					| [[Fill|Manage Corporation][$corpDivSurgerySlaves += _corpDivSurgerySlavesRoom, $corpDivBreakSlaves2 -= _corpDivSurgerySlavesRoom]]
				<</if>>
			<</if>>
		<<else>>
			<<if _corpDivTrainSlavesRoom > 0>>

You can send up to <<print _corpDivTrainSlavesRoom>> to the slave training division. [[Send 1|Manage Corporation][$corpDivTrainSlaves += 1, $corpDivBreakSlaves2 -= 1]] <<if $corpDivBreakSlaves2 >= 10 && _corpDivTrainSlavesRoom >= 10>>
					| [[Send 10|Manage Corporation][$corpDivTrainSlaves += 10, $corpDivBreakSlaves2 -= 10]]
				<</if>>
				<<if $corpDivBreakSlaves2 >= _corpDivTrainSlavesRoom>>
					| [[Fill|Manage Corporation][$corpDivTrainSlaves += _corpDivTrainSlavesRoom, $corpDivBreakSlaves2 -= _corpDivTrainSlavesRoom]]
				<</if>>
			<</if>>
		<</if>>

You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += 15 * menialSlaveCost(), $corpDivBreakSlaves2 -= 1, $menialDemandFactor -= 1, $corpRev += 15 * menialSlaveCost()]]
		<<if $corpDivBreakSlaves2 >= 10>>
			| [[Sell 10|Manage Corporation][$corpCash += 150 * menialSlaveCost(-10), $corpDivBreakSlaves2 -= 10, $menialDemandFactor -= 10, $corpRev += 150 * menialSlaveCost(-10)]]
		<</if>>
		<<if $corpDivBreakSlaves2 >= 100>>
			| [[Sell 100|Manage Corporation][$corpCash += 1500 * menialSlaveCost(-100), $corpDivBreakSlaves2 -= 100, $menialDemandFactor -= 100, $corpRev += 1500 * menialSlaveCost(-100)]]
		<</if>>
		| [[Sell all|Manage Corporation][$corpCash += $corpDivBreakSlaves2 * 15 * menialSlaveCost(-$corpDivBreakSlaves2), $corpDivBreakSlaves2 = 0, $menialDemandFactor -= $corpDivBreakSlaves2, $corpRev += $corpDivBreakSlaves2 * 15 * menialSlaveCost(-$corpDivBreakSlaves2)]]
	<</if>>

Expanding the division costs @@.red;<<print cashFormat(9000)>>.@@ Downsizing recoups 80% of the investment.

	<<if $corpCash > 9000>>
		[[Expand Division|Manage Corporation][$corpDivBreakDev += 1, $corpCash -= 9000, $corpAssetsDev += 9000]]
	<</if>>
	<<if $corpCash > 90000>>
		| [[Expand x10|Manage Corporation][$corpDivBreakDev += 10, $corpCash -= 90000, $corpAssetsDev += 90000]]
	<</if>>
	<<if $corpDivBreakDev > 10>>
		<<if $corpCash > 9000>>
		|
		<</if>>
		<<if $corpDivBreakSlaves == $corpDivBreakDev>> /*This makes sure the division is not overcrowded after a downsize*/
			[[Downsize Division|Manage Corporation][$corpDivBreakDev -= 1, $corpCash += 7200 + Math.trunc(11.5 * menialSlaveCost()), $corpDivBreakSlaves -= 1, $corpAssetsDev -= 7200]]
		<<else>>
			[[Downsize Division|Manage Corporation][$corpDivBreakDev -= 1, $corpCash += 7200, $corpAssetsDev -= 7200]]
		<</if>>
	<</if>>
	<<if $corpDivBreakDev > 20>>
		<<if $corpDivBreakSlaves >= $corpDivBreakDev - 10>>
			<<set _corpDivBreakSlavesSell = $corpDivBreakSlaves - ($corpDivBreakDev - 10)>>
			| [[Downsize x10|Manage Corporation][$corpDivBreakDev -= 10, $corpCash += 72000 + Math.trunc(11.5 * _corpDivBreakSlavesSell * menialSlaveCost()), $corpDivBreakSlaves -= _corpDivBreakSlavesSell, $corpAssetsDev -= 72000]]
		<<else>>
			| [[Downsize x10|Manage Corporation][$corpDivBreakDev -= 10, $corpCash += 72000, $corpAssetsDev -= 72000]]
		<</if>>
	<</if>>

Rules:
	<<if $corpDivMenial > 0>>
		<<if ndef $corpDivBreakToMenial>>
			Do not auto send slaves to the menial services[[Auto Send|Manage Corporation][$corpDivBreakToMenial = 1]]
		<<else>>
			Auto send slaves to the menial services <<link "Stop Auto Send">><<unset $corpDivBreakToMenial>><<goto "Manage Corporation">><</link>>
		<</if>>
		|
	<</if>>
	<<if $corpDivSurgery > 0>>
		<<if ndef $corpDivBreakToSurgery>>
			Do not auto send slaves to undergo surgery [[Auto Send|Manage Corporation][$corpDivBreakToSurgery = 1]]
		<<else>>
			Auto send slaves to undergo surgery <<link "Stop Auto Send">><<unset $corpDivBreakToSurgery>><<goto "Manage Corporation">><</link>>
		<</if>>
		|
		<<if def $corpDivBreakToTrain>>
			<<unset $corpDivBreakToTrain>>
		<</if>>
	<<elseif $corpDivTrain > 0>>
		<<if ndef $corpDivBreakToTrain>>
			Do not auto send slaves to slave training [[Auto Send|Manage Corporation][$corpDivBreakToTrain = 1]]
		<<else>>
			Auto send slaves to slave training <<link "Stop Auto Send">><<unset $corpDivBreakToTrain>><<goto "Manage Corporation">><</link>>
		<</if>>
		|
	<</if>>
	<<if ndef $corpDivBreakToMarket>>
		Do not auto sell slaves to the market [[Auto Sell|Manage Corporation][$corpDivBreakToMarket = 1]]
	<<else>>
		Auto sell slaves to the market <<link "Stop Auto Sell">><<unset $corpDivBreakToMarket>><<goto "Manage Corporation">><</link>>
	<</if>>
	<<if ndef $corpDivBreakFromMarket>>

Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivBreakFromMarket = 1]]
	<<else>>

Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivBreakFromMarket>><<goto "Manage Corporation">><</link>>
	<</if>>
	<<if $corpDiv > 1>>

Dissolve the division. @@.orange;//Think before you click//@@
		<<link "Dissolve">>
			<<set $corpCash += $corpDivBreakSlaves * 10 * menialSlaveCost(-$corpDivBreakSlaves) + $corpDivBreakSlaves2 * 15 * menialSlaveCost(-$corpDivBreakSlaves2) + $corpDivBreakDev * 7200,
			$corpAssetsDev -= $corpDivBreakDev * 7200,
			$corpAssetsSlave -= $corpDivBreakSlaves * 10 * menialSlaveCost(-$corpDivBreakSlaves),
			$corpRev += $corpDivBreakSlaves2 * 15 * menialSlaveCost(-$corpDivBreakSlaves2),
			$corpDivBreak = 0,
			$corpDivBreakDev = 0,
			$menialDemandFactor -= $corpDivBreakSlaves + $corpDivBreakSlaves2,
			$corpExpandToken += 1>>
			<<unset $corpDivBreakSlaves,
			$corpDivBreakSlaves2,
			$corpDivExtraToBreak>>
			<<goto "Manage Corporation">>
		<</link>>
	<</if>>

<</if>>

<<if $corpDivSurgery == 0>>
	<<if $corpExpandToken > 0>>
		<<if $corpDivTrain > 0 || $corpDivDairy > 0 || $corpDivBreak > 0 || $corpDivLegal > 0>>
			<<if $corpCash > 350000>>

The corporation can expand by starting a physical slave modification division at a cost of @@.yelllowgreen;<<print cashFormat(350000)>>.@@ [[Add Division|Manage Corporation][$corpDivSurgery = 1, $corpCash -= 350000, $corpDivSurgerySlaves = 10, $corpDivSurgerySlaves2 = 0, $corpDivSurgeryDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsDev += 200000, $corpAssetsSlave += 150000]]

				<<if $corpDivTrain == 1>>
					<<set $corpDivTrainSurgerySwitch = 1,
					$corpDivTrainSurgeryTimer = 0>>
				<</if>>
			<<else>>

The corporation does not have the funds to add a physical slave modification division; @@.yellowgreen;<<print cashFormat(350000)>>@@ required.

			<</if>>
		<</if>>
	<</if>>
<<else>>
	<<set _corpDivSurgeryCost = Math.trunc(2400 * $corpDivSurgerySlaves + Math.pow($corpDivSurgeryDev, 2)),
	_corpDivSurgeryCostPU = Math.trunc(_corpDivSurgeryCost / ($corpDivSurgerySlaves * 0.5)),
	_corpDivSurgeryRev = menialSlaveCost() * 23,
	_corpDivSurgeryProc = Math.trunc($corpDivSurgeryDev * 0.5)>>

The corporation has a physical slave modification division.

It can modify an average of @@.green;<<print _corpDivSurgeryProc>> slaves@@ each week when filled to capacity ($corpDivSurgeryDev).

It costs @@.red;<<print cashFormat(_corpDivSurgeryCost)>>@@ to run. On average that is @@.red;<<print cashFormat(_corpDivSurgeryCostPU)>>@@ per slave.

The improved slaves can be sold for @@.yellowgreen;<<print cashFormat(_corpDivSurgeryRev)>>@@ each.
	<<if $corpDivSurgerySlaves > 0>>

Currently the division is working on
		<<if $corpDivSurgerySlaves > 1>>
			@@.green;$corpDivSurgerySlaves slaves.@@
		<<else>>
			@@.green;one slave.@@
		<</if>>
		<<if $corpDivSurgerySlaves < $corpDivSurgeryDev>>

There is room to work on more slaves.
			<<if $corpCash >= 15 * menialSlaveCost()>>
				If you do not have eligible slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 15 * menialSlaveCost(), $corpDivSurgerySlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 15 * menialSlaveCost()]]
				<<if $corpCash > 150 * menialSlaveCost(10)>>
					| [[Buy 10|Manage Corporation][$corpCash -= 150 * menialSlaveCost(10), $corpDivSurgerySlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 150 * menialSlaveCost(10)]]
				<</if>>
				<<if $corpCash > 15 * menialSlaveCost($corpDivSurgeryDev - $corpDivSurgerySlaves) * ($corpDivSurgeryDev - $corpDivSurgerySlaves)>>
					| [[Fill|Manage Corporation][$corpCash -= 15 * menialSlaveCost($corpDivSurgeryDev - $corpDivSurgerySlaves) * ($corpDivSurgeryDev - $corpDivSurgerySlaves), $corpDivSurgerySlaves = $corpDivSurgeryDev, $menialSupplyFactor -= $corpDivSurgeryDev - $corpDivSurgerySlaves, $corpAssetsSlave += 15 * menialSlaveCost($corpDivSurgeryDev - $corpDivSurgerySlaves) * ($corpDivSurgeryDev - $corpDivSurgerySlaves)]]
				<</if>>
			<</if>>
		<</if>>
	<</if>>
	<<if $corpDivSurgerySlaves2 > 0>>
		It also holds
		<<if $corpDivSurgerySlaves2 > 1>>
			@@.green;$corpDivSurgerySlaves2 improved slaves.@@
		<<else>>
			@@.green;one improved slave.@@
		<</if>>
		<<if _corpDivDairySlavesRoom > 0>>

You can send up to <<print _corpDivDairySlavesRoom>> to the dairy division. [[Send 1|Manage Corporation][$corpDivDairySlaves += 1, $corpDivSurgerySlaves2 -= 1]]
			<<if $corpDivSurgerySlaves2 >= 10 && _corpDivDairySlavesRoom >= 10>>
				| [[Send 10|Manage Corporation][$corpDivDairySlaves += 10, $corpDivSurgerySlaves2 -= 10]]
			<</if>>
			<<if $corpDivSurgerySlaves2 >= _corpDivDairySlavesRoom>>
				| [[Fill|Manage Corporation][$corpDivDairySlaves += _corpDivDairySlavesRoom, $corpDivSurgerySlaves2 -= _corpDivDairySlavesRoom]]
			<</if>>
		<</if>>
		<<if _corpDivTrainSlavesRoom > 0>>

You can send up to <<print _corpDivTrainSlavesRoom>> to the slave training division. [[Send 1|Manage Corporation][$corpDivTrainSlaves += 1, $corpDivSurgerySlaves2 -= 1]]
			<<if $corpDivSurgerySlaves2 >= 10 && _corpDivTrainSlavesRoom >= 10>>
				| [[Send 10|Manage Corporation][$corpDivTrainSlaves += 10, $corpDivSurgerySlaves2 -= 10]]
			<</if>>
			<<if $corpDivSurgerySlaves2 >= _corpDivTrainSlavesRoom>>
				| [[Fill|Manage Corporation][$corpDivTrainSlaves += _corpDivTrainSlavesRoom, $corpDivSurgerySlaves2 -= _corpDivTrainSlavesRoom]]
			<</if>>
		<</if>>

You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += 23 * menialSlaveCost(), $corpDivSurgerySlaves2 -= 1, $menialDemandFactor -= 1, $corpRev += 23 * menialSlaveCost()]]
		<<if $corpDivSurgerySlaves2 >= 10>>
			| [[Sell 10|Manage Corporation][$corpCash += 230 * menialSlaveCost(-10), $corpDivSurgerySlaves2 -= 10, $menialDemandFactor -= 10, $corpRev += 230 * menialSlaveCost(-10)]]
		<</if>>
		<<if $corpDivSurgerySlaves2 >= 100>>
			| [[Sell 100|Manage Corporation][$corpCash += 2300 * menialSlaveCost(-100), $corpDivSurgerySlaves2 -= 100, $menialDemandFactor -= 100, $corpRev += 2300 * menialSlaveCost(-100)]]
		<</if>>
		| [[Sell all|Manage Corporation][$corpCash += $corpDivSurgerySlaves2 * 23 * menialSlaveCost(-$corpDivSurgerySlaves2), $corpDivSurgerySlaves2 = 0, $menialDemandFactor -= $corpDivSurgerySlaves2, $corpRev += $corpDivSurgerySlaves2 * 23 * menialSlaveCost(-$corpDivSurgerySlaves2)]]
	<</if>>

Expanding the division costs @@.red;<<print cashFormat(20000)>>.@@ Downsizing recoups 80% of the investment.

	<<if $corpCash > 20000>>
		[[Expand Division|Manage Corporation][$corpDivSurgeryDev += 1, $corpCash -= 20000, $corpAssetsDev += 20000]]
	<</if>>
	<<if $corpCash > 200000>>
		| [[Expand x10|Manage Corporation][$corpDivSurgeryDev += 10, $corpCash -= 200000, $corpAssetsDev += 200000]]
	<</if>>
	<<if $corpDivSurgeryDev > 10>>
		<<if $corpCash > 20000>>
		|
		<</if>>
		<<if $corpDivSurgerySlaves == $corpDivSurgeryDev>>
			[[Downsize Division|Manage Corporation][$corpDivSurgeryDev -= 1, $corpCash += 16000 + 15 * menialSlaveCost(), $corpDivSurgerySlaves -= 1, $corpAssetsDev -= 16000]]
		<<else>>
			[[Downsize Division|Manage Corporation][$corpDivSurgeryDev -= 1, $corpCash += 16000, $corpAssetsDev -= 16000]]
		<</if>>
	<</if>>
	<<if $corpDivSurgeryDev > 20>>
		<<if $corpDivSurgerySlaves >= $corpDivSurgeryDev - 10>>
			<<set _corpDivSurgerySlavesSell = $corpDivSurgerySlaves - ($corpDivSurgeryDev - 10)>>
			| [[Downsize x10|Manage Corporation][$corpDivSurgeryDev -= 10, $corpCash += 160000 + 15 * _corpDivSurgerySlavesSell * menialSlaveCost(), $corpDivSurgerySlaves -= _corpDivSurgerySlavesSell, $corpAssetsDev -= 160000]]
		<<else>>
			| [[Downsize x10|Manage Corporation][$corpDivSurgeryDev -= 10, $corpCash += 160000, $corpAssetsDev -= 160000]]
		<</if>>
	<</if>>

Rules:
	<<if $corpDivDairy > 0>>
		<<if ndef $corpDivSurgeryToDairy>>
			Do not auto send slaves to the dairy [[Auto Send|Manage Corporation][$corpDivSurgeryToDairy = 1]]
		<<else>>
			Auto send slaves to the dairy <<link "Stop Auto Send">><<unset $corpDivSurgeryToDairy>><<goto "Manage Corporation">><</link>>
		<</if>>
		|
	<</if>>
	<<if $corpDivTrain > 0>>
		<<if ndef $corpDivSurgeryToTrain>>
			Do not auto send slaves to slave training [[Auto Send|Manage Corporation][$corpDivSurgeryToTrain = 1]]
		<<else>>
			Auto send slaves to slave training <<link "Stop Auto Send">><<unset $corpDivSurgeryToTrain>><<goto "Manage Corporation">><</link>>
		<</if>>
		|
	<</if>>
	<<if ndef $corpDivSurgeryToMarket>>
		Do not auto sell slaves to the market [[Auto Sell|Manage Corporation][$corpDivSurgeryToMarket = 1]]
	<<else>>
		Auto sell slaves to the market <<link "Stop Auto Sell">><<unset $corpDivSurgeryToMarket>><<goto "Manage Corporation">><</link>>
	<</if>>
	<<if ndef $corpDivSurgeryFromMarket>>

Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivSurgeryFromMarket = 1]]
	<<else>>

Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivSurgeryFromMarket>><<goto "Manage Corporation">><</link>>
	<</if>>
	<<if $corpDiv > 1>>

Dissolve the division. @@.orange;//Think before you click//@@
		<<link "Dissolve">>
			<<set $corpCash += $corpDivSurgerySlaves * 15 * menialSlaveCost(-$corpDivSurgerySlaves) + $corpDivSurgerySlaves2 * 23 * menialSlaveCost(-$corpDivSurgerySlaves2) + $corpDivSurgeryDev * 20000,
			$corpRev += $corpDivSurgerySlaves2 * 23 * menialSlaveCost(-$corpDivSurgerySlaves2),
			$corpAssetsSlave -= $corpDivSurgerySlaves * 15 * menialSlaveCost(-$corpDivSurgerySlaves),
			$corpAssetsDev -= $corpDivSurgeryDev * 20000,
			$corpDivSurgery = 0,
			$corpDivSurgeryDev = 0,
			$menialDemandFactor -= $corpDivSurgerySlaves + $corpDivSurgerySlaves2,
			$corpExpandToken += 1>>
			<<unset $corpDivSurgerySlaves,
			$corpDivSurgerySlaves2,
			$corpDivLegalToSurgery,
			$corpDivBreakToSurgery>>
			<<goto "Manage Corporation">>
		<</link>>
	<</if>>

<</if>>

<<if $corpDivTrain == 0>>
	<<if $corpExpandToken > 0>>
		<<if $corpDivLegal > 0 || $corpDivWhore > 0 || $corpDivSurgery > 0 || $corpDivBreak > 0>>
			<<if $corpDivSurgery == 1>>
				<<if $corpCash > 480000>>

The corporation can expand by starting a slave training division at a cost of @@.yelllowgreen;<<print cashFormat(480000)>>.@@ [[Add Division|Manage Corporation][$corpDivTrain = 1, $corpCash -= 480000, $corpDivTrainSlaves = 10, $corpDivTrainSlaves2 = 0, $corpDivTrainDev = 10, $corpDiv += 1, $corpExpandToken -=1, $corpAssetsDev += 250000, $corpAssetsSlave += 230000]]

				<<else>>

The corporation does not have the funds to add a slave training division; @@.yellowgreen;<<print cashFormat(480000)>>@@ required.

				<</if>>
			<<elseif $corpCash > 400000>>

The corporation can expand by starting a slave training division at a cost of @@.yelllowgreen;<<print cashFormat(400000)>>.@@ [[Add Division|Manage Corporation][$corpDivTrain = 1, $corpCash -= 400000, $corpDivTrainSlaves = 10, $corpDivTrainSlaves2 = 0, $corpDivTrainDev = 10, $corpDiv += 1, $corpExpandToken -=1, $corpAssetsDev += 250000, $corpAssetsSlave += 150000]]

			<<else>>

The corporation does not have the funds to add a slave training division; @@.yellowgreen;<<print cashFormat(400000)>>@@ required.

			<</if>>
		<</if>>
	<</if>>
<<else>>
	<<if $corpDivSurgery == 0 && $corpDivTrainSurgerySwitch == 0>>
		<<set _corpDivTrainCost = Math.trunc(700 * $corpDivTrainSlaves + Math.pow($corpDivTrainDev, 2)),
		_corpDivTrainCostPU = Math.trunc(_corpDivTrainCost / ($corpDivTrainSlaves * 0.2)),
		_corpDivTrainRev = menialSlaveCost() * 26,
		_corpDivTrainProc = Math.trunc($corpDivTrainDev * 0.2)>>

The corporation has a slave training division.

It can train an average of @@.green;<<print _corpDivTrainProc>> slaves@@ each week when filled to capacity ($corpDivTrainDev).

It costs @@.red;<<print cashFormat(_corpDivTrainCost)>>@@ to run. On average that is @@.red;<<print cashFormat(_corpDivTrainCostPU)>>@@ per slave.

The trained slaves can be sold for @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>@@ each.
		<<if $corpDivTrainSlaves > 0>>

Currently the division is training
			<<if $corpDivTrainSlaves > 1>>
				@@.green;$corpDivTrainSlaves slaves.@@
			<<else>>
				@@.green;one slave.@@
			<</if>>
			<<if $corpDivTrainSlaves < $corpDivTrainDev>>

There is room to train more slaves.
				<<if $corpCash >= 15 * menialSlaveCost()>>
					If you do not have eligible slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 15 * menialSlaveCost(), $corpDivTrainSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 15 * menialSlaveCost()]]
					<<if $corpCash > 150 * menialSlaveCost(10)>>
						| [[Buy 10|Manage Corporation][$corpCash -= 150 * menialSlaveCost(10), $corpDivTrainSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 150 * menialSlaveCost(10)]]
					<</if>>
					<<if $corpCash > 15 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves)>>
						| [[Fill|Manage Corporation][$corpCash -= 15 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves), $corpDivTrainSlaves = $corpDivTrainDev, $menialSupplyFactor -= $corpDivTrainDev - $corpDivTrainSlaves, $corpAssetsSlave += 15 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves)]]
					<</if>>
				<</if>>
			<</if>>
		<</if>>
	<<elseif $corpDivTrainSurgerySwitch == 1 && $corpDivTrainSurgeryTimer < 5>>
		<<set _corpDivTrainCost = Math.trunc(700 * $corpDivTrainSlaves + Math.pow($corpDivTrainDev, 2)),
		_corpDivTrainCostPU = Math.trunc(_corpDivTrainCost / ($corpDivTrainSlaves * 0.2)),
		_corpDivTrainRev = Math.trunc(menialSlaveCost() * (26 +  $corpDivTrainSurgeryTimer * 1.6)),
		_corpDivTrainProc = Math.trunc($corpDivTrainDev * 0.2)>>

The corporation has a slave training division.

It can train an average of @@.green;<<print _corpDivTrainProc>> slaves@@ each week when filled to capacity ($corpDivTrainDev).

It costs @@.red;<<print cashFormat(_corpDivTrainCost)>>@@ to run. On average that is @@.red;<<print cashFormat(_corpDivTrainCostPU)>>@@ per slave.

The trained slaves can be sold for @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>@@ each.
		<<if $corpDivTrainSlaves > 0>>

Currently the division is training
			<<if $corpDivTrainSlaves > 1>>
				@@.green;$corpDivTrainSlaves slaves.@@
			<<else>>
				@@.green;one slave.@@
			<</if>>
			<<if $corpDivTrainSlaves < $corpDivTrainDev>>

There is room to train more slaves.
				<<if $corpCash >= 23 * menialSlaveCost()>>
					If you do not have eligible slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 23 * menialSlaveCost(), $corpDivTrainSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 23 * menialSlaveCost()]]
					<<if $corpCash > 230 * menialSlaveCost(10)>>
						| [[Buy 10|Manage Corporation][$corpCash -= 230 * menialSlaveCost(10), $corpDivTrainSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 230 * menialSlaveCost(10)]]
					<</if>>
					<<if $corpCash > 23 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves)>>
						| [[Fill|Manage Corporation][$corpCash -= 23 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves), $corpDivTrainSlaves = $corpDivTrainDev, $menialSupplyFactor -= $corpDivTrainDev - $corpDivTrainSlaves, $corpAssetsSlave += 23 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves)]]
					<</if>>
				<</if>>
			<</if>>
		<</if>>
	<<else>>
		<<set _corpDivTrainCost = Math.trunc(700 * $corpDivTrainSlaves + Math.pow($corpDivTrainDev, 2)),
		_corpDivTrainCostPU = Math.trunc(_corpDivTrainCost / ($corpDivTrainSlaves * 0.2)),
		_corpDivTrainRev = menialSlaveCost() * 34,
		_corpDivTrainProc = Math.trunc($corpDivTrainDev * 0.2)>>

The corporation has a slave training division.

It can train an average of @@.green;<<print _corpDivTrainProc>> slaves@@ each week when filled to capacity ($corpDivTrainDev).

It costs @@.red;<<print cashFormat(_corpDivTrainCost)>>@@ to run. On average that is @@.red;<<print cashFormat(_corpDivTrainCostPU)>>@@ per slave.

The trained slaves can be sold for @@.yellowgreen;<<print cashFormat(_corpDivTrainRev)>>@@ each.
		<<if $corpDivTrainSlaves > 0>>

Currently the division is training
			<<if $corpDivTrainSlaves > 1>>
				@@.green;$corpDivTrainSlaves slaves.@@
			<<else>>
				@@.green;one slave.@@
			<</if>>
			<<if $corpDivTrainSlaves < $corpDivTrainDev>>

There is room to train more slaves.
				<<if $corpCash >= 23 * menialSlaveCost()>>
					If you do not have eligible slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 23 * menialSlaveCost(), $corpDivTrainSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 23 * menialSlaveCost()]]
					<<if $corpCash > 230 * menialSlaveCost(10)>>
						| [[Buy 10|Manage Corporation][$corpCash -= 230 * menialSlaveCost(10), $corpDivTrainSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 230 * menialSlaveCost(10)]]
					<</if>>
					<<if $corpCash > 23 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves)>>
						| [[Fill|Manage Corporation][$corpCash -= 23 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves), $corpDivTrainSlaves = $corpDivTrainDev, $menialSupplyFactor -= $corpDivTrainDev - $corpDivTrainSlaves, $corpAssetsSlave += 23 * menialSlaveCost($corpDivTrainDev - $corpDivTrainSlaves) * ($corpDivTrainDev - $corpDivTrainSlaves)]]
					<</if>>
				<</if>>
			<</if>>
		<</if>>
	<</if>>
	<<if $corpDivTrainSlaves2 > 0>>
		It also holds
		<<if $corpDivTrainSlaves2 > 1>>
			@@.green;$corpDivTrainSlaves2 trained slaves.@@
		<<else>>
			@@.green;one trained slave.@@
		<</if>>
		<<if _corpDivWhoreSlavesRoom > 0>>

You can send up to <<print _corpDivWhoreSlavesRoom>> to the escort division. [[Send 1|Manage Corporation][$corpDivDairySlaves += 1, $corpDivTrainSlaves2 -= 1]]
			<<if $corpDivTrainSlaves2 >= 10 && _corpDivWhoreSlavesRoom >= 10>>
				| [[Send 10|Manage Corporation][$corpDivWhoreSlaves += 10, $corpDivTrainSlaves2 -= 10]]
			<</if>>
			<<if $corpDivTrainSlaves2 >= _corpDivWhoreSlavesRoom>>
				| [[Fill|Manage Corporation][$corpDivWhoreSlaves += _corpDivWhoreSlavesRoom, $corpDivTrainSlaves2 -= _corpDivWhoreSlavesRoom]]
			<</if>>
		<</if>>
		<<if $corpDivSurgery == 0 && $corpDivTrainSurgerySwitch == 0>>

You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += 26 * menialSlaveCost(), $corpDivTrainSlaves2 -= 1, $menialDemandFactor -= 1, $corpRev += 26 * menialSlaveCost()]]
			<<if $corpDivTrainSlaves2 >= 10>>
				| [[Sell 10|Manage Corporation][$corpCash += 260 * menialSlaveCost(-10), $corpDivTrainSlaves2 -= 10, $menialDemandFactor -= 10, $corpRev += 260 * menialSlaveCost(-10)]]
			<</if>>
			<<if $corpDivTrainSlaves2 >= 100>>
				| [[Sell 100|Manage Corporation][$corpCash += 2600 * menialSlaveCost(-100), $corpDivTrainSlaves2 -= 100, $menialDemandFactor -= 100, $corpRev += 2600 * menialSlaveCost(-100)]]
			<</if>>
			| [[Sell all|Manage Corporation][$corpCash += $corpDivTrainSlaves2 * 26 * menialSlaveCost(-$corpDivTrainSlaves2), $corpDivTrainSlaves2 = 0, $menialDemandFactor -= $corpDivTrainSlaves2, $corpRev += $corpDivTrainSlaves2 * 26 * menialSlaveCost(-$corpDivTrainSlaves2)]]
		<<elseif $corpDivTrainSurgerySwitch == 1 && $corpDivTrainSurgeryTimer < 5>>

You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += Math.trunc((26 +  $corpDivTrainSurgeryTimer * 1.6) * menialSlaveCost()), $corpDivTrainSlaves2 -= 1, $menialDemandFactor -= 1, $corpRev += Math.trunc((26 +  $corpDivTrainSurgeryTimer * 1.6) * menialSlaveCost())]]
			<<if $corpDivTrainSlaves2 >= 10>>
				| [[Sell 10|Manage Corporation][$corpCash += Math.trunc((26 +  $corpDivTrainSurgeryTimer * 1.6) * 10 * menialSlaveCost(-10)), $corpDivTrainSlaves2 -= 10, $menialDemandFactor -= 10, $corpRev += Math.trunc((26 +  $corpDivTrainSurgeryTimer * 1.6) * 10 * menialSlaveCost())]]
			<</if>>
			<<if $corpDivTrainSlaves2 >= 100>>
				| [[Sell 100|Manage Corporation][$corpCash += Math.trunc((26 +  $corpDivTrainSurgeryTimer * 1.6) * 100 * menialSlaveCost(-100)), $corpDivTrainSlaves2 -= 100, $menialDemandFactor -= 100, $corpRev += Math.trunc((26 +  $corpDivTrainSurgeryTimer * 1.6) * 100 * menialSlaveCost())]]
			<</if>>
			| [[Sell all|Manage Corporation][$corpCash += Math.trunc($corpDivTrainSlaves2 * (26 +  $corpDivTrainSurgeryTimer * 1.6) * menialSlaveCost(-$corpDivTrainSlaves2)), $corpDivTrainSlaves2 = 0, $menialDemandFactor -= $corpDivTrainSlaves2, $corpRev += Math.trunc($corpDivTrainSlaves2 * (26 +  $corpDivTrainSurgeryTimer * 1.6) * menialSlaveCost(-$corpDivTrainSlaves2))]]
		<<else>>

You can sell these slaves on the market. [[Sell 1|Manage Corporation][$corpCash += 34 * menialSlaveCost(), $corpDivTrainSlaves2 -= 1, $menialDemandFactor -= 1, $corpRev += 34 * menialSlaveCost()]]
			<<if $corpDivTrainSlaves2 >= 10>>
				| [[Sell 10|Manage Corporation][$corpCash += 340 * menialSlaveCost(-10), $corpDivTrainSlaves2 -= 10, $menialDemandFactor -= 10, $corpRev += 340 * menialSlaveCost(-10)]]
			<</if>>
			<<if $corpDivTrainSlaves2 >= 100>>
				| [[Sell 100|Manage Corporation][$corpCash += 3400 * menialSlaveCost(-100), $corpDivTrainSlaves2 -= 100, $menialDemandFactor -= 100, $corpRev += 3400 * menialSlaveCost(-100)]]
			<</if>>
			| [[Sell all|Manage Corporation][$corpCash += $corpDivTrainSlaves2 * 34 * menialSlaveCost(-$corpDivTrainSlaves2), $corpDivTrainSlaves2 = 0, $menialDemandFactor -= $corpDivTrainSlaves2, $corpRev += $corpDivTrainSlaves2 * 34 * menialSlaveCost(-$corpDivTrainSlaves2)]]
		<</if>>
	<</if>>

Expanding the division costs @@.red;<<print cashFormat(25000)>>.@@ Downsizing recoups 80% of the investment.

	<<if $corpCash > 25000>>
		[[Expand Division|Manage Corporation][$corpDivTrainDev += 1, $corpCash -= 25000, $corpAssetsDev += 25000]]
	<</if>>
	<<if $corpCash > 250000>>
		| [[Expand x10|Manage Corporation][$corpDivTrainDev += 10, $corpCash -= 250000, $corpAssetsDev += 250000]]
	<</if>>
	<<if $corpDivTrainSurgeryTimer < 5 || $corpDivSurgery == 0>>
		<<if $corpCash > 25000 && $corpDivTrainDev > 10>>
			|
		<</if>>
		<<if $corpDivTrainDev > 10>>
			<<if $corpDivTrainSlaves == $corpDivTrainDev>>
				[[Downsize Division|Manage Corporation][$corpDivTrainDev -= 1, $corpCash += 20000 + 15 * menialSlaveCost(), $corpDivTrainSlaves -= 1, $corpAssetsDev -= 20000]]
			<<else>>
				[[Downsize Division|Manage Corporation][$corpDivTrainDev -= 1, $corpCash += 20000, $corpAssetsDev -= 200000]]
			<</if>>
		<</if>>
		<<if $corpDivTrainDev > 20>>
			<<if $corpDivTrainSlaves >= $corpDivTrainDev - 10>>
				<<set _corpDivTrainSlavesSell = $corpDivTrainSlaves - ($corpDivTrainDev - 10)>>
				| [[Downsize x10|Manage Corporation][$corpDivTrainDev -= 10, $corpCash += 200000 + 15 * _corpDivTrainSlavesSell * menialSlaveCost(), $corpDivTrainSlaves -= 	_corpDivTrainSlavesSell, $corpAssetsDev -= 200000]]
			<<else>>
				| [[Downsize x10|Manage Corporation][$corpDivTrainDev -= 10, $corpCash += 200000, $corpAssetsDev -= 200000]]
			<</if>>
		<</if>>
	<<else>>
		<<if $corpCash > 25000 && $corpDivTrainDev > 10>>
			|
		<</if>>
		<<if $corpDivTrainDev > 10>>
			<<if $corpDivTrainSlaves == $corpDivTrainDev>>
				[[Downsize Division|Manage Corporation][$corpDivTrainDev -= 1, $corpCash += 20000 + 23 * menialSlaveCost(), $corpDivTrainSlaves -= 1, $corpAssetsDev -= 20000]]
			<<else>>
				[[Downsize Division|Manage Corporation][$corpDivTrainDev -= 1, $corpCash += 20000, $corpAssetsDev -= 20000]]
			<</if>>
		<</if>>
		<<if $corpDivTrainDev > 20>>
			<<if $corpDivTrainSlaves >= $corpDivTrainDev - 10>>
				<<set _corpDivTrainSlavesSell = $corpDivTrainSlaves - ($corpDivTrainDev - 10)>>
				| [[Downsize x10|Manage Corporation][$corpDivTrainDev -= 10, $corpCash += 200000 + 23 * _corpDivTrainSlavesSell * menialSlaveCost(), $corpDivTrainSlaves -= 	_corpDivTrainSlavesSell, $corpAssetsDev -= 200000]]
			<<else>>
				| [[Downsize x10|Manage Corporation][$corpDivTrainDev -= 10, $corpCash += 200000, $corpAssetsDev -= 200000]]
			<</if>>
		<</if>>
	<</if>>

Rules:
	<<if $corpDivWhore > 0>>
		<<if ndef $corpDivTrainToWhore>>
			Do not auto send slaves to the escort services [[Auto Send|Manage Corporation][$corpDivTrainToWhore = 1]]
		<<else>>
			Auto send slaves to the escort services <<link "Stop Auto Send">><<unset $corpDivTrainToWhore>><<goto "Manage Corporation">><</link>>
		<</if>>
		|
	<</if>>
	<<if ndef $corpDivTrainToMarket>>
		Do not auto sell slaves to the market [[Auto Sell|Manage Corporation][$corpDivTrainToMarket = 1]]
	<<else>>
		Auto sell slaves to the market <<link "Stop Auto Sell">><<unset $corpDivTrainToMarket>><<goto "Manage Corporation">><</link>>
	<</if>>
	<<if ndef $corpDivTrainFromMarket>>

Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivTrainFromMarket = 1]]
	<<else>>

Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivTrainFromMarket>><<goto "Manage Corporation">><</link>>
	<</if>>
	<<if $corpDiv > 1>>
		<<if ndef $corpDivTrainSurgeryTimer || $corpDivTrainSurgeryTimer < 5 || $corpDivSurgery == 0>> /*not worth it to have the in between option here too*/

Dissolve the division. @@.orange;//Think before you click//@@
			<<link "Dissolve">>
				<<set $corpCash += $corpDivTrainSlaves * 15 * menialSlaveCost(-$corpDivTrainSlaves) + Math.trunc($corpDivTrainSlaves2 * 26 * menialSlaveCost(-$corpDivTrainSlaves2)) + $corpDivTrainDev * 20000,
				$corpAssetsDev -= $corpDivTrainDev * 20000,
				$corpAssetsSlave -= $corpDivTrainSlaves * 15 * menialSlaveCost(-$corpDivTrainSlaves),
				$corpRev += Math.trunc($corpDivTrainSlaves2 * 26 * menialSlaveCost(-$corpDivTrainSlaves2)),
				$corpDivTrain = 0,
				$corpDivTrainDev = 0,
				$menialDemandFactor -= $corpDivTrainSlaves + $corpDivTrainSlaves2,
				$corpExpandToken += 1>>
				<<unset $corpDivTrainSlaves,
				$corpDivTrainSlaves2,
				$corpDivSurgeryToTrain,
				$corpDivBreakToTrain,
				$corpDivLegalToTrain>>
				<<goto "Manage Corporation">>
			<</link>>
		<<else>>
			<<link "Dissolve">>
				<<set $corpCash += $corpDivTrainSlaves * 23 * menialSlaveCost(-$corpDivTrainSlaves) + Math.trunc($corpDivTrainSlaves2 * 34 * menialSlaveCost(-$corpDivTrainSlaves2)) + $corpDivTrainDev * 20000,
				$corpAssetsDev -= $corpDivTrainDev * 20000,
				$corpAssetsSlave -= $corpDivTrainSlaves * 23 * menialSlaveCost(-$corpDivTrainSlaves),
				$corpRev += Math.trunc($corpDivTrainSlaves2 * 34 * menialSlaveCost(-$corpDivTrainSlaves2)),
				$corpDivTrain = 0,
				$corpDivTrainDev = 0,
				$menialDemandFactor -= $corpDivTrainSlaves + $corpDivTrainSlaves2,
				$corpExpandToken += 1>>
				<<unset $corpDivTrainSlaves,
				$corpDivTrainSlaves2,
				$corpDivSurgeryToTrain,
				$corpDivBreakToTrain,
				$corpDivLegalToTrain>>
				<<goto "Manage Corporation">>
			<</link>>
		<</if>>
	<</if>>

<</if>>

<<if $corpDivArcade == 0>>
	<<if $corpExpandToken > 0>>
		<<if $corpDivExtra > 0>>
			<<if $corpCash > 300000>>

The corporation can expand by starting a sex arcade division at a cost of @@.yelllowgreen;<<print cashFormat(300000)>>.@@ [[Add Division|Manage Corporation][$corpDivArcade = 1, $corpCash -= 300000, $corpDivArcadeSlaves = 20, $corpDivArcadeDev = 20, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsDev += 100000, $corpAssetsSlave += 200000]]

			<<else>>

The corporation does not have the funds to add a sex arcade division; @@.yellowgreen;<<print cashFormat(300000)>>@@ required.

			<</if>>
		<</if>>
	<</if>>
<<else>>
	<<set _corpDivArcadeCost = Math.trunc(200 * $corpDivArcadeSlaves + 0.125 * Math.pow($corpDivArcadeDev, 2)),
	_corpDivArcadeCostPU = Math.trunc(_corpDivArcadeCost / ($corpDivArcadeSlaves)),
	_corpDivArcadeRev = 1000,
	_corpDivArcadeProc = Math.trunc($corpDivArcadeDev * 0.05)>>

The corporation has a sex arcade division.

It has to replace approximately
	<<if _corpDivArcadeProc > 1>>
		@@.red;<<print _corpDivArcadeProc>> slaves@@
	<<else>>
		@@.red;less than one slave@@
	<</if>>
	each week when filled to capacity ($corpDivArcadeDev).

It costs @@.red;<<print cashFormat(_corpDivArcadeCost)>>@@ to run. On average that is @@.red;<<print cashFormat(_corpDivArcadeCostPU)>>@@ per slave.

The arcade generates on average @@.yellowgreen;<<print cashFormat(_corpDivArcadeRev)>>@@ per slave.
	<<if $corpDivArcadeSlaves > 0>>

Currently the division is exploiting
		<<if $corpDivArcadeSlaves > 1>>
			@@.green;$corpDivArcadeSlaves slaves.@@
		<<else>>
			@@.green;one slave.@@
		<</if>>
		<<if $corpDivArcadeSlaves < $corpDivArcadeDev>>

There is room to exploit more slaves.
			<<if $corpCash >= 10 * menialSlaveCost()>>
				If you do not have eligible slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 10 * menialSlaveCost(), $corpDivArcadeSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 10 * menialSlaveCost()]]
				<<if $corpCash > 100 * menialSlaveCost(10)>>
					| [[Buy 10|Manage Corporation][$corpCash -= 100 * menialSlaveCost(10), $corpDivArcadeSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 100 * menialSlaveCost(10)]]
				<</if>>
				<<if $corpCash > 10 * menialSlaveCost($corpDivArcadeDev - $corpDivArcadeSlaves) * ($corpDivArcadeDev - $corpDivArcadeSlaves)>>
					| [[Fill|Manage Corporation][$corpCash -= 10 * menialSlaveCost($corpDivArcadeDev - $corpDivArcadeSlaves) * ($corpDivArcadeDev - $corpDivArcadeSlaves), $corpDivArcadeSlaves = $corpDivArcadeDev, $menialSupplyFactor -= $corpDivArcadeDev - $corpDivArcadeSlaves, $corpAssetsSlave += 10 * menialSlaveCost($corpDivArcadeDev - $corpDivArcadeSlaves) * ($corpDivArcadeDev - $corpDivArcadeSlaves)]]
				<</if>>
			<</if>>
		<</if>>
	<</if>>

Expanding the division costs @@.red;<<print cashFormat(5000)>>.@@ Downsizing recoups 80% of the investment.

<<if $corpCash > 5000>>
		[[Expand Division|Manage Corporation][$corpDivArcadeDev += 1, $corpCash -= 5000, $corpAssetsDev += 5000]]
	<</if>>
	<<if $corpCash > 50000>>
		| [[Expand x10|Manage Corporation][$corpDivArcadeDev += 10, $corpCash -= 50000, $corpAssetsDev += 50000]]
	<</if>>
	<<if $corpDivArcadeDev > 20>>
		<<if $corpCash > 5000>>
		|
		<</if>>
		<<if $corpDivArcadeSlaves == $corpDivArcadeDev>>
			[[Downsize Division|Manage Corporation][$corpDivArcadeDev -= 1, $corpCash += 4000 + 10 * menialSlaveCost(), $corpDivArcadeSlaves -= 1, $corpAssetsDev -= 4000]]
		<<else>>
			[[Downsize Division|Manage Corporation][$corpDivArcadeDev -= 1, $corpCash += 4000, $corpAssetsDev -= 4000]]
		<</if>>
	<</if>>
	<<if $corpDivArcadeDev > 30>>
		<<if $corpDivArcadeSlaves >= $corpDivArcadeDev - 10>>
			<<set _corpDivArcadeSlavesSell = $corpDivArcadeSlaves - ($corpDivArcadeDev - 10)>>
			| [[Downsize x10|Manage Corporation][$corpDivArcadeDev -= 10, $corpCash += 40000 + 10 * _corpDivArcadeSlavesSell * menialSlaveCost(), $corpDivArcadeSlaves -= _corpDivArcadeSlavesSell, $corpAssetsDev -= 40000]]
		<<else>>
			| [[Downsize x10|Manage Corporation][$corpDivArcadeDev -= 10, $corpCash += 40000, $corpAssetsDev -= 40000]]
		<</if>>
	<</if>>

Rules:
	<<if ndef $corpDivArcadeFromMarket>>
		Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivArcadeFromMarket = 1]]
	<<else>>
		Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivArcadeFromMarket>><<goto "Manage Corporation">><</link>>
	<</if>>
	<<if $corpDiv > 1>>

Dissolve the division. @@.orange;//Think before you click//@@
		<<link "Dissolve">>
			<<set $corpCash += $corpDivArcadeSlaves * 10 * menialSlaveCost(-$corpDivArcadeSlaves) + $corpDivArcadeDev * 4000,
			$corpDivArcade = 0,
			$corpAssetsSlave -= $corpDivArcadeSlaves * 10 * menialSlaveCost(-$corpDivArcadeSlaves),
			$corpAssetsDev -= $corpDivArcadeDev * 4000,
			$corpDivArcadeDev = 0,
			$menialDemandFactor -= $corpDivArcadeSlaves,
			$corpExpandToken += 1>>
			<<unset $corpDivArcadeSlaves,
			$corpDivExtraToArcade>>
			<<goto "Manage Corporation">>
		<</link>>
	<</if>>

<</if>>

<<if $corpDivMenial == 0>>
	<<if $corpExpandToken > 0>>
		<<if $corpDivLegal > 0 || $corpDivBreak > 0>>
			<<if $corpCash > 430000>>

The corporation can expand by starting a menial services division at a cost of @@.yelllowgreen;<<print cashFormat(430000)>>.@@ [[Add Division|Manage Corporation][$corpDivMenial = 1, $corpCash -= 430000, $corpDivMenialSlaves = 20, $corpDivMenialDev = 20, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsSlave += 300000, $corpAssetsDev += 130000]]

			<<else>>

The corporation does not have the funds to add a menial services division; @@.yellowgreen;<<print cashFormat(430000)>>@@ required.

			<</if>>
		<</if>>
	<</if>>
<<else>>
	<<set _corpDivMenialCost = Math.trunc(200 * $corpDivMenialSlaves + 0.1 * Math.pow($corpDivMenialDev, 2)),
	_corpDivMenialCostPU = Math.trunc(_corpDivMenialCost / ($corpDivMenialSlaves)),
	_corpDivMenialRev = 1250,
	_corpDivMenialProc = Math.trunc($corpDivMenialDev * 0.05)>>

The corporation has a menial services division.

It has to replace approximately <<if _corpDivMenialProc > 1>>@@.red;<<print _corpDivMenialProc>> slaves@@<<else>>@@.red;less than one slave@@<</if>> each week when operating at capacity ($corpDivMenialDev).

It costs @@.red;<<print cashFormat(_corpDivMenialCost)>>@@ to run. On average that is @@.red;<<print cashFormat(_corpDivMenialCostPU)>>@@ per slave.

The menial services generate @@.yellowgreen;<<print cashFormat(_corpDivMenialRev)>>@@ per slave on average.
	<<if $corpDivMenialSlaves > 0>>

Currently the division is exploiting <<if $corpDivMenialSlaves > 1>>@@.green;$corpDivMenialSlaves slaves.@@<<else>>@@.green;one slave.@@<</if>>
		<<if $corpDivMenialSlaves < $corpDivMenialDev>>

There is room to exploit more slaves.
			<<if $corpCash >= 15 * menialSlaveCost()>>
				If you do not have eligible slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 15 * menialSlaveCost(), $corpDivMenialSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 15 * menialSlaveCost()]]
				<<if $corpCash > 150 * menialSlaveCost(10)>>
					| [[Buy 10|Manage Corporation][$corpCash -= 150 * menialSlaveCost(10), $corpDivMenialSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 150 * menialSlaveCost(10)]]
				<</if>>
				<<if $corpCash > 15 * menialSlaveCost($corpDivMenialDev - $corpDivMenialSlaves) * ($corpDivMenialDev - $corpDivMenialSlaves)>>
					| [[Fill|Manage Corporation][$corpCash -= 15 * menialSlaveCost($corpDivMenialDev - $corpDivMenialSlaves) * ($corpDivMenialDev - $corpDivMenialSlaves), $corpDivMenialSlaves = $corpDivMenialDev, $menialSupplyFactor -= $corpDivMenialDev - $corpDivMenialSlaves, $corpAssetsSlave += 15 * menialSlaveCost($corpDivMenialDev - $corpDivMenialSlaves) * ($corpDivMenialDev - $corpDivMenialSlaves)]]
				<</if>>
			<</if>>
		<</if>>
	<</if>>

Expanding the division costs @@.red;<<print cashFormat(6500)>>.@@ Downsizing recoups 80% of the investment.

<<if $corpCash > 6500>>
		[[Expand Division|Manage Corporation][$corpDivMenialDev += 1, $corpCash -= 6500, $corpAssetsDev += 6500]]
	<</if>>
	<<if $corpCash > 65000>>
		| [[Expand x10|Manage Corporation][$corpDivMenialDev += 10, $corpCash -= 65000, $corpAssetsDev += 65000]]
	<</if>>
	<<if $corpDivMenialDev > 20>>
		<<if $corpCash > 6500>>
		|
		<</if>>
		<<if $corpDivMenialSlaves == $corpDivMenialDev>>
			[[Downsize Division|Manage Corporation][$corpDivMenialDev -= 1, $corpCash += 5200 + 15 * menialSlaveCost(), $corpDivMenialSlaves -= 1, $corpAssetsDev -= 5200]]
		<<else>>
			[[Downsize Division|Manage Corporation][$corpDivMenialDev -= 1, $corpCash += 5200, $corpAssetsDev -= 5200]]
		<</if>>
	<</if>>
	<<if $corpDivMenialDev > 30>>
		<<if $corpDivMenialSlaves >= $corpDivMenialDev - 10>>
			<<set _corpDivMenialSlavesSell = $corpDivMenialSlaves - ($corpDivMenialDev - 10)>>
			| [[Downsize x10|Manage Corporation][$corpDivMenialDev -= 10, $corpCash += 52000 + 15 * _corpDivMenialSlavesSell * menialSlaveCost(), $corpDivMenialSlaves -= _corpDivMenialSlavesSell, $corpAssetsDev -= 52000]]
		<<else>>
			| [[Downsize x10|Manage Corporation][$corpDivMenialDev -= 10, $corpCash += 52000, $corpAssetsDev -= 52000]]
		<</if>>
	<</if>>

Rules:
	<<if ndef $corpDivMenialFromMarket>>
		Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivMenialFromMarket = 1]]
	<<else>>
		Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivMenialFromMarket>><<goto "Manage Corporation">><</link>>
	<</if>>
	<<if $corpDiv > 1>>

Dissolve the division. @@.orange;//Think before you click//@@
		<<link "Dissolve">>
			<<set $corpCash += $corpDivMenialSlaves * 15 * menialSlaveCost(-$corpDivMenialSlaves) + $corpDivMenialDev * 5200,
			$corpAssetsDev -= $corpDivMenialDev * 5200,
			$corpAssetsSlave -= $corpDivMenialSlaves * 15 * menialSlaveCost(-$corpDivMenialSlaves),
			$corpDivMenial = 0,
			$corpDivMenialDev = 0,
			$menialDemandFactor -= $corpDivMenialSlaves,
			$corpExpandToken += 1>>
			<<unset $corpDivMenialSlaves,
			$corpDivBreakToMenial,
			$corpDivLegalToMenial>>
			<<goto "Manage Corporation">>
		<</link>>
	<</if>>

<</if>>

<<if $corpDivDairy == 0>>
	<<if $corpExpandToken > 0>>
		<<if $corpDivSurgery > 0>>
			<<if $corpCash > 430000>>

The corporation can expand by starting a dairy division at a cost of @@.yelllowgreen;<<print cashFormat(430000)>>.@@ [[Add Division|Manage Corporation][$corpDivDairy = 1, $corpCash -= 430000, $corpDivDairySlaves = 10, $corpDivDairyDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsSlave += 230000, $corpAssetsDev += 200000]]

			<<else>>

The corporation does not have the funds to add a dairy division; @@.yellowgreen;<<print cashFormat(430000)>>@@ required.

			<</if>>
		<</if>>
	<</if>>
<<else>>
	<<set _corpDivDairyCost = Math.trunc(850 * $corpDivDairySlaves + 0.4 * Math.pow($corpDivDairyDev, 2)),
	_corpDivDairyCostPU = Math.trunc(_corpDivDairyCost / ($corpDivDairySlaves)),
	_corpDivDairyRev = 3000,
	_corpDivDairyProc = Math.trunc($corpDivDairyDev * 0.05)>>

The corporation has a dairy division.

It has to replace approximately <<if _corpDivDairyProc > 1>>@@.red;<<print _corpDivDairyProc>> slaves@@<<else>>@@.red;less than one slave@@<</if>> each week when operating at capacity ($corpDivDairyDev).

It costs @@.red;<<print cashFormat(_corpDivDairyCost)>>@@ to run. On average that is @@.red;<<print cashFormat(_corpDivDairyCostPU)>>@@ per slave.

The dairy generates @@.yellowgreen;<<print cashFormat(_corpDivDairyRev)>>@@ per slave on average.
	<<if $corpDivDairySlaves > 0>>

Currently the division is milking <<if $corpDivDairySlaves > 1>>@@.green;$corpDivDairySlaves slaves.@@<<else>>@@.green;one slave.@@<</if>>
		<<if $corpDivDairySlaves < $corpDivDairyDev>>

there is room to milk more slaves.
			<<if $corpCash >= 23 * menialSlaveCost()>>
				If you do not have eligible slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 23 * menialSlaveCost(), $corpDivDairySlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 23 * menialSlaveCost()]]
				<<if $corpCash > 230 * menialSlaveCost(10)>>
					| [[Buy 10|Manage Corporation][$corpCash -= 230 * menialSlaveCost(10), $corpDivDairySlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 230 * menialSlaveCost(10)]]
				<</if>>
				<<if $corpCash > 23 * menialSlaveCost($corpDivDairyDev - $corpDivDairySlaves) * ($corpDivDairyDev - $corpDivDairySlaves)>>
					| [[Fill|Manage Corporation][$corpCash -= 23 * menialSlaveCost($corpDivDairyDev - $corpDivDairySlaves) * ($corpDivDairyDev - $corpDivDairySlaves), $corpDivDairySlaves = $corpDivDairyDev, $menialSupplyFactor -= $corpDivDairyDev - $corpDivDairySlaves, $corpAssetsSlave += 23 * menialSlaveCost($corpDivDairyDev - $corpDivDairySlaves) * ($corpDivDairyDev - $corpDivDairySlaves)]]
				<</if>>
			<</if>>
		<</if>>
	<</if>>

Expanding the division costs @@.red;<<print cashFormat(15000)>>.@@ Downsizing recoups 80% of the investment.

<<if $corpCash > 15000>>
		[[Expand Division|Manage Corporation][$corpDivDairyDev += 1, $corpCash -= 15000, $corpAssetsDev += 15000]]
	<</if>>
	<<if $corpCash > 150000>>
		| [[Expand x10|Manage Corporation][$corpDivDairyDev += 10, $corpCash -= 150000, $corpAssetsDev += 150000]]
	<</if>>
	<<if $corpDivDairyDev > 10>>
		<<if $corpCash > 15000>>
		|
		<</if>>
		<<if $corpDivDairySlaves == $corpDivDairyDev>>
			[[Downsize Division|Manage Corporation][$corpDivDairyDev -= 1, $corpCash += 12000 + 23 * menialSlaveCost(), $corpDivDairySlaves -= 1, $corpAssetsDev -= 12000]]
		<<else>>
			[[Downsize Division|Manage Corporation][$corpDivDairyDev -= 1, $corpCash += 12000, $corpAssetsDev -= 12000]]
		<</if>>
	<</if>>
	<<if $corpDivDairyDev > 20>>
		<<if $corpDivDairySlaves >= $corpDivDairyDev - 10>>
			<<set _corpDivDairySlavesSell = $corpDivDairySlaves - ($corpDivDairyDev - 10)>>
			| [[Downsize x10|Manage Corporation][$corpDivDairyDev -= 10, $corpCash += 120000 + 23 * _corpDivDairySlavesSell * menialSlaveCost(), $corpDivDairySlaves -= _corpDivDairySlavesSell, $corpAssetsDev -= 120000]]
		<<else>>
			| [[Downsize x10|Manage Corporation][$corpDivDairyDev -= 10, $corpCash += 120000, $corpAssetsDev -= 120000]]
		<</if>>
	<</if>>

Rules:
	<<if ndef $corpDivDairyFromMarket>>
		Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivDairyFromMarket = 1]]
	<<else>>
		Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivDairyFromMarket>><<goto "Manage Corporation">><</link>>
	<</if>>
	<<if $corpDiv > 1>>

Dissolve the division. @@.orange;//Think before you click//@@
		<<link "Dissolve">>
			<<set $corpCash += $corpDivDairySlaves * 23 * menialSlaveCost(-$corpDivDairySlaves) + $corpDivDairyDev * 12000,
			$corpDivDairy = 0,
			$corpAssetsDev -= $corpDivDairyDev * 12000,
			$corpAssetsSlave -= $corpDivDairySlaves * 23 * menialSlaveCost(-$corpDivDairySlaves),
			$corpDivDairyDev = 0,
			$menialDemandFactor -= $corpDivDairySlaves,
			$corpExpandToken += 1>>
			<<unset $corpDivDairySlaves,
			$corpDivSurgeryToDairy>>
			<<goto "Manage Corporation">>
		<</link>>
	<</if>>

<</if>>

<<if $corpDivWhore == 0>>
	<<if $corpExpandToken > 0>>
		<<if $corpDivTrain > 0>>
			<<if $corpDivTrainSurgerySwitch == 0>>
				<<if $corpCash > 460000>>

The corporation can expand by starting an escort division at a cost of @@.yelllowgreen;<<print cashFormat(460000)>>.@@ [[Add Division|Manage Corporation][$corpDivWhore = 1, $corpCash -= 460000, $corpDivWhoreSlaves = 10, $corpDivWhoreDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsDev += 200000, $corpAssetsSlave += 260000]]

				<<else>>

The corporation does not have the funds to add an escort division; @@.yellowgreen;<<print cashFormat(460000)>>@@ required.

				<</if>>
			<<else>>
				<<if $corpCash > 540000>>

The corporation can expand by starting an escort division at a cost of @@.yelllowgreen;<<print cashFormat(540000)>>.@@ [[Add Division|Manage Corporation][$corpDivWhore = 1, $corpCash -= 540000, $corpDivWhoreSlaves = 10, $corpDivWhoreDev = 10, $corpDiv += 1, $corpExpandToken -= 1, $corpAssetsDev += 200000, $corpAssetsSlave += 340000]]

				<<else>>

The corporation does not have the funds to add an escort division; @@.yellowgreen;<<print cashFormat(540000)>>@@ required.

				<</if>>
			<</if>>
		<</if>>
	<</if>>
<<else>>
	<<set _corpDivWhoreCost = Math.trunc(700 * $corpDivWhoreSlaves + 0.25 * Math.pow($corpDivWhoreDev, 2)),
	_corpDivWhoreCostPU = Math.trunc(_corpDivWhoreCost / ($corpDivWhoreSlaves)),
	_corpDivWhoreRev = 3000,
	_corpDivWhoreProc = Math.trunc($corpDivWhoreDev * 0.05)>>

The corporation has an escort division.

It has to replace approximately <<if _corpDivWhoreProc > 1>>@@.red;<<print _corpDivWhoreProc>> slaves@@<<else>>@@.red;less than one slave@@<</if>> each week when operating at capacity ($corpDivWhoreDev).

It costs @@.red;<<print cashFormat(_corpDivWhoreCost)>>@@ to run. On average that is @@.red;<<print cashFormat(_corpDivWhoreCostPU)>>@@ per slave.

The escorts generate @@.yellowgreen;<<print cashFormat(_corpDivWhoreRev)>>@@ per slave on average.
	<<if $corpDivWhoreSlaves > 0>>

Currently the division is whoring out <<if $corpDivWhoreSlaves > 1>>@@.green;$corpDivWhoreSlaves slaves.@@<<else>>@@.green;one slave.@@<</if>>
		<<if $corpDivWhoreSlaves < $corpDivWhoreDev>>

There is room to whore out more slaves.
			<<if $corpDivSurgery == 0 && $corpDivTrainSurgerySwitch == 0>>
				<<if $corpCash >= 26 * menialSlaveCost()>>
					If you do not have eligible slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 26 * menialSlaveCost(), $corpDivWhoreSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 26 * menialSlaveCost()]]
					<<if $corpCash > 260 * menialSlaveCost(10)>>
						| [[Buy 10|Manage Corporation][$corpCash -= 260 * menialSlaveCost(10), $corpDivWhoreSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 260 * menialSlaveCost(10)]]
					<</if>>
					<<if $corpCash > 26 * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves)>>
						| [[Fill|Manage Corporation][$corpCash -= 26 * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves), $corpDivWhoreSlaves = $corpDivWhoreDev, $menialSupplyFactor -= $corpDivWhoreDev - $corpDivWhoreSlaves, $corpAssetsSlave += 26 * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves)]]
					<</if>>
				<</if>>
			<<elseif $corpDivTrainSurgerySwitch == 1 && $corpDivTrainSurgeryTimer < 20>>
				<<if $corpCash >= Math.trunc((26 + 0.4 * $corpDivTrainSurgeryTimer) * menialSlaveCost())>>
					If you do not have eligible slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= Math.trunc((26 + 0.4 * $corpDivTrainSurgeryTimer) * menialSlaveCost()), $corpDivWhoreSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += (26 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost()]]
					<<if $corpCash > (260 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost(10)>>
						| [[Buy 10|Manage Corporation][$corpCash -= (260 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost(10), $corpDivWhoreSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += (260 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost(10)]]
					<</if>>
					<<if $corpCash > (26 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves)>>
						| [[Fill|Manage Corporation][$corpCash -= (26 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves), $corpDivWhoreSlaves = $corpDivWhoreDev, $menialSupplyFactor -= $corpDivWhoreDev - $corpDivWhoreSlaves, $corpAssetsSlave += (26 + 4 * $corpDivTrainSurgeryTimer) * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves)]]
					<</if>>
				<</if>>
			<<else>>
				<<if $corpCash >= 34 * menialSlaveCost()>>
					If you do not have eligible slaves in your corporation to move here you can buy them from the market. [[Buy 1|Manage Corporation][$corpCash -= 34 * menialSlaveCost(), $corpDivWhoreSlaves += 1, $menialSupplyFactor -= 1, $corpAssetsSlave += 34 * menialSlaveCost()]]
					<<if $corpCash > 340 * menialSlaveCost(10)>>
						| [[Buy 10|Manage Corporation][$corpCash -= 340 * menialSlaveCost(10), $corpDivWhoreSlaves += 10, $menialSupplyFactor -= 10, $corpAssetsSlave += 340 * menialSlaveCost()]]
					<</if>>
					<<if $corpCash > 34 * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves)>>
						| [[Fill|Manage Corporation][$corpCash -= 34 * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves), $corpDivWhoreSlaves = $corpDivWhoreDev, $menialSupplyFactor -= $corpDivWhoreDev - $corpDivWhoreSlaves, $corpAssetsSlave += 34 * menialSlaveCost($corpDivWhoreDev - $corpDivWhoreSlaves) * ($corpDivWhoreDev - $corpDivWhoreSlaves)]]
					<</if>>
				<</if>>
			<</if>>
		<</if>>
	<</if>>

Expanding the division costs @@.red;<<print cashFormat(20000)>>.@@ Downsizing recoups 80% of the investment.

<<if $corpCash > 20000>>
		[[Expand Division|Manage Corporation][$corpDivWhoreDev += 1, $corpCash -= 20000, $corpAssetsDev += 20000]]
	<</if>>
	<<if $corpCash > 200000>>
		| [[Expand x10|Manage Corporation][$corpDivWhoreDev += 10, $corpCash -= 200000, $corpAssetsDev += 200000]]
	<</if>>
	<<if $corpDivTrainSurgeryTimer < 20 || $corpDivSurgery == 0>>
		<<if $corpDivWhoreDev > 10>>
			<<if $corpCash > 20000>>
			|
			<</if>>
			<<if $corpDivWhoreSlaves == $corpDivWhoreDev>>
				[[Downsize Division|Manage Corporation][$corpDivWhoreDev -= 1, $corpCash += 16000 + 26 * menialSlaveCost(), $corpDivWhoreSlaves -= 1, $corpAssetsDev -= 16000]]
			<<else>>
				[[Downsize Division|Manage Corporation][$corpDivWhoreDev -= 1, $corpCash += 16000, $corpAssetsDev -= 16000]]
			<</if>>
		<</if>>
		<<if $corpDivWhoreDev > 20>>
			<<if $corpDivWhoreSlaves >= $corpDivWhoreDev - 10>>
				<<set _corpDivWhoreSlavesSell = $corpDivWhoreSlaves - ($corpDivWhoreDev - 10)>>
				| [[Downsize x10|Manage Corporation][$corpDivWhoreDev -= 10, $corpCash += 160000 + 26 * _corpDivWhoreSlavesSell * menialSlaveCost(), $corpDivWhoreSlaves -= _corpDivWhoreSlavesSell, $corpAssetsDev -= 160000]]
			<<else>>
				| [[Downsize x10|Manage Corporation][$corpDivWhoreDev -= 10, $corpCash += 160000, $corpAssetsDev -= 160000]]
			<</if>>
		<</if>>
	<<else>>
		<<if $corpDivWhoreDev > 10>>
			<<if $corpDivWhoreSlaves == $corpDivWhoreDev>>
				| [[Downsize Division|Manage Corporation][$corpDivWhoreDev -= 1, $corpCash += 16000 + 34 * menialSlaveCost(), $corpDivWhoreSlaves -= 1, $corpAssetsDev -= 16000]]
			<<else>>
				| [[Downsize Division|Manage Corporation][$corpDivWhoreDev -= 1, $corpCash += 16000, $corpAssetsDev -= 16000]]
			<</if>>
		<</if>>
		<<if $corpDivWhoreDev > 20>>
			<<if $corpDivWhoreSlaves >= $corpDivWhoreDev - 10>>
				<<set _corpDivWhoreSlavesSell = $corpDivWhoreSlaves - ($corpDivWhoreDev - 10)>>
				| [[Downsize x10|Manage Corporation][$corpDivWhoreDev -= 10, $corpCash += 160000 + 34 * _corpDivWhoreSlavesSell * menialSlaveCost(), $corpDivWhoreSlaves -= _corpDivWhoreSlavesSell, $corpAssetsDev -= 160000]]
			<<else>>
				| [[Downsize x10|Manage Corporation][$corpDivWhoreDev -= 10, $corpCash += 160000, $corpAssetsDev -= 160000]]
			<</if>>
		<</if>>
	<</if>>

Rules:
	<<if ndef $corpDivWhoreFromMarket>>
		Do not auto buy slaves from the market [[Auto buy|Manage Corporation][$corpDivWhoreFromMarket = 1]]
	<<else>>
		Auto buy slaves from the market <<link "Stop Auto Buy">><<unset $corpDivWhoreFromMarket>><<goto "Manage Corporation">><</link>>
	<</if>>
	<<if $corpDiv > 1>>
		<<if $corpDivTrainSurgeryTimer < 20 || $corpDivSurgery == 0>>

Dissolve the division. @@.orange;//Think before you click//@@
			<<link "Dissolve">>
				<<set $corpCash += $corpDivWhoreSlaves * 26 * menialSlaveCost(-$corpDivWhoreSlaves) + $corpDivWhoreDev * 16000,
				$corpAssetsDev -= $corpDivWhoreDev * 16000,
				$corpAssetsSlave -= $corpDivWhoreSlaves * 26 * menialSlaveCost(-$corpDivWhoreSlaves),
				$corpDivWhore = 0,
				$corpDivWhoreDev = 0,
				$menialDemandFactor -= $corpDivWhoreSlaves,
				$corpExpandToken += 1>>
				<<unset $corpDivWhoreSlaves,
				$corpDivTrainToWhore>>
				<<goto "Manage Corporation">>
			<</link>>
		<<else>>

Dissolve the division. @@.orange;//Think before you click//@@
			<<link "Dissolve">>
				<<set $corpCash += $corpDivWhoreSlaves * 34 * menialSlaveCost(-$corpDivWhoreSlaves) + $corpDivWhoreDev * 16000,
				$corpAssetsDev -= $corpDivWhoreDev * 16000,
				$corpAssetsSlave -= $corpDivWhoreSlaves * 34 * menialSlaveCost(-$corpDivWhoreSlaves),
				$corpDivWhore = 0,
				$corpDivWhoreDev = 0,
				$menialDemandFactor -= $corpDivWhoreSlaves,
				$corpExpandToken += 1>>
				<<unset $corpDivWhoreSlaves,
				$corpDivTrainToWhore>>
				<<goto "Manage Corporation">>
			<</link>>
		<</if>>
	<</if>>

<</if>>

__Dividend__
<<if $dividendRatio > 0.5>>

The corporation is currently reserving 75% of its profit to be paid out as dividends. [[Reduce Ratio|Manage Corporation][$dividendRatio = 0.5]]
<<elseif $dividendRatio > 0.25>>

The corporation is currently reserving 50% of its profit to be paid out as dividends. [[Increase Ratio|Manage Corporation][$dividendRatio = 0.75]] | [[Reduce Ratio|Manage Corporation][$dividendRatio = 0.25]]
<<elseif $dividendRatio > 0.1>>

The corporation is currently reserving 25% of its profit to be paid out as dividends. [[Increase Ratio|Manage Corporation][$dividendRatio = 0.5]] | [[Reduce Ratio|Manage Corporation][$dividendRatio = 0.1]]
<<elseif $dividendRatio > 0.05>>

The corporation is currently reserving 10% of its profit to be paid out as dividends. [[Increase Ratio|Manage Corporation][$dividendRatio = 0.25]] | [[Reduce Ratio|Manage Corporation][$dividendRatio = 0.05]]
<<elseif $dividendRatio > 0>>

The corporation is currently reserving 5% of its profit to be paid out as dividends. [[Increase Ratio|Manage Corporation][$dividendRatio = 0.1]] | [[Reduce Ratio|Manage Corporation][$dividendRatio = 0]]
<<else>>

The corporation is currently not reserving a portion of its profit to be paid out as dividends. [[Increase Ratio|Manage Corporation][$dividendRatio = 0.05]]
<</if>>
<<if $corpCashDividend == 0>>

You can direct the corporation to reserve cash over <<if corpValue() * 0.05 > 1000000>>5% of @@.yellowgreen;<<print cashFormat(corpValue())>>@@<<else>>@@.yellowgreen;<<print cashFormat(1000000)>>@@<</if>> to be paid out as dividends as well. [[Payout Cash Reserves|Manage Corporation][$corpCashDividend = 1]]
<<else>>

The corporation will payout unused cash reserves as dividends [[Stop|Manage Corporation][$corpCashDividend = 0]]
<</if>>

__Shares__

You own <<print commaNum($personalShares)>> shares while another <<print commaNum($publicShares)>> shares are traded publicly. The going rate on the market for 1000 shares is currently @@.yellowgreen;<<print cashFormat(corpSharePrice())>>.@@

The corporation can buyback 1000 shares for @@.red;<<print cashFormat(corpSharePrice(-1000))>>@@ or issue 1000 shares and net @@.yellowgreen;<<print cashFormat(corpSharePrice(1000))>>.@@
<<if $corpCash > corpSharePrice(-1000)>>
	<<if $publicShares <= $personalShares - 2000 && $publicShares > 0>> /*It won't buy back player shares if the corporation is entirely owned by the player*/

The corporation can buyback some of your shares. [[Buyback 1000|Manage Corporation][cashX(corpSharePrice(-1000), "stocksTraded"), $corpCash -= corpSharePrice(-1000), $personalShares -= 1000]]
	<<elseif $publicShares >= 1000>>

The corporation can buyback some of the public shares. [[Buyback 1000|Manage Corporation][$corpCash -= corpSharePrice(-1000), $publicShares -= 1000]]
	<</if>>
<</if>>
<<if $cash > corpSharePrice(1000)>>

The corporation can issue 1000 shares to you. [[Issue 1000|Manage Corporation][cashX(forceNeg(corpSharePrice(1000)), "stocksTraded"), $corpCash += corpSharePrice(1000), $personalShares += 1000]]
<</if>>
<<if $publicShares <= $personalShares - 2000>>

The corporation can issue 1000 shares onto the stock market. [[Issue 1000|Manage Corporation][$corpCash += corpSharePrice(1000), $publicShares += 1000]]
<</if>>
<<if $publicShares <= $personalShares - 3000>>

You can sell some of your shares on the stock market. [[Sell 1000|Manage Corporation][cashX(corpSharePrice(), "stocksTraded"), $personalShares -= 1000, $publicShares += 1000]]
<</if>>
<<if $cash > corpSharePrice() && $publicShares >= 1000>>

You can buy some shares from the stock market [[Buy 1000|Manage Corporation][cashX(forceNeg(corpSharePrice()), "stocksTraded"), $personalShares += 1000, $publicShares -= 1000]]
<</if>>

__Slave specialization__
<<if $corpSpecToken > 0>> /*Spending tokens on new specializations*/
	<<if $corpSpecToken > 1>>

Your corporation has $corpSpecToken specializations left.
	<<else>>

Your corporation has one specialization left.
	<</if>>
	<<if $corpSpecTimer > 0>>
		You have recently changed specializations and the corporation needs <<if $corpSpecTimer > 1>>2 more weeks<<else>>another week<</if>> before it can comply with another directive.
	<<else>>

Choosing to specialize your corporation uses a specialization. The corporation can be directed to focus on the following:
		<<if $corpSpecRaces.length == 0 && ($corpDivExtra > 0 || $corpDivLegal > 0)>> /*This used to be $captureUpgradeRace, it is a general acquisition specialization*/

Slaves who are not
			<<if $arcologies[0].FSSubjugationistRace != "amerindian" || $arcologies[0].FSSubjugationist == "unset">>[[Amerindian|Manage Corporation][$corpSpecRaces = corpBlacklistRace("amerindian", 1), $corpSpecToken -= 1, $corpSpecTimer = 1]] | <</if>>
			<<if $arcologies[0].FSSubjugationistRace != "asian" || $arcologies[0].FSSubjugationist == "unset">>[[Asian|Manage Corporation][$corpSpecRaces = corpBlacklistRace("asian", 1), $corpSpecToken -= 1, $corpSpecTimer = 1]] | <</if>>
			<<if $arcologies[0].FSSubjugationistRace != "black" || $arcologies[0].FSSubjugationist == "unset">>[[Black|Manage Corporation][$corpSpecRaces = corpBlacklistRace("black", 1), $corpSpecToken -= 1, $corpSpecTimer = 1]] | <</if>>
			<<if $arcologies[0].FSSubjugationistRace != "indo-aryan" || $arcologies[0].FSSubjugationist == "unset">>[[Indo-aryan|Manage Corporation][$corpSpecRaces = corpBlacklistRace("indo-aryan", 1), $corpSpecToken -= 1, $corpSpecTimer = 1]] | <</if>>
			<<if $arcologies[0].FSSubjugationistRace != "latina" || $arcologies[0].FSSubjugationist == "unset">>[[Latina|Manage Corporation][$corpSpecRaces = corpBlacklistRace("latina", 1), $corpSpecToken -= 1, $corpSpecTimer = 1]] | <</if>>
			<<if $arcologies[0].FSSubjugationistRace != "malay" || $arcologies[0].FSSubjugationist == "unset">>[[Malay|Manage Corporation][$corpSpecRaces = corpBlacklistRace("malay", 1), $corpSpecToken -= 1, $corpSpecTimer = 1]] | <</if>>
			<<if $arcologies[0].FSSubjugationistRace != "middle eastern" || $arcologies[0].FSSubjugationist == "unset">>[[Middle Eastern|Manage Corporation][$corpSpecRaces = corpBlacklistRace("middle eastern", 1), $corpSpecToken -= 1, $corpSpecTimer = 1]] | <</if>>
			<<if $arcologies[0].FSSubjugationistRace != "mixed race" || $arcologies[0].FSSubjugationist == "unset">>[[Mixed Race|Manage Corporation][$corpSpecRaces = corpBlacklistRace("mixed race", 1), $corpSpecToken -= 1, $corpSpecTimer = 1]] | <</if>>
			<<if $arcologies[0].FSSubjugationistRace != "pacific islander" || $arcologies[0].FSSubjugationist == "unset">>[[Pacific Islander|Manage Corporation][$corpSpecRaces = corpBlacklistRace("pacific islander", 1), $corpSpecToken -= 1, $corpSpecTimer = 1]] | <</if>>
			<<if $arcologies[0].FSSubjugationistRace != "semitic" || $arcologies[0].FSSubjugationist == "unset">>[[Semitic|Manage Corporation][$corpSpecRaces = corpBlacklistRace("semitic"), $corpSpecToken -= 1, $corpSpecTimer = 1]] | <</if>>
			<<if $arcologies[0].FSSubjugationistRace != "southern european" || $arcologies[0].FSSubjugationist == "unset">>[[Southern European|Manage Corporation][$corpSpecRaces = corpBlacklistRace("southern european", 1), $corpSpecToken -= 1, $corpSpecTimer = 1]] | <</if>>
			<<if $arcologies[0].FSSubjugationistRace != "white" || $arcologies[0].FSSubjugationist == "unset">>[[White|Manage Corporation][$corpSpecRaces = corpBlacklistRace("white", 1), $corpSpecToken -= 1, $corpSpecTimer = 1]]<</if>>
		<</if>>
		<<if $seeDicks != 0 && ndef $corpSpecGender && ($corpDivExtra > 0 || $corpDivLegal > 0)>> /*This used to be $captureUpgradeGender, it is a general acquisition specialization*/

Train only slaves with [[Pussies|Manage Corporation][$corpSpecGender = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Dicks|Manage Corporation][$corpSpecGender = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecHeight && ($corpDivExtra > 0 || $corpDivLegal > 0)>> /*This is a general acquisition specialization*/

Slaves that are [[Short|Manage Corporation][$corpSpecHeight = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Tall|Manage Corporation][$corpSpecHeight = 4, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecVirgin && ($corpDivExtra > 0 || $corpDivLegal > 0)>> /*This is a general acquisition specialization*/

Slaves that are [[Virgins|Manage Corporation][$corpSpecVirgin = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecIntelligence && $corpDivLegal > 0 >> /*This used to be $entrapmentUpgradeIntelligence, it is a legal enslavement specialization*/

Slaves who are [[Stupid|Manage Corporation][$corpSpecIntelligence = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Intelligent|Manage Corporation][$corpSpecIntelligence = 3, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecAge && $corpDivExtra > 0>> /*This used to be $captureUpgradeAge, it is the extralegal enslavement specialization*/

Slaves who are [[Younger|Manage Corporation][$corpSpecAge = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Older|Manage Corporation][$corpSpecAge = 3, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecWeight && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $generalUpgradeWeight, it is a general improvement specialization*/

Managing slaves' diets to achieve [[Thin Slaves|Manage Corporation][$corpSpecWeight = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Fat nor Thin Slaves|Manage Corporation][$corpSpecWeight = 3, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Fat Slaves|Manage Corporation][$corpSpecWeight = 5, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecDevotion && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $entrapmentUpgradeDevotionOne/Two, it is a general improvement specialization*/

Slaves who are [[Reluctant|Manage Corporation][$corpSpecDevotion = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Obedient|Manage Corporation][$corpSpecDevotion = 4, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecAccent && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $trainingUpgradeAccent, it is a general improvement specialization*/

Slaves are taught to [[Speak the Language|Manage Corporation][$corpSpecAccent = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Speak without Accent|Manage Corporation][$corpSpecAccent = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecHormones && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $drugUpgradeHormones, it is a general improvement specialization*/

Slaves are given hormones to [[Feminize|Manage Corporation][$corpSpecHormones = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Masculinize|Manage Corporation][$corpSpecHormones = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecInjection && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $drugUpgradeInjectionOne, it is a general improvement specialization*/

Slave assets are made to be [[Petite|Manage Corporation][$corpSpecInjection = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Tasteful|Manage Corporation][$corpSpecInjection = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Huge|Manage Corporation][$corpSpecInjection = 3, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecCosmetics && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $surgicalUpgradeCosmetics, it is a general improvement specialization*/

Straightforward cosmetic procedures are [[Applied|Manage Corporation][$corpSpecCosmetics = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecEducation && $corpDivTrain > 0>> /*This used to be $trainingUpgradeEducation, it is the training specialization*/

Slaves are given [[No Education|Manage Corporation][$corpSpecEducation == 0, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Basic Education|Manage Corporation][$corpSpecEducation = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecImplants && $corpDivSurgery > 0>> /*This used to be $surgicalUpgradeImplants, it is the surgery specialization*/

Slave implants are [[Applied|Manage Corporation][$corpSpecImplants = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Not Applied|Manage Corporation][$corpSpecImplants = 0, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecGenitalia && $corpDivSurgeryDev > 100>> /*This used to be $surgicalUpgradeGenitalia, it is the surgery specialization*/

Slaves get their genitalia reconfigured [[Add Pussy|Manage Corporation][$corpSpecPussy = 1, $corpSpecGenitalia = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Remove Pussy|Manage Corporation][$corpSpecPussy = -1, $corpSpecGenitalia = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Add Dick|Manage Corporation][$corpSpecDick = 1, $corpSpecGenitalia = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Remove Dick|Manage Corporation][$corpSpecDick = -1, $corpSpecGenitalia = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Add Balls|Manage Corporation][$corpSpecBalls = 1, $corpSpecGenitalia = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Remove Balls|Manage Corporation][$corpSpecBalls = -1, $corpSpecGenitalia = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecTrust && $corpDivBreak > 0>> /*This used to be $generalUpgradeBreaking, it is the slave breaking specific specialization*/

Breaking slaves with [[Brutality|Manage Corporation][$corpSpecTrust = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Care|Manage Corporation][$corpSpecTrust = 4, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecAmputee && $corpDivArcade > 0 && $corpDivSurgeryDev > 100>> /*This is the arcade specialization*/

Slave limbs are categorically [[Removed|Manage Corporation][$corpSpecAmputee = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecMuscle && $corpDivMenial > 0>> /*This used to be $generalUpgradeMuscle, it is the Menial division's specialization*/

Slaves with muscles that are <<if $arcologies[0].FSPhysicalIdealist == "unset">> [[Weak|Manage Corporation][$corpSpecMuscle = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | <</if>>[[Soft|Manage Corporation][$corpSpecMuscle = 3, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Toned|Manage Corporation][$corpSpecMuscle = 4, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecMilk && $corpDivDairy > 0>> /*This is the dairy specialization*/

Slaves are made to be lactating [[Naturally|Manage Corporation][$corpSpecMilk = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Through Implant|Manage Corporation][$corpSpecMilk = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
		<<if ndef $corpSpecSexEd && $corpDivWhore > 0>> /*This used to be $trainingUpgradeSexEd, it is the escort division specialization*/

Slaves are sexually [[Clueless|Manage Corporation][$corpSpecSexEd = 0, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Competent|Manage Corporation][$corpSpecSexEd = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]]
		<</if>>
	<</if>>
<<else>>

Your corporation cannot pick a new specialization at this time.
<</if>>

<<if $corpSpec > $corpSpecToken>> /*Modifying specializations*/

You have chosen the following specializations;

//You can choose to specialize further with additional tokens, specialize less, end the specialization or sometimes tweak them for free.//
	<<if $corpSpecRaces.length == 12>>
		<<set $corpSpecRaces = []>>
	<</if>>
	<<if $corpSpecRaces.length > 0>>

The corporation enslaves people of the following race(s);
		<<if $corpSpecRaces.includes("amerindian")>>

Amerindian
			<<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "amerindian")>>
				<<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>>
					<<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("amerindian",1), $corpSpecToken -= 1, $corpSpecTimer = 1]]
					<<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("amerindian",1)]]
					<</if>>
				<</if>>
			<</if>>
		<<else>>

==Amerindian==
			<<if $corpSpecTimer == 0>>
				<<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("amerindian",0), $corpSpecToken += 1, $corpSpecTimer = 1]]
				<<else>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("amerindian",0)]]
				<</if>>
			<</if>>
		<</if>>
		<<if $corpSpecRaces.includes("asian")>>

Asian
			<<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "asian")>>
				<<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>>
					<<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("asian",1), $corpSpecToken -= 1, $corpSpecTimer = 1]]
					<<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("asian",1)]]
					<</if>>
				<</if>>
			<</if>>
		<<else>>

==Asian==
			<<if $corpSpecTimer == 0>>
				<<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("asian",0), $corpSpecToken += 1, $corpSpecTimer = 1]]
				<<else>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("asian",0)]]
				<</if>>
			<</if>>
		<</if>>
		<<if $corpSpecRaces.includes("black")>>

Black
			<<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "black")>>
				<<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>>
					<<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("black",1), $corpSpecToken -= 1, $corpSpecTimer = 1]]
					<<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("black",1)]]
					<</if>>
				<</if>>
			<</if>>
		<<else>>

==Black==
			<<if $corpSpecTimer == 0>>
				<<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("black",0), $corpSpecToken += 1, $corpSpecTimer = 1]]
				<<else>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("black",0)]]
				<</if>>
			<</if>>
		<</if>>
		<<if $corpSpecRaces.includes("indo-aryan")>>

Indo-Aryan
			<<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "indo-aryan")>>
				<<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>>
					<<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("indo-aryan",1), $corpSpecToken -= 1, $corpSpecTimer = 1]]
					<<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("indo-aryan",1)]]
					<</if>>
				<</if>>
			<</if>>
		<<else>>

==Indo-Aryan==
			<<if $corpSpecTimer == 0>>
				<<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("indo-aryan",0), $corpSpecToken += 1, $corpSpecTimer = 1]]
				<<else>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("indo-aryan",0)]]
				<</if>>
			<</if>>
		<</if>>
		<<if $corpSpecRaces.includes("latina")>>

Latina
			<<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "latina")>>
				<<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>>
					<<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("latina",1), $corpSpecToken -= 1, $corpSpecTimer = 1]]
					<<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("latina",1)]]
					<</if>>
				<</if>>
			<</if>>
		<<else>>

==Latina==
			<<if $corpSpecTimer == 0>>
				<<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("latina",0), $corpSpecToken += 1, $corpSpecTimer = 1]]
				<<else>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("latina",0)]]
				<</if>>
			<</if>>
		<</if>>
		<<if $corpSpecRaces.includes("malay")>>

Malay
			<<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "malay")>>
				<<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>>
					<<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("malay",1), $corpSpecToken -= 1, $corpSpecTimer = 1]]
					<<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("malay",1)]]
					<</if>>
				<</if>>
			<</if>>
		<<else>>

==Malay==
			<<if $corpSpecTimer == 0>>
				<<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("malay",0), $corpSpecToken += 1, $corpSpecTimer = 1]]
				<<else>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("malay",0)]]
				<</if>>
			<</if>>
		<</if>>
		<<if $corpSpecRaces.includes("middle eastern")>>

Middle Eastern
			<<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "middle eastern")>>
				<<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>>
					<<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("middle eastern",1), $corpSpecToken -= 1, $corpSpecTimer = 1]]
					<<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("middle eastern",1)]]
					<</if>>
				<</if>>
			<</if>>
		<<else>>

==Middle Eastern==
			<<if $corpSpecTimer == 0>>
				<<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("middle eastern",0), $corpSpecToken += 1, $corpSpecTimer = 1]]
				<<else>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("middle eastern",0)]]
				<</if>>
			<</if>>
		<</if>>
		<<if $corpSpecRaces.includes("mixed race")>>

Mixed Race
			<<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "mixed race")>>
				<<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>>
					<<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("mixed race",1), $corpSpecToken -= 1, $corpSpecTimer = 1]]
					<<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("mixed race",1)]]
					<</if>>
				<</if>>
			<</if>>
		<<else>>

==Mixed Race==
			<<if $corpSpecTimer == 0>>
				<<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("mixed race",0), $corpSpecToken += 1, $corpSpecTimer = 1]]
				<<else>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("mixed race",0)]]
				<</if>>
			<</if>>
		<</if>>
		<<if $corpSpecRaces.includes("pacific islander")>>

Pacific Islander
			<<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "pacific islander")>>
				<<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>>
					<<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("pacific islander",1), $corpSpecToken -= 1, $corpSpecTimer = 1]]
					<<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("pacific islander",1)]]
					<</if>>
				<</if>>
			<</if>>
		<<else>>

==Pacific Islander==
			<<if $corpSpecTimer == 0>>
				<<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("pacific islander",0), $corpSpecToken += 1, $corpSpecTimer = 1]]
				<<else>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("pacific islander",0)]]
				<</if>>
			<</if>>
		<</if>>
		<<if $corpSpecRaces.includes("semitic")>>

Semitic
			<<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "semitic")>>
				<<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>>
					<<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("semitic",1), $corpSpecToken -= , $corpSpecTimer = 1]]
					<<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("semitic",1)]]
					<</if>>
				<</if>>
			<</if>>
		<<else>>

==Semitic==
			<<if $corpSpecTimer == 0>>
				<<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("semitic",0), $corpSpecToken += 1, $corpSpecTimer = 1]]
				<<else>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("semitic",0)]]
				<</if>>
			<</if>>
		<</if>>
		<<if $corpSpecRaces.includes("southern european")>>

Southern European
			<<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace != "southern european")>>
				<<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>>
					<<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("southern european",1), $corpSpecToken -= 1, $corpSpecTimer = 1]]
					<<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("southern european",1)]]
					<</if>>
				<</if>>
			<</if>>
		<<else>>

==Southern European==
			<<if $corpSpecTimer == 0>>
				<<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("southern european",0), $corpSpecToken += 1, $corpSpecTimer = 1]]
				<<else>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("southern european",0)]]
				<</if>>
			<</if>>
		<</if>>
		<<if $corpSpecRaces.includes("white")>>

White
			<<if !($arcologies[0].FSSubjugationist != "unset" && $arcologies[0].FSSubjugationistRace == "white")>>
				<<if $corpSpecRaces.length > 1 && $corpSpecTimer == 0>>
					<<if ($corpSpecRaces.length == 4 || $corpSpecRaces.length == 8) && $corpSpecToken > 0>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("white",1), $corpSpecToken -= 1, $corpSpecTimer = 1]]
					<<elseif ($corpSpecRaces.length != 4 || $corpSpecRaces.length != 8)>>
						[[Blacklist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("white",1)]]
					<</if>>
				<</if>>
			<</if>>
		<<else>>

==White==
			<<if $corpSpecTimer == 0>>
				<<if $corpSpecRaces.length == 3 || $corpSpecRaces.length == 7 || $corpSpecRaces.length == 11>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("white",0), $corpSpecToken += 1, $corpSpecTimer = 1]]
				<<else>>
					[[Whitelist|Manage Corporation][$corpSpecRaces = corpBlacklistRace("white",0)]]
				<</if>>
			<</if>>
		<</if>>
	<</if>>
	<<if $corpSpecGender == 1>>

The corporation trains slaves with pussies.
		<<if $corpSpecTimer == 0>>
			<<link "No Focus">><<unset $corpSpecGender>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecGender == 2>>

The corporation trains slaves with dicks.
		<<if $corpSpecTimer == 0>>
			<<link "No Focus">><<unset $corpSpecGender>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecHeight == 1>>

The corporation is targeting tiny slaves.
		<<if $corpSpecTimer == 0>>
			[[Short Slaves|Manage Corporation][$corpSpecHeight = 2, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecHeight>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecHeight == 2>>

The corporation is targeting short slaves.
		<<if $corpSpecTimer == 0>>
			<<if $corpSpecToken > 0 && ($corpDivExtraDev + $corpDivLegalDev) > 50>>
				[[Tiny Slaves|Manage Corporation][$corpSpecHeight = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] |
			<</if>>
			<<link "No Focus">><<unset $corpSpecHeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecHeight == 4>>

The corporation is targeting tall slaves.
		<<if $corpSpecTimer == 0>>
			<<if $corpSpecToken > 0 && ($corpDivExtraDev + $corpDivLegalDev) > 50>>
				[[Giant Slaves|Manage Corporation][$corpSpecHeight = 5, $corpSpecToken -= 1, $corpSpecTimer = 2]] |
			<</if>>
			<<link "No Focus">><<unset $corpSpecHeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecHeight == 5>>

The corporation is targeting giant slaves.
		<<if $corpSpecTimer == 0>>
			[[Tall Slaves|Manage Corporation][$corpSpecHeight = 4, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecHeight>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecVirgin == 1>>

The corporation is ensuring slaves remain virgins.
		<<if $corpSpecTimer == 0>>
			<<link "No Focus">><<unset $corpSpecVirgin>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecTrust == 1>>

The corporation is breaking slaves with extreme brutality.
		<<if $corpSpecTimer == 0>>
			[[Apply Less Brutality|Manage Corporation][$corpSpecTrust = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecTrust>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>> /*Don't think this deserves the added cost of a token, unlike the 'utmost care' one*/
	<<elseif $corpSpecTrust == 2>>

The corporation is breaking slaves with brutality.
		<<if $corpSpecTimer == 0>>
			<<if $corpSpecToken > 0 && $arcologies[0].FSDegradationist > 20 && $corpDivBreakDev > 50>>
				[[Apply Extreme Brutality|Manage Corporation][$corpSpecTrust = 1, $corpSpecTimer = 2]] |
			<</if>>
			<<link "No Focus">><<unset $corpSpecTrust>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecTrust == 4>>

The corporation is breaking slaves with care.
		<<if $corpSpecTimer == 0>>
			<<if $corpSpecToken > 0 && $arcologies[0].FSPaternalist > 20 && $corpDivBreakDev > 50>>
				[[Use the Utmost Care|Manage Corporation][$corpSpecTrust = 5, $corpSpecToken += 1, $corpSpecTimer == 2]] |
			<</if>>
			<<link "No Focus">><<unset $corpSpecTrust>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecTrust == 5>>

The corporation is breaking slaves with the utmost care.
		<<if $corpSpecTimer == 0>>
			[[Use Less Care|Manage Corporation][$corpSpecTrust = 4, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecTrust>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecWeight == 1>>

The corporation makes slaves follow incredibly strict diets.
		<<if $corpSpecTimer == 0>>
			[[Apply Looser Diet|Manage Corporation][$corpSpecWeight = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecWeight == 2>>

The corporation makes slaves diet.
		<<if $corpSpecTimer == 0>>
			<<if $corpSpecToken > 0 && $arcologies[0].FSHedonisticDecadence == "unset">>
				[[Apply Strict Diet|Manage Corporation][$corpSpecWeight = 1, $corpSpecTimer = 2]] |
			<</if>>
			[[Aim for Healthy Weight][$corpSpecWeight = 3, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecWeight == 3>>

The corporation is aiming for slaves with a healthy weight.
		<<if $corpSpecTimer == 0>>
			[[Apply Diet|Manage Corporation][$corpSpecWeight = 2, $corpSpecTimer = 2]] | [[Plump up Slaves|Manage Corporation][$corpSpecWeight = 5, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>> /*Perhaps 'plump up' is not the right phrase*/
	<<elseif $corpSpecWeight == 5>>

The corporation aims for plump slaves.
		<<if $corpSpecTimer == 0>>
			<<if $corpSpecToken > 0 && $arcologies[0].FSPhysicalIdealist == "unset">>
				[[Fatten Slaves|Manage Corporation][$corpSpecWeight = 6, $corpSpecTimer = 2]] |
			<</if>>
			[[Aim for Healthy Weight][$corpSpecWeight = 3, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecWeight == 6>>

The corporation aims for fat slaves.
		<<if $corpSpecTimer == 0>>
			[[Settle for Plump|Manage Corporation][$corpSpecWeight = 5, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecMuscle == 1>>

The corporation aims to have frail slaves.
		<<if $corpSpecTimer == 0>>
			[[Aim for Weak|Manage Corporation][$corpSpecMuscle = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecMuscle>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecMuscle == 2>> /*Don't think this deserves the added cost of a token, unlike slaves getting ripped*/

The corporation aims to have weak slaves.
		<<if $corpSpecTimer == 0>>
			<<if $arcologies[0].FSPhysicalIdealist == "unset">>
				[[Aim for Frail|Manage Corporation][$corpSpecMuscle = 1, $corpSpecTimer = 2]] |
			<</if>>
			[[Aim for Soft|Manage Corporation][$corpSpecMuscle = 3, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecMuscle == 3>>

The corporation is aiming for slaves with soft muscles.
		<<if $corpSpecTimer == 0>>
			<<if $arcologies[0].FSPhysicalIdealist == "unset">>
				[[Aim for Weak|Manage Corporation][$corpSpecMuscle = 2, $corpSpecTimer = 2]] |
			<</if>>
			[[Aim for Toned|Manage Corporation][$corpSpecMuscle = 4, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecMuscle == 4>>

The corporation aims for toned muscles.
		<<if $corpSpecTimer == 0>>
			<<if $corpSpecToken > 0 && ($corpDivBreakDev + $corpDivSurgeryDev + $corpDivTrainDev > 100)>>
				[[Aim for Ripped|Manage Corporation][$corpSpecMuscle = 5, $corpSpecToken -= 1, $corpSpecTimer = 2]] |
			<</if>>
			[[Aim for Soft|Manage Corporation][$corpSpecMuscle = 3, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecMuscle == 5>>

The corporation aims for ripped slaves.
		<<if $corpSpecTimer == 0>>
			[[Aim for Toned|Manage Corporation][$corpSpecMuscle = 4, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecWeight>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
		<<if $corpSpecDevotion == 1>>

The corporation keeps slaves extremely defiant.
		<<if $corpSpecTimer == 0>>
			[[Less Defiant|Manage Corporation][$corpSpecDevotion = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecDevotion>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>> /*Don't think this deserves the added cost of a token, unlike the 'devoted' one*/
	<<elseif $corpSpecDevotion == 2>>

The corporation keeps slaves reluctant.
		<<if $corpSpecTimer == 0>>
			[[Make them Defiant|Manage Corporation][$corpSpecDevotion = 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecDevotion>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecDevotion == 4>>

The corporation is fostering obedience.
		<<if $corpSpecTimer == 0>>
			<<if $corpSpecToken > 0 && $corpDivTrainDev > 100>>
				[[Foster Devotion|Manage Corporation][$corpSpecDevotion = 5, $corpSpecToken += 1, $corpSpecTimer = 2]] |
			<</if>>
		<<link "No Focus">><<unset $corpSpecDevotion>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecDevotion == 5>>

The corporation is fostering devotion.
		<<if $corpSpecTimer == 0>>
			[[Settle for Obedience|Manage Corporation][$corpSpecDevotion = 4, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecDevotion>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecIntelligence == 1>>

The corporation keeps stupid slaves.
		<<if $corpSpecTimer == 0>>
			<<link "No Focus">><<unset $corpSpecIntelligence>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecIntelligence == 3>>

The corporation keeps intelligent slaves.
		<<if $corpSpecTimer == 0>>
			<<link "No Focus">><<unset $corpSpecIntelligence>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecAge == 1>>

The corporation focuses on young slaves.
		<<if $corpSpecTimer == 0>>
			<<link "No Focus">><<unset $corpSpecAge>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecAge == 3>>

The corporation focuses on older slaves.
		<<if $corpSpecTimer == 0>>
			<<link "No Focus">><<unset $corpSpecAge>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecAccent == 1>>

The corporation teaches slaves to speak the lingua franca.
		<<if $corpSpecTimer == 0>>
			[[Eliminate Accents|Manage Corporation][$corpSpecAccent = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecAccent>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecAccent == 2>>

The corporation teaches slaves to speak the lingua franca.
		<<if $corpSpecTimer == 0>>
			[[Just Teach Language|Manage Corporation][$corpSpecAccent = 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecAccent>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecEducation == 0>>
		<brThe corporation focuses on uneducated slaves.
		<<if $corpSpecTimer == 0>>
			<<if $corpSpecToken > 0>>
				[[Basic Education|Manage Corporation][$corpSpecEducation = 1, $corpSpecTimer = 2]] |
			<</if>>
		<<link "No Focus">><<unset $corpSpecEducation>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecEducation == 1>>

The corporation makes sure all slaves have a basic education.
		<<if $corpSpecTimer == 0>>
			<<if $corpDivTrainDev > 200 && $corpSpecToken > 0>>
				[[Advanced Education|Manage Corporation][$corpSpecEducation = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] |
			<</if>>
			[[No Education|Manage Corporation][$corpSpecEducation = 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecEducation>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecEducation == 2>>

The corporation makes sure all slaves have an advanced education.
		<<if $corpSpecTimer == 0>>
			[[Basic Education|Manage Corporation][$corpSpecEducation = 1, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecEducation>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecCosmetics == 1>>

The corporation applies straightforward cosmetic procedures.
		<<if $corpSpecTimer == 0>>
			<<link "No Focus">><<unset $corpSpecCosmetics>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecImplants == 1>>

The corporation applies tasteful implants to all slaves.
		<<if $corpSpecTimer == 0>>
			<<if $corpDivSurgeryDev > 100 && $corpSpecToken > 0>>
				[[Absurd Implants|Manage Corporation][$corpSpecImplants = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] |
			<</if>>
			<<link "No Focus">><<unset $corpSpecImplants>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecImplants == 2>>

The corporation applies absurd implants to all slaves.
		<<if $corpSpecTimer == 0>>
			[[Tasteful Implants|Manage Corporation][$corpSpecImplants = 1, $corpSpecToken += 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecImplants>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecImplants == 0>>

The corporation keeps their slaves entirely implant free.
		<<if $corpSpecTimer == 0 && $corpSpecToken > 0>>
			[[Tasteful Implants|Manage Corporation][$corpSpecImplants = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecImplants>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if ndef $corpSpecPussy && ndef $corpSpecDick && ndef $corpSpecBalls && $corpSpecGenitalia == 1>>
		<<set ndef $corpSpecGenitalia,
		$corpSpecToken += 1>>
	<</if>>
	<<if $corpSpecGenitalia == 1>>
		<<if $corpSpecPussy == 1>>

The corporation adds a pussy to all slaves.
			<<if $corpSpecTimer == 0>>
				<<link "Stop">><<unset $corpSpecPussy>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
			<</if>>
		<<elseif $corpSpecPussy == -1>>

The corporation removes pussies from all slaves.
			<<if $corpSpecTimer == 0>>
				<<link "Stop">><<unset $corpSpecPussy>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
			<</if>>
		<<else>>

The corporation has no plans for pussies.
			<<if $corpSpecTimer == 0>>
				[[Add Pussy|Manage Corporation][$corpSpecPussy = 1, $corpSpecTimer = 2]] | [[Remove Pussy|Manage Corporation][$corpSpecPussy = -1, $corpSpecToken -= 1, $corpSpecTimer = 2]]
			<</if>>
		<</if>>
		<<if $corpSpecDick == 1>>

The corporation adds a dick to all slaves.
			<<if $corpSpecTimer == 0>>
				<<link "Stop">><<unset $corpSpecDick>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
			<</if>>
		<<elseif $corpSpecDick == -1>>

The corporation removes dicks from all slaves.
			<<if $corpSpecTimer == 0>>
				<<link "Stop">><<unset $corpSpecDick>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
			<</if>>
		<<else>>

The corporation has no plans for dicks.
			<<if $corpSpecTimer == 0>>
				[[Add Dick|Manage Corporation][$corpSpecDick = 1, $corpSpecTimer = 2]] | [[Remove Dick|Manage Corporation][$corpSpecDick = -1, $corpSpecToken -= 1, $corpSpecTimer = 2]]
			<</if>>
		<</if>>
		<<if $corpSpecBalls == 1>>

The corporation adds balls to all slaves (penis required).
			<<if $corpSpecTimer == 0>>
				<<link "Stop">><<unset $corpSpecBalls>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
			<</if>>
		<<elseif $corpSpecBalls == -1>>

The corporation removes balls from all slaves.
			<<if $corpSpecTimer == 0>>
				<<link "Stop">><<unset $corpSpecBalls>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
			<</if>>
		<<else>>

The corporation has no plans for balls.
			<<if $corpSpecTimer == 0>>
				[[Add Balls|Manage Corporation][$corpSpecBalls = 1, $corpSpecTimer = 2]] | [[Remove Balls|Manage Corporation][$corpSpecBalls = -1, $corpSpecTimer = 2]]
			<</if>>
		<</if>>
	<</if>>
	<<if $corpSpecInjection == 1>>

The corporation aims for petite assets.
		<<if $corpSpecTimer == 0>>
			[[Tasteful Size|Manage Corporation][$corpSpecInjection = 2, $corpSpecTimer = 2]] | [[Huge Size|Manage Corporation][$corpSpecInjection = 3, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecInjection>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecInjection == 2>>

The corporation aims for tasteful assets.
		<<if $corpSpecTimer == 0>>
			[[Small Size|Manage Corporation][$corpSpecInjection = 1, $corpSpecTimer = 2]] | [[Huge Size|Manage Corporation][$corpSpecInjection = 3, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecInjection>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecInjection == 3>>

The corporation aims for huge assets.
		<<if $corpSpecTimer == 0>>
			[[Small Size|Manage Corporation][$corpSpecInjection = 1, $corpSpecTimer = 2]] | [[Tasteful Size|Manage Corporation][$corpSpecInjection = 2, $corpSpecTimer = 2]] |
			<<if $corpDivSurgeryDev > 100 && $corpSpecToken > 0>>
				[[Supermassive Size|Manage Corporation][$corpSpecInjection = 4, $corpSpecToken -= 1, $corpSpecTimer = 2]]
			<</if>>
			<<if $corpDivDairyDev > 200 && $corpSpecToken > 0>> |
				[[Pastoral Size|Manage Corporation][$corpSpecInjection = 5, $corpSpecToken -= 1, $corpSpecTimer = 2]] |
			<</if>>
			<<link "No Focus">><<unset $corpSpecInjection>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecInjection == 4>>

The corporation aims for supermassive assets.
		<<if $corpSpecTimer == 0>>
			[[Huge Size|Manage Corporation][$corpSpecInjection = 3, $corpSpecToken += 1, $corpSpecTimer = 2]] |
			<<if $corpDivDairyDev > 200>>
				[[Pastoral Size|Manage Corporation][$corpSpecInjection = 5, $corpSpecTimer = 2]] |
			<</if>>
		<<link "No Focus">><<unset $corpSpecInjection>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecInjection == 5>>

The corporation aims for pastoral assets.
		<<if $corpSpecTimer == 0>>
			[[Huge Size|Manage Corporation][$corpSpecInjection = 3, $corpSpecToken += 1, $corpSpecTimer = 2]] |
			<<if $corpDivSurgeryDev > 50>>
				[[Supermassive Size|Manage Corporation][$corpSpecInjection = 4, $corpSpecTimer = 2]] |
			<</if>>
			<<link "No Focus">><<unset $corpSpecInjection>><<set $corpSpecToken += 2, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecHormones == 1>>

The corporation feminizes slaves with hormones.
		<<if $corpSpecTimer == 0>>
			[[Masculinize|Manage Corporation][$corpSpecHormones = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecHormones>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecHormones == 2>>

The corporation masculinize slaves with hormones.
		<<if $corpSpecTimer == 0>>
			[[Feminize|Manage Corporation][$corpSpecHormones = 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecHormones>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecAmputee == 1>>

The corporation removes all limbs from its slaves.
		<<if $corpSpecTimer == 0>>
			<<link "Stop">><<unset $corpSpecAmputee>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecMilk == 1>>

The corporation makes sure all slaves are naturally lactating.
		<<if $corpSpecTimer == 0>>
			[[Lactation Implant|Manage Corporation][$corpSpecMilk = 2, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecMilk>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecMilk == 2>>

The corporation equips all slaves with lactation implants.
		<<if $corpSpecTimer == 0>>
			[[Natural Lactation|Manage Corporation][$corpSpecMilk = 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecMilk>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
	<<if $corpSpecSexEd == 1>>

The corporation familiarizes slaves with sexual service.
		<<if $corpSpecTimer == 0>>
			<<if $corpSpecToken > 0 && $corpDivWhoreDev > 200>>
				[[Advanced Training|Manage Corporation][$corpSpecSexEd = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] |
			<</if>>
			<<link "No Focus">><<unset $corpSpecSexEd>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<<elseif $corpSpecSexEd == 2>>

The corporation teaches advanced sexual techniques to its slaves.
		<<if $corpSpecTimer == 0>>
			[[Basic Training|Manage Corporation][$corpSpecSexEd = 1, $corpSpecToken +=1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecSexEd>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
		<</if>>
	<</if>>
<</if>> /*End of activated specializations*/

@@.orange;//Warning: Think TWICE before you click this!//@@
<<link "Dissolve the corporation">>
	<<set cashX(Math.min(corpSharePrice() * $personalShares / 1000, 1000000), "stocksTraded"),
	$corpIncorporated = 0,
	$corpDivExtra = 0,
	$corpDivLegal = 0,
	$corpDivBreak = 0,
	$corpDivSurgery = 0,
	$corpDivTrain = 0,
	$corpDivArcade = 0,
	$corpDivMenial = 0,
	$corpDivDairy = 0,
	$corpDivWhore = 0,
	$corpDivExtraDev = 0,
	$corpDivLegalDev = 0,
	$corpDivBreakDev = 0,
	$corpDivSurgeryDev = 0,
	$corpDivTrainDev = 0,
	$corpDivDairyDev = 0,
	$corpDivArcadeDev = 0,
	$corpDivMenialDev = 0,
	$corpDivWhoreDev = 0,
	$corpExpand = 0,
	$corpExpandToken = 0,
	$corpSpec = 0,
	$corpSpecToken = 0,
	$corpSpecRaces = []>>
	<<unset $corpCash,
	$personalShares,
	$publicShares,
	$corpDividend,
	$dividendTimer,
	$corpDiv,
	$corpRev,
	$corpDivExtraSlaves,
	$corpDivLegalSlaves,
	$corpDivBreakSlaves,
	$corpDivBreakSlaves2,
	$corpDivSurgerySlaves,
	$corpDivSurgerySlaves2,
	$corpDivTrainSlaves,
	$corpDivTrainSlaves2,
	$corpDivArcadeSlaves,
	$corpDivMenialSlaves,
	$corpDivDairySlaves,
	$corpDivWhoreSlaves,
	$corpRevOld,
	$corpAssetsSlaveOld,
	$corpAssetsSlave,
	$corpAssetsDevOld,
	$corpAssetsDev,
	$corpOverheadOld,
	$corpOpCostOld,
	$corpProfitOld,
	$corpSpecAccent,
	$corpSpecAge,
	$corpSpecAmputee,
	$corpSpecBalls,
	$corpSpecDevotion,
	$corpSpecDick,
	$corpSpecEducation,
	$corpSpecGender,
	$corpSpecGenitalia,
	$corpSpecWeight,
	$corpSpecHeight,
	$corpSpecHormones,
	$corpSpecImplants,
	$corpSpecInjection,
	$corpSpecIntelligence,
	$corpSpecMilk,
	$corpSpecMuscle,
	$corpSpecPussy,
	$corpSpecSexEd,
	$corpSpecTrust,
	$corpSpecVirgin,
	$corpDivExtraToArcade,
	$corpDivExtraToBreak,
	$corpDivExtraToMarket,
	$corpDivLegalToMenial,
	$corpDivLegalToSurgery,
	$corpDivLegalToTrain,
	$corpDivLegalToMarket,
	$corpDivBreakToMenial,
	$corpDivBreakToSurgery,
	$corpDivBreakToTrain,
	$corpDivBreakToMarket,
	$corpDivBreakFromMarket,
	$corpDivSurgeryToDairy,
	$corpDivSurgeryToTrain,
	$corpDivSurgeryToMarket,
	$corpDivSurgeryFromMarket,
	$corpDivTrainToWhore,
	$corpDivTrainToMarket,
	$corpDivTrainFromMarket,
	$corpDivArcadeFromMarket,
	$corpDivMenialFromMarket,
	$corpDivDairyFromMarket,
	$corpDivWhoreFromMarket>>
	<<if $corpMarket == 1>>
		<<for _i = 0; _i < $sectors.length; _i++>>
			<<if $sectors[_i].type == "CorporateMarket">><<set $sectors[_i].type = "Markets">><<break>><</if>>
		<</for>>
		<<set $corpMarket = 0>>
	<</if>>
	<<goto "Manage Corporation">>
<</link>>
@@.orange;//Warning!//@@

<</if>> /*end of incorporated or not check*/