What's wrong with this Code?

Hello
i’m using a XML file fromwhich i load thumbnails and images into Photo Gallery

<xml> 
<thumb x="-584.4" y="8.6" thumb_path="images/thumbs/front/BH_Estate_2.jpg" image_path="" /> 
    

<thumb x="-405.0" y="233.6" thumb_path="images/thumbs/front/Cam_Estate1_1.jpg" image_path="images/frontImage/Cam_Estate1_1.jpg" /> 
    
</xml> 


So i want some thumbnails not being enlarged to do that i put image_path=" ", every thumbis acting as a button to load the enlarged image, to disable empty thumb to be a button

if(poza_obj.img_path  !==null){ 
// pune codul pe butoane, rollover, rollout, click 
setButtonActions = function(mc:MovieClip) { 
   mc = pics_all_mc[mc._name]; 
   mc.onRollOver = function() { 
      _root.cursor_cust._visible = 1;       
   } 
   mc.onRollOut = mc.onDragOut = mc.releaseOutside = function() { 
      _root.cursor_cust._visible = 0;       
   } 

   mc.onRelease = function() { 
      num=7; 
      if(_root.animation==1) { 
         _root.animation=0; 
         _root.link_prev=_root.link; 
         _root.pic_number = this.pic_number; 
         _root.gal_num2=1; 
         _root.link=7; 
         _root.play(); 
      }       
   } 

} 
}

Also poza_obj.img_path is

my_xml.onLoad = function() { 
   rootnode = my_xml.firstChild.childNodes; 
   for (i=0; i<rootnode.length; i++) { 
      poza_obj = new Object(); 
    
      poza_obj.thumb_path  = rootnode*.attributes["thumb_path"] 
      poza_obj.img_path    = rootnode*.attributes["image_path"] 
         _root.poze_mc.push(poza_obj); 

The problem is all thumbnails acting as buttons even the empty thumb which hasn’t image_path in XML?!

Thanks!