Right click on the boxes. The red and green ones have two different menus associated with them.
Prepare something that be clicked, e.g. these divs with the class="type2" (view source).
Prepare a menu that is displayed upon right click, e.g. the div with id="menu2".
Wire them together using running the n2contextmenu script, like this:
// note that the contents, and style of the menu is outside of the scope of n2contextmenu
$(document).ready(function(){
$(".type2").n2contextmenu("#menu2");
});