diff --git a/misc/ajax.js b/misc/ajax.js
index 900ca1d..1d3e74a 100644
--- a/misc/ajax.js
+++ b/misc/ajax.js
@@ -530,7 +530,9 @@ Drupal.ajax.prototype.commands = {
       $('.ajax-new-content', new_content)[effect.showEffect](effect.showSpeed);
     }
     else if (effect.showEffect != 'show') {
-      new_content[effect.showEffect](effect.showSpeed);
+      if(typeof new_content[effect.showEffect] == 'function') {//make sure its a function b4 calling it
+        new_content[effect.showEffect](effect.showSpeed);
+      }
     }
 
     // Attach all JavaScript behaviors to the new content, if it was successfully
