$(document).ready(function(){
	
	
	$('#left-large').cycle({ 
		fx:     'fade', 
		speed:  500, 
		timeout: 4000, 
		pause: 1,
		next:   '.next', 
		prev:   '.prev'  
	})
	
	$('#product-images #inner').cycle({ 
		fx:     'fade', 
		speed:  500, 
		timeout: 0, 
		next:   '.next', 
		prev:   '.prev',
	})
	
	
	
	$(".product").hover(function(){
		$(this).find(".product-info").fadeTo("fast", 0.9); // This sets the opacity to 100% on hover
	},function(){
		$(this).find(".product-info").fadeTo("fast", 0.0); // This sets the opacity back to 60% on mouseout
	});
	
	$(".slide").hover(function(){
		$(this).find(".product-info").fadeTo("fast", 0.9); // This sets the opacity to 100% on hover
	},function(){
		$(this).find(".product-info").fadeTo("fast", 0.0); // This sets the opacity back to 60% on mouseout
	});
	

	  
	      //check to make sure the element has a name attribute. If not, do nothing!
	      //if (!jQuery(this).attr("name")) return true;
	    
	      //$('#s').data("original", $(this).val());
	      
	      var textString = 'Search and Destroy';
	      
	      $('#s').val( textString )
	      
	      $('#s').focus(function() {
	        if ( $(this).val() == textString ) 	$(this).val("");   
	      }).blur(function() {
	    		if ($(this).val() == "") $(this).val( textString );
	      });
	      



	
});
