﻿
        $(document).ready(function() { 
        $('ul.sf-menu').superfish({ 
            delay:       300,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'slow',                          // faster animation speed 
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        });

        /* ------------------- Search -------------------- */
        $("#productFinder .button input").click(function () {

            var term = $.URLEncode($(this).parents(".input").find('div.roundedInput input[type="text"]').val());
            if (term == "" || term == "Search") {
                return false;
            }
            else {

                var type;
                if ($(this).parents(".code").length > 0) {
                    type = "code";
                }
                else {
                    type = "keyword";
                }


                window.location.href = "/product_search_results.aspx?search=" + term + "&type=" + type;
                return false;
            }
        });

        $('#productFinder .input div.roundedInput input').live("keypress", function (e) {
            if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
                $(this).parents(".input").find(".button input").click();
                return false;
            } else {
                return true;
            }
        });
        /* --------------------End Search ------------------- */

    }); 
    
    
        $(document).ready(function() {
            $("#body #bodyCol2 #mainContent #homeOfferBoxes .box .price").corner();            
            
        });
        
        function showForgotten(){
            document.getElementById("divForgottenPassword").style.display = 'block';
            document.getElementById("divRegisterPassword").style.display = 'none';            
        }
        
        function hideForgotten(){
            document.getElementById("divForgottenPassword").style.display = 'none';
            document.getElementById("divRegisterPassword").style.display = 'block';            
            return false;
        }
        function showStatus()
        {
            document.getElementById("ucStatus_but_hid_modalStatus_trigger").click();
            document.getElementById("divStatusComplete").style.display = "none";
            document.getElementById("divStatusLoading").style.display = "block";
        }
