         self.view.removeFromSuperview()
     }
     
-    
+	func rootViewControllerSize() -> CGSize {
+		let size = self.rootViewController.view.frame.size
+		if (NSFoundationVersionNumber <= NSFoundationVersionNumber_iOS_7_1) && UIInterfaceOrientationIsLandscape(UIApplication.sharedApplication().statusBarOrientation) {
+			return CGSizeMake(size.height, size.width)
+		}
+		return size
+	}
+	
     func screenSize() -> CGSize {
         let screenSize = UIScreen.mainScreen().bounds.size
         if (NSFoundationVersionNumber <= NSFoundationVersionNumber_iOS_7_1) && UIInterfaceOrientationIsLandscape(UIApplication.sharedApplication().statusBarOrientation) {

    
    override func viewDidLayoutSubviews() {
        super.viewWillLayoutSubviews()
        let size = self.screenSize()
        self.viewWidth = size.width
        self.viewHeight = size.height
        

    }
    
    func show(viewController: UIViewController, title: String, text: String?=nil, buttonText: String?=nil, cancelButtonText: String?=nil, color: UIColor?=nil, iconImage: UIImage?=nil) -> JSSAlertViewResponder {
        self.rootViewController = viewController
        
        if((viewController.navigationController) != nil) {
            self.rootViewController = viewController.navigationController
