         width: (@width = @defaultWidth)
         height: (@height = @defaultHeight)
 
-  View.prototype._root= -> #{{{4
+  View.prototype._root = -> #{{{4
     extend @style.root,
       backgroundImage: "url(#{@model.frames.normal.urls[@model.frames.current]})"
       backgroundSize: "#{@width}px #{@height}px"
 
+  View.prototype._logo = -> #{{{4
+        top: h*.35 + "px"
+        left: w*.25  + "px"
+        fontSize: h*.2 + "px"
   View.prototype._zoomLens = -> #{{{4
-    undefined
+    if @model.zoom.enabled
+      current = @model.frames.current
+      imgs = @model.frames.zoom # TODO only if current is loaded, else use @model.frames.normal
+      display: "none"
+        display: "block"
+        left: 123
+        top: 123
+        backgroundImage: "url(#{imgs.urls[current]})" 
+        backgroundSize: "#{imgs.width}px #{imgs.height}px"
+        backgroundPosition: "#{123}px #{123}px"
+    else
+      extend @style.zoomLens,
+        display: "none"
 
   View.prototype._applyStyle = -> #{{{4
     for elemId, css of @style

  #
  # The html of the view is static, only updated through css-changes. 
  #
  #{{{3 `View` constructor, - create a viw and bind it to a dom element
  #
  # Create the view, - and bind it to a dom element
  #
  View = (model, domId) ->
    @model = model

    @elems = {}
    @elems.root = document.createElement "div"
    @elems.root.innerHTML = """<
      div class="onetwo360-zoom-lens></div><
      div class="onetwo360-logo></div><
      div class="onetwo360-fullscreen-button></div><
      div class="onetwo360-zoom-button></div><
      div></div>"""
    elemNames = ["zoomLens", "logo", "btnFull", "btnZoom"]
    for i in [0..elemNames.length]
      @elems.root.getChildren
      @elems[key]

    @elemStyle = {}
    @style = {}
    @styleCache = {}
    for key, _ of @elems
      @style[key] = {}
      @elemStyle[key] = @elems[key].style
      @styleCache[key] = {}

    domElem = document.getElementById(domId)
    domElem.addChild @elems.root
    @defaultWidth = domElem.offsetWidth
    @defaultHeigh = domElem.offsetHeight

    @width = undefined
    @height = undefined

    @update()

  #{{{3 `View#update()` draw the view based on current content of the model
  View.prototype.update = ->
    @_fullscreen()
    @_root()
    @_zoomLens()
    @_applyStyle()



  #{{{2 main
  window.newOneTwo360 = (cfg) ->
    undefined
