Jquery error "u is undefined"
<p>Why am I getting an error in Firebug "u is undefined"?</p>

<p>My page consists of a display of photos and photo gallery as a special separate section in the PHP code divided using the "break". </p>

<p>Photos and photo galleries are displayed using the "Fancybox.js".</p>

<p>The first time when I try to open a photo, everything works fine but when I do it again after I refresh the page the Firebug display error "u is undefined".</p>

<p>The Jquery for the menu that I'm using for display these separate part of the page:</p>

<pre><code>$(document).ready(function(){

$(".menu_rfr").bind('click', function() {
$("#main").html('&lt;img src="img/spin.gif" class="spin"&gt;');
location.replace($(this).attr('rel'));

});

$(".menu_clickable").bind('click', function() {
$("#main").html('&lt;img src="img/spin.gif" class="spin"&gt;');
$("#main").load($(this).attr('rel'), function(event) {

});        
$(".menu_clickable").unbind("click");

});

});
</code></pre>

<p>The simplified PHP code looks like:</p>

<pre><code>&lt;?
if (!isset($a)) $a = '';
switch($a)
{
case 1:
default:
?&gt;
&lt;div class="menu_clickable prof_link" id="prof_info" rel="?a=2"&gt;Photos&lt;/div&gt;
&lt;div class="menu_clickable prof_link" id="prof_info" rel="?a=3"&gt;Gallery&lt;/div&gt; 
&lt;div id="main"&gt;&lt;/div&gt;    
&lt;?
break;//photos
case 2:
?&gt;
&lt;script type="text/javascript"&gt; 

$("a.group").fancybox({
'titlePosition'     : 'over',
'overlayShow':false
 });
 &lt;/script&gt;
 &lt;?
 &lt;a href="1.jpg" id="group" class="group"&gt;&lt;img src="tmb/1.jpg" border="0"&gt;&lt;/a&gt;
 &lt;?
 break;
 case 3: // photo gallery 
 ?&gt;
&lt;script type="text/javascript"&gt; 

$("a.groupg").fancybox({
'titlePosition'     : 'over',
'overlayShow':false
 });
 &lt;/script&gt;
 &lt;?
 &lt;a href="2.jpg" id="groupg" class="groupg"&gt;&lt;img src="tmb/2.jpg" border="0"&gt;&lt;/a&gt;
 &lt;?
 break;
 }
 ?&gt;
</code></pre>

<p>As I said this is a simplified code, and probably there are some errors in it. I just wanted to show where and how I'm using Fancybox.</p>

<p>Is there a conflict between the jquery code for the menu at the top of the page and this for fancybox or there is some other reason why I keep getting an error in Firebug "u is undefined" after opening the other part of the PHP page and attempts to re-opening photos?</p>
