How can you tell the difference? Probably you would force login and store the status "Vendor" or "Customer" when they log in. I don't see how you could tell the difference until they log in, and then you could use the session variable from there.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.