function popUpObj(globalError,fullAdminContent)
{
    this.globalError = globalError;
    this.fullAdminContent = fullAdminContent;
    this.LEFT = 1;
    this.MIDDLE = 2;
    this.RIGHT = 3;
    this.TOP = 1;
    this.BOTTOM =3;
    this.hAlign =  "MIDDLE";
    this.vAlign = "MIDDLE";
    this.fabHMargin = 0; 
    this.fabVMargin = 0;
    this.fabStartDelay = 0;
    this.fabSlideTime = 700;
    this.fabOpacity = 1; 
    this.width = 0;
    this.basepath = '';
    this.errorArr ='';    
    popUpObj.prototype.fabSlideTime = 700;
    this.posY = window.document.documentElement.scrollTop + 200;
    popUpObj.prototype.liveSite = liveSite;
    this.boolEmpt = 0;
    this.post = '';
    this.file = '';
    this.limitFiles = false;
    this.returnUpl = function(){}
    this.getPopUp = function(errorMessages)
    {
        if(this.fullAdminContent.offsetHeight < this.xClientHeight())
        {
            var height = this.xClientHeight();
        }
        else
        {
            var height = this.fullAdminContent.offsetHeight;
        }
        this.errorArr = this.errorArr + '<div id="errorMessage"  style="height:' + height + 'px; ">&nbsp;</div>';
        this.errorArr = this.errorArr + '<div id="errorMessagePos">';
        this.errorArr = this.errorArr + '  <div><img src="' + popUpObj.prototype.liveSite + '/libraries/popUp/images/errorTop.png"  alt="" /></div>';
        this.errorArr = this.errorArr + '  <div id="errorContentDiv">';
        this.errorArr = this.errorArr + '    <div id="warningImg"><img src="' + popUpObj.prototype.liveSite + '/libraries/popUp/images/warningImg.png"  alt="" /></div>';
        this.errorArr = this.errorArr + '    <div id="errorMessages">'+ errorMessages  + '</div>';
        this.errorArr = this.errorArr + '    <br clear="all" class="clear"/>';
        this.errorArr = this.errorArr + '    <br clear="all" class="clear"/>';
        this.errorArr = this.errorArr + '    <div id="errorCloseDiv"><a href="javascript:void(0);" id="errorClose">Close</a></div>';
        this.errorArr = this.errorArr + '    <br clear="all" class="clear"/>';
        this.errorArr = this.errorArr + '    <br clear="all" class="clear"/>';
        this.errorArr = this.errorArr + '  </div>';
        this.errorArr = this.errorArr + '  <div><img src="' + popUpObj.prototype.liveSite + '/libraries/popUp/images/errorBottom.png"  alt="" /></div>';
        this.errorArr = this.errorArr + '</div>';
        this.globalError.innerHTML = this.errorArr;
        popUpObj.prototype.xSlideTo('errorMessagePos', popUpObj.prototype.calculateXpos(), popUpObj.prototype.calculateYpos()- 40,0);
        this.xAddEventListener(window, 'scroll', this.winOnScroll, false);
        this.xAddEventListener(window, 'resize', this.winOnResize, false);
        this.xAddEventListener('errorClose', 'click', this.closeError, false);
        this.xAddEventListener('errorMessage', 'click', this.closeError, false);
    } 

   this.globalLoading = function() 
    {
//        popUpObj.prototype.xSlideTo('globalLoader', popUpObj.prototype.calculateXposL()-125, popUpObj.prototype.calculateYposL()-40,popUpObj.prototype.fabSlideTime);
        this.xAddEventListener(window, 'scroll', this.winOnScrollL, false);
        this.xAddEventListener(window, 'resize', this.winOnResizeL, false);
    }
    

    popUpObj.prototype.winOnResize = function() 
    {
        popUpObj.prototype.resizeDiv('errorMessage');
        popUpObj.prototype.winOnScroll(); 
    }
    
    popUpObj.prototype.winOnResizeL = function() 
    {
        popUpObj.prototype.resizeDiv('globalLoader');
        popUpObj.prototype.winOnScrollL(); 
    }
    
    
    popUpObj.prototype.resizeDiv = function(el) 
    {
        el =this.xGetElementById(el);
        if(el.offsetHeight < this.xClientHeight())
        {
            el.style.height = this.xClientHeight() + 'px';
        }
        else
        {
            el.style.height = el.offsetHeight +'px'; 
        }
    }
    
    popUpObj.prototype.winOnScroll = function() 
    {           
       popUpObj.prototype.resizeDiv('errorMessage');
       popUpObj.prototype.xSlideTo('errorMessagePos', popUpObj.prototype.calculateXpos(), popUpObj.prototype.calculateYpos(),popUpObj.prototype.fabSlideTime);
    }
    
    popUpObj.prototype.winOnScrollL = function() 
    {           
       popUpObj.prototype.xSlideTo('globalLoader', popUpObj.prototype.calculateXposL(), popUpObj.prototype.calculateYposL(),popUpObj.prototype.fabSlideTime);
    }
    popUpObj.prototype.xGetElementById = function(e)
    {
        if(typeof(e)=='string') 
        {
            if(document.getElementById)
            { 
                e=document.getElementById(e);
            }
            else if(document.all) 
            {
                e=document.all[e];
            }
            else
            { 
                e=null;
            }    
        }
        return e;
    }
    
    popUpObj.prototype.calculateXpos = function() 
    {
        return (this.xClientWidth()/2) -  (this.xWidth('errorMessagePos')/2);
      /*  switch(this.hAlign) 
        {
            case "LEFT": return this.fabHMargin;
            case "MIDDLE": return (this.xClientWidth()/2) -  (this.xWidth('errorMessagePos')/2);
            case "RIGHT": return this.xClientWidth()-this.xWidth('errorMessagePos') - this.fabHMargin;
        }      */
    }

    popUpObj.prototype.calculateXposL = function() 
    {
        return (this.xClientWidth()/2) -  (this.xWidth('globalLoader')/2);
      /*  switch(this.hAlign) 
        {
            case "LEFT": return this.fabHMargin;
            case "MIDDLE": return (this.xClientWidth()/2) -  (this.xWidth('errorMessagePos')/2);
            case "RIGHT": return this.xClientWidth()-this.xWidth('errorMessagePos') - this.fabHMargin;
        }      */
    }
    popUpObj.prototype.calculateYposL = function() 
    {
        return this.xScrollTop() + ((this.xClientHeight()/2) -  (this.xHeight('globalLoader')/2)); 
    }

    popUpObj.prototype.calculateYpos = function() 
    {
        return this.xScrollTop() + ((this.xClientHeight()/2) -  (this.xHeight('errorMessagePos')/3)); 
    }

    popUpObj.prototype.xLeft = function(e, iX)
    {
        if(!(e=this.xGetElementById(e))) 
        {
            return 0;
        }   
        var css=this.xDef(e.style);
        if (css && this.xStr(e.style.left)) 
        {
            if(this.xNum(iX))
            { 
                e.style.left=iX+'px';
            }    
            else 
            {
                iX=parseInt(e.style.left);
                if(isNaN(iX))
                { 
                    iX=this.xGetComputedStyle(e,'left',1);
                }    
                if(isNaN(iX))
                { 
                    iX=0;
                }    
            }
        }
        else if(css && this.xDef(e.style.pixelLeft)) 
        {
            if(xNum(iX))
            { 
                e.style.pixelLeft=iX;
            }    
            else
            { 
                iX=e.style.pixelLeft;
            }    
        }
        return iX;
    }
    
    popUpObj.prototype.xHeight = function(e,h)
    {
        if(!(e=this.xGetElementById(e))) 
        {
            return 0;
        }    
        if (this.xNum(h)) 
        {
            if (h<0)
            { 
                h = 0;
            }    
            else 
            {
                h=Math.round(h);
            }    
        }
        else 
        {
            h=-1;
        }    
        var css=this.xDef(e.style);
        if (e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') 
        {
            h = this.xClientHeight();
        }
        else if(css && this.xDef(e.offsetHeight) && this.xStr(e.style.height)) 
        {
        if(h>=0) 
        {
            var pt=0,pb=0,bt=0,bb=0;
            if (document.compatMode=='CSS1Compat') 
            {
                var gcs = this.xGetComputedStyle;
                pt=gcs(e,'padding-top',1);
                if (pt !== null) 
                {
                    pb=gcs(e,'padding-bottom',1);
                    bt=gcs(e,'border-top-width',1);
                    bb=gcs(e,'border-bottom-width',1);
                }
                else if(this.xDef(e.offsetHeight,e.style.height))
                {
                    e.style.height=h+'px';
                    pt=e.offsetHeight-h;
                }
            }
            h-=(pt+pb+bt+bb);
            if(isNaN(h)||h<0)
            { 
                return 0;
            }    
            else 
            {
                e.style.height=h+'px';
            }    
        }
        h=e.offsetHeight;
    }
    else if(css && this.xDef(e.style.pixelHeight)) 
    {
        if(h>=0) e.style.pixelHeight=h;
         h=e.style.pixelHeight;
    }
    return h;
  }

  popUpObj.prototype.xWidth = function(e,w)
  {
      if(!(e=this.xGetElementById(e))) 
      {
          return 0;
      }    
      if (this.xNum(w)) 
      {
          if (w<0)
          { 
              w = 0;
          }    
          else
          { 
              w=Math.round(w);
          }    
      }
      else 
      {
          w=-1;
      }    
      var css=this.xDef(e.style);
      if (e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') 
      {
          w = this.xClientWidth();
      }
      else if(css && this.xDef(e.offsetWidth) && this.xStr(e.style.width)) 
      {
          if(w>=0) 
          {
              var pl=0,pr=0,bl=0,br=0;
              if (document.compatMode=='CSS1Compat') 
              {
                  var gcs = this.xGetComputedStyle;
                  pl=gcs(e,'padding-left',1);
                  if (pl !== null) 
                  {
                      pr=gcs(e,'padding-right',1);
                      bl=gcs(e,'border-left-width',1);
                      br=gcs(e,'border-right-width',1);
                  }
                  else if(this.xDef(e.offsetWidth,e.style.width))
                  {
                      e.style.width=w+'px';
                      pl=e.offsetWidth-w;
                  }
              }
              w-=(pl+pr+bl+br);
              if(isNaN(w)||w<0)
              { 
                  return 0;
              }    
              else 
              {
                  e.style.width=w+'px';
              }    
          }
          w=e.offsetWidth;
      }
      else if(css && this.xDef(e.style.pixelWidth)) 
      {
          if(w>=0)
          { 
              e.style.pixelWidth=w;
          }    
          w=e.style.pixelWidth;
      }
      return w;
  }
    
    popUpObj.prototype.xStr = function(s)
    {
        for(var i=0; i<arguments.length; ++i)
        {
            if(typeof(arguments[i])!='string')
            { 
                return false;
            }
        }
        return true;
    }
    
    popUpObj.prototype.xClientHeight = function()
    {
        var v=0,d=document,w=window;
        if((!d.compatMode || d.compatMode == 'CSS1Compat') && !w.opera && d.documentElement && d.documentElement.clientHeight)
        {
            v=d.documentElement.clientHeight;
        }
        else if(d.body && d.body.clientHeight)
        {
            v=d.body.clientHeight;
        }
        else if(this.xDef(w.innerWidth,w.innerHeight,d.width)) 
        {
            v=w.innerHeight;
            if(d.width>w.innerWidth)
            { 
                v-=16;
            }    
        }
        return v;
    }

    popUpObj.prototype.xClientWidth = function()
    {
        var v=0,d=document,w=window;
        if((!d.compatMode || d.compatMode == 'CSS1Compat') && !w.opera && d.documentElement && d.documentElement.clientWidth)
        {
            v=d.documentElement.clientWidth;
        }
        else if(d.body && d.body.clientWidth)
        {
            v=d.body.clientWidth;
        }
        else if(this.xDef(w.innerWidth,w.innerHeight,d.height)) 
        {
            v=w.innerWidth;
            if(d.height>w.innerHeight)
            { 
                v-=16;
            }    
        }
        return v;
    }
    
    popUpObj.prototype.xSlideTo = function(e, x, y, uTime)
    {
        if (!(e=this.xGetElementById(e))) 
        {
            //return;
        }    
        if (!e.timeout) 
        {
            e.timeout = 25;
        }    
        e.xTarget = x; 
        e.yTarget = y; 
        e.slideTime = uTime; 
        e.stop = false;
        e.yA = e.yTarget - this.xTop(e); 
        e.xA = e.xTarget - this.xLeft(e);
        if (e.slideLinear)
        { 
            e.B = 1/e.slideTime;
        }    
        else
        { 
            e.B = Math.PI / (2 * e.slideTime); 
        }    
        e.yD = this.xTop(e); 
        e.xD = this.xLeft(e);
        var d = new Date(); 
        e.C = d.getTime();
        if (!e.moving)
        { 
            this._xSlideTo(e);
        }    
    }

    popUpObj.prototype._xSlideTo = function(e)
    {
                   
        if (!(e=this.xGetElementById(e)))
        { 
            //return;
        }    
        var now, s, t, newY, newX;
        now = new Date();
        t = now.getTime() - e.C;
        if (e.stop) 
        { 
            e.moving = false; 
        }
        else if (t < e.slideTime) 
        {
            setTimeout("popUpObj.prototype._xSlideTo('"+e.id+"')", e.timeout);
            s = e.B * t;
            if (!e.slideLinear) 
            {
                s = Math.sin(s);
            }    
            //    if (e.slideLinear) s = e.B * t;
            //    else s = Math.sin(e.B * t);

            newX = Math.round(e.xA * s + e.xD);
            newY = Math.round(e.yA * s + e.yD);
            this.xMoveTo(e, newX, newY);
            e.moving = true;
        }  
        else 
        {
            this.xMoveTo(e, e.xTarget, e.yTarget);
            e.moving = false;
            if (e.onslideend)
            { 
                e.onslideend();
            }    
        }  
    }

    popUpObj.prototype.xMoveTo = function(e,x,y)
    {
        this.xLeft(e,x);
        this.xTop(e,y);
    }
    
    
    popUpObj.prototype.xTop = function(e, iY)
    {
        if(!(e=this.xGetElementById(e))) 
        {
            return 0;
        }    
        var css=this.xDef(e.style);
        if(css && this.xStr(e.style.top)) 
        {
            if(this.xNum(iY))
            { 
                e.style.top=iY+'px';
            }    
            else 
            {
                iY=parseInt(e.style.top);
                if(isNaN(iY))
                { 
                    iY=this.xGetComputedStyle(e,'top',1);
                }    
                if(isNaN(iY)) 
                {
                    iY=0;
                }   
            }
        }
         else if(css && this.xDef(e.style.pixelTop)) 
         {
             if(this.xNum(iY))
             { 
                e.style.pixelTop=iY;
             }   
             else 
             {
                iY=e.style.pixelTop;
             }   
         }
         return iY;
    }

     popUpObj.prototype.xCreateElement = function(sTag)
    {
        if (document.createElement) 
        {
            return document.createElement(sTag);
        }    
        else 
        {
            return null;
        }    
    }


    popUpObj.prototype.xInnerHtml = function(e,h)
    {
        if(!(e=this.xGetElementById(e)) || !this.xStr(e.innerHTML)) 
        {
            return null;
        }   
        var s = e.innerHTML;
        if (this.xStr(h)) 
        {
            e.innerHTML = h;
        }
        return s;
    }
    
    popUpObj.prototype.xAddEventListener = function(e,eT,eL,cap)
    {
        if(!(e=this.xGetElementById(e)))
        {
            //return;
        }   
        
        eT=eT.toLowerCase();
        
        if(e.addEventListener)
        {
            e.addEventListener(eT,eL,cap||false);
        }   
        else if(e.attachEvent)
        {
            e.attachEvent('on'+eT,eL);
        }    
        else 
        {
            var o=e['on'+eT];
            e['on'+eT]=typeof o=='function' ? function(v){o(v);eL(v);} : eL;
        }
    }

    popUpObj.prototype.xGetComputedStyle = function(e, p, i)
    {
        if(!(e=this.xGetElementById(e)))
        { 
            return null;
        }    
        var s, v = 'undefined', dv = document.defaultView;
        if(dv && dv.getComputedStyle)
        {
            s = dv.getComputedStyle(e,'');
            if (s)
            { 
                v = s.getPropertyValue(p);
            }    
        }
        else if(e.currentStyle) 
        {
            v = e.currentStyle[this.xCamelize(p)];
        }
        else 
        {
            return null;
        }   
        return i ? (parseInt(v) || 0) : v;
    }

    popUpObj.prototype.xCamelize = function(cssPropStr)
    {
        var i, c, a = cssPropStr.split('-');
        var s = a[0];
        for (i=1; i<a.length; ++i) 
        {
            c = a[i].charAt(0);
            s += a[i].replace(c, c.toUpperCase());
        }
        return s;
    }

    popUpObj.prototype.xScrollTop = function(e, bWin)
    {
        var offset=0;
        if (!this.xDef(e) || bWin || e == document || e.tagName.toLowerCase() == 'html' || e.tagName.toLowerCase() == 'body') 
        {
            var w = window;
            if (bWin && e) 
            {
                w = e;
            }    
            if(w.document.documentElement && w.document.documentElement.scrollTop) 
            {
                offset=w.document.documentElement.scrollTop;
            }
            else if(w.document.body && this.xDef(w.document.body.scrollTop)) 
            {
                offset=w.document.body.scrollTop;
            }    
        }
        else 
        {
            e = this.xGetElementById(e);
            if (e && this.xNum(e.scrollTop)) 
            {
                offset = e.scrollTop;
            }    
        }
        return offset;
   }


   popUpObj.prototype.xDef = function()
   {
       for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=='undefined') return false;}
       return true;
   }
   
   popUpObj.prototype.xNum = function()
   {
       for(var i=0; i<arguments.length; ++i){if(isNaN(arguments[i]) || typeof(arguments[i])!='number') return false;}
       return true;
   }

   popUpObj.prototype.closeError = function()
   {
        popUpObj.prototype.xGetElementById('errorMessage').style.display = 'none';
        popUpObj.prototype.xGetElementById('errorMessagePos').style.display = 'none';

/*        var browser=navigator.appName;
        var b_version=navigator.appVersion;
        var version=parseFloat(b_version);
        if (browser=="Microsoft Internet Explorer")
        {
            window.document.getElementById('errorMessage').style.display = 'none';
            window.document.getElementById('errorMessagePos').style.display = 'none'; 
        }
        else
        {
            this.divErr = window.document.documentElement.getElementById('errorMessage').style;  
            this.divErrPos = window.document.documentElement.getElementById('errorMessagePos').style;  
            this.divErr.display = 'none'; 
            this.divErrPos.display = 'none'; 
        }  */
    }

   popUpObj.prototype.closeErrorUpl = function()
   {
        popUpObj.prototype.xGetElementById('errorMessage').style.display = 'none';
        popUpObj.prototype.xGetElementById('errorMessagePos').style.display = 'none';
        popUpObj.prototype.xGetElementById('errorMessage').innerHTML = null;
        popUpObj.prototype.xGetElementById('errorMessagePos').innerHTML = null;
    }
    
    this.empty = function()
    {
        this.boolEmpt = 1;    
    }

    this.include_dom = function(script_filename)
    {
        var html_doc = document.getElementsByTagName('head').item(0);
        var js = document.createElement('script');
        js.setAttribute('language', 'javascript');
        js.setAttribute('type', 'text/javascript');
        js.setAttribute('src', script_filename);
        html_doc.appendChild(js);
        return false;
    }
    
    this.addHTML = function(el,value)
    {
        el.innerHTML = value;
    }
  
    this.sleep = function(msec)
    {
        var start = new Date().getTime();
        while (new Date().getTime() - start < msec);
    }
      
    // Upload 
    this.upload = function(post,basepath,returnUpl,limitFiles)
    {
        this.include_dom(popUpObj.prototype.liveSite + '/libraries/uploader/javascript/modal.js');
        this.include_dom(popUpObj.prototype.liveSite + '/libraries/uploader/javascript/Swiff.Base.js');
        this.include_dom(popUpObj.prototype.liveSite + '/libraries/uploader/javascript/Swiff.Uploader.js');
        this.include_dom(popUpObj.prototype.liveSite + '/libraries/uploader/javascript/FancyUpload.js');
        this.limitFiles = limitFiles;
        this.post = post;
        this.basepath = basepath;
        this.returnUpl = returnUpl;
    }
    
    
    this.getUploadForm = function(type)
    {
        var uploadForm = '';
        uploadForm = uploadForm + '<form action="" method="post" enctype="multipart/form-data" id="uploadForm">';
        uploadForm = uploadForm + '<ul class="upload-queue" id="upload-queue">';
        uploadForm = uploadForm + '<li style="display: none"></li> ';
        uploadForm = uploadForm + '</ul>';
        uploadForm = uploadForm + '<label for="demo-filedata" id="labelDemo">Upload Photos: ';
        uploadForm = uploadForm + '<input type="file" name="Filedata" id="file-upload" /> ';
        uploadForm = uploadForm + '<input type="hidden" name="FileName" id="FileName" value="" /> ';
        uploadForm = uploadForm + '<input type="submit" id="file-upload-submit" value="Start Upload"/>';
        uploadForm = uploadForm + '<span id="upload-clear"></span>';
        uploadForm = uploadForm + '</form>';
        
        if(this.fullAdminContent.offsetHeight < this.xClientHeight())
        {
            var height = this.xClientHeight();
        }
        else
        {
            var height = this.fullAdminContent.offsetHeight;
        }

        this.errorArr = this.errorArr + '<div id="errorMessage"  style="height:' + height + 'px; ">&nbsp;</div>';
        this.errorArr = this.errorArr + '<div id="errorMessagePos">';
        this.errorArr = this.errorArr + '  <div id="uploadImg"><img src="' + popUpObj.prototype.liveSite + '/libraries/popUp/images/errorTop.png"  alt="" /></div>';
        this.errorArr = this.errorArr + '  <div id="errorContentDiv">';
        this.errorArr = this.errorArr + '    <div id="errorCloseDiv"><a href="#" id="errorClose">Close Window</a></div>';
        this.errorArr = this.errorArr + '  <div id="uploadText"><h1>Upload Files</h1><p>Select a file and click upload</p></div>';
        this.errorArr = this.errorArr + '    <div id="uploadIcon"><img src="' + popUpObj.prototype.liveSite + '/libraries/popUp/images/uploadImg.jpg"  alt="" /></div>';
        this.errorArr = this.errorArr + '<br clear="all" class="clear"/>';
        this.errorArr = this.errorArr + '    <div id="errorMessagesUpl">' + uploadForm + '</div>';
        this.errorArr = this.errorArr + '  </div>';
        this.errorArr = this.errorArr + '<br clear="all" class="clear"/>';
        this.errorArr = this.errorArr + '  <div><img src="' + popUpObj.prototype.liveSite + '/libraries/popUp/images/errorBottom.png"  alt="" /></div>';
        this.errorArr = this.errorArr + '</div>';
         
        this.addHTML(this.globalError,this.errorArr);
        
        popUpObj.prototype.xSlideTo('errorMessagePos', popUpObj.prototype.calculateXpos(), popUpObj.prototype.calculateYpos()- 40,0);
        this.xAddEventListener(window, 'scroll', this.winOnScroll, false);
        this.xAddEventListener(window, 'resize', this.winOnResize, false);
        this.xAddEventListener('errorClose', 'click', this.closeErrorUpl, false);
        
        $('globalLoader').setStyle('display','none'); 
        
        SqueezeBox.initialize({});

        $$('a.modal').each(
            function(el) 
            {
                el.addEvent('click', 
                    function(e) 
                    {
                        new Event(e).stop();
                        SqueezeBox.fromElement(el);
                    });
            });

        document.preview = SqueezeBox;  
        var basepath =  this.basepath;
        var viewstyle = 'thumbs';
        BrowseCaption='Browse files';
        sRemoveToolTip='Remove from queue';
        
        if(type=='image')
        {
            var Uploader = new FancyUpload($('file-upload'), 
            { 
                url :this.post, 
                multiple: true, 
                queued: true, 
                limitFiles:this.limitFiles, 
                queueList: 'upload-queue', 
                instantStart: false, 
                allowDuplicates: false, 
                container: $('file-upload').getParent(), 
                types: {'Images (*.jpg, *.jpeg, *.gif, *.png)': '*.jpg; *.jpeg; *.gif; *.png'}, 
                
                onAllComplete:this.returnUpl
            });
        } 
        else if(type=='doc')
        {
            var Uploader = new FancyUpload($('file-upload'), 
            { 
                url :this.post, 
                multiple: true, 
                queued: true, 
                limitFiles:this.limitFiles, 
                queueList: 'upload-queue', 
                instantStart: false, 
                allowDuplicates: false, 
                container: $('file-upload').getParent(), 
                types: {'Images (*.doc, *.pdf, *.txt)': '*.doc; *.pdf; *.txt;'}, 
                
                onAllComplete:this.returnUpl
            });
        }
        
              
        $('upload-clear').adopt(new Element('input', 
        { 
            type: 'button', 
            events: { click: Uploader.clearList.bind(Uploader, [false])}, 
            value: 'Clear Completed' 
        }));     
   } 
   
}