Index: popups.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/popups/popups.js,v
retrieving revision 1.9.8.15
diff -u -p -r1.9.8.15 popups.js
--- popups.js	26 Mar 2009 17:30:54 -0000	1.9.8.15
+++ popups.js	14 Jul 2009 19:27:11 -0000
@@ -499,8 +499,10 @@ Popups.resizeAndCenter = function(popup)
     $popup.height(popupHeight);
   }  
   var top = (windowHeight / 2) - (popupHeight / 2) + Popups.scrollTop();
+  var marginTop = (popupHeight / -2);
+  var marginLeft = (popupWidth / -2);
 
-  $popup.css('top', top).css('left', left); // Position the popups to be visible. 
+  $popup.css('top', '50%').css('left', '50%').css('margin-top', marginTop).css('margin-left', marginLeft); // Position the popups to be visible. 
 };
   
 
