     @elements.css = cssstyle
 
   createBox: (depth) ->
-    body = qr 'body'
+    body = @elements.body
     jest = qr 'body .eb-box-wrapper'
     if not jest? or jest.length==0
       left = document.createElement 'div'


  updateBgPos: ->
    conf = @configWnd.get('editor-background')
    body = qr 'body'
    factor = conf.box3d.mouseFactor
    polowaX = body.clientWidth // 2
    polowaY = body.clientHeight // 2



  activateMouseMove: ->
    body = @elements.body
    body.addEventListener 'mousemove',(ev) =>  @mouseMove.apply @,[ev]

  insertMain:->
