.mouseover() help

.mouseover() help

$("figure").css({"top":y+"px","left":x+"px","width":w+"px","height":h+"px"});
$("figure").html('<img src="'+trg.src+'"'+jg_gallery_init("#gallery")+' />');


function jg_gallery_init (jg_s)
{
//creating structure
$(jg_s).html('<div class="jg_controls"><div class="jg_c_stop"></div><div class="jg_c_play"></div><div class="jg_c_prev"></div><div class="jg_c_next"></div></div><div class="jg_image"></div><div class="jg_text"></div></div></div>');
//showing text info
$(jg_s).css("margin-left","auto"); $(jg_s).css("margin-right","auto");

getwdth = confDoc.getElementsByTagName("maxBannerWidth")[0].childNodes[0].nodeValue;
getheight = confDoc.getElementsByTagName("maxBannerHeight")[0].childNodes[0].nodeValue
$(jg_s+" .jg_image").width(getwdth);
$(jg_s+" .jg_image" ).height(getheight);
tgetwdth = confDoc.getElementsByTagName("thumbsScrollViewAreaWidth")[0].childNodes[0].nodeValue;
tgetheight = confDoc.getElementsByTagName("thumbsScrollViewAreaHeight")[0].childNodes[0].nodeValue;
$(jg_s).width(tgetwdth);
$(jg_s).height(tgetheight);

$("figure").mouseover(function(){
$(jg_s+" div.txt"+window[jg_s+ "_current_slide"]).fadeIn("slow")});



I tried many ways to combine the "figure" and jg_s like $("figure"+jg_s).mouseover(function(){
So that will both together .mouseover , it does not go together :-(   idea.