diff --git a/scripts.js b/scripts.js
index 2f24262..b49cc6b 100644
--- a/scripts.js
+++ b/scripts.js
@@ -19,7 +19,11 @@ Drupal.behaviors.stanley.attach = function(context) {
 Drupal.stanley.taskBar = function() {
   var tasksHeight = $('#tasks').height();
   var toolbarHeight = $('#toolbar').height();
-  $("#tasks").css('top', toolbarHeight + 'px');
+  var adminMenuHeight = 0;
+  if (typeof Drupal.settings.admin_menu !== 'undefined') {
+    adminMenuHeight = 21;
+  }
+  $("#tasks").css('top', (toolbarHeight + adminMenuHeight) + 'px');
   $("body").css('padding-top', tasksHeight + toolbarHeight + 'px');
 }
 
