sfHover = function() {
	$('#nav li').each(function() {
	  $(this).hover(
	    function() {
	    	$(this).addClass('sfhover');
	    },
	    function() {
	    	$(this).removeClass('sfhover');
	    }
	  );
		
	});
}

var SOLANO = window.SOLANO || {};

	/**
	 * @namespace Holds global functionality
	 */
	
	SOLANO.global = SOLANO.global || {};
	
	
	window.SOLANO = window.SOLANO = {};
	
(function() { 
	var Solano = {	
	
	  /**
	  * Removes label from text fields    
	  */
	  
	removeLabels: function() {
		$('.labelField').each(function() {
			var node = $(this);
			var defaultText = node.val();
			
			node.focus(function() {
			  if($(this).val()== defaultText) {
				$(this).val('');
			  }
			  $(this).blur(function() {
				var userInput = $(this).val();
				if(userInput=='') {
				  $(this).val(defaultText);
				}
			  }); // blur
			}); // focus
		});
	  }, // removeLabels
	
	  
	  /**
	  * Opens links in New Window
	  */
	   
	newWin : function() {
		   $("a.newWin").bind("click",function(e) {
				window.open(this.href);
				e.preventDefault();
			});
	   },
	   
	  /**
	  * Initializes all global page interactions
	  */
	 
	 _init: function() {
		this.removeLabels();
		$('.tabPane').tabs();
	  } // _init
  
}; // Solano Namespace

$(document).ready(function() {
  Solano._init();
  $('ul#nav').superfish({
			hoverClass	: 'sfhover', 
            delay:       500,                   // one second delay on mouseout 
            animation:   {opacity:'show'},  	// fade-in and slide-down animation 
            speed:       'fast',                // faster animation speed 
            autoArrows:  false,                 // disable generation of arrow mark-up 
            dropShadows: false                  // disable drop shadows 
    });
  
  $('.cartRow td:nth-child(2n) a').css('font-size','13px');
});

window.SOLANO = Solano;

})();
  
