             vm = viewMetrics;
 
             // Set the position and size of the overlay .
-            if (overlay)
+            if (effectOverlay)
             {
-                overlay.x = 0;
-                overlay.y = 0;
-                overlay.width = unscaledWidth;
-                overlay.height = unscaledHeight;
+				effectOverlay.x = 0;
+				effectOverlay.y = 0;
+				effectOverlay.width = unscaledWidth;
+				effectOverlay.height = unscaledHeight;
             }
 
             // Set the positions and sizes of the scrollbars.

            needHorizontal ||
            needVertical ||
            hasNegativeCoords ||
            overlay != null ||
            vm.left > 0 ||
            vm.top > 0;


     */
    override protected function attachOverlay():void
    {
        rawChildren_addChild(effectOverlay);
    }

    /**
