function DoSearch(){
var searchTerms = document.getElementById("searchTerms").value;
searchTerms = searchTerms.replace(' ', '+');
window.location = "https://store.chappellsupply.com/search.aspx?SearchTerm=" + searchTerms;
}

jQuery(document).ready(function(){
    
    
    // 
    // function buildPager(ind, slide) {
    //     
    //     ind++;
    //     var tabTitle = $('.container', slide).text();
    //     
    //     if (tabTitle.replace(/\s/g,'') == '') { tabTitle = 'slide ' + ind }
    //     
    //     return '<li class="tab-'+ ind +'"><a href="#"><span>' + tabTitle + '</span></a></li>';
    //     
    // }
    
    // $('#tabbedContent').before('<ul id="tabbedNavigation"></ul>');
    //     
    //     $('#tabbedContent').cycle({ 
    //         fx:     'fade',
    //         speed:  'fast',
    //          timeout: 0,
    //         cleartype:  true,
    //         cleartypeNoBg: true,
    //         pager:  '#tabbedNavigation', 
    //         pagerAnchorBuilder: buildPager
    //     });
    
    $('input.searchButton').live('click', function () {
        DoSearch();
        return false;
    });

});

