code: function(frameHolder){
  			var iframe = window.frameElement;
  		    setTimeout(function(){
  		    	
  				var titleBar = document.getElementById('titleBar'); //$NON-NLS-0$
  				titleBar.addEventListener('mousedown', function(e) { //$NON-NLS-0$
  					if (e.srcElement.id !== 'closeDialog') {
  						frameHolder._dragging = true;
  						if (titleBar.setCapture)
  							titleBar.setCapture();
  						
  						frameHolder.start = {
  							screenX: e.screenX,
  							screenY: e.screenY
  						};
  					}
  				});
  				
  				titleBar.addEventListener('mousemove', function(e) { //$NON-NLS-0$
  					if (frameHolder._dragging) {
  						var dx = e.screenX - frameHolder.start.screenX;
  						var dy = e.screenY - frameHolder.start.screenY;
  						
  						frameHolder.start.screenX = e.screenX;
  						frameHolder.start.screenY = e.screenY;
  						
  						var x = parseInt(iframe.style.left) + dx;
  						var y = parseInt(iframe.style.top) + dy;
  						
  						iframe.style.left = x+"px"; //$NON-NLS-0$
  						iframe.style.top = y+"px"; //$NON-NLS-0$
  					}
  				});
  				
  				titleBar.addEventListener('mouseup', function(e) { //$NON-NLS-0$
  					frameHolder._dragging = false;
  					if (titleBar.releaseCapture) {
  						titleBar.releaseCapture();
  					}
  				});
  		    });
  		}
docs: Makes the current iframe draggable.