﻿//$m.core.register('.product-list', function (hub) {
//    var items,
//        maxHeight = 0,
//        self = {};

//    self.construct = function () {
//        items = hub.find('.product-list-item');
//        for (var i = 0; i < items.length; i++) {
//            maxHeight = $m.jQuery(items[i]).height() > maxHeight ? $m.jQuery(items[i]).height() : maxHeight;
//        }

//        for (var i = 0; i < items.length; i++) {
//            items[i].style.height = maxHeight + "px";
//        }
//    };

//    self.destruct = function () {

//    };

//    return self;
//});
////Calls the construct function of the above module.  We will be able to chain
////this to the end after the next train deploy.
////ex: $m.core.register('.searchPanel', function (hub) {}).construct();
//if ($m.core.modules['.product-list']) {
//    $m.core.modules['.product-list'].construct();
//}

$m.core.register('.searchPanel', function (hub) {
    var searchButton,
        self = {};

    self.construct = function () {
        searchButton = hub.find('.searchButton');
        $m.jQuery(searchButton).val('');
    };

    self.destruct = function () {

    };

    return self;
});
//Calls the construct function of the above module.  We will be able to chain
//this to the end after the next train deploy.
//ex: $m.core.register('.searchPanel', function (hub) {}).construct();
if ($m.core.modules['.searchPanel']) {
    $m.core.modules['.searchPanel'].construct();
}

$m.core.register('.signupPanel', function (hub) {
    var signupButton,
        self = {};

    self.construct = function () {
        signupButton = hub.find('.signupButton');
        $m.jQuery(signupButton).val('');
    };

    self.destruct = function () {

    };

    return self;
});
//Calls the construct function of the above module.  We will be able to chain
//this to the end after the next train deploy.
//ex: $m.core.register('.searchPanel', function (hub) {}).construct();
if ($m.core.modules['.signupPanel']) {
    $m.core.modules['.signupPanel'].construct();
}

//Used to copy main navigation to botoom nav  .   
//function copyNav() {
//	if($('Navigation') && $('Bottom-Nav')) {
//		$('Bottom-Nav').innerHTML = $('Navigation').innerHTML;
//	}
//}




