var initValue;
$(document).ready(function(){

	$('#txtredirect_search').focus(function(){
		initValue = $(this).attr('value');
		//$(this).select();
		$(this).val("");
	});
	$('#txtredirect_search').blur(function(){
		if($(this).val() == ''){
			$(this).val(initValue);
		}
	});
	function redirectSearch () {
	  
	  window.name = "window1";
	   url = "http://www.youthsportsnow.com/search/node/"; 
	   terms = escape(document.redirect_search.keys.value)
	   queryString = url + terms;
	   window.open(queryString, "window1");
	   return(false);
	}	
});


  





/*function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).load(function() {
    jQuery('#mycarousel').jcarousel({
        auto: 5,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
});*/


