var dropdown_load = 0;
$(document).ready(function(){
	$('.js_dropdown').hover(
		function(){$(this).parent().nextAll('.js_dropdown_content').eq(0).show();},
		function(){$(this).parent().nextAll('.js_dropdown_content').eq(0).hide();}
	);
	$('.js_dropdown_content').hover(
		function(){$(this).eq(0).show();},
		function(){$(this).eq(0).hide();}
	);
	
	$('.dropdowna').hover(
		function(){$(this).parent().nextAll('.country_iconlist').eq(0).show();},
		function(){$(this).parent().nextAll('.country_iconlist').eq(0).hide();}
	);
	dropdown_load = 1;
	
	$('.country_iconlist').hover(
		function(){$(this).eq(0).show();},
		function(){$(this).eq(0).hide();}
	);

	$('#info li').hover(
		function(){$(this).addClass('cat22');},
		function(){$(this).removeClass('cat22');}
	);
	
	$('.error_info').each(function(){
		if ($(this).html() == '')
		{
			$(this).hide();
		}
		else
		{
			$(this).show();
		}
	});
	
	$('.fade_eff').hover(function(){$(this).fadeTo('fast', 0.66);},function(){$(this).fadeTo('fast', 1);});
	$('.fade_eff2').hover(function(){$(this).fadeTo('fast', 0.66);},function(){$(this).fadeTo('fast', 1);});
	
});

function notNull(id, info) {
	var obj = $('#'+id);
	var val = $.trim(obj.val());
	if( val.length == 0 ) {
		alert(info);
		obj.focus();
		return false;
	} else {
		return true;
	}
}



