﻿     

AjaxControlToolkit.PopupBehavior.prototype.setupPopup = function() {
        /// <summary>
        /// Position the popup relative to its parent
        /// </summary>
        
        var element = this.get_element();
        var bounds = this.getBounds();
        $common.setLocation(element, bounds);

        // Tweak the position, set the zIndex, and add the background iframe in IE6
        this.adjustPopupPosition(bounds);
        element.zIndex = 5000;
        this.addBackgroundIFrame();
        
        if(!this.isDetached){
            this.isDetached=true             
             setPosToAbsolute(element);
        }
    }            
