// Initialize.
function init_dropdown() {

	// Does element exist?
	if (!$('ul.dropdown').length) {

		// If not, exit.
		return;
	}
	
	
	// Listen for click on tabs.
	$('ul.dropdown li.dropdown_trigger a').click(function() {

		// If not current tab.
		if (!$(this).hasClass('current')) {

			// Change the current indicator.
			$(this).addClass('current').parent('li').siblings('li').find('a.current').removeClass('current');
		}
		// Nofollow.
		this.blur();
		//return false;
	});


	$('#viewCart').hover(function() {
									  
									 $('#minibasket').show();
									  },
									  function(){
									  $('#minibasket').hide();

									  });


	// Add listener for hover.
	$('ul.dropdown li.dropdown_trigger').hover(function() {

		// Show subsequent <ul>.
		$(this).find('ul').fadeIn(1);
	},
	function() {

		// Hide subsequent <ul>.
		$(this).find('ul').hide();
	});
}

// Kick things off.
//$(document).ready(function() {
	//init_dropdown();
//});
