// JavaScript Document

/*index*/
$(document).ready(function(){
   var maxHeight = 0;
   $(".box_in ul").each(function(){
	 if( $(this).height() > maxHeight )
	 {
		 maxHeight = $(this).height();
		 }
	 }); 
	 
	$(".box_in ul").each(function(){
		
		$(this).height(maxHeight);		
		  
	 });	
});

/*stock program*/
$(document).ready(function(){
 $(".stock_programm span").click(function(){
	if ($(this).parent(".stock_programm").next(".stock_sub").css("display")=="none")
	{ $(this).parent(".stock_programm").next(".stock_sub").show();
	  $(this).parent(".stock_programm").css("background","url(images/arrow-bottom2.jpg) left center no-repeat");
		}
	else{
		$(this).parent(".stock_programm").next(".stock_sub").hide();
		$(this).parent(".stock_programm").css("background","url(images/arrow-right2.jpg) left center no-repeat");
		}
	 
	});

 });
/*-----product------*/
$(document).ready(function(){
  $("#advanced_button").click(function(){
  if ($("#advanced_search").css("display")=="none")
  {
	  $("#advanced_search").slideDown(500);
	  $("#advanced_button").css("background","url(images/arrow-bottom.jpg) 5px center no-repeat");
	  }
	  else
	  {
      $("#advanced_search").slideUp(500);  
	  $("#advanced_button").css("background","url(images/arrow-right.jpg) 5px center no-repeat");
	}
 }); 
});

/*-----about------*/
$(document).ready(function(){
   $(".p_follow").eq(0).show();
   $("#em_bn #em").addClass("active_li");
   $("#em_bn #em").click(function(){
	   $("#em_bn #em").addClass("active_li");
	   $("#em_bn #bn").removeClass("active_li");
	   $(".p_follow").eq(0).show();	 
	   $(".p_follow").eq(1).hide(); 
	});	
   $("#em_bn #bn").click(function(){
	   $("#em_bn #bn").addClass("active_li");
	   $("#em_bn #em").removeClass("active_li");
	   $(".p_follow").eq(0).hide();
	   $(".p_follow").eq(1).show();	   
	});	
});

/*-----faq------*/
$(document).ready(function(){
	$(".faq_in_title").click(function(){
     var $a=$(this).next(".faq_in_con");
	if ($a.css("display")=="none")
	{
		$a.show();
    }	
	else
	{
        $a.hide();
	}	
   });
});

$(document).ready(function(){
   var maxheight = 0;
   $(".applied_in").each(function(){
	   if($(this).height() > maxheight)
        {
			maxheight = $(this).height();
			}

	   });	
	$(".applied_in").each(function(){
	
	$(this).height(maxheight);
	});

});
