/*
 * (c) 2008-09 Jason Crosse www.Antanova.com
 * Client: Arc-on
 */
$(document).ready(function(){antanova.zoom()});var antanova={ie6:function(){$(".catpage li").hover(function(a){this.style.backgroundColor="#A1C7DF"},function(a){this.style.backgroundColor="transparent"})},zoom:function(){$("#bigimg").load(function(){$(this).animate({opacity:1},750)});$(".images ul a").attr("rel",function(){return this.href}).attr("href","javascript:void(0);").click(function(c){var a=this;var b=$("#bigimg").attr("src").split("/");if(b.pop()==a.rel.split("/").pop()){return}$("#bigimg").animate({opacity:0},750,function(){$(this).attr("src",a.rel)})})},tables:function(){$("tr:nth-child(odd)").css("background-color","#f8f8f8")},email:function(){$("#e").html('<a href="mailto:'+String.fromCharCode(105,97,110,64,97,114,99,45,111,110,46,99,111,46,117,107)+'">'+String.fromCharCode(105,97,110,64,97,114,99,45,111,110,46,99,111,46,117,107)+"</a>")},newspics:function(){$("#newsimages").prepend('<p class="enlarged"><img id="enlarged" src="#" alt="Enlarged image"></p>');$("#newsimages li a").attr("rel",function(){return this.href}).attr("href","javascript:void(0);").click(function(){var a=this.rel;if(this.rel.split("/").pop()==$("#enlarged").attr("src").split("/").pop()){if($(".enlarged").is(":hidden")){$(".enlarged").slideDown()}else{$(".enlarged").slideUp()}}else{$(".enlarged").slideUp("normal",function(){$("#enlarged").attr("src",a).load(function(){$(".enlarged").slideDown()})})}})},gallery:function(){$(".rgalleryi img").load(function(){$(this).animate({opacity:1},750)});$("#newsimages li a").attr("rel",function(){return this.href}).attr("href","javascript:void(0);").click(function(){var a=this.rel;if(this.rel.split("/").pop()==$(".rgalleryi img").attr("src").split("/").pop()){return}else{$(".rgalleryi img").animate({opacity:0},750,function(){$(".rgalleryi img").attr("src",a)})}})},racingThumbs:function(){$(".anthumb").hover(function(){window.status=$(this).find(".ancaption a").attr("href")},function(){window.status=""}).click(function(){window.location=$(this).find(".ancaption a").attr("href")})},allProducts:function(){$("#allprods .apcat").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")}).click(function(){window.location=$(this).find(".aplink a").attr("href")});$("#allprods .apimg").click(function(){})},validate:function(b){var a="";if(b.title.value.length==0){a+="Please enter your title in the box provided\n\n"}if(b.firstname.value.length==0){a+="Please enter your first name in the box provided\n\n"}if(b.surname.value.length==0){a+="Please enter your surname in the box provided\n\n"}if(b.eaddr.value.length==0){a+="Please enter your email address in the box provided\n\n"}else{if(!(/^.+\@.+\..{2,5}/.test(b.eaddr.value))){a+="Please check the email address you have entered is correct\n\n"}}if(b.contactno.value.length==0){a+="Please enter your phone number in the box provided\n\n"}if(b.address1.value.length==0){a+="Please enter the first line of your address in the box provided\n\n"}if(b.town.value.length==0){a+="Please enter your town in the box provided\n\n"}if(b.postcode.value.length==0){a+="Please enter your postcode in the box provided\n\n"}else{if(!(/^[A-PR-UWYZ][A-HK-Y0-9][A-HJKSTUW0-9]?[ABEHMNPRVWXY0-9]? [0-9][ABD-HJLNP-UW-Z]{2} *$/i.test(b.postcode.value))){a+="Please check the postcode you have entered is correct\n\n"}}if(a!=""){alert(a);return false}else{return true}},cvalidate:function(b){var a="";if(b.cname.value.length==0){a+="Please enter your name in the box provided\n\n"}if(b.cemail.value.length==0){a+="Please enter your email address in the box provided\n\n"}else{if(!(/^.+\@.+\..{2,5}/.test(b.cemail.value))){a+="Please check your email address is correct\n\n"}}if(b.cmessage.value.length==0){a+="Please enter your message in the box provided\n\n"}if(a!=""){alert(a);return false}else{return true}}};