	$(function() {
			
			var HOVER_ing = false;
			var HOVER_id = null;
			var HOVER_tmp = false;
			
			$('.drop').hide();
		
			$('.menu').mouseover(function() {
				HOVER_tmp = true;
				if(!HOVER_ing)
				{
					HOVER_ing = true;
					HOVER_id = $(this).attr('capId');
					var pos = $(this).offset();
					var cap = $(this).attr('capId');
					var com = false;
					$('.drop').each(function() 
					{ 
						if($(this).attr('capNumber') == cap && com == false) 
						{	 				
							$(this).css('left',pos.left - 7);
							$(this).css('top',(pos.top + 26));
							$(this).show();
							com = true;
						}
					});
				}
				else
				{
					HOVER_tmp = true;
					var tmp = $(this).attr('capId');
					if(tmp != HOVER_id)
					{
					
						$('.drop').hide();
						HOVER_ing = false;
						HOVER_id = null;
						$(this).mouseover();
					
					}
				}
			});
			
			$('.drop').mouseover(function() {
			
				HOVER_tmp = true;
				
			
			});
			
			$('.drop').mouseout(function() {
			
				HOVER_tmp = false;
				$(this).oneTime(1000,function() {
				
					if(!HOVER_tmp) {  

						$('.drop').hide();
						HOVER_ing = false;						
					
					}
				
				});
			
			});			
			
			$('.menu').mouseout(function() {
				
				HOVER_tmp = false;
				$(this).oneTime(1000,function() {
				
					if(!HOVER_tmp) {  

						$('.drop').hide();	
						HOVER_ing = false;					
					
					}
				
				});
			
			});
		
		$('#searchBox').focus(function() {
		
		if($(this).attr('value') == 'search')
		{
			$(this).attr('value','');
		}
		});
			
		$('#searchBox').blur(function() {
		if($(this).attr('value') == '')
		{
			$(this).attr('value','search');
		}
		
		});
		
		});
		
		
