


$(document).ready(function(){
				$("#blog_category").fadeTo(0, 0.7);

$("#blog_category").mouseover(function() {	
	$(this).fadeTo(200, 1);
});

$("#blog_category").mouseout(function() {	
	$(this).fadeTo(200, 0.7);
	
});


						   
						   $(".tweet").tweet({join_text:"auto",username:"donovancreative",avatar_size:32,count:3,auto_join_text_default:"",auto_join_text_ed:"",auto_join_text_ing:"",auto_join_text_reply:"",auto_join_text_url:"",loading_text:"loading tweets..."})});var currentImg=1; function jumpTo(a,d,b,c){$("#carousel_nav_1").removeClass("current");$("#carousel_nav_2").removeClass("current");$("#carousel_nav_3").removeClass("current");$("#carousel_nav_4").removeClass("current");$("#carousel_nav_5").removeClass("current");$("#carousel_nav_6").removeClass("current");current_nav="#carousel_nav_"+a;$(current_nav).addClass("current");a!=currentImg&&$(document).ready(function(){$("#carousel_1").css("visibility","visible");$("#carousel_2").css("visibility","visible");$("#carousel_3").css("visibility","visible");$("#carousel_4").css("visibility", "visible");$("#carousel_5").css("visibility","visible");$("#carousel_6").css("visibility","visible");document.getElementById("case_title").innerHTML=d+' &bull; <a href="'+b+'" title="VIEW '+c+'">VIEW '+c+"</a>";document.getElementById("case_image").href=b;currentImgDiv="#carousel_"+currentImg;newImgDiv="#carousel_"+a;$("#carousel_1").fadeTo(0,0);$("#carousel_2").fadeTo(0,0);$("#carousel_3").fadeTo(0,0);$("#carousel_4").fadeTo(0,0);$("#carousel_5").fadeTo(0,0);$("#carousel_6").fadeTo(0,0);$(currentImgDiv).fadeTo(0,1);$(currentImgDiv).fadeTo(300,0);$(newImgDiv).fadeTo(300, 1);currentImg=a})}autoRotateInterval=setInterval("autoRotate()",5000);function autoRotate(){j=jumpToArrayPosition;jumpTo(jumpToArray[j][0],jumpToArray[j][1],jumpToArray[j][2],jumpToArray[j][3]);jumpToArrayPosition<jumpToArray.length-1?jumpToArrayPosition++:jumpToArrayPosition=0






};

(function(c){c.fn.tweet=function(e){function h(a){var d=Date.parse(a.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i,"$1,$2$4$3")),d=parseInt(((arguments.length>1?arguments[1]:new Date).getTime()-d)/1E3),c=function(a,b){return""+b+" "+a+(b==1?"":"s")};return d<60?"less than a minute ago":d<3600?"about "+c("minute",parseInt(d/60))+" ago":d<86400?"about "+c("hour",parseInt(d/3600))+" ago":"about "+c("day",parseInt(d/86400))+" ago"}function j(){var b="https:"==document.location.protocol?"https:": "http:";if(a.list)return b+"//api.twitter.com/1/"+a.username[0]+"/lists/"+a.list+"/statuses.json?per_page="+a.count+"&callback=?";else if(a.query==null&&a.username.length==1)return b+"//api.twitter.com/1/statuses/user_timeline.json?screen_name="+a.username[0]+"&count="+a.count+"&callback=?";else{var c=a.query||"from:"+a.username.join(" OR from:");return b+"//search.twitter.com/search.json?&q="+escape(c)+"&rpp="+a.count+"&callback=?"}}var a={username:["donovancreative"],list:null,avatar_size:null, count:3,intro_text:null,outro_text:null,join_text:null,auto_join_text_default:"i said,",auto_join_text_ed:"i",auto_join_text_ing:"i am",auto_join_text_reply:"i replied to",auto_join_text_url:"i was looking at",loading_text:null,query:null};e&&c.extend(a,e);c.fn.extend({linkUrl:function(){var a=[],d=/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi;this.each(function(){a.push(this.replace(d,'<a href="$1" target="_blank">$1</a>'))});return c(a)},linkUser:function(){var a= [],d=/[\@]+([A-Za-z0-9-_]+)/gi;this.each(function(){a.push(this.replace(d,'<a href="http://twitter.com/$1" target="_blank">@$1</a>'))});return c(a)},linkHash:function(){var b=[],d=/(?:^| )[\#]+([A-Za-z0-9-_]+)/gi;this.each(function(){b.push(this.replace(d,' <a href="http://search.twitter.com/search?q=&tag=$1&lang=all&from='+a.username.join("%2BOR%2B")+'" target="_blank">#$1</a>'))});return c(b)},capAwesome:function(){var a=[];this.each(function(){a.push(this.replace(/\b(awesome)\b/gi,'<span class="awesome">$1</span>'))}); return c(a)},capEpic:function(){var a=[];this.each(function(){a.push(this.replace(/\b(epic)\b/gi,'<span class="epic">$1</span>'))});return c(a)},makeHeart:function(){var a=[];this.each(function(){a.push(this.replace(/(&lt;)+[3]/gi,"<tt class='heart'>&#x2665;</tt>"))});return c(a)}});return this.each(function(b,d){var f=c('<ul class="tweet_list">').appendTo(d),e='<p class="tweet_intro">'+a.intro_text+"</p>",i='<p class="tweet_outro">'+a.outro_text+"</p>",g=c('<p class="loading">'+a.loading_text+"</p>"); if(typeof a.username=="string")a.username=[a.username];a.loading_text&&c(d).append(g);c.getJSON(j(),function(b){a.loading_text&&g.remove();a.intro_text&&f.before(e);b=b.results||b;c.each(b,function(d,b){a.join_text=="auto"&&(b.text.match(/^(@([A-Za-z0-9-_]+)) .*/i)||b.text.match(/(^\w+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+) .*/i)||b.text.match(/^((\w+ed)|just) .*/im)||b.text.match(/^(\w*ing) .*/i));h(b.created_at);var e="<p>"+c([b.text]).linkUrl().linkUser().linkHash().makeHeart().capAwesome().capEpic()[0]+ "</p>";f.append(e)});a.outro_text&&f.after(i);c(d).trigger("loaded").trigger(b.length==0?"empty":"full")})})}})(jQuery);



