// CUSTOM JQUERY
$(function(){

$(document).ready(function() {
			$(".KartrisMenu ul .KartrisSubMenu:first").addClass("current");
});


$(".toplink").click(
function() {
$( 'html, body' ).animate( { scrollTop: 0 }, 'slow' );
});

            $(".water").each(function() {
                $tb = $(this);
                if ($tb.val() != "Enter keyword or model number here") {
                    $tb.removeClass("water");
                }
            });
 
            $(".water").focus(function() {
                $tb = $(this);
                if ($tb.val() == "Enter keyword or model number here") {
                    $tb.val("");
                    $tb.removeClass("water");
                }
            });
 
            $(".water").blur(function() {
                $tb = $(this);
                if ($.trim($tb.val()) == "") {
                    $tb.val("Enter keyword or model number here");
                    $tb.addClass("water");
                }
            });



});


// END CUSTOM JQUERY

// START COLLAPSIBLE ULS
	<!--//--><![CDATA[//><!--
	$("html").addClass("js");
	$(function() {
	$("#content-col1").accordion({initShow : "ul.current"});
	$("html").removeClass("js");
	});
	//--><!]]>
// END COLLAPSIBLE ULS

// START CAROUSEL
/**
 * We use the initCallback callback
 * to assign functionality to the controls
 */
function mycarousel_initCallback(carousel) {
    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
	
};

// Ride the carousel...
jQuery(document).ready(function() {
    jQuery('#special-offers').jcarousel({
        auto: 5,
		scroll: 1,
        wrap: 'last',
		easing: 'linear',
		visible: 1,
		animation: 1000,
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });
    jQuery('#supplier-carousel').jcarousel({
        auto: 5,
		scroll: 1,
        wrap: 'last',
		easing: 'linear',
		visible: 1,
		animation: 1000,
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });
	
	
});

// END CAROUSEL



