
jQuery().ready(function(){

/* TABS */	
 //hide the all of the element with class msg_body
  $(".tab_body").hide();
  $(".active-tab").show();
  //toggle the componenet with class msg_body
  $(".tab_head").click(function()
  {
    $(this).toggleClass('tab_open');
    $(this).next(".tab_body").slideToggle("fast");
    $(this).next(".tab_body").removeClass("active-tab");
  });

/* Envo Colors*/
 
 
$(".options .enB").hover(
	function(){$(".envo-image img").css("left","-200px");},
	function(){$(".envo-image img").css("left","0px");}
);
$(".options .enY").hover(
	function(){$(".envo-image img").css("left","-400px");},
	function(){$(".envo-image img").css("left","0px");}
);
$(".options .enC").hover(
	function(){$(".envo-image img").css("left","-600px");},
	function(){$(".envo-image img").css("left","0px");}
);
 

/* ProductTABS */	
//hide the all of the element with class protab_body
  $(".protab_body").hide();
  $(".active-tab").show();
  //toggle the componenet with class protab_body
  $(".tab_head").click(function() {
    //$(this).toggleClass('tab_open');
    $(this).next(".protab_body").slideToggle("fast");
    $(this).next(".protab_body").removeClass("active-tab");
    //$(this).siblings(".options_info").animate({opacity: 0}, 10 );
  }); 

/* ORDER TABS */	
 //hide the all of the element with class msg_body
  $(".ordTab_body").hide();
  //toggle the componenet with class msg_body
  $(".ordTab_head").bind("click", function()
  {
    $(this).toggleClass('ordTab_open');
    $(this).prev(".ordTab_Text").toggle();
    //$(this).next(".ordTab_body").load("options.php");
    $(this).next(".ordTab_body").toggle();
    $(this).next(".ordTab_body").children("select").toggleClass("required");
    
  });  
	// validate signup form on keyup and submit
	$("#orderForm").validate();


	var path = location.pathname.substring(1);
	$('#mainNav a[@href$="' + path + '"]').toggleClass('indexHere');
	
	/* LightBox */
	$('a[rel*=lightbox]').lightbox();  	
	
});
