 //    	aWindow.bottomBarHeight = aWindow.titleBarHeight;
 //	NSView *titleBarView = aWindow.titleBarView;
         
-        selectModule(0)
+        selectModule(TrainBook)
         
         self.window?.recalculateKeyViewLoop()
         

    var taskViewController:TaskViewController?
    
    var loginWindowController:LoginWindowController!
    
    override func windowDidLoad()
    {

    }
    
    func segmentTab(sender: NSSegmentedControl){
        selectModule(sender.labelForSegment(sender.selectedSegment)!)
    }
    
    func selectModule(moduleName:String){
        if(moduleName == TrainOrder){
            if orderQueryViewController == nil{
                orderQueryViewController = OrderViewController()
            }
            self.window?.contentView = orderQueryViewController!.view
        }
        else if(moduleName == TrainBook){
            if ticketQueryViewController == nil{
                ticketQueryViewController = TicketQueryViewController()
            }
