$(document).ready(function(){
    //header home click
    $(".send_home").click(function(){
        window.location.href = "http://www.sono-tek.com";
    });
    
    //menu bar actions
    $(".usn").click(function() {
                
        //open close
        if ($("#usn").is(":hidden")) {
            
            if ($("#ie").is(":visible")) {
                $('.ie').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/03_industry.gif)");
                $("#ie").fadeOut('fast', function() { 
                    $('.usn').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)");
                    $("#usn").fadeIn('slow');
                    });
                } 
                    
            if ($("#pro").is(":visible")) {
                $('.pro').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/04_products.gif)");
                $("#pro").fadeOut('fast', function() {
                    $('.usn').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#usn").fadeIn("slow");
                    });
                }
            
            if ($("#comp").is(":visible")) {
                $('.comp').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/05_company.gif)");
                $("#comp").fadeOut('fast', function() {
                    $('.usn').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#usn").fadeIn("slow");
                    });
                }
                    
            if ($("#inv").is(":visible")) {
                $('.inv').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/06_investors.gif)");
                $("#inv").fadeOut('fast', function() {
                    $('.usn').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#usn").fadeIn("slow");
                    });
                }
                    
            if ($("#cust_test").is(":visible")) {
                $('.cust_test').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/07_testimonial.gif)");
                $("#cust_test").fadeOut('fast', function() {
                    $('.usn').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#usn").fadeIn("slow");
                    });
                }
                    
            if($("#ie").is(":hidden") && $("#pro").is(":hidden") && $("#comp").is(":hidden") && $("#inv").is(":hidden") && $("#cust_test").is(":hidden")) {
                $('.usn').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                $("#usn").slideDown("slow");
                }
            
            } else {
                $('.usn').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/02_nozzles.gif)");
                $("#usn").slideUp("slow");
                }
        });
        
        $(".ie").click(function() {
                
        //open close
        if ($("#ie").is(":hidden")) {
            
            if ($("#usn").is(":visible")) {
                $('.usn').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/03_industry.gif)");
                $("#usn").fadeOut('fast', function() { 
                    $('.ie').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)");
                    $("#ie").fadeIn('slow');
                    });
                } 
                    
            if ($("#pro").is(":visible")) {
                $('.pro').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/04_products.gif)");
                $("#pro").fadeOut('fast', function() {
                    $('.ie').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#ie").fadeIn("slow");
                    });
                }
            
            if ($("#comp").is(":visible")) {
                $('.comp').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/05_company.gif)");
                $("#comp").fadeOut('fast', function() {
                    $('.ie').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#ie").fadeIn("slow");
                    });
                }
                    
            if ($("#inv").is(":visible")) {
                $('.inv').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/06_investors.gif)");
                $("#inv").fadeOut('fast', function() {
                    $('.ie').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#ie").fadeIn("slow");
                    });
                }
                    
            if ($("#cust_test").is(":visible")) {
                $('.cust_test').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/07_testimonial.gif)");
                $("#cust_test").fadeOut('fast', function() {
                    $('.ie').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#ie").fadeIn("slow");
                    });
                }
                    
            if($("#usn").is(":hidden") && $("#pro").is(":hidden") && $("#comp").is(":hidden") && $("#inv").is(":hidden") && $("#cust_test").is(":hidden")) {
                $('.ie').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                $("#ie").slideDown("slow");
                }
            
            } else {
                $('.ie').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/02_nozzles.gif)");
                $("#ie").slideUp("slow");
                }
            //close other subcategories
    		$("#ind_eneg").css('font-weight','normal');
            $("#ind_eneg").css('color','black');
    		$("#ind_enersub").hide();
            $("#ind_med").css('font-weight','normal');
            $("#ind_med").css('color','black');
            $("#ind_medisub").hide();
            $("#ind_glass").css('font-weight','normal');
            $("#ind_glass").css('color','black');
            $("#ind_glasssub").hide();
			$("#ind_nano").css('font-weight','normal');
            $("#ind_nano").css('color','black');
            $("#ind_nano").html('Nanotechnology');
            $("#ind_nanosub").hide();
		    $("#ind_food").css('font-weight','normal');
            $("#ind_food").css('color','black');
            $("#ind_food").html('Other Industrial Applications');
            $("#ind_foodsub").hide();
			$("#ind_elec").css('font-weight','normal');
            $("#ind_elec").css('color','black');
            $("#ind_elec").html('Electronics');
		    $("#ind_elecsub").hide();
			
    		
    		$("#ind_elec").css('font-weight','bold');
            $("#ind_elec").css('color','green');
            $("#ind_elec").html('&bull; Electronics');
    		$("#ind_elecsub").fadeIn('slow');
        });
        
        $(".pro").click(function() {
                
        //open close
        if ($("#pro").is(":hidden")) {
            
            if ($("#ie").is(":visible")) {
                $('.ie').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/03_industry.gif)");
                $("#ie").fadeOut('fast', function() { 
                    $('.pro').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)");
                    $("#pro").fadeIn('slow');
                    });
                } 
                    
            if ($("#usn").is(":visible")) {
                $('.usn').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/04_products.gif)");
                $("#usn").fadeOut('fast', function() {
                    $('.pro').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#pro").fadeIn("slow");
                    });
                }
            
            if ($("#comp").is(":visible")) {
                $('.comp').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/05_company.gif)");
                $("#comp").fadeOut('fast', function() {
                    $('.pro').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#pro").fadeIn("slow");
                    });
                }
                    
            if ($("#inv").is(":visible")) {
                $('.inv').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/06_investors.gif)");
                $("#inv").fadeOut('fast', function() {
                    $('.pro').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#pro").fadeIn("slow");
                    });
                }
                    
            if ($("#cust_test").is(":visible")) {
                $('.cust_test').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/07_testimonial.gif)");
                $("#cust_test").fadeOut('fast', function() {
                    $('.pro').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#pro").fadeIn("slow");
                    });
                }
                    
            if($("#ie").is(":hidden") && $("#usn").is(":hidden") && $("#comp").is(":hidden") && $("#inv").is(":hidden") && $("#cust_test").is(":hidden")) {
                $('.pro').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                $("#pro").slideDown("slow");
                }
            
            } else {
                $('.pro').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/02_nozzles.gif)");
                $("#pro").slideUp("slow");
                }
                
        //close other subcategories
		$("#elec").css('font-weight','normal');
        $("#elec").css('color','black');
		$("#pro_elec").hide();
		$("#eneg").css('font-weight','normal');
        $("#eneg").css('color','black');
		$("#pro_eng").hide();
        $("#med").css('font-weight','normal');
        $("#med").css('color','black');
        $("#pro_med").hide();
		$("#ind").css('font-weight','normal');
        $("#ind").css('color','black');
        $("#pro_glass").hide();
		$("#food").css('font-weight','normal');
        $("#food").css('color','black');
        $("#pro_food").hide();
		$("#nano").css('font-weight','normal');
        $("#nano").css('color','black');
        $("#pro_nano").hide();
		
		$("#elec").css('font-weight','bold');
        $("#elec").css('color','green');
        $("#elec").html('&bull; Electronics');
		$("#pro_elec").fadeIn('slow');
        });
        
        $(".comp").click(function() {
                
        //open close
        if ($("#comp").is(":hidden")) {
            
            if ($("#ie").is(":visible")) {
                $('.ie').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/03_industry.gif)");
                $("#ie").fadeOut('fast', function() { 
                    $('.comp').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)");
                    $("#comp").fadeIn('slow');
                    });
                } 
                    
            if ($("#pro").is(":visible")) {
                $('.pro').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/04_products.gif)");
                $("#pro").fadeOut('fast', function() {
                    $('.comp').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#comp").fadeIn("slow");
                    });
                }
            
            if ($("#usn").is(":visible")) {
                $('.usn').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/05_company.gif)");
                $("#usn").fadeOut('fast', function() {
                    $('.comp').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#comp").fadeIn("slow");
                    });
                }
                    
            if ($("#inv").is(":visible")) {
                $('.inv').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/06_investors.gif)");
                $("#inv").fadeOut('fast', function() {
                    $('.comp').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#comp").fadeIn("slow");
                    });
                }
                    
            if ($("#cust_test").is(":visible")) {
                $('.cust_test').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/07_testimonial.gif)");
                $("#cust_test").fadeOut('fast', function() {
                    $('.comp').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#comp").fadeIn("slow");
                    });
                }
                    
            if($("#ie").is(":hidden") && $("#pro").is(":hidden") && $("#usn").is(":hidden") && $("#inv").is(":hidden") && $("#cust_test").is(":hidden")) {
                $('.comp').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                $("#comp").slideDown("slow");
                }
            
            } else {
                $('.comp').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/02_nozzles.gif)");
                $("#comp").slideUp("slow");
                }
        });
        
        $(".inv").click(function() {
                
        //open close
        if ($("#inv").is(":hidden")) {
            
            if ($("#ie").is(":visible")) {
                $('.ie').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/03_industry.gif)");
                $("#ie").fadeOut('fast', function() { 
                    $('.inv').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)");
                    $("#inv").fadeIn('slow');
                    });
                } 
                    
            if ($("#pro").is(":visible")) {
                $('.pro').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/04_products.gif)");
                $("#pro").fadeOut('fast', function() {
                    $('.inv').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#inv").fadeIn("slow");
                    });
                }
            
            if ($("#comp").is(":visible")) {
                $('.comp').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/05_company.gif)");
                $("#comp").fadeOut('fast', function() {
                    $('.inv').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#inv").fadeIn("slow");
                    });
                }
                    
            if ($("#usn").is(":visible")) {
                $('.usn').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/06_investors.gif)");
                $("#usn").fadeOut('fast', function() {
                    $('.inv').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#inv").fadeIn("slow");
                    });
                }
                    
            if ($("#cust_test").is(":visible")) {
                $('.cust_test').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/07_testimonial.gif)");
                $("#cust_test").fadeOut('fast', function() {
                    $('.inv').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                    $("#inv").fadeIn("slow");
                    });
                }
                    
            if($("#ie").is(":hidden") && $("#pro").is(":hidden") && $("#comp").is(":hidden") && $("#usn").is(":hidden") && $("#cust_test").is(":hidden")) {
                $('.inv').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
                $("#inv").slideDown("slow");
                }
            
            } else {
                $('.inv').css("background-image", "url(http://www.sono-tek.com/wp-content/themes/sono-tek/images/02_nozzles.gif)");
                $("#inv").slideUp("slow");
                }
        });
        
        $(".cust_test").click(function() {window.location = 'http://www.sono-tek.com/customer-testimonials/'});
									   
        //open close
      //  if ($("#cust_test").is(":hidden")) {
            
        //    if ($("#ie").is(":visible")) {
          //      $('.ie').css("background-image", "url(http://192.168.111.98/wp-content/themes/sono-tek/images/03_industry.gif)");
            //    $("#ie").fadeOut('fast', function() { 
              //      $('.cust_test').css("background-image", "url(http://192.168.111.98/wp-content/themes/sono-tek/images/0_nozzles.gif)");
                //    $("#cust_test").fadeIn('slow');
                  //  });
