JQuery is not working if we use in both Master and Content pages.

JQuery is not working if we use in both Master and Content pages.

Hi,
We are trying to use the jQuery in both master page and Content page,
but it is not working. It is working fine if we use it either in
Master Page or Content Page,but not in both.
My code is
Master Page Code
=================
<head runat="server">
<title>Untitled Page</title>
<SCRIPT type="text/javascript" src="scripts/ui/jquery.js"></SCRIPT>
<SCRIPT type="text/javascript" src="scripts/ui/jquery.layout.js"></
SCRIPT>
</head>
<body>
<form id="form1" runat="server">
<DIV class="ui-layout-center">
<asp:contentplaceholder id="ContentPlaceHolder1"
runat="server">
</asp:contentplaceholder>
<P>Center</P>
</DIV>
<DIV class="ui-layout-north">North</DIV>
<DIV class="ui-layout-south">South</DIV>
<DIV class="ui-layout-east">East</DIV>
<DIV class="ui-layout-west">West</DIV>--%>
</form>
</body>
Content Page Code
==============
<asp:Content id="ContentBody"
ContentPlaceHolderID="ContentPlaceHolder1" runat="server"><SCRIPT
type="text/javascript">
$(document).ready(function () {
$('body').layout({ applyDefaultStyles: true });
});
</SCRIPT>
<DIV class="ui-layout-center">Center
</DIV>
<DIV class="ui-layout-north">North</DIV>
<DIV class="ui-layout-south">South</DIV>
<DIV class="ui-layout-east">East</DIV>
<DIV class="ui-layout-west">West</DIV>
</asp:Content>
can u provide any samples which implemented jQuery in both master
page
and content page?
Please correct us where we are going wrong...
Thanks in Advance
ChellamNaidu
--