jQuery.fn.vibrate=function(){this.each(function(intI){var jNode=$(this);var blnVibrate=false;var intLeft=parseInt(jNode.css("left"));var intTop=parseInt(jNode.css("top"));var fnUpdatePosition=function(){var intCurrentLeft=parseInt(jNode.css("left"));var intCurrentTop=parseInt(jNode.css("top"));if(blnVibrate){if(Math.random()>.5){if(intCurrentTop>intTop){intCurrentTop=(intTop-2);}else{intCurrentTop=(intTop+2);}}else{if(intCurrentLeft>intLeft){intCurrentLeft=(intLeft-2);}else{intCurrentLeft=(intLeft+2);}}
setTimeout(fnUpdatePosition,60);}else{intCurrentLeft=intLeft;intCurrentTop=intTop;}
jNode.css("top",(intCurrentTop+"px"));jNode.css("left",(intCurrentLeft+"px"));}
jNode.mouseover(function(){blnVibrate=true;fnUpdatePosition();});jNode.mouseout(function(){blnVibrate=false;});});return(this);}
$(function(){$(".logo").vibrate();});$(document).ready(function(){$(".contact a, .link a, .credits a, .top a, .notepad a, .mean a, .back a").blend({pulse:true});$('a[href=#top]').click(function(){$('html, body').animate({scrollTop:0},'slow');return false;});});(function(e){e.fn.blend=function(p){if(e.browser.mozilla&&parseFloat(e.browser.version)<1.9)return this;var c=e.extend({},e.fn.blend.settings,p);e(this).each(function(){function l(m){j&&f.fadeTo(c.speed,m,function(){l(m===g?h:g)})}
var n=e(this),b=e(c.target?c.target:this),f,o=[],a,k,d={},j=false,g=0,h=c.opacity,i=["background-color","background-image","background-repeat","background-attachment","background-position","background-position-x","background-position-y"];k=i.length;b[0].style.position!=="absolute"&&b.css({position:"relative"});b.hasClass("hover")||b.wrapInner('<div style="position:relative" />');for(a=0;a<k;a++)o[a]=b.css(i[a]);b.addClass("hover");d={};d.position="absolute";d.top=0;d.left=0;d.width=b.width();d.height=b.height();for(a=0;a<k;a++)d[i[a]]=b.css(i[a]);if(b.find(".jsblend").length===0){f=e('<div class="jsblend" />').css(d);c.top?f.appendTo(b):f.prependTo(b)}else f=b.find(".jsblend");d={};for(a=0;a<k;a++)d[i[a]]=o[a];b.css(d);if(c.reverse){g=c.opacity;h=0}
f.css({opacity:g});if(c.pulse&&c.active){j=true;l(h)}else c.pulse?n.hover(function(){j=true;l(h)},function(){j=false;f.stop(true).fadeTo(c.speed,g)}):n.hover(function(){f.stop().fadeTo(c.speed,h)},function(){f.stop().fadeTo(c.speed,g)})});return this};e.fn.blend.settings={speed:500,opacity:1,target:false,reverse:false,pulse:false,active:false,top:false}})(jQuery);
