Javascript error in cjuidialog

i write a code by juiDialog and i want to show a modal message

message show well done

problem is when i put juidialog code in view a javascript error show in firebug :

and other javascript codes don`t run

when i remove juidialog code work and dosen`t have error !

juiDialog code :




$this->beginWidget('zii.widgets.jui.CJuiDialog', array( 

						'id'=>'dlg-user-view',

						'options'=>array(

						            'title'=>'مشخصات کاربر',

							    'autoOpen'=>false, 

							    'modal'=>true,

							    'width'=>500,

							    'position'=>'center',	

							),

				 ));

?>

<div id="viewDetails"></div>

<?php $this->endWidget('zii.widgets.jui.CJuiDialog');?>



Error :




a(c).offset(function (a, <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='B)' /> {return b;}).offset is not a function



What’s your controller code?

Do you set jQuery to false in your scriptMap?

How do you render the view?