// remap jQuery to $
jQuery(document).ready(function($){
								
$('.navsearch').click(function() {
$(this).fadeOut();
$('#searchBoxOne').appendTo('#dc_jqmegamenu_widget-3-item').fadeIn();
$('#s').focus();
});

$('#searchBoxOne').mouseleave(function() {
$(this).delay(50).fadeOut();
$('.navsearch').fadeIn();
});

var testimonialRotator =
    {
        init: function()
        {
            //initial fade-in time (in milliseconds)
            var initialFadeIn = 1000;
 
            //interval between items (in milliseconds)
            var itemInterval = 5000;
 
            //cross-fade time (in milliseconds)
            var fadeTime = 500;
 
            //count number of items
            var numberOfItems = $('#testimonials p').length;
 
            //set current item
            var currentItem = 0;
 
            //show first item
            $('#testimonials p').eq(currentItem).fadeIn(initialFadeIn);
 
            //loop through the items
            var infiniteLoop = setInterval(function(){
                $('#testimonials p').eq(currentItem).fadeOut(fadeTime);
 
                if(currentItem == numberOfItems -1){
                    currentItem = 0;
                }else{
                    currentItem++;
                }
                $('#testimonials p').eq(currentItem).fadeIn(fadeTime);
 
            }, itemInterval);
        }
    };
 
    testimonialRotator.init();

});
