Why not just enable the hiding in the preferences for the Dock? That way when you head to the area where the Dock is located but hidden, it will automatically pop up. Once you move away from the area, it will hide again.
i dont want it to pop up tho... i want it to be open when i want it or closed when i dont soo if im using something that is near the bottom it doenst pop up w.out me wnating it to