$(function(){$("#career_form").iframer({onComplete:function(b){$("#return").html(b).show()}});$(window).bind("load",function(){$(".inputClear").focus(function(){if($(this).attr("rel"))$(this).val()==$(this).attr("rel")&&$(this).val("");else $(this).attr("rel",$(this).val()).val("")}).blur(function(){$(this).val()==""&&$(this).val($(this).attr("rel"))})});$("#pd_return").hide();$("#privatedining_form").submit(function(){chkeml=$("#pd_eml").checkEmail();fullname=$("#pd_name").val();email=$("#pd_eml").val(); title=$("#pd_title").val();enquiry=$("#pd_enq").val();chkeml&&$.ajax({type:"GET",url:"media/pd/process.php",data:"email="+email+"&fullname="+fullname+"&title="+title+"&enquiry="+enquiry,success:function(b){b=="complete"?$("#pd_return").html("Thanks for your enquiry").show():$("#pd_return").html("There was an issue with your entry").show()}});return false});$("#baf_return").hide();$("#baf").submit(function(){chkeml=$("#baf_eml").checkEmail();name=$("#baf_name").val();emlval=$("#baf_eml").val();$("#baf_eml").val("").addClass("loading"); $("#baf_name").val("").addClass("loading");if(chkeml)$.ajax({type:"GET",url:"media/baf/process.php",data:"emailadd="+emlval+"&name="+name,success:function(b){switch(b){case "failed":message="Error adding to the database";$("#baf_return").html(message).fadeIn();$("#baf_eml, #baf_name").removeClass("loading");break;case "success":message='<p style="background-color: #339900; color: #ffffff; border: none;"> Thank you. Your email was added.</p>';$("#baf").slideUp();$("#baf_return").html(message).fadeIn(); $("#baf_eml, #baf_name").val("").removeClass("loading");break;case "email":message="Your email address is already registered";$("#baf_return").html(message).fadeIn();$("#baf_eml, #baf_name").removeClass("loading");$("#baf_return").delay(1900).slideUp()}}});else{$("#baf_return").html("Invalid email address.").slideDown();$("#baf_eml").removeClass("loading");$("#baf_name").removeClass("loading");$("#baf_return").delay(1900).html("Invalid email address.").slideUp()}return false});(function(){var b={children:"span", offstage:{opacity:0},onstage:{opacity:1},ext:{queue:false,duration:750,easing:"swing"}};$("#tabs a").children("span").css(b.offstage).end().bind("mouseover focus",function(){$(this).children(b.children).animate(b.onstage,{queue:b.ext.queue,duration:b.ext.duration,easing:b.ext.easing})}).bind("mouseout blur",function(){$(this).children(b.children).animate(b.offstage,{queue:b.ext.queue,duration:b.ext.duration,easing:b.ext.easing})})})();if($("#offer_box").length){var a={switcher:$("#offer_box div"), control:$("#offers_control a"),interval:4E3,offstage:{left:-400},onstage:{left:0},extras:{queue:false,duration:500,easing:"swing"},c:0};a.switcher.css(a.offstage).eq(0).css(a.onstage);a.control.removeClass("offers_btn_on").eq(a.c).addClass("offers_btn_on");var d=setInterval(function(){if(a.c>=a.switcher.length-1)a.c=0;else a.c++;a.switcher.animate(a.offstage,{queue:a.extras.queue,duration:a.extras.duration,easing:a.extras.easing}).eq(a.c).animate(a.onstage,{queue:a.extras.queue,duration:a.extras.duration, easing:a.extras.easing});a.control.removeClass("offers_btn_on").eq(a.c).addClass("offers_btn_on")},a.interval);a.control.bind("click",function(){clearInterval(d);var b=a.control.index(this);a.control.removeClass("offers_btn_on").eq(b).addClass("offers_btn_on");a.switcher.animate(a.offstage,{queue:a.extras.queue,duration:a.extras.duration,easing:a.extras.easing}).eq(b).animate(a.onstage,{queue:a.extras.queue,duration:a.extras.duration,easing:a.extras.easing});return false})}$("#main_image").simpleCycle(); var c=$("#booking_hide_btn");c.toggle(function(){$("#booking_container").animate({duration:900,queue:false,left:940,easing:"swing"});c.removeClass("booking_hide");c.addClass("booking_show")},function(){$("#booking_container").animate({duration:900,queue:false,left:630,easing:"swing"});c.removeClass("booking_show");c.addClass("booking_hide")});$("div.faq").length>0&&$("div.faq").accordion()});


$(function(){
	$('#slider').anythingSlider({
		autoPlay: false,
		enableStartStop: false,
		width: 610,
		height: 240,
		resizeContents: true
	});
});
