Firstly, just wrap both navbar1 and navbar2 in <asp:panel ID="..." runat="server" visible="false">
Then in your coe, your navbar1 and navbar2 links both go to different aspx pages. If this is what you are actually trying to do then you can just send the visibility you require back up to the master page during page load. See this article:
http://www.4guysfromrolla.com/articles/013107-1.aspxhey presto, you can set visible=true when you load from the different pages (default1.aspx and default2.aspx)