$(document).ready(function(){$("ul.sf-menu").superfish({delay:500,animation:{opacity:"show",height:"show"},speed:"fast",autoArrows:false,dropShadows:false});$("ul.sf-menu li").hover(function(){$(this).children("a").addClass("hover")},function(){$(this).children("a").removeClass("hover")});function e(){var f=$("#slideshow div.active");if(f.length==0){f=$("#slideshow div:last")}var g=f.next().length?f.next():$("#slideshow div:first");f.addClass("last-active");g.css({opacity:0}).addClass("active").animate({opacity:1},1500,function(){f.removeClass("active last-active")})}setInterval(e,5000);$("a#newsletterSignUp").myModal({popupHeight:300,initialMessage:"Sign Up To Our Newsletter!",closeLink:"Close",closeMessage:"Goodbye!",sentMessage:"Thanks For Signing Up",opacity:0.7,ajaxFormUrl:"/jeffreyjaye-remote/ajax/form_newsletter.php",ajaxValidationUrl:"/jeffreyjaye-remote/ajax/form_validation.php"});$("a#leaveFeedback").myModal({popupHeight:400,initialMessage:"Please Leave Us Some Feedback",closeLink:"Close",closeMessage:"Goodbye!",sentMessage:"Many thanks for your feedback",opacity:0.7,ajaxFormUrl:"/jeffreyjaye-remote/ajax/form_feedback.php",ajaxValidationUrl:"/jeffreyjaye-remote/ajax/form_validation.php"});var d=$(".errors");d.hide();d.slideDown("slow");$("input.btn").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")});var a=$("form.search input:not(:submit)");var c=a.val();a.focus(function(){if($(this).val()==c){a.val("")}});$("input.btn").focus(function(){$(this).addClass("hover")});$("form:not(.search) input:not(:submit),textarea ").focus(function(){$(this).addClass("inputFocus")}).blur(function(){$(this).removeClass("inputFocus")}).keyup(function(){$(this).removeClass("inputFocus")});$("fieldset").each(function(){var f=$("legend",this).remove().text();$("<h3></h3>").text(f).prependTo(this)});function b(g){var k=[],j;var f=g.slice(g.indexOf("?")+1).split("&");for(var h=0;h<f.length;h++){j=f[h].split("=");k.push(j[0]);k[j[0]]=j[1]}return k}$(".success").hide().slideDown("slow").delay(5000).fadeOut("slow",function(){location.href="contact"});$("#loading").ajaxStart(function(){$(this).show()}).ajaxStop(function(){$(this).hide()})});
