I don't have a trigger, but let me see what I can do with just raw source code (as opposed to an interactive in-browser DOM with JS capabilities).
First, let's indent it for readability.
[codebox]<div class="trigger">
<img src="Images/Format-Trigger-Name.png" alt=" " />
End Difficulty Diag<br />
<div id="0" class="section"></div>
<img src="Images/Format-Minus.png" alt=" " onClick="toggleCollapse('1')" />
<img src="Images/Events.png" alt=" " /> Events<br />
<div id="1" class="section">
<img src="Images/Format-Straight.png" alt=" " />
<img src="Images/Format-Angle.png" alt=" " />
<img src="Images/Timer.png" alt=" " /> Timer - DifficultyDialogTimer expires<br />
</div>
<img src="Images/Format-Minus.png" alt=" " onClick="toggleCollapse('3')" />
<img src="Images/Variables.png" alt=" " /> Local Variables<br />
<div id="3" class="section">
<img src="Images/Format-Straight.png" alt=" " />
<img src="Images/Format-Angle-Bottom.png" alt=" " />
<img src="Images/Variables.png" alt=" " /> GreatestPos = 0 <Integer><br />
<img src="Images/Format-Straight.png" alt=" " />
<img src="Images/Format-Angle.png" alt=" " />
<img src="Images/Variables.png" alt=" " /> GreatestInt = 0 <Integer><br />
</div>
<img src="Images/Format-Minus.png" alt=" " onClick="toggleCollapse('6')" />
<img src="Images/Conditions.png" alt=" " /> Conditions<br />
<div id="6" class="section"></div>
<img src="Images/Format-Minus-End.png" alt=" " onClick="toggleCollapse('7')" />
<img src="Images/Actions.png" alt=" " /> Actions<br />
<div id="7" class="section">
<img src="Images/Format-Blank.png" alt=" " />
<img src="Images/Format-Angle-Bottom.png" alt=" " />
<img src="Images/Dialog.png" alt=" " /> Dialog - Destroy DifficultyDialog<br />
<img src="Images/Format-Blank.png" alt=" " /><img src="Images/Format-Angle-Bottom.png" alt=" " />
<img src="Images/Timer.png" alt=" " /> Timer - Destroy DifficultyDialogTimerWindow<br />
<img src="Images/Format-Blank.png" alt=" " /><img src="Images/Format-Angle-Bottom.png" alt=" " />
<img src="Images/Variable.png" alt=" " /> Variable - Set GreatestInt = GameDifficultyVote[0]<br />
<img src="Images/Format-Blank.png" alt=" " />
<img src="Images/Format-Angle-Bottom.png" alt=" " />
<img src="Images/Variable.png" alt=" " /> Variable - Set GreatestPos = 0<br />
<img src="Images/Format-Blank.png" alt=" " />
<img src="Images/Format-Minus.png" alt=" " onClick="toggleCollapse('12')" />
<img src="Images/General.png" alt=" " /> General - If (Conditions) then do (Actions) else do (Actions)<br />
<div id="12" class="section">
<img src="Images/Format-Blank.png" alt=" " />
<img src="Images/Format-Straight.png" alt=" " />
<img src="Images/Format-Minus.png" alt=" " onClick="toggleCollapse('13')" />
<img src="Images/Conditions.png" alt=" " /> If<br />
<div id="13" class="section">
<img src="Images/Format-Blank.png" alt=" " />
<img src="Images/Format-Straight.png" alt=" " />
<img src="Images/Format-Straight.png" alt=" " />
<img src="Images/Format-Angle.png" alt=" " />
<img src="Images/Logic.png" alt=" " /> GreatestInt < GameDifficultyVote[1]<br />
</div>
<img src="Images/Format-Blank.png" alt=" " />
<img src="Images/Format-Straight.png" alt=" " />
<img src="Images/Format-Minus.png" alt=" " onClick="toggleCollapse('15')" />
<img src="Images/Actions.png" alt=" " /> Then<br />
<div id="15" class="section"><img src="Images/Format-Blank.png" alt=" " />
<img src="Images/Format-Straight.png" alt=" " />
<img src="Images/Format-Straight.png" alt=" " />
<img src="Images/Format-Angle-Bottom.png" alt=" " />
<img src="Images/Variable.png" alt=" " /> Variable - Set GreatestInt = GameDifficultyVote[1]<br />
<img src="Images/Format-Blank.png" alt=" " />
<img src="Images/Format-Straight.png" alt=" " />
<img src="Images/Format-Straight.png" alt=" " />
<img src="Images/Format-Angle.png" alt=" " />
<img src="Images/Variable.png" alt=" " /> Variable - Set GreatestPos = 1<br />
</div>
<img src="Images/Format-Blank.png" alt=" " />
<img src="Images/Format-Straight.png" alt=" " />
<img src="Images/Format-Angle.png" alt=" " />
I THINK YOU'VE ALL GOT THE GIST OF IT.[/code]
Yeah... you could probably get rid of about 80% of that if you used nested lists and CSS, dude. I can't really do much without an interactive DOM, though. Again, I've no SCII trigger to test with, so I don't know what it's supposed to look like, and can't get a working in-browser version to test JavaScript and stuff on.
Absolutely no way this could be implemented with the client-side code as large as it is, not unless Devourer doesn't mind massively bloating every single post this is used in. The client-side code can be cleaned up and vastly improved, but again, I need an actual test case that I can view in browser, not just HTML copypasta. D:
None.