$(document).ready(function()
{
	// Country Selector
	var countrySelectionConfig = {
		interval: 150,
		sensitivity: 4,
		over: openCountrySelector,
		timeout: 400,
		out: closeCountrySelector
	};

	var countryHeight = $('#selector-country').children().size();
	countryHeight = $('.sCountry').height() * countryHeight;

	$("#selector-country").hoverIntent(countrySelectionConfig);

	function openCountrySelector() {
		$('#selector-country').animate({'height':countryHeight+'px'});
	}

	function closeCountrySelector() {
		$('#selector-country').animate({'height':$('.selector-choose').height()+7+'px'});
	}

	$('#selector-country .disabled a').click(function(){
		return false; // Prevent Link from working
	});


	if ($('#shop-nav').size()> 0) {
		var liHeight = 0;
		$('#shop-nav li a').each(function(){
			if (liHeight < $(this).height()) {
				liHeight = $(this).height();
			};
		})
		$('#shop-nav li a').css('cssText', 'height:' + liHeight + 'px !important');
	};
	
	if ($('#fab-nav-holder').size()> 0) {
		var liHeight = 0;
		$('#fab-nav-holder li a').each(function(){
			if (liHeight < $(this).height()) {
				liHeight = $(this).height();
			};
		})
		$('#fab-nav-holder li a').css('cssText', 'height:' + liHeight + 'px !important');
	};
});
