I render a page using YUI. and depending on the user I need to change how it is rendered. This change is not something that can be parametrized, it is drastic and different
You can probably create two separate Java script files, and include the required file, depending upon the user type.
Pseudocode
If user_type is One else End If