$().ready(function(){$('#menuMain li a').not('.current').hover(function(){$(this).animate({color:'#8fc73e'},250);},function(){$(this).stop().animate({color:'#000000'},250);});$('#menuMain li a').mousedown(function(){$(this).animate({color:'#ee2a2a'},250);});$('#menuSub li a').not('.current').hover(function(){$(this).animate({backgroundColor:'#7db036'},250);$(this).animate({color:'#000000'},250);},function(){$(this).animate({backgroundColor:'#8fc73e'},100);});$('#menuSub li a').mousedown(function(){$(this).animate({color:'#ffffff'},250);});var hasFocus=null;$('.button').hover(function(){$(this).animate({backgroundColor:'#7db036'},250);},function(){$(this).stop().animate({backgroundColor:'#8fc73e'},400);});$('label').hover(function(){if(hasFocus!=$(this).attr('for')){$(this).animate({backgroundColor:'#e3f1cf'},250);$(this).children('span').animate({color:'#000000'},250);}},function(){if(hasFocus==$(this).attr('for')){$(this).stop();$(this).children('span').stop();}else{$(this).stop().animate({backgroundColor:'#ffffff'},400);$(this).children('span').stop().animate({color:'#000000'},400);}});$('input[type="text"]').add('textarea').focus(function(){$(this).parent().animate({backgroundColor:'#8fc73e'},250);$(this).parent().children('span').stop().animate({color:'#ffffff'},250);hasFocus=$(this).parent().attr('for');});$('input[type="text"]').add('textarea').blur(function(){$(this).parent().animate({backgroundColor:'#ffffff'},250);$(this).parent().children('span').stop().animate({color:'#000000'},250);hasFocus=null;});var container=$('ul#error');if($("#contact")){$("#contact").validate({errorLabelContainer:"#formError",errorElement:"em",wrapper:'span',rules:{name:{required:true,minlength:3},company:"required",email:{required:true,email:true},telephone:{required:true,minlength:6},subject:"required",message:"required"},messages:{name:{required:"Enter your name"},company:"Enter your company name",email:{required:"Enter your email address",email:"Invalid email address"},telephone:{required:"Enter your telephone number"},subject:"Enter a subject",message:"Enter a message"}});}});