         private var closeButton:IconButton;
         private var refreshButton:IconButton;
         private var bgshape:Sprite;
+        private var loading_bg_shape:Sprite;
         private var browserHeight;
         private var isVisible:Boolean;
 


        public function loadURL(url:String)
        {
            browserHeight = webView.stage.stageHeight - 50;
            this.initBG();

            //only ever create one web view
            if (childWebView == null) 
            {
                childWebView = new QNXStageWebView("ChildBrowser");
                childWebView.stage = webView.stage;
                childWebView.viewPort = new Rectangle(0,50,webView.stage.stageWidth,browserHeight);
            }

            //if its not visible.. i want to see it
            if (!this.getVisible())
            {
                this.setVisible(true)
            }

          //load this url
          childWebView.loadURL(url);

          //build buttons
          this.initUI();

          // events
          webView.stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, onOrientationChange);

        }

        private function onOrientationChange(event:StageOrientationEvent)
        {
            this.removeUI();
            this.initBG();
            this.initUI();
            childWebView.viewPort = new Rectangle(0,50,webView.stage.stageWidth,browserHeight);
        }


            return new Array ("blackberry.polarmobile.childbrowser");
        }

        private function initBG(callback)
        {
            bgshape = new Sprite();
            bgshape.graphics.beginFill(0x323232);
            bgshape.graphics.drawRect(0,0,webView.stage.stageWidth, webView.stage.stageHeight);
            bgshape.y = webView.stage.stageHeight
            webView.stage.addChildAt(bgshape, 0);

            Tweener.addTween(bgshape, {
              y: 0,
              time: 1,
              transition: 'easeOutExpo',
              onComplete: callback
            });
        }

        public function clearCookies()
