$(document).ready(function(){
    
    //Close button:
		
		$(".close_button").click(
			function () {
				$(this).parent().fadeTo(400, 0, function () { // Links with the class "close" will close parent
					
					// show again all drop down
					
						$(".NFSelect").each(function (i) {
								$(this).css('display','');
						});

					// end show again all drop down
					
					
					$(this).slideUp(600);
					$('#facebox_overlay').hide();
				});
				return false;
			}
		);
		
		$("#facebox_overlay").click(
			function () {
				$(".popup").fadeTo(400, 0, function () { // Links with the class "close" will close parent
					
					// show again all drop down
					
						$(".NFSelect").each(function (i) {
								$(this).css('display','');
						});

					// end show again all drop down
					
					
					$("#facebox_overlay").slideUp(600);
					$('#facebox_overlay').hide();
				});
			}
		);
		
		//hover states on the static widgets
			$('#dialog_link, ul#icons li').hover(
				function() { $(this).addClass('ui-state-hover'); }, 
				function() { $(this).removeClass('ui-state-hover'); }
			);
		// find review result
		$('#test').find('.ui-state-default').hover(
					function() { $(this).addClass('ui-state-hover'); }, 
					function() { $(this).removeClass('ui-state-hover'); }
				);
});
  
  
  