What is not working? E.g. you cannot draw 3d in ortho mode. You can however use the z buffer for layering 2D.
I do not like your glortho setup. You could try this:
Code:
glViewport(0,0,800,600); //optional
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0,800,0,600,-100,100);
glMatrixMode(GL_MODELVIEW);