Ditto...
I would also go with the quick disconnect hinges. Look at "Blum" hinges if you want quality. Another thing is l, that I don't believe you will be happy with just magnets, because they will likely slide all over the place without some sort of bracket helping them stay in place.
I would do a z channel on top, and wouldn't even do any magnets at all if I were going to go this route, but the quick release hinges are the way to go. You'll save money, time, and a headache by getting the hinges.