var RecaptchaOptions = { theme : 'clean', lang : 'en' };$(function(){$("#mini-pics img:gt(0)").hide();setInterval(function(){$("#mini-pics :first-child").fadeOut().next("img").fadeIn().end().appendTo("#mini-pics")},5000);$("a[rel=gallery]").fancybox({transitionIn:"none",transitionOut:"none",titlePosition:"over",overlayOpacity:0.8,overlayColor:"#666",titleFormat:function(d,c,a,b){return'<span id="fancybox-title-over">'+(a+1)+" / "+c.length+"&nbsp;&nbsp;&nbsp;&nbsp;3D Archaeological Society</span>"}})});$.ajaxSetup({type:"post"});function validate(){var a=document.emailer;if(!(a.name.value)){$("#error").html("Invalid name!");a.name.focus();return false}else{if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(a.email.value))){$("#error").html("Invalid e-mail address!");a.email.focus();return false}else{if(!(a.message.value)){$("#error").html("Please enter your message!");a.message.focus();return false}else{$.ajax({url:"email.php",data:$("form[name=emailer]").serialize(),success:function(b){if(b==="failed"){$("#error").html("Humanity test failed. Please try again");$("#recaptcha_response_field").focus()}else{$("#email-form").html(b)}}});return false}}}};
