var $j=jQuery.noConflict();$j.fn.delay=function(a,b){jQuery.fx.step.delay=function(){};return this.animate({delay:1},a,b)};var Star=function(){var a=this;this.b="http://inebriatedinc.com/wp-content/themes/drunk/library/css/images/";this.s=["star.png","star2.png","star3.png","star4.png"];this.i=this.s[this.random(this.s.length)];this.f=this.b+this.i;this.n=document.createElement("img");this.newSpeed().newPoint().display().newPoint().fly()};Star.prototype.display=function(){$j(this.n).attr("src",this.f).css("position","absolute").css("z-index",this.random(20)).css("top",this.pointY).css("left",this.pointX);$j(document.body).append(this.n);return this};Star.prototype.fly=function(){var a=this;$j(this.n).animate({"top":this.pointY,"left":this.pointX,},this.speed,"linear",function(){a.newSpeed().newPoint().fly()})};Star.prototype.newSpeed=function(){this.speed=(this.random(10)+5)*1100;return this};Star.prototype.newPoint=function(){this.pointX=this.random(window.innerWidth-100);this.pointY=this.random(350);return this};Star.prototype.random=function(a){return Math.ceil(Math.random()*a)-1};$j(function(){var b=40;var a=[];for(i=0;i<b;i++){a[i]=new Star()}});function tweetFadeIn(){$j("#share-container").delay(2400,function(){$j(this).animate({top:"0px"},1800);$j(this).css("z-index","999")})}function contentPopUps(){$j(".entry-title a").click(function(){$j(".entry-content").css("display","none");$j(this).parents(".hentry").children(".entry-content").css("z-index","9999").fadeIn();$j(this).parents(".hentry").children(".entry-content").append('<a href="#" onClick="return false" class="close"></a>');return false});$j("body, a.close").click(function(){$j(".entry-content").css("display","none")})}$j(document).ready(function(){tweetFadeIn();contentPopUps()});