// JavaScript Document

$(function() {
		    $('#add_bg_to_content ul li:eq(1)').css('borderRight', '1px solid #d5d5d5');
			$('#add_bg_to_content ul li:eq(1)').css('borderLeft', '1px solid #d5d5d5');
		   });




$(function() {
		   
		   $("#sub_about").css('display', 'none');
		   $("#sub_products").css('display', 'none');
		   $("#sub_services").css('display', 'none');
		   $("#sub_support").css('display', 'none');
		   $("#sub_projects").css('display', 'none');
		   $("#sub_press").css('display', 'none');
		   $("#sub_contact").css('display', 'none');
		   
		   $("#nav_about").hover(
							function() {
								$(this).children("#sub_about").stop().css('display', ''); 
								}, function() {
								$(this).children("#sub_about").stop().css('display', 'none'); 
								}
							);	
		   $("#nav_products").hover(
							function() {
								
								$(this).children("#sub_products").stop().css('display', ''); 
								
								}, function() {
								$(this).children("#sub_products").css('display', 'none'); 
								//$(this).children("#sub_products").stop().css('top', '-1000px');								
								}
							);	
		   $("#nav_services").hover(
							function() {
								$(this).children("#sub_services").stop().css('display', ''); 

								}, function() {
								$(this).children("#sub_services").css('display', 'none'); 
								}
							);	
		   $("#nav_support").hover(
							function() {
								$(this).children("#sub_support").stop().css('display', ''); 

								}, function() {
								$(this).children("#sub_support").stop().css('display', 'none'); 	
								}
							);	
		   $("#nav_projects").hover(
							function() {
								$(this).children("#sub_projects").stop().css('display', ''); 

								}, function() {
								$(this).children("#sub_projects").stop().css('display', 'none'); 
								}
							);	
		   $("#nav_press").hover(
							function() {
								$(this).children("#sub_press").stop().css('display', ''); 
								}, function() {
								$(this).children("#sub_press").stop().css('display', 'none'); 
											}
							);	
		   $("#nav_contact").hover(
							function() {
								$(this).children("#sub_contact").stop().css('display', ''); 
								}, function() {
								$(this).children("#sub_contact").stop().css('display', 'none'); 
								}
							);	
		
		   
		
});
