$(document).ready(function(){$("table tr:even").addClass("even");$("ul.sf-menu").superfish({delay:500,animation:{opacity:"show",height:"show"},speed:"fast",autoArrows:false,dropShadows:false});$("#moreImages img").mouseover(function(){var f=$(this).parents("a").attr("href");var e=b(f)["id"];$("#displayPreview").css({top:(2+$(window).scrollTop()+10)+"px",right:"10px"}).hide().load("/ajax/displayPreview.php",{value:e},function(){$(this).fadeIn("slow")})});$("#moreImages img").mouseout(function(){$("#displayPreview").html("")});$("#moreImages dt a").click(function(){return false});$("a#newsletterSignUp").myModal({popupHeight:300,initialMessage:"Sign Up To Our Newsletter!",closeLink:"Close",closeMessage:"Goodbye!",sentMessage:"Thanks For Signing Up",opacity:0.7,ajaxFormUrl:"/ajax/form_newsletter.php",ajaxValidationUrl:"/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:"/ajax/form_feedback.php",ajaxValidationUrl:"/ajax/form_validation.php"});var d=$(".errors");d.hide();d.slideDown("slow");$("#imageGallery").cycle({fx:"fade",pause:1,speed:2500,timeout:2000});$("input.btn").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")});var a=$("form.searchForm 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 e=$("legend",this).remove().text();$("<h3></h3>").text(e).prependTo(this)});function b(f){var j=[],h;var e=f.slice(f.indexOf("?")+1).split("&");for(var g=0;g<e.length;g++){h=e[g].split("=");j.push(h[0]);j[h[0]]=h[1]}return j}$(".lostPasswordSuccess").hide().slideDown("slow").delay(5000).fadeOut("slow",function(){location.href="login"});$("#loading").ajaxStart(function(){$(this).show()}).ajaxStop(function(){$(this).hide()})});
