jQuery(document).ready(function() {
	$('nav > ul > li').hover(
		function(){
			$(this).find('a').eq(0).addClass('active');
			$(this).find('ul').show();
		}, 
		function(){
			$(this).find('a').removeClass('active');
			$(this).find('ul').hide();
		}
	);
		
	jQuery('#loginLink').fancybox({
		'onComplete' : function(){
			$('input[name="storeDomain"]').focus();
		}
	});

	$('#supportLink').hover(
		function(){
			$(this).find('a').eq(0).addClass('active');
			$(this).find('ul').show();
		}, 
		function(){
			$(this).find('a').removeClass('active');
			$(this).find('ul').hide();
		}
	)
});