//                } 
  //                  
    //        if ($("#pro").is(":visible")) {
      //          $('.pro').css("background-image", "url(http://192.168.111.98/wp-content/themes/sono-tek/images/04_products.gif)");
        //        $("#pro").fadeOut('fast', function() {
          //          $('.cust_test').css("background-image", "url(http://192.168.111.98/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
            //        $("#cust_test").fadeIn("slow");
              //      });
                //}
//            
  //          if ($("#comp").is(":visible")) {
    //            $('.comp').css("background-image", "url(http://192.168.111.98/wp-content/themes/sono-tek/images/05_company.gif)");
      //          $("#comp").fadeOut('fast', function() {
        //            $('.cust_test').css("background-image", "url(http://192.168.111.98/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
          //          $("#cust_test").fadeIn("slow");
            //        });
              //  }
//                    
  //          if ($("#inv").is(":visible")) {
    //            $('.inv').css("background-image", "url(http://192.168.111.98/wp-content/themes/sono-tek/images/06_investors.gif)");
      //          $("#inv").fadeOut('fast', function() {
        //            $('.cust_test').css("background-image", "url(http://192.168.111.98/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
          //          $("#cust_test").fadeIn("slow");
            //        });
              //  }
                    
//            if ($("#usn").is(":visible")) {
  //              $('.usn').css("background-image", "url(http://192.168.111.98/wp-content/themes/sono-tek/images/07_testimonial.gif)");
    //            $("#usn").fadeOut('fast', function() {
      //              $('.cust_test').css("background-image", "url(http://192.168.111.98/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
        //            $("#cust_test").fadeIn("slow");
          //          });
            //    }
