         
         // Listen for load progress
         webView.addObserver(self, forKeyPath: "estimatedProgress", options: NSKeyValueObservingOptions.New, context: nil)
-        
+
+		// Listen for auto hide title changes
+		NSUserDefaults.standardUserDefaults().addObserver(self, forKeyPath: "autoHideTitle", options: NSKeyValueObservingOptions.New, context: nil)
+		
         clear()
+    }
+	
+	var lastStyle : Int = 0
+	var lastTitle = "Helium"
+	var autoHideTitle : Bool = NSUserDefaults.standardUserDefaults().boolForKey("autoHideTitle")
+
+	override func mouseExited(theEvent: NSEvent) {
+		if autoHideTitle {
+			if lastStyle == 0 { lastStyle = (self.view.window?.styleMask)! }
+			self.view.window!.titleVisibility = NSWindowTitleVisibility.Hidden;
+			self.view.window?.styleMask = NSBorderlessWindowMask
+		}
+	}
+	override func mouseEntered(theEvent: NSEvent) {
+		if autoHideTitle {
+			if lastStyle == 0 { lastStyle = (self.view.window?.styleMask)! }
+			self.view.window!.titleVisibility = NSWindowTitleVisibility.Visible;
+			self.view.window?.styleMask = lastStyle
+
+			let notif = NSNotification(name: "HeliumUpdateTitle", object: lastTitle);
+			NSNotificationCenter.defaultCenter().postNotification(notif)
+		}
     }
 
     override func viewDidLayout() {

                let percent = progress * 100
                var title = NSString(format: "Loading... %.2f%%", percent)
                if percent == 100 {
                    title = "Helium"
                }
                
                let notif = NSNotification(name: "HeliumUpdateTitle", object: title);
                NSNotificationCenter.defaultCenter().postNotification(notif)
            }
        }
    }
    
    //Convert a YouTube video url that starts at a certian point to popup/embedded design

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

    @IBAction private func reloadPress(sender: AnyObject) {
        requestedReload()
    }
