
var $j = jQuery.noConflict();
      
$j(function() {

  $j('#gallery a').lightBox();

	$j('.btn').hover( 
        function () {
    
        var position = $j(".popupImg", this).offset();
        
        $j(".popup", this).css({
            top: position.top + 17,
            left: position.left + 30,
            width: $j(' .popupImg', this).width()
        });
                    
            //show its submenu 
            $j(".popup", this).slideDown(150); 
  
        },  
        function () { 
            //hide its submenu 
            $j(".popup", this).slideUp(0);          
        } 
    ); 
    
    	
});
