function fDoMenu(g,f){var b=$("div#Navigation ul li a"),c;var e=$("ul#Shortcuts li a");for(c=0;c<b.length;c++){$(b[c]).removeClass("active");$(b[c]).addClass("inactive");$(b[c]).unbind("click");$(b[c]).click(function(){return fDoMenu(this);});if(b[c].title==g.title){$(b[c]).removeClass("inactive");$(b[c]).addClass("active");$(b[c]).unbind("click");$(b[c]).click(function(){return false;});if((b[c].title!="home")&&(b[c].title!="about")){$("ul#bullets").fadeIn();$("ul#Shortcuts").fadeIn();}else{$("ul#bullets").hide();$("ul#Shortcuts").hide();}}}for(c=0;c<e.length;c++){$(e[c]).unbind("click");$(e[c]).unbind("mouseenter").unbind("mouseleave");if(e[c].title==g.title){$(e[c]).click(function(){return false;});$(e[c]).find("img").hide();}else{$(e[c]).find("img").show();$(e[c]).hover(function(){$(this).find("img").fadeOut();},function(){$(this).find("img").fadeIn();});$(e[c]).click(function(){return fDoMenu(this);});}}var a=$("#"+g.title);$("div#Content div").hide();$("div#"+g.title+" div").show();a.fadeIn();Cufon.refresh("a");return false;}function setPageFonts(a){Cufon.set("fontFamily",a);Cufon.replace("a",{hover:true});Cufon.replace("a");Cufon.replace("h1");Cufon.replace("h3");}function fCallPlayer(b){var a="Player";setTimeout("AC_FL_RunContent( 'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','220','height','306','id','wimpy3765','src','http://www.gohittheroad.co.uk/wimpy/wimpy','flashvars','wimpyReg=NnQ4JTVETXE0UCUyNiU3RiU0MFY5dUlXd1hHWSU3RG1fRiU3QjhKUlolM0NrbUF0bmhX&wimpyApp=http://www.gohittheroad.co.uk/wimpy/playlist.xml&wimpySkin=http://www.gohittheroad.co.uk/wimpy/skins/askin_GHTR2.xml&theVolume=75&startPlayingOnload="+b+"&ecomWindow=_blank','loop','false','menu','false','quality','high','wmode','transparent','scale','noscale','salign','lt','name','wimpy3765','align','center','bgcolor','AC1F23','allowscriptaccess','always','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','http://www.gohittheroad.co.uk/wimpy/wimpy','_layer','"+a+"')",2000);}function fInitPage(){$("div#Navigation ul li:first a").addClass("active").show();$("div#Content div#home").show();$("div#Navigation ul li a").click(function(){return fDoMenu(this);});$("div#home ul li a").click(function(){return fDoMenu(this);});$("div#home ul li a").hover(function(){$(this).find("img").fadeOut();},function(){$(this).find("img").fadeIn();});}function fInitForm(){d.getElementById("frmName").onchange=function(){this.value=fCapitalize(this.value);};d.getElementById("frmTel").onchange=function(){this.value=fRemoveNonNumeric(this.value);};d.getElementById("frmContact").onsubmit=function(){return fValidateEnquiry();};}function fRemoveNonNumeric(a){a=a.replace(/[\D]+/g,"");return a;}function fCapitalize(a){var c,a=a.toLowerCase();for(var b=1;b<a.length-1;b++){c=a.charAt(b)+a.charAt(b+1);if(/(\s\w)|(-\w)/.test(c)){a=a.substring(0,b)+c.toUpperCase()+a.substring(b+2,a.length);}a=a.charAt(0).toUpperCase()+a.substring(1,a.length);}return a;}function fValidateEnquiry(){var j=false,o="";var l="#FFFFCF";var i="#FFF";var f=d.getElementById("frmName");var a=d.getElementById("frmTel");var k=d.getElementById("frmEmail");var h=d.getElementById("frmMessage");var c=/^0\d{10}$/;var g=/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/;var b=/^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]*\.)+[a-zA-Z]{2,9})$/;if(f.value==""){f.style.backgroundColor=l;o+="Please give us a contact name\n";j=true;}else{f.style.backgroundColor=i;}if((!c.test(a.value))&&(g.test(k.value)||!b.test(k.value))){a.style.backgroundColor=l;k.style.backgroundColor=l;o+="Please give us a valid email address or a phone number\n";j=true;}else{a.style.backgroundColor=i;k.style.backgroundColor=i;}if(j){alert("The information you have submitted is incomplete.\n\n"+o+"\nPlease correct the errors above and re-submit the form.");return false;}else{return true;}}$(document).ready(function(){fInitPage();fInitForm();Cufon(document.getElementById("bullets").getElementsByTagName("li"));});var d=document;setPageFonts("GHTR");
