
  Rckp.StoreLoc = {
    /** The animation for the email signup layer @type Df.Animate */
    animator: null,
    /** Elements used by this NameSpace */
    $elements: {
      form: 'cStoreLocBlk',
      closeBtn: 'cStoreLocCloseBtn',
      btn: 'sGeoLoc',
      iframe: 'cStoreLocFrm',
      txt: 'cStoreLocSrch'
    },
    visible: false,
    /** Animation parameters @type Object */
    animatePars: {},

    /** Perform when dom is loaded and ready */
    load: function() {
      this.animator = Rckp.animate( this.$elements.form, 'height:1px','height:200px', 500, 25 );
      this.$elements.btn.observe('click', this.toggle.bind(this) );
      this.$elements.closeBtn.observe('click', this.hide.bind( this ) );
    },
    toggle: function() {
      return this.visible ? this.hide() : this.show();
    },
    show: function() {
      this.$elements.iframe.hide();
      this.animator.play();
      this.visible = true;

      setTimeout( function() {
        this.$elements.txt.hide();
        this.$elements.iframe.show();
      }.bind(this), 700 );
      $("")
      if (!isIE6) {
        $("sGeoLoc").style.backgroundPosition = "bottom left";
      }
    },
    hide: function() {
      this.$elements.iframe.hide();
      this.animator.reverse();
      this.visible = false;

      setTimeout( function() {
        this.$elements.txt.show();
      }.bind(this), 700 );
      if (!isIE6) {  
        $("sGeoLoc").style.backgroundPosition = "top left";
      }
    }

  };
