I really wanted to master this randomizer that accepts bets (http://www.heroes-iii.com/bet.php), but all we could get out of it was generating castles (Ramp vs Ramp). So, we couldn't do without the help of 3 people (namely StickyFingaz, and I thank him for that). In general, I offered a lot (as much as 2000 against 1510) and it started.
First, they bid for the castle, then for the color. The stakes are summed up. That is, if one wins both bids with 1000 on the castle and 300 on the color, he pays 1300.
If he wins the castle for 1000 and loses the color for 300, he pays 700.