jQuery.noConflict();jQuery(document).ready(function(b){b("html").addClass("trim");var c=b("html.trim").css("background-image");var d=b("#trim").css("background-image");b("html.trim").css("background-image",d+","+c);b("html.trim").css("background-position","-12px 0px , -250px 0px");(function(a){a.fn.hoverIntent=function(b,c){var d={sensitivity:7,interval:100,timeout:0};d=a.extend(d,c?{over:b,out:c}:b);var e,f,g,h;var i=function(a){e=a.pageX;f=a.pageY};var j=function(b,c){c.hoverIntent_t=clearTimeout(c.hoverIntent_t);if(Math.abs(g-e)+Math.abs(h-f)<d.sensitivity){a(c).unbind("mousemove",i);c.hoverIntent_s=1;return d.over.apply(c,[b])}else{g=e;h=f;c.hoverIntent_t=setTimeout(function(){j(b,c)},d.interval)}};var k=function(a,b){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);b.hoverIntent_s=0;return d.out.apply(b,[a])};var l=function(b){var c=a.extend({},b);var e=this;if(e.hoverIntent_t){e.hoverIntent_t=clearTimeout(e.hoverIntent_t)}if(b.type=="mouseenter"){g=c.pageX;h=c.pageY;a(e).bind("mousemove",i);if(e.hoverIntent_s!=1){e.hoverIntent_t=setTimeout(function(){j(c,e)},d.interval)}}else{a(e).unbind("mousemove",i);if(e.hoverIntent_s==1){e.hoverIntent_t=setTimeout(function(){k(c,e)},d.timeout)}}};return this.bind("mouseenter",l).bind("mouseleave",l)}})(jQuery);b("nav ul li").hoverIntent(function(){b(this).find("> ul").not(".current + ul, .currentAncestor + ul").animate({opacity:"toggle",height:"toggle"},250)},function(){b(this).find("> ul").not(".current + ul, .currentAncestor + ul").animate({opacity:"toggle",height:"toggle"},250)});b(".current + ul, .currentAncestor + ul").show();f=b("#fadeButtonHQ");h=b("html.trim");a=b("aside");f.mouseenter(function(){b(this).stop(true,true).animate({opacity:"0"})}).mouseleave(function(){b(this).stop(true,true).animate({opacity:"1"})});if(b("ul#breadcrumb").length){b("footer").css("padding-top","20px")}if(b("span.social").length){b("aside").css("padding-top","0px").prepend('<div id="sLinks"></div>')}if(b(".blog-entry-comments").length){b("p.blog-entry-tags").css("margin-bottom","20px")}if(b(".movie-background").length){b("html").css("background-image","none")}b(".blog-entry-body").find(".imageStyle:first").not("img[alt=image]").hide().each(function(){b(this).prependTo(b(this).parent().parent()).wrap('<div class="imgPost"></div>')});b(".imgPost img").each(function(a){b(this).delay(500*a).fadeIn(500)});b("section .thumbnail-wrap").hide().each(function(a){b(this).delay(50*a).fadeIn(150)});b(".filesharing-item, section .movie-thumbnail-frame, section .form-input-field").hide().each(function(a){b(this).delay(150*a).fadeIn(300)});b(".movie-thumbnail-frame a").append("<span></span>");b("span.social").prependTo("#sLinks").show();b("span#asideTitle:empty, .filesharing-description:empty, .blog-entry-body > br:first").remove();if(b(".album-wrapper").length){RwGet={pathto:function(a,b){var c=function(a,b){var c=!b?"sĘ":(b+"").replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,"$1");var d=new RegExp("["+c+"]+$","g");return(a+"").replace(d,"")};var d=c(RwSet.pathto,"javascript.js");if(a!==undefined&&b!==undefined){d=d+a+b}else if(a!==undefined){d=d+a}return d},baseurl:function(a,b){var c=RwSet.baseurl;if(a!==undefined&&b!==undefined){c=c+a+b}else if(a!==undefined){c=c+a}return c}};b("head").append("<link>").children(":last").attr({rel:"stylesheet",type:"text/css",href:RwGet.pathto("css/prettyPhoto.css")});b.getScript(RwGet.pathto("scripts/jquery.prettyPhoto.js"),function(){if(b(".album-wrapper").length){b(".thumbnail-frame").each(function(){var a=b("a",this);var c=b("a img",this);var d=b(".thumbnail-caption",this);a.attr({href:c.attr("src").replace(/thumb/i,"full"),rel:"prettyPhoto[gallery]",title:d.text()})})}jQuery("a[rel^=prettyPhoto]").prettyPhoto({animation_speed:"fast",opacity:.5,show_title:false})})}})
