function tweet_callback(a){$.each(a,function(a,b){if(b.text!=undefined){var c=b.text.toString().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,'<a href="$1">$1</a>').replace(/(^|\s)@(\w+)/,'<a href="http://www.twitter.com/$2">@$2</a>').replace(/[#]+[A-Za-z0-9-_]+/ig,function(a){var b=a.replace("#","%23");return a.link("http://search.twitter.com/search?q="+b)});$("#tweet_container").append("<span>"+c+"</span>");$("#tweet_container").cycle({fx:"fade",speed:1e3,timeout:1e4,cleartype:1})}})}function gettweets(a,b){var c=a;var d=b;var e="tweet_callback";var f="http://twitter.com/statuses/user_timeline";var g="json";(function(){var a=document.createElement("script");a.type="text/javascript";a.async=true;a.src=f+"."+g+"?screen_name="+c+"&count="+d+"&callback="+e;(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a)})()}$(document).ready(function(){$("#dropmenu ul").css({display:"none"});$("#dropmenu li").hover(function(){$(this).find("ul:first").animate({height:"show"},150,"easeInOutCubic")},function(){$(this).find("ul:first").animate({height:"hide"},250,"easeInBack")})});$(document).ready(function(){$(".main-nav ul").css({display:"none"});$(".main-nav li").hover(function(){$(this).find("ul:first").animate({height:"show"},150,"easeInOutCubic")},function(){$(this).find("ul:first").animate({height:"hide"},250,"easeInBack")})});$(document).ready(function(){$(".hozbreak-top a").click(function(){$("html, body").animate({scrollTop:"0px"},300);return false})});$(document).ready(function(){$("#open").click(function(){$("div#panel").animate({height:"show"},900,"easeInOutCubic")});$(".contacttrigger").click(function(){$("div#panel").animate({height:"show"},900,"easeInOutCubic");$("#toggle a").toggle()});$(".droppaneltrigger").click(function(){$("div#panel").animate({height:"show"},900,"easeInOutCubic");$("#toggle a").toggle()});$("#close").click(function(){$("div#panel").animate({height:"hide"},600,"easeInBack")});$("#toggle a").click(function(){$("#toggle a").toggle()})});$(document).ready(function(){$("#stage-pause").click(function(){$(".stage-slider").cycle("pause")});$("#stage-resume").click(function(){$(".stage-slider").cycle("resume")});$("#stage-pauseresume").click(function(){$("#stage-pauseresume span").toggle()})});$(document).ready(function(){$(".socialinit").click(function(){$("div.socialicons").animate({width:"show"})});$(".socialhide").click(function(){$("div.socialicons").animate({width:"hide"})});$("#togglesocial li").click(function(){$("#togglesocial li").toggle()})});$(document).ready(function(){$(".group-slider").cycle({fx:"scrollHorz",timeout:0,speed:750,easing:"easeInOutExpo",prev:"#leftnav",next:"#rightnav"})});$(document).ready(function(){$(".mini-slider").cycle({fx:"scrollHorz",timeout:5e3,speed:750,easing:"easeInOutExpo",prev:"#leftnav",next:"#rightnav",cleartype:true,cleartypeNoBg:true});$("#pause").click(function(){$(".stage-slider").cycle("pause")});$("#resume").click(function(){$(".stage-slider").cycle("resume")});$("#toggle_slide_nav a").click(function(){$("#toggle_slide_nav a").toggle()})});$(document).ready(function(){var a=$("html").css("font-size");$(".resetFont").click(function(){$("html").css("font-size",a)});$(".increaseFont").click(function(){var a=$(".content-wrapper-inner").css("font-size");var b=parseFloat(a,10);var c=b*1.1;$(".content-wrapper-inner").css("font-size",c);return false});$(".decreaseFont").click(function(){var a=$(".content-wrapper-inner").css("font-size");var b=parseFloat(a,10);var c=b*.9;$(".content-wrapper-inner").css("font-size",c);return false})});$(document).ready(function(){$(".galleryimg,.shortcodeimg,.shortcodevid,.galleryvid").hover(function(){$(this).children("div").css("display","block");$(this).children("div").fadeTo("slow",.6)},function(){$(this).children("div").fadeTo("fast",0,function(){})})});$(document).ready(function(){$("form#contactForm").submit(function(){$("form#contactForm .error").remove();var a=false;$(".requiredField").each(function(){if(jQuery.trim($(this).val())==""){var b=$(this).prev("label").text();$(this).parent().append('<span class="error">You forgot to enter your '+b+".</span>");a=true}else if($(this).hasClass("email")){var c=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;if(!c.test(jQuery.trim($(this).val()))){var b=$(this).prev("label").text();$(this).parent().append('<span class="error">You entered an invalid '+b+".</span>");a=true}}});if(!a){var b=$(this).serialize();$.post($(this).attr("action"),b,function(a){$("form#contactForm").slideUp("fast",function(){$(this).before('<p class="thanks"><strong>Thanks!</strong> Your email was successfully sent. I check my email all the time, so I should be in touch soon.</p>')})})}return false})});$(document).ready(function(){$(".accordion").accordion({header:"h3.accordionhead",autoHeight:false})});$(document).ready(function(){$(".dyntabs").tabs({fx:{height:"toggle",duration:"fast"}})});$(document).ready(function(){$(".reveal-content").hide();$("h4.reveal").toggle(function(){$(this).addClass("ui-state-active")},function(){$(this).removeClass("ui-state-active ")});$("h3.reveal").toggle(function(){$(this).addClass("ui-state-active")},function(){$(this).removeClass("ui-state-active ")});$("h4.reveal").click(function(){$(this).next(".reveal-content").animate({height:"toggle"},{duration:300,easing:"easeInOutCubic"})});$("h3.reveal").click(function(){$(this).next(".reveal-content").animate({height:"toggle"},{duration:300,easing:"easeInOutCubic"})})});$(document).ready(function(){$("#lib-c").click(function(){if($(this).hasClass("sel")){$("#lib-p").animate({height:"0px",duration:300,easing:"easeInOutCubic"});$(this).removeClass("sel")}else{$("#lib-p").animate({height:"177px",duration:300,easing:"easeInOutCubic"});$(this).addClass("sel")}})})
