			$(document).ready(function() {

				/* Cart Summary Toggle */
				/*$(function(){
					$('a#cart_toggle').click(function(){
						$('#cart_summary_items').slideToggle();
						$(this).text($(this).text() == 'view your items' ? 'hide items' : 'view your items');
						return false;
					});
					$('#cart_summary_items').css('display', 'none');
				});
				*/
				$("ul.sidebar_nav").superfish({ 
            		dropShadows:   false,
            		delay:     1200 
        		});
				
				// Quick View Tooltips
				$(function(){
					$('a.trigger').each(function() // This lets us use $(this) to refer to each element in the loop
					{
						$(this).qtip( // Create tooltips on the current element
						{ 
					    	content: $(this).next('.popup'), // Grab the element next to (after) the element
					    	position: {
						    	corner: {
						        	target: 'topMiddle',
						         	tooltip: 'bottomMiddle'
						      	},
						      	adjust: { screen: true }
						  	},
					   	  	style: { 
								background: '#fff',
								'font-size': 14,
								width: 300,
								border: {
							       width: 2,
							       color: '#CEDFAF'
							    },
								name: 'green',
								tip: 'bottomMiddle'
							},
							hide: {
								fixed: true // Make it fixed so it can be hovered over
							}
					   });
					});
				});
				
				
				/* Product Details Tabs */
				$(function() {
			    	$('#product_tabs').tabs();
			  	});
			  	
			  	$('form#general_form, div#general_form form, div#username_form form, div#password_form form, div#returning-customer form').validate({
					rules: {
				    	password_confirm: {
				      	equalTo: "#password"
				    	}
					}
				});

			});
