         
         // 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() {


import Cocoa
import WebKit

class WebViewController: NSViewController, WKNavigationDelegate {


    @IBAction private func zoomOut(sender: AnyObject) {
        zoomOut()
    }

    override var representedObject: AnyObject? {
        didSet {
        // Update the view, if already loaded.
        }
    }
    
    internal func loadAlmostURL( text_in: String) {
		var text = text_in
        if !(text.lowercaseString.hasPrefix("http://") || text.lowercaseString.hasPrefix("https://")) {
            text = "http://" + text
        }
