$(document).ready(function(){$("#slider").easySlider({auto:true,continuous:true});});$(document).ready(function(){$("#twitter").getTwitter({userName:"FruitsInTheCity",numTweets:9,loaderText:"Loading tweets...",slideIn:true,showHeading:false,headingText:"Recent tweets",showProfileLink:false});});Cufon.replace("ul#nav, .post h2, .pages h2,.post h4, .pages h4, #tweet_title, #newsletter h2",{hover:{color:"#ffa604"}});Cufon.replace(".more-link, #submit");Cufon.replace("#header h1",{textShadow:"1px 1px 0px #5e7c31"});this.tooltip=function(){xOffset=60;yOffset=20;$("a.tooltip").hover(function(e){this.t=this.title;this.title="";$("body").append("<p id='tooltip'>"+this.t+"</p>");$("#tooltip").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px").fadeIn("fast");},function(){this.title=this.t;$("#tooltip").remove();});$("a.tooltip").mousemove(function(e){$("#tooltip").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px");});};$(document).ready(function(){tooltip();});$(document).ready(function(){$("#contentWrapper").fadeIn("1000");$(".post").fadeIn("1000");$(".page").fadeIn("1000");});$(document).ready(function(){jQuery.localScroll();});$(document).ready(function(){$("#sidebar li a").nudge();$("#footer li a").nudge();});jQuery.fn.nudge=function(params){params=jQuery.extend({amount:10,duration:300,property:"padding",direction:"left",toCallback:function(){},fromCallback:function(){}},params);this.each(function(){var jQueryt=jQuery(this);var jQueryp=params;var dir=jQueryp.direction;var prop=jQueryp.property+dir.substring(0,1).toUpperCase()+dir.substring(1,dir.length);var initialValue=jQueryt.css(prop);var go={};go[prop]=parseInt(jQueryp.amount)+parseInt(initialValue);var bk={};bk[prop]=initialValue;jQueryt.hover(function(){jQueryt.stop().animate(go,jQueryp.duration,"",jQueryp.toCallback);},function(){jQueryt.stop().animate(bk,jQueryp.duration,"",jQueryp.fromCallback);});});return this;};$(document).ready(function(){$("#target").fold();});$(document).ready(function(){$(".zoom").colorbox({maxWidth:"80%",maxHeight:"80%"});});
