
/*  ----------------------------------------------
    auction.js
    author: Regi E. (rellis@pushhere.com, Lead Dev)
    
    req/location
      scripts/mootools.js
      scripts/home.js
    ----------------------------------------------  */


/*  =Function: yearSelect
    ----------------------------------------------  */
    function yearSelect(select, display) {
      select = $$(select);
      select.addEvent('change', function() {
        window.location = this.getSelected().get('value');
      });
     (display == 'hidden') ? select[0].setStyle('display', 'none') : true;
      console.log(select[0])
    };
    
    // var preview = new InfoModule();
    

/*  Ready 
    -----------------------------------------------  */
    window.addEvent('domready', function() {
        yearSelect('.year-select', 'live');
        // if ($type($$('.subnav-top a')[0])) {
        //     preview.init('preview-content','.subnav-tops a', {
        //         ajaxRequest: true           
        //     });
        // };
    });