$(document).ready(function(){$("#playBtn").addGlow();$("#mainNav a").hover(function(){$(this).stop().animate({backgroundPosition:"(0px 0px)"},{duration:150},"swing")},function(){$(this).stop().animate({backgroundPosition:"(0px 80px)"},{duration:150},"swing")});$("a[rel='external']").click(function(){this.target="_blank"})});prepHome=function(){$("#home #content h1").width($(window).width()-20);$("#home #content h1").height(0).css({top:"0","border-width":"0"}).width($(window).width()-20);$("#home #content #directorsIllustrationWrapper").height(0).css({opacity:"0"})};fadeInHome=function(){$("#home #content h1").queue(function(){$(this).css({"border-bottom":"4px solid #fff"});$("#home #content #directorsIllustrationWrapper").animate({height:"272"},{duration:200,queue:false}).animate({opacity:1},500);$(this).animate({top:"270"},200);$(this).delay(50);$(this).animate({top:"182",height:"88",borderBottomColor:"#00ab4b"},200);$(this).dequeue()});$(".directorInfo").hover(function(){$(this).children("p").toggle()},function(){$(this).children("p").toggle()});$(window).resize(function(){$("#home #content h1").width($(window).width()-20)})};prepHeaders=function(){$("#headerImgInner").height(0).css({"border-bottom":"4px solid #fff"});$("#headerImgInner img").hide()};fadeInHeaders=function(){$("#headerImgInner").animate({height:"242px",top:"0px"},250,function(){$(this).animate({borderWidth:"0px"})});$("#headerImgInner img").fadeIn()};serviceIcons=function(){$("#services .icons a.icon").hover(function(){thisToolTip=$("#"+$(this).attr("id")+"Tip");thisToolTip.toggleClass("hidden");var b=$(this).width();var a=$(this).height();$(this).stop().animate({height:a+18,width:b+17,bottom:"35px",marginLeft:"-8px",zIndex:3},{duration:150},"swing")},function(){thisToolTip=$("#"+$(this).attr("id")+"Tip");thisToolTip.toggleClass("hidden");if($(this).attr("id")=="phoneReservationsIcon"){$(this).stop().animate({height:"62px",width:"21px",bottom:"40px",marginLeft:"0",zIndex:0},150,"swing",function(){$("#"+$(this).attr("id")+"Tip").children("p").hide()})}else{$(this).stop().animate({height:"62px",width:"56px",bottom:"40px",marginLeft:"0",zIndex:0},150,"swing",function(){$("#"+$(this).attr("id")+"Tip").children("p").hide()})}});$("#services .icons a.icon").click(function(a){thisToolTip=$("#"+$(this).attr("id")+"Tip");if(thisToolTip.children("p:visible").length>0){thisToolTip=$("#"+$(this).attr("id")+"Tip");thisToolTip.children("p").stop().animate({paddingTop:"0",paddingBottom:"0"},{duration:10}).slideUp(250)}else{thisToolTip=$("#"+$(this).attr("id")+"Tip");thisToolTip.children("p").width(thisToolTip.children("a").width()).stop().animate({paddingTop:"10px",paddingBottom:"10px"},{duration:10}).slideDown(250)}return false})};cmMap=function(){$("#smallMapContainer a").click(function(){$("#largeMap").slideToggle(300);return false});$("#largeMap #closeTheMap").click(function(){$("#largeMap").slideToggle();return false});$("#largeMap a.mapMarker").hover(function(){thisInfoMarker=$(this).attr("id");thisInfoMarker=thisInfoMarker.substring(0,thisInfoMarker.length-4);thisInfoBox=$("#"+thisInfoMarker+"InfoBox");thisInfoBox.toggleClass("hidden")},function(){thisInfoBox.toggleClass("hidden");$(this).stop()});$("#largeMap a.mapMarker").click(function(){return false});$("#mapImgLink").hover(function(){$("#smallMapContainer h2").toggleClass("hovered")},function(){$("#smallMapContainer h2").toggleClass("hovered")});function a(d,b,c){b.css({WebkitTransform:"rotate("+d+"deg)"});b.css({"-moz-transform":"rotate("+d+"deg)"});timer=setTimeout(function(){if(c===true){timer=null;b.css({WebkitTransform:"rotate("+0+"deg)"});b.css({"-moz-transform":"rotate("+0+"deg)"})}else{a(++d,b)}},1)}};theTeam=function(){$(".bgImg, .hotSpot, #description").hide();$("#content").append('<div id="teamLoader"></div>');var b={lines:9,length:24,width:6,radius:15,color:"#fff",speed:1,trail:46,shadow:false};var c=document.getElementById("teamLoader");var a=new Spinner(b).spin(c);$("a.hotSpot").hover(function(){$(this).append('<div class="nameTip"><span>'+$(this).text().split(" ")[0]+"</span></div>")},function(){$(this).children("div.nameTip").remove()});$("a.hotSpot").click(function(){thisPersonName=$(this).attr("id");thisPersonName=thisPersonName.substring(0,thisPersonName.length-4);thisProfile=$("#"+thisPersonName+"Profile");$("#description").css("top","auto").stop().animate({bottom:"140px",height:"0"},350,function(){$(this).children(".person").hide();thisProfile.show();$(this).stop().animate({bottom:"140px",height:"571px"},350)});return false})};fadeInTheTeam=function(){$(".bgImg, .hotSpot, #description").delay(100).fadeIn("slow",function(){$("#teamLoader").fadeOut()})};
