//we add the centralDiv cause, if scrollbars are present, then moving the scrollbars sets the focus to the\r
         //centralDiv in IE and therefore the popup would hide\r
 \r
-        \r
+\r
         var focusNameSpace = "blur."+this.getId();\r
         if(!value){\r
             elementsWithFocus.each(function(i,elm){\r
                 //otherwise execute callback\r
                 setTimeout(function(){\r
                     var v = doc_.activeElement;\r
-                    \r
+\r
                     if((v && $(v).attr(focusAttr)) || me.__isClosing){\r
                         //if we are closing, we will call back this method which removes the focus attributes, bt meanwhile the\r
                         //timeout should execute\r
             return; //show(), when called, will update size and other stuff written in this method here bwloe\r
         }\r
         this.setBounds();\r
-        \r
-        \r
+\r
+\r
         if(focusable){\r
             this.getFirstFocusableElement().focus();\r
         }\r
         var text = subdiv.contents().filter(function() {\r
             return this.nodeType == 3;\r
         });\r
-        \r
+\r
         var node = text.get(0);\r
         if(!title){\r
             //if title is the empty string, apparently the text node seems to be "deleted", so resetting\r
             div.css(this.popupCss);\r
             this.popupCss = ''; //override prototype property\r
         }\r
-        \r
+\r
 \r
         this.setFocusCycleRoot(this.focusable);\r
 \r
             div.appendTo('body');\r
         }\r
 \r
-        \r
+\r
         if(isClickElement){\r
             //storing click events, when showing clicking on an event must give the focus to the popup\r
             //old handlers will be restored in close()\r
             if(focusElm){\r
                 var oldHandlers = [];\r
                 var type = 'click';\r
-                var clickEvents =invoker.data("events")[type];\r
+                var clickEvents = $._data(invoker[0], "events")[type];\r
                 $.each(clickEvents, function(key, value) {\r
                     oldHandlers.push(value);\r
                 });\r
 \r
         }\r
         this.setBounds();\r
-       \r
+\r
         var shadow = this._getShadow();\r
         var place = this.setOffset;\r
         var postShowFcn = function(){\r
                     v.focus();\r
                 }\r
             }\r
-            \r
+\r
         };\r
 \r
         div.show(this.fadInTime,function(){\r
         var spaceLeft = invokerOffset.left + invokerOuterWidth - windowRectangle.x;\r
         var placeLeft = spaceLeft > spaceRight && div.outerWidth(false) + shadowOffset > spaceRight;\r
 \r
-        \r
+\r
         this.setMaxSize({\r
             height : (placeAbove ? spaceAbove : spaceBelow),\r
             width: (placeLeft ? spaceLeft : spaceRight)\r
         //however, we want CH to change even if a new maxHeight greater than CH is set\r
         });\r
 \r
-        \r
+\r
         this.postSizeFcn();\r
 \r
     };\r
         var boundsExact = this.boundsExact;\r
 \r
         var div = this.getDiv();\r
-        \r
+\r
         this.preSizeFcn();\r
-        \r
+\r
         var bounds = this.getBoundsOf(parent);\r
-       \r
-        \r
+\r
+\r
         var x=bounds.x;\r
         var y = bounds.y;\r
         var w = bounds.width;\r
         var h = bounds.height;\r
 \r
-        \r
+\r
         var pInt = parseInt;\r
         //rebuilding:\r
 \r
             'width':w-padding['left']-padding['right']+this.shadowOffset,\r
             'height':h-padding['top']-padding['bottom']+this.shadowOffset\r
         };\r
-        \r
+\r
         this.setMaxSize({\r
             width:maxSize.width,\r
             height:maxSize.height\r
 \r
         this.postSizeFcn();\r
     };\r
-    \r
+\r
     p.preSizeFcn = function(){\r
         var div = this.getDiv();\r
         var subdivs = div.children();\r
     //            console.log('width: '+bottomDiv.width()+' css-minWidth: ' +bottomDiv.css('minWidth')+' css-width: ' +bottomDiv.css('width')+' css-maxWidth: ' +bottomDiv.css('maxWidth'));\r
     //            console.log(' ' );\r
     };\r
-    \r
+\r
     p.postSizeFcn = function(){\r
-        \r
+\r
         //set title and close button to span whole width, if necessary\r
         //closeButton.outerWidth should be zero if this.showClose = false\r
         //titleInput.outerWidth(true) should be equal to titleInput.width(), as margins borders and padding are zero, however we want to calculate it safely\r
         var bottomDiv = subdivs.eq(2);\r
         //set central div height. We could set the central div height only if necessary, or the central div max height,\r
         //but this has side effect in IE\r
-       \r
+\r
         var maxHeight = (div.height()-topDiv.outerHeight(true)-bottomDiv.outerHeight(true)-\r
             (centralDiv.outerHeight(true)-centralDiv.height()));\r
-       \r
+\r
         //setting centralDiv maxHeight or height is actually the same, we use height to be sure...\r
         if(maxHeight>0){\r
             centralDiv.css('height',maxHeight+'px');\r
         }\r
-       \r
+\r
         //to be put AT THE END otherwise bug in IE7\r
         centralDiv.css('overflow','auto');\r
         //after the command above, centralDiv.hegith is set to zero in IE7.\r
         //It might be a refresh problem cause if we display an alert then the size is properly set.\r
         //However, put it at the end\r
-        \r
+\r
 \r
         //                console.log('postsize');\r
         //                console.log('width: '+ topDiv.width()+' css-minWidth: ' +topDiv.css('minWidth')+' css-width: ' +topDiv.css('width')+' css-maxWidth: ' +topDiv.css('maxWidth'));\r
         //                console.log('width: '+bottomDiv.width()+' css-minWidth: ' +bottomDiv.css('minWidth')+' css-width: ' +bottomDiv.css('width')+' css-maxWidth: ' +bottomDiv.css('maxWidth'));\r
         //                console.log(' ' );\r
 \r
-        \r
+\r
         this.setOffset();\r
 \r
     };\r
     };\r
 \r
     p._setOffsetInside = function(){\r
-       \r
+\r
         var div = this.getDiv();\r
 \r
-        \r
+\r
         var parent = this.invoker;\r
         var bounds = this.getBoundsOf(parent);\r
         var pd = this.bounds;\r
     //getDiv must be sizable (preShowFcn must have been called)\r
     p.setMaxSize = function(size){\r
         var div = this.getDiv();\r
-        \r
+\r
         this._convertSize(div, size);\r
         var css;\r
         if(size.hasOwnProperty('width')){\r
     //getDiv must be sizable (preShowFcn must have been called)\r
     p.setMinSize = function(size){\r
         var div = this.getDiv();\r
-        \r
+\r
         this._convertSize(div, size);\r
         var css;\r
         if(size.hasOwnProperty('width')){\r