jQuery.noConflict();
jQuery(document).ready(function($) {
	
	//Search - Button
	jQuery('.btn-search-go a').click(function() {

	  window.location = "/search-results.html?cx=007482245097367660096:e6ji8wgm1yy&ie=UTF-8&Q=" + jQuery(".product-search input").val();
	  return false;
	});
	
	//Search - Enter
	jQuery('.product-search input').keypress(function(e){
      if(e.which == 13 && jQuery(this).val() != "")
      {
			window.location = "/search-results.html?cx=007482245097367660096:e6ji8wgm1yy&cof=FORID%3A10&ie=UTF-8&Q=" + jQuery(".product-search input").val();
			return false;
      }
    });
	
	//Cleanup Footer
	jQuery("#external-footer").animate({
		width: "233px",
		height: "15px"
	  }, 500 );
	
	//Cycle Promo
	$('.promo-banner div div').cycle({ 
		prev:   '.btn-slideshow-left a', 
		next:   '.btn-slideshow-right a', 
		timeout: 4000,
		pause: true
	});

	//Swap Values
    swapValues=[];
        jQuery(".swap_value").each(
            function(i){
                swapValues[i]=jQuery(this).val();
                jQuery(this).focus(function()
                    {
                        if(jQuery(this).val()==swapValues[i])
                        {
                            jQuery(this).val("")
                        }
                    }
                ).blur(function()
                    {
                        if(jQuery.trim(jQuery(this).val())=="")
                            {
                                jQuery(this).val(swapValues[i])
                            }
                     }
                 )
            }
        )	
});

Cufon.replace('.title-cufon', { fontFamily: 'ReductoSSi' });
