// JavaScript Document

function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}

$(document).ready(function() {
	equalHeight($(".column"));

$('#header #menu ul li a').mouseenter(function() {
$('#menu01').slideDown("slow");

});
$('#header').mouseleave(function() {
$('#menu01').slideUp("slow");

});

//Showcase
$('.showcase01').click(function() {
window.location = "/products/optical/index.php"; 
});
$('.showcase02').click(function() {
window.location = "/products/solar/index.php"; 
});
$('.showcase03').click(function() {
window.location = "/products/nano/index.php"; 
});

//sidebar
$('.sidebar01').click(function() {
window.location = "/services/supply.php"; 
});
$('.sidebar02').click(function() {
window.location = "/services/support.php"; 
});
$('.sidebar03').click(function() {
window.location = "/services/integration.php"; 
});

//$("#menu ul li:first-child").attr('class', 'first');


   $("#menu ul li ul").addClass("jqhide");
    
   $("#menu ul li").hover(
   	function(){
	  $(this).children("ul").slideDown();
	},
	function(){
	  $(this).children("ul").slideUp();
	});

	 
 });






 