jQuery.noConflict();jQuery(document).ready(function(){jQuery("#menu-wrapper .menu").superfish()});jQuery(document).ready(function(){jQuery(".news-scroller").cycle({fx:"scrollVert",speed:1500,rev:true,timeout:4e3,next:".news-next",prev:".news-previous",easing:"easeInOutQuint",cleartypeNoBg:true})});jQuery(document).ready(function(){url=jQuery("meta[name=template_url]").attr("content")+"/sendmail.php";jQuery("#jaybich-contact").validate({submitHandler:function(){var a=jQuery("#jaybich-contact").serialize();jQuery.ajax({type:"POST",url:url,data:a,success:function(){jQuery("#jaybich-contact").slideUp();jQuery("#sent").fadeIn()}})}})});jQuery(document).ready(function(){jQuery(".comments-form").validate()});jQuery(document).ready(function(){jQuery(".portfolio-box a.thumb").each(function(){if(this.href.match(/\.(jpe?g|png|bmp|gif|tiff?)$/i)){jQuery(this).addClass("image")}else{jQuery(this).addClass("video")}});jQuery(".portfolio-box a").hover(function(){jQuery(this).find("img").stop(true,true).animate({opacity:.5},400)},function(){jQuery(this).find("img").stop(true,true).animate({opacity:1},400)})});jQuery(document).ready(function(){jQuery(".gallery-item a").each(function(){if(this.href.match(/\.(jpe?g|png|bmp|gif|tiff?)$/i)){jQuery(this).attr("rel","lightbox")}})});jQuery(document).ready(function(){jQuery(".image-button").css({opacity:.75});jQuery(".image-button").hover(function(){jQuery(this).stop(true,true).animate({opacity:1},100)},function(){jQuery(this).stop(true,true).animate({opacity:.75},100)})});jQuery(document).ready(function(){jQuery("a[rel^='lightbox']").prettyPhoto({theme:"light_rounded"})});(function(a){a.fn.getTwitter=function(b){a.fn.getTwitter.defaults={userName:null,numTweets:5,loaderText:"Loading tweets...",slideIn:true,slideDuration:750,showHeading:true,headingText:"Latest Tweets",showProfileLink:true,showTimestamp:true};var c=a.extend({},a.fn.getTwitter.defaults,b);return this.each(function(){var b=a(this);b.hide().empty().addClass("twitted");if(c.showHeading){b.append("<h2>"+c.headingText+"</h2>")}var d='<ul id="twitter_update_list"><li></li></ul>';b.append(d);var e=a("#twitter_update_list");e.hide();var f=a('<p class="preLoader">'+c.loaderText+"</p>");b.append(f);if(c.showProfileLink){var g='<p class="profileLink"><a href="http://twitter.com/'+c.userName+'">http://twitter.com/'+c.userName+"</a></p>";b.append(g)}b.show();a.getScript("http://twitter.com/javascripts/blogger.js");a.getScript("http://twitter.com/statuses/user_timeline/"+c.userName+".json?callback=twitterCallback2&count="+c.numTweets,function(){a(f).remove();if(!c.showTimestamp){e.find("li").each(function(){var b=a(this).children("a");var c=b.html();b.remove();a(this).attr("title",c)})}if(c.slideIn){var b=e.data("originalHeight");if(!b){b=e.show().height();e.data("originalHeight",b);e.hide().css({height:0})}e.show().animate({height:b},c.slideDuration)}else{e.show()}e.find("li:first").addClass("firstTweet");e.find("li:last").addClass("lastTweet")})})}})(jQuery)
