	function movecircles(direction){
		if(!direction) direction = 1;
		newleft1 = parseInt($("#circles-one").css("left"))-direction*40;
		if(newleft1>0){newleft1 = -5000;}
		newleft2 = parseInt($("#circles-two").css("left"))-direction*100;
		if(newleft2>0){newleft2 = -5000;}
		if(newleft1<=-$("#circles-one").width()+$(window).width()+40&&newleft1<0){
			newleft1 = 0;
		}
		if(newleft2<=-$("#circles-two").width()+$(window).width()+100&&newleft2<0){
			newleft2 = 0;
		}
		$("#circles-one").animate({
			left: newleft1
		},800);
		$("#circles-two").animate({
			left:newleft2
		},800);
	}

	function submitFrm(frm){
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
		if(filter.test($('#email').val())){
			if($('#comment').val()){
				$.post("http://www.clear-web-solutions.com/contact.jx.php", {email: $('#email').val(), name: $('#name').val(), phone: $('#phone').val(), comment: $('#comment').val()}, function(){
					$("#contact").hide();
					$("#success").addClass('success');
					$("#success").html("Thanks! I'll check your message and will get back to you shortly.");
				});

			}else{
				$('#contactFrmError').html('No message - No reply!');
			}
		}else{
			$('#contactFrmError').html('Hey, how would I reply you without your email?');
		}
	}

