     }
     
     private func zoomIn() {
-		if !fileReferencedURL {
+		if !videoFileReferencedURL {
 			webView.magnification += 0.1
 		}
      }
     
     private func zoomOut() {
-		if !fileReferencedURL {
+		if !videoFileReferencedURL {
 			webView.magnification -= 0.1
 		}
     }
     
     private func resetZoom() {
-		if !fileReferencedURL {
+		if !videoFileReferencedURL {
 			webView.magnification = 1
 		}
     }

        }
    }
    
	var fileReferencedURL = false
    override func observeValueForKeyPath(keyPath: String?, ofObject object: AnyObject?, change: [String : AnyObject]?, context: UnsafeMutablePointer<Void>) {
        
        if object as! NSObject == webView && keyPath == "estimatedProgress" {

						title = "Helium"
					} else {
						let url = (self.webView.URL)
						videoFileReferencedURL = false
						if ((url?.isFileReferenceURL()) != nil) {
							title = url!.lastPathComponent!
	
							//	if it's a video file, get and set window content size to its dimentions
							let track0 = AVURLAsset(URL:url!, options:nil).tracks[0]
							if track0.mediaType == AVMediaTypeVideo
							{
								webView.window?.setContentSize(track0.naturalSize)
								videoFileReferencedURL = true
							}

						} else {
							title = (url?.absoluteString)!
						}
					}
					lastTitle = title as String
