// JavaScript Document

		$(document).ready(function() 
		{
				var config = {    
								 sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)
								 interval: 150, // number = milliseconds for onMouseOver polling interval
								 over: openDropdown, // function = onMouseOver callback (REQUIRED)
								 timeout: 150, // number = milliseconds delay before onMouseOut
								 out: closeDropdown // function = onMouseOut callback (REQUIRED)
							};
		
				function openDropdown()
				{		
					//$(this).addClass("over");
					//$(this).addClass('over')
					$(this).children("div.dropdown").slideToggle("slow");
				}
				
				function closeDropdown()
				{
					//$(this).children("div.dropdown").slideToggle("slow", function(){$(this).parent().removeClass("over");});
					$(this).children("div.dropdown").slideToggle("slow");
					//$(this).removeClass('over')
				}
					
				//  menu items id seperated by comma
				$("#nav-solutions, #nav-products").hoverIntent( config );	
				
//	To be modified
//				
//				function setStyle(whatever)
//				{				
//					$('this').addClass('over');					
//				}
//				function removeStyle(whatever)
//				{
//					$('#this').removeClass('over');
//				}
//				
//
//				
//				
//				$("#nav_solutions")
//				.mouseover
//				(
//					 function()
//					 {
//						setStyle(this);	
//						removeStyle('#nav_products');
//						removeStyle('#nav_howtobuy');
//						removeStyle('#nav_support');
//						removeStyle('#nav_newsevents');
//						removeStyle('#nav_ixiatv');
//						removeStyle('#nav_company');					
//					 }			
//				 )
//				.mouseout
//				(
//					function()
//					{				 
//						removeStyle(this);
//					}					
//				);
//				
//				$("#nav_products")
//				.mouseover
//				(
//					 function()
//					 {
//						setStyle(this);		
//						removeStyle('#nav_solutions');
//						removeStyle('#nav_howtobuy');
//						removeStyle('#nav_support');
//						removeStyle('#nav_newsevents');
//						removeStyle('#nav_ixiatv');
//						removeStyle('#nav_company');						
//					 }				 
//
//				 )
//				.mouseout
//				 (
//					 function()
//					 {				 
//						removeStyle(this);
//												
//					 }					
//
//				);				
				
				
		});		