Handle google and bing maps simultaneously.

I am using google maps on web applications. I want to convert all google maps to bing maps.But I wood like to develop middle ware application were it will handle both google and bing maps.Like if I chose google then it will display googke and if I chose bing then it will display bing with same functionality.Can any help me?