         }
         self.resizeAndRelayout()
     }
-
+    
     
     func buttonTapped(btn:UIButton) {
-    
+        
     }
     
     required init(coder aDecoder: NSCoder) {

        var width: CGFloat = kContentWidth - (kWidthMargin*2)
        
        if animatedView != nil {
             animatedView!.frame = CGRect(x: (kContentWidth - kAnimatedViewHeight) / 2.0, y: y, width: kAnimatedViewHeight, height: kAnimatedViewHeight)
            contentView.addSubview(animatedView!)
            y += kAnimatedViewHeight + kHeightMargin
        }

    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
        super.init(nibName:nibNameOrNil, bundle:nibBundleOrNil)
    }
    
    func closeAlert(buttonIndex:Int){
        
        if userAction !=  nil {
            
            var isOtherButton = buttonIndex == 0 ? true: false