//                    
  //          if($("#ie").is(":hidden") && $("#pro").is(":hidden") && $("#comp").is(":hidden") && $("#inv").is(":hidden") && $("#usn").is(":hidden")) {
    //            $('.cust_test').css("background-image", "url(http://192.168.111.98/wp-content/themes/sono-tek/images/0_nozzles.gif)"); 
      //          }
        //    
          //  } else {
//                $('.cust_test').css("background-image", "url(http://192.168.111.98/wp-content/themes/sono-tek/images/02_nozzles.gif)");
  //              $("#cust_test").slideUp("slow");
    //            }
      //  });  
        
    //Products SubMenu
    $("#elec").click(function() {
		//close other categories
		$("#eneg").css('font-weight','normal');
        $("#eneg").css('color','black');
        $("#eneg").html('Energy');
		$("#pro_eng").hide();
        $("#med").css('font-weight','normal');
        $("#med").css('color','black');
        $("#med").html('Medical');
        $("#pro_med").hide();
		$("#ind").css('font-weight','normal');
        $("#ind").css('color','black');
        $("#ind").html('Glass');
        $("#pro_glass").hide();
		$("#food").css('font-weight','normal');
        $("#food").css('color','black');
        $("#food").html('Other Industrial Applications');
        $("#pro_food").hide();
		$("#nano").css('font-weight','normal');
        $("#nano").css('color','black');
        $("#nano").html('Nanotechnology');
        $("#pro_nano").hide();
		
		$("#elec").css('font-weight','bold');
        $("#elec").css('color','green');
        $("#elec").html('&bull; Electronics');
		$("#pro_elec").fadeIn('slow');
	});
	
	$("#eneg").click(function() {					  
		//close other categories if open
		$("#elec").css('font-weight','normal');
        $("#elec").css('color','black');
        $("#elec").html('Electronics');
		$("#pro_elec").hide();
        $("#med").css('font-weight','normal');
        $("#med").css('color','black');
        $("#med").html('Medical');
        $("#pro_med").hide();
		$("#ind").css('font-weight','normal');
        $("#ind").css('color','black');
        $("#ind").html('Glass');
        $("#pro_glass").hide();
		$("#food").css('font-weight','normal');
        $("#food").css('color','black');
        $("#food").html('Other Industrial Applications');
        $("#pro_food").hide();
		$("#nano").css('font-weight','normal');
        $("#nano").css('color','black');
        $("#nano").html('Nanotechnology');
        $("#pro_nano").hide();
		
		//open energy div
		$("#eneg").css('font-weight','bold');
        $("#eneg").css('color','green');
        $("#eneg").html('&bull; Energy');
		$("#pro_eng").fadeIn('slow');	
	});
    
    $("#med").click(function() {					  
		//close other categories if open
		$("#elec").css('font-weight','normal');
        $("#elec").css('color','black');
        $("#elec").html('Electronics');
		$("#pro_elec").hide();
        $("#eneg").css('font-weight','normal');
        $("#eneg").css('color','black');
        $("#eneg").html('Energy');
        $("#pro_eng").hide();
		$("#ind").css('font-weight','normal');
        $("#ind").css('color','black');
        $("#ind").html('Glass');
        $("#pro_glass").hide();
		$("#food").css('font-weight','normal');
        $("#food").css('color','black');
        $("#food").html('Other Industrial Applications');
        $("#pro_food").hide();
		$("#nano").css('font-weight','normal');
        $("#nano").css('color','black');
        $("#nano").html('Nanotechnology');
        $("#pro_nano").hide();
		
		//open energy div
		$("#med").css('font-weight','bold');
        $("#med").css('color','green');
        $("#med").html('&bull; Medical');
		$("#pro_med").fadeIn('slow');	
	});
	
	 $("#ind").click(function() {					  
		//close other categories if open
		$("#elec").css('font-weight','normal');
        $("#elec").css('color','black');
        $("#elec").html('Electronics');
		$("#pro_elec").hide();
        $("#eneg").css('font-weight','normal');
        $("#eneg").css('color','black');
        $("#eneg").html('Energy');
        $("#pro_eng").hide();
		$("#med").css('font-weight','normal');
        $("#med").css('color','black');
        $("#med").html('Medical');
        $("#pro_med").hide();
		$("#food").css('font-weight','normal');
        $("#food").css('color','black');
        $("#food").html('Other Industrial Applications');
        $("#pro_food").hide();
		$("#nano").css('font-weight','normal');
        $("#nano").css('color','black');
        $("#nano").html('Nanotechnology');
        $("#pro_nano").hide();
		
		//open glass div
		$("#ind").css('font-weight','bold');
        $("#ind").css('color','green');
        $("#ind").html('&bull; Glass');
		$("#pro_glass").fadeIn('slow');	
	});

      $("#food").click(function() {					  
		//close other categories if open
		$("#elec").css('font-weight','normal');
        $("#elec").css('color','black');
        $("#elec").html('Electronics');
		$("#pro_elec").hide();
        $("#eneg").css('font-weight','normal');
        $("#eneg").css('color','black');
        $("#eneg").html('Energy');
        $("#pro_eng").hide();
		$("#med").css('font-weight','normal');
        $("#med").css('color','black');
        $("#med").html('Medical');
        $("#pro_med").hide();
		$("#ind").css('font-weight','normal');
        $("#ind").css('color','black');
        $("#ind").html('Glass');
        $("#pro_glass").hide();
		$("#nano").css('font-weight','normal');
        $("#nano").css('color','black');
        $("#nano").html('Nanotechnology');
        $("#pro_nano").hide();
		
		//open food div
		$("#food").css('font-weight','bold');
        $("#food").css('color','green');
        $("#food").html('&bull; Other Industrial Applications');
		$("#pro_food").fadeIn('slow');	
	});

       $("#nano").click(function() {					  
		//close other categories if open
		$("#elec").css('font-weight','normal');
        $("#elec").css('color','black');
        $("#elec").html('Electronics');
		$("#pro_elec").hide();
        $("#eneg").css('font-weight','normal');
        $("#eneg").css('color','black');
        $("#eneg").html('Energy');
        $("#pro_eng").hide();
		$("#med").css('font-weight','normal');
        $("#med").css('color','black');
        $("#med").html('Medical');
        $("#pro_med").hide();
		$("#ind").css('font-weight','normal');
        $("#ind").css('color','black');
        $("#ind").html('Glass');
        $("#pro_glass").hide();
		$("#food").css('font-weight','normal');
        $("#food").css('color','black');
        $("#food").html('Other Industrial Applications');
        $("#pro_food").hide();
		
		//open food div
		$("#nano").css('font-weight','bold');
        $("#nano").css('color','green');
        $("#nano").html('&bull; Nanotechnology');
		$("#pro_nano").fadeIn('slow');	
	});
	//Industry Expertise Submenu
	$("#ind_elec").click(function() {
		//close other categories
		$("#ind_elec").css('font-weight','normal');
        $("#ind_elec").css('color','black');
        $("#ind_elec").html('Electronics');
		$("#ind_elecsub").hide();
		$("#ind_eneg").css('font-weight','normal');
        $("#ind_eneg").css('color','black');
        $("#ind_eneg").html('Energy');
		$("#ind_enersub").hide();
        $("#ind_med").css('font-weight','normal');
        $("#ind_med").css('color','black');
        $("#ind_med").html('Medical');
        $("#ind_medisub").hide();
        $("#ind_glass").css('font-weight','normal');
        $("#ind_glass").css('color','black');
        $("#ind_glass").html('Glass');
        $("#ind_glasssub").hide();
	    $("#ind_nano").css('font-weight','normal');
        $("#ind_nano").css('color','black');
        $("#ind_nano").html('Nanotechnology');
        $("#ind_nanosub").hide();
		$("#ind_food").css('font-weight','normal');
        $("#ind_food").css('color','black');
        $("#ind_food").html('Other Industrial Applications');
        $("#ind_foodsub").hide();
        
		
		$("#ind_elec").css('font-weight','bold');
        $("#ind_elec").css('color','green');
        $("#ind_elec").html('&bull; Electronics');
		$("#ind_elecsub").fadeIn('slow');
	});
	
	$("#ind_eneg").click(function() {					  
		//close other categories if open
		$("#ind_elec").css('font-weight','normal');
        $("#ind_elec").css('color','black');
        $("#ind_elec").html('Electronics');
		$("#ind_elecsub").hide();
        $("#ind_med").css('font-weight','normal');
        $("#ind_med").css('color','black');
        $("#ind_med").html('Medical');
		$("#ind_medisub").hide();
        $("#ind_glass").css('font-weight','normal');
        $("#ind_glass").css('color','black');
        $("#ind_glass").html('Glass');
		$("#ind_glasssub").hide();
	    $("#ind_nano").css('font-weight','normal');
        $("#ind_nano").css('color','black');
        $("#ind_nano").html('Nanotechnology');
        $("#ind_nanosub").hide();
		$("#ind_food").css('font-weight','normal');
        $("#ind_food").css('color','black');
        $("#ind_food").html('Other Industrial Applications');
        $("#ind_foodsub").hide();
		
		//open energy div
		$("#ind_eneg").css('font-weight','bold');
        $("#ind_eneg").css('color','green');
        $("#ind_eneg").html('&bull; Energy');
		$("#ind_enersub").fadeIn('slow');	
	});
    
    $("#ind_med").click(function() {					  
		//close other categories if open
		$("#ind_elec").css('font-weight','normal');
        $("#ind_elec").css('color','black');
        $("#ind_elec").html('Electronics');
		$("#ind_elecsub").hide();
        $("#ind_eneg").css('font-weight','normal');
        $("#ind_eneg").css('color','black');
        $("#ind_eneg").html('Energy');
		$("#ind_enersub").hide();
        $("#ind_glass").css('font-weight','normal');
        $("#ind_glass").css('color','black');
        $("#ind_glass").html('Glass');
		$("#ind_glasssub").hide();
	    $("#ind_nano").css('font-weight','normal');
        $("#ind_nano").css('color','black');
        $("#ind_nano").html('Nanotechnology');
        $("#ind_nanosub").hide();
		$("#ind_food").css('font-weight','normal');
        $("#ind_food").css('color','black');
        $("#ind_food").html('Other Industrial Applications');
        $("#ind_foodsub").hide();
		
		//open energy div
		$("#ind_med").css('font-weight','bold');
        $("#ind_med").css('color','green');
        $("#ind_med").html('&bull; Medical');
		$("#ind_medisub").fadeIn('slow');	
	});
	$("#ind_glass").click(function() {					  
		//close other categories if open
		$("#ind_elec").css('font-weight','normal');
        $("#ind_elec").css('color','black');
        $("#ind_elec").html('Electronics');
		$("#ind_elecsub").hide();
        $("#ind_med").css('font-weight','normal');
        $("#ind_med").css('color','black');
        $("#ind_med").html('Medical');
		$("#ind_medisub").hide();
        $("#ind_eneg").css('font-weight','normal');
        $("#ind_eneg").css('color','black');
        $("#ind_eneg").html('Energy');
	    $("#ind_enersub").hide();
	    $("#ind_nano").css('font-weight','normal');
        $("#ind_nano").css('color','black');
        $("#ind_nano").html('Nanotechnology');
        $("#ind_nanosub").hide();
		$("#ind_food").css('font-weight','normal');
        $("#ind_food").css('color','black');
        $("#ind_food").html('Other Industrial Applications');
        $("#ind_foodsub").hide();
		
		//open energy div
		$("#ind_glass").css('font-weight','bold');
        $("#ind_glass").css('color','green');
        $("#ind_glass").html('&bull; Glass');
		$("#ind_glasssub").fadeIn('slow');	
	});
	
	$("#ind_food").click(function() {					  
		//close other categories if open
		$("#ind_elec").css('font-weight','normal');
        $("#ind_elec").css('color','black');
        $("#ind_elec").html('Electronics');
		$("#ind_elecsub").hide();
        $("#ind_med").css('font-weight','normal');
        $("#ind_med").css('color','black');
        $("#ind_med").html('Medical');
		$("#ind_medisub").hide();
        $("#ind_eneg").css('font-weight','normal');
        $("#ind_eneg").css('color','black');
        $("#ind_eneg").html('Energy');
	    $("#ind_enersub").hide();
	    $("#ind_nano").css('font-weight','normal');
        $("#ind_nano").css('color','black');
        $("#ind_nano").html('Nanotechnology');
        $("#ind_nanosub").hide();
		$("#ind_glass").css('font-weight','normal');
        $("#ind_glass").css('color','black');
        $("#ind_glass").html('Glass');
		$("#ind_glasssub").hide();
		
		//open energy div
		$("#ind_food").css('font-weight','bold');
        $("#ind_food").css('color','green');
        $("#ind_food").html('&bull; Other Industrial Applications');
		$("#ind_foodsub").fadeIn('slow');	
	});
	$("#ind_nano").click(function() {					  
		//close other categories if open
		$("#ind_elec").css('font-weight','normal');
        $("#ind_elec").css('color','black');
        $("#ind_elec").html('Electronics');
		$("#ind_elecsub").hide();
        $("#ind_med").css('font-weight','normal');
        $("#ind_med").css('color','black');
        $("#ind_med").html('Medical');
		$("#ind_medisub").hide();
        $("#ind_eneg").css('font-weight','normal');
        $("#ind_eneg").css('color','black');
        $("#ind_eneg").html('Energy');
		$("#ind_enersub").hide();
		$("#ind_food").css('font-weight','normal');
        $("#ind_food").css('color','black');
        $("#ind_food").html('Other Industrial Applications');
        $("#ind_foodsub").hide();
		$("#ind_glass").css('font-weight','normal');
        $("#ind_glass").css('color','black');
        $("#ind_glass").html('Glass');
		$("#ind_glasssub").hide();
		
		//open energy div
		$("#ind_nano").css('font-weight','bold');
        $("#ind_nano").css('color','green');
        $("#ind_nano").html('&bull; Nanotechnology');
		$("#ind_nanosub").fadeIn('slow');	
	});

});

