jQuery Tabs on an MVC master page

jQuery Tabs on an MVC master page

Hi!
 
I have successfully used Tabs on a "content" page inheriting a master page. But, I need tabs on all pages so I tried to insert a function for tabs on the master page but that didn't work. What am I doing wrong here?
 
/Måns

<%

@ Master Language ="C#" Inherits ="System.Web.Mvc.ViewMasterPage" %>

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<

html xmlns ="http://www.w3.org/1999/xhtml">

<

head runat ="server">

< title >

< asp : ContentPlaceHolder ID ="TitleContent" runat ="server" />

</ title >

< link href ="../../Content/Site.css" rel ="stylesheet" type ="text/css" />

< link href ="../../Content/jquery-ui-1.8.1.custom.css" rel ="stylesheet" type ="text/css" />

< script src ="../../Scripts/jquery-1.4.1.js" type ="text/javascript"></ script >

< script src ="../../Scripts/jquery-ui-1.8.1.custom.min.js" type ="text/javascript"></ script >

</

head >

<

body >

< script type ="text/javascript">

$(

function () {

$(

"#mainmenu" ).tabs();

});

</ script >

< div class ="page">

< div id ="header">

< div id ="title">

< h1 >

CaeSaR

</ h1 >

</ div >

< div id ="logindisplay">

<% Html.RenderPartial(

"LogOnUserControl" ); %>

</ div >

< div id ="mainmenu">

< ul >

<%

if (Page.User.Identity.IsAuthenticated)

{%>

< li >

<%

: Html.ActionLink( "Trades" , "Index" , "Trade" )%> </ li >

< li >

<%

: Html.ActionLink( "Quick Positions" , "Index" , "QuickPosition" )%> </ li >

<%

}%>

< li >

<%

: Html.ActionLink( "Home" , "Index" , "Home" )%> </ li >

< li >

<%

: Html.ActionLink( "About" , "About" , "Home" )%> </ li >

</ ul >

</ div >

</ div >

< div id ="main">

< asp : ContentPlaceHolder ID ="MainContent" runat ="server" />

< div id ="footer">

</ div >

</ div >

</ div >

</

body >

</

html >