jQuery.noConflict();

// Put all your code in your document ready area
jQuery(document).ready(function($) {
    //Search Input on Focus Script	
    var active_color = '#000';
    var inactive_color = '#999';

    $("input.default-value").css("color", inactive_color);
    var default_values = new Array();
    $("input.default-value").focus(function() {
        if (!default_values[this.id]) {
            default_values[this.id] = this.value;
        }
        if (this.value == default_values[this.id]) {
            this.value = '';
            this.style.color = active_color;
        }
        $(this).blur(function() {
            if (this.value == '') {
                this.style.color = inactive_color;
                this.value = default_values[this.id];
            }
        });
    });


    //Product Image Swap
    //$(".prodshot_sm a").hover(function() {
    //    var largePath = $(this).attr("rel");
    //    var largetitle = $(this).find('span').html();
    //    $(".prodshot_lrg img").attr({ src: largePath });
    //    $(".prodshot_lrg span").html(largetitle); return false;
    //});

    //Product Detail Image Swap by Click
    $(".thumb_prev a").click(function() {
        var largePath = $(this).attr("rel");
        $("img.lrg").attr({ src: largePath });
        return false;
    });

    //Specs Tabs
    $('#tabs div').hide();
    $('#tabs div:first').show();
    $('#tabs ul li:first').addClass('active');
    $('#tabs ul li a').click(function() {
        $('#tabs ul li').removeClass('active');
        $(this).parent().addClass('active');
        var currentTab = $(this).attr('href');
        $('#tabs div').hide();
        $(currentTab).show();
        return false;
    });

    //Sub Navigation Drop Down

    $("ul.topnav li").hover(function() {
        var nav_id = $(this).attr('class');
        $(this).find('.subheader').fadeIn('fast');
    }, function() {
        $(this).find('.subheader').fadeOut('fast');
    });

    //Sub Navigation Drop Down new

    $("ul.topnav li").hover(function() {
        var nav_id = $(this).attr('class');
        $(this).find('.subheaderone').fadeIn('fast');
    }, function() {
        $(this).find('.subheaderone').fadeOut('fast');
    });

    $("ul.topnav li").hover(function() {
        var nav_id = $(this).attr('class');
        $(this).find('.subheadertwo').fadeIn('fast');
    }, function() {
        $(this).find('.subheadertwo').fadeOut('fast');
    });

    $("ul.topnav li").hover(function() {
        var nav_id = $(this).attr('class');
        $(this).find('.subheaderthree').fadeIn('fast');
    }, function() {
        $(this).find('.subheaderthree').fadeOut('fast');
    });

    $("ul.topnav li").hover(function() {
        var nav_id = $(this).attr('class');
        $(this).find('.subheaderfour').fadeIn('fast');
    }, function() {
        $(this).find('.subheaderfour').fadeOut('fast');
    });

    $("ul.topnav li").hover(function() {
        var nav_id = $(this).attr('class');
        $(this).find('.subheaderfive').fadeIn('fast');
    }, function() {
        $(this).find('.subheaderfive').fadeOut('fast');
    });

    $("ul.topnav li").hover(function() {
        var nav_id = $(this).attr('class');
        $(this).find('.subheadersix').fadeIn('fast');
    }, function() {
        $(this).find('.subheadersix').fadeOut('fast');
    });

    //
    //IE6 Hack to bypass Overlap on Menu Drop Down and Selection Drop Down
    if ($.browser.msie && $.browser.version.substr(0, 1) < 7) {
        $("ul.topnav").children("li").hover(function() {
            if ($(this).find('.subheaderthree').length > 0) {
                $(".filterby select, .filterbyrise select").hide();
            }
        }, function() {
            $(".filterby select, .filterbyrise select").show();
        });
    }
    if ($.browser.msie && $.browser.version.substr(0, 1) < 7) {
        $("ul.topnav").children("li").hover(function() {
            if ($(this).find('.subheaderfour').length > 0) {
                $(".filterbyrise select").hide();
            }
        }, function() {
            $(".filterbyrise select").show();
        });
    }
    if ($.browser.msie && $.browser.version.substr(0, 1) < 7) {
        $("ul.topnav").children("li").hover(function() {
            if ($(this).find('.subheaderfive').length > 0) {
                $(".filterbywash select").hide();
            }
        }, function() {
            $(".filterbywash select").show();
        });
    }
});

 
