$(document).ready(function(){$("span.fcimgloading").each(function(b){var c=$(this).attr("rel");$(this).attr("rel","");var a=new Image();$(this).append(a);$(a).css({border:"0px",display:"none"});$(a).load(function(){$(this).parent().removeClass("fcimgloading");$(this).css({border:"0px",display:""});loadnfix($(this))});$(a).attr("src",c)});jQuery.fn.initSpoilers=function(b){b=jQuery.extend({revealedClass:"reveal",method:"hover"},b?b:{});function d(){jQuery(this).addClass(b.revealedClass)}function a(){jQuery(this).removeClass(b.revealedClass)}if("hover"===b.method){this.hover(d,a)}else{if("hoverIntent"===b.method){var c=("hoverIntent" in b)?b.hoverIntent:{};c.over=d;c.out=a;this.hoverIntent(c)}else{if("click"===b.method){this.toggle(d,a)}}}return this};$(".fcSpoiler").initSpoilers({method:"click"}).addClass("fcSpoiler")});$.fn.unwrap=function(){this.parent(":not(body)").each(function(){$(this).replaceWith(this.childNodes)});return this};function loadnfix(e){var b=560;var d=300;var c=e.width();var a=e.height();if(c>b){a=Math.round(a*(b/c));c=b;if(a>d){c=Math.round(c*(d/a));a=d;$(e).css("width",c);$(e).css("height",a)}else{$(e).css("width",c);$(e).css("height",a)}e.wrap('<a href="'+e.attr("src")+'" rel="lytebox" />')}else{if(a>d){c=Math.round(c*(d/a));a=d;if(c>b){a=Math.round(a*(b/c));c=b;$(e).css("width",c);$(e).css("height",a)}else{$(e).css("width",c);$(e).css("height",a)}e.wrap('<a href="'+e.attr("src")+'" rel="lytebox" />')}}};
