Advanced Right-click menu

What I’m trying to do is creating a right click menu that has sub-menus (so a user can use the right click menu to navigate the entire site). What I’m aiming for is something similar to the quality menu (which has options inside of it). Does anyone have any idea how to do this?