var JSON;JSON||(JSON={});
(function(){function b(b){return 10>b?"0"+b:b}function d(b){e.lastIndex=0;return e.test(b)?'"'+b.replace(e,function(b){var a=h[b];return"string"===typeof a?a:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"'}function c(b,a){var e,m,o,h,s=g,p,l=a[b];if(l&&"object"===typeof l&&"function"===typeof l.toJSON)return l.toJSON(b);"function"===typeof i&&(l=i.call(a,b,l));switch(typeof l){case "string":return d(l);case "number":return isFinite(l)?""+l:"null";case "boolean":case "null":return""+l;
case "object":if(!l)return"null";g+=f;p=[];if("[object Array]"===Object.prototype.toString.apply(l)){h=l.length;for(e=0;e<h;e+=1)p[e]=c(e,l)||"null";o=0===p.length?"[]":g?"[\n"+g+p.join(",\n"+g)+"\n"+s+"]":"["+p.join(",")+"]";g=s;return o}if(i&&"object"===typeof i){h=i.length;for(e=0;e<h;e+=1)"string"===typeof i[e]&&(m=i[e],(o=c(m,l))&&p.push(d(m)+(g?": ":":")+o))}else for(m in l)Object.prototype.hasOwnProperty.call(l,m)&&(o=c(m,l))&&p.push(d(m)+(g?": ":":")+o);o=0===p.length?"{}":g?"{\n"+g+p.join(",\n"+
g)+"\n"+s+"}":"{"+p.join(",")+"}";g=s;return o}}if("function"!==typeof Date.prototype.toJSON)Date.prototype.toJSON=function(){return isFinite(this.valueOf())?d(this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"Z"):null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return d(this.valueOf())};var a=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,g,f,h={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},i;JSON.stringify=function(b,a,d){var e;f=g="";if("number"===typeof d)for(e=0;e<d;e+=1)f+=" ";else"string"===typeof d&&(f=d);if((i=a)&&"function"!==typeof a&&("object"!==typeof a||"number"!==typeof a.length))throw Error("JSON.stringify");return c("",{"":b})};if("function"!==typeof JSON.parse)JSON.parse=
function(b,c){function d(b,a){var e,g,i=b[a];if(i&&"object"===typeof i)for(e in i)Object.prototype.hasOwnProperty.call(i,e)&&(g=d(i,e),void 0!==g?i[e]=g:delete i[e]);return c.call(b,a,i)}var e,b=""+b;a.lastIndex=0;a.test(b)&&(b=b.replace(a,function(b){return"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,
"")))return e=eval("("+b+")"),"function"===typeof c?d({"":e},""):e;throw new SyntaxError("JSON.parse");}})();jQuery.noConflict();
jQuery.cookie=function(b,d,c){if("undefined"!=typeof d){c=c||{};if(null===d)d="",c.expires=-1;var a="";if(c.expires&&("number"==typeof c.expires||c.expires.toUTCString))"number"==typeof c.expires?(a=new Date,a.setTime(a.getTime()+864E5*c.expires)):a=c.expires,a="; expires="+a.toUTCString();var e=c.path?"; path="+c.path:"",g=c.domain?"; domain="+c.domain:"",c=c.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(d),a,e,g,c].join("")}else{d=null;if(document.cookie&&""!=document.cookie){c=
document.cookie.split(";");for(a=0;a<c.length;a++)if(e=jQuery.trim(c[a]),e.substring(0,b.length+1)==b+"="){d=decodeURIComponent(e.substring(b.length+1));break}}return d}};
(function(b,d,c){function a(){f=d[h](function(){e.each(function(){var a=b(this),c=a.width(),d=a.height(),e=b.data(this,j);if(c!==e.w||d!==e.h)a.trigger(i,[e.w=c,e.h=d])});a()},g[q])}var e=b([]),g=b.resize=b.extend(b.resize,{}),f,h="setTimeout",i="resize",j=i+"-special-event",q="delay";g[q]=250;g.throttleWindow=!0;b.event.special[i]={setup:function(){if(!g.throttleWindow&&this[h])return!1;var c=b(this);e=e.add(c);b.data(this,j,{w:c.width(),h:c.height()});1===e.length&&a()},teardown:function(){if(!g.throttleWindow&&
this[h])return!1;var a=b(this);e=e.not(a);a.removeData(j);e.length||clearTimeout(f)},add:function(a){function e(a,g,i){var f=b(this),q=b.data(this,j);q.w=g!==c?g:f.width();q.h=i!==c?i:f.height();d.apply(this,arguments)}if(!g.throttleWindow&&this[h])return!1;var d;if(b.isFunction(a))return d=a,e;d=a.handler;a.handler=e}}})(jQuery,this);
(function(b,d){var c=b.jQuery||b.Cowboy||(b.Cowboy={}),a;c.throttle=a=function(b,a,f,h){function i(){function c(){q=+new Date;f.apply(o,s)}function i(){j=d}var o=this,r=+new Date-q,s=arguments;h&&!j&&c();j&&clearTimeout(j);h===d&&r>b?c():!0!==a&&(j=setTimeout(h?i:c,h===d?b-r:b))}var j,q=0;"boolean"!==typeof a&&(h=f,f=a,a=d);if(c.guid)i.guid=f.guid=f.guid||c.guid++;return i};c.debounce=function(b,c,f){return f===d?a(b,c,!1):a(b,f,!1!==c)}})(this);function $c(b,d){return function(){b(d)}}
var Platform=function(){var b={options:{},storage:{},forgets:[],autoloads:[],effects:{animate:{show:function(b,c){b.animate(c.animate,{duration:c.duration,complete:c.complete})},hide:function(d,c){b.effects.animate.show(d,c)}},fade:{show:function(b,c){b.fadeIn({duration:c.duration,complete:c.complete})},hide:function(b,c){b.fadeOut({duration:c.duration,complete:c.complete})}},slide:{show:function(b,c){b.slideDown({duration:c.duration,complete:c.complete})},hide:function(b,c){b.slideUp({duration:c.duration,
complete:c.complete})}},upslide:{show:function(d,c){var a=b.effects._utils.wrap(d);"none"==d.css("display")&&(a.$animation.css({marginTop:-d.outerHeight(),opacity:0}),d.show());a.$animation.animate({marginTop:0,opacity:1},{duration:c.duration,queue:!0,complete:c.complete})},hide:function(d,c){b.effects._utils.wrap(d).$animation.animate({marginTop:-d.outerHeight(),opacity:0},{duration:c.duration,queue:!0,complete:c.complete})}},rightslide:{show:function(){},hide:function(){}},_utils:{wrap:function(b){if(b.parent().hasClass("sb-animation"))return{$animation:b.parent(),
$animationWrapper:b.parent().parent()};if(b.hasClass("sb-animation-wrapper"))return{$animation:b.children(),$animationWrapper:b};var c={};c.$animation=b.wrapAll('<div class="sb-animation" />').parent();c.$animationWrapper=c.$animation.wrap('<div class="sb-animation-wrapper" />').parent();c.$animationWrapper.css({overflow:"hidden"});return c}}},persist:function(){var d=jQuery.extend(!0,{},b.storage);if(0!==b.forgets.length)for(var c=0;c<b.forgets.length;c++)void 0!==d[b.forgets[c][0]]&&void 0!==d[b.forgets[c][0]][b.forgets[c][1]]&&
(d[b.forgets[c][0]][b.forgets[c][1]]=void 0);jQuery.cookie("platform_storage_"+b.options.skin,JSON.stringify(d),{expires:10,path:"/"})},forget:function(d,c){b.forgets.push([d,c])},optionsFor:function(d,c,a){void 0===b.options[d]&&(b.options[d]={});return jQuery.extend(!0,c,b.options[d],a)},setOption:function(d,c,a){void 0===b.options[d]&&(b.options[d]={});b.options[d][c]=a},show:function(d,c){c=b.optionsFor("show",{type:"fade",duration:250,complete:function(){},stop:!1},c);c.stop&&d.stop(!0,!0);if("string"!=
typeof c.type)c.animate=c.type,c.type="animate";void 0!==c.queue?b.options.animation&&"none"!==c.type?c.queue.queue(function(a){c.complete=a;b.effects[c.type].show(d,c)}):(d.show(),c.queue.queue(function(b){b()})):b.options.animation&&"none"!==c.type?b.effects[c.type].show(d,c):d.show()},hide:function(d,c){c=b.optionsFor("hide",{type:"fade",duration:250,complete:function(){},stop:!1},c);c.stop&&d.stop(!0,!0);if("string"!=typeof c.type)c.animate=c.type,c.type="animate";void 0!==c.queue?b.options.animation&&
"none"!==c.type?c.queue.queue(function(a){c.complete=a;b.effects[c.type].hide(d,c)}):(d.hide(),c.queue.queue(function(b){b()})):b.options.animation&&"none"!==c.type?b.effects[c.type].hide(d,c):d.hide()},sequence:function(d,c){for(var c=jQuery.extend({queue:b.queue()},c),a=d.length,e=0;e<a;e++)jQuery.isArray(d[e])&&d[e][1].stop(!0,!0);for(e=0;e<a;e++)jQuery.isArray(d[e])?(d[e][2].queue=c.queue,d[e][2].stop=!0,b[d[e][0]](d[e][1],d[e][2])):c.queue.queue(d[e])},queue:function(){return jQuery("<div />")},
autoload:function(d){b.autoloads.push(d)},image:function(b){b.queue.queue(function(c){var a=new Image;a.onload=c;a.src=b.url})}};return{init:function(d){b.options=jQuery.extend({animation:!0,skin:window.skinName},b.options,d);b.storage=JSON.parse(jQuery.cookie("platform_storage_"+b.options.skin));if(!b.storage)b.storage={}},deactivate:function(b){for(var c in b)"0"==b[c]&&(Platform[c]=function(){})},module:function(d){d(jQuery,Platform,b)},ready:function(d){var c=d.length,a=b.autoloads.length;jQuery(document).ready(function(){for(var e=
0;e<c;e++)d[e]();for(e=0;e<a;e++)b.autoloads[e]()})},debug:function(){if(void 0===console)window.console={log:function(b){alert(b)}};console.log("STORAGE:");console.log(b.storage)},getCore:function(){return b}}}();
Platform.module(function(b,d,c){var a=function(b,a){0<a.length&&(a.stop(!0,!0),c.show(a,{type:"fade",duration:250}))},e=function(b,a){0<a.length&&c.hide(a,{type:"fade",duration:250})};Platform.dropdowns=function(){b("[data-dropdown]").each(function(){var c=b(this),d=c.children(":eq(1)");d.hide();d.addClass("sb-dropdown-off");-1!==c.attr("data-dropdown").indexOf("click")?c.click(function(h){h.preventDefault();d.is(":visible")||(a(c,d,{}),h.stopPropagation(),b(document).bind("click",function(a){a.preventDefault();
!b(a.target).is(d)&&!b(a.target).parentsUntil(d).parent().is("ul")&&(b(document).unbind("click"),e(c,d,{}))}))}):c.hover(function(){a(c,d,{})},function(){e(c,d,{})})})};c.autoload(Platform.dropdowns)});
Platform.prototypeExtension=function(){Element.addMethods({platformTooltip:function(b,d){var d=Object.extend({template:new Template("<div class='ipsTooltip ptTooltip' id='#{id}' style='display: none'><div class='ipsTooltip_inner'>#{content}</div></div>"),position:"auto",content:$(b).readAttribute("data-tooltip"),animate:!0,overrideBrowser:!0,delay:0.4},d),c=function(){if(!d.delay||d._still_going){var a=$(b).identify();$(a+"_tooltip")||$(document.body).insert({bottom:d.template.evaluate({id:a+"_tooltip",
content:d.content(b)})});d.overrideBrowser&&$(b).hasAttribute("title")&&$(b).writeAttribute("data-title",$(b).readAttribute("title")).writeAttribute("title",!1);var c=$(a+"_tooltip").setStyle({position:"absolute"}),f=$(b).getLayout(),h=$(b).cumulativeOffset(),a=$(a+"_tooltip").getDimensions(),i=$(document.body).getLayout();if("auto"==d.position)d.position=0>h.left+f.get("width")/2-a.width/2?"right":h.left+a.width/2>i.get("width")?"left":"top";Debug.write(a);switch(d.position){case "top":$(c).setStyle({top:h.top-
a.height-1+"px",left:h.left+f.get("width")/2-a.width/2+"px"}).addClassName("top");break;case "bottom":$(c).setStyle({top:h.top+f.get("height")+1+"px",left:h.left+f.get("width")/2-a.width/2+"px"}).addClassName("bottom");break;case "left":$(c).setStyle({top:h.top-f.get("height")/2+"px",left:h.left-a.width-3+"px"}).addClassName("left");break;case "right":$(c).setStyle({top:h.top+f.get("height")/2-a.height/2+"px",left:h.left+f.get("width")+"px"}).addClassName("right")}d.animate?new Effect.Appear($(c),
{duration:0.3,queue:"end"}):$(c).show()}},a=function(){var a=$(b).identify();$(a+"_tooltip")&&(d.animate?new Effect.Fade($(a+"_tooltip"),{duration:0.2,queue:"end"}):$(a+"_tooltip").hide())};$(b).observe("mouseenter",function(b){d.delay?(d._still_going=!0,c.delay(d.delay,b)):c(b)}).observe("click",function(){d._still_going=!1;a()}).observe("mouseleave",function(){d._still_going=!1;a()})}})};
Platform.module(function(b,d,c){d.tooltips=function(){var a={};if(b("body").hasClass("feature-excerpts_as_tooltip-on")&&0!==b(".ptExcerpt").length)a.excerpt={elements:"#categories .tpAvatarFrame ",content:function(a){return b(a).parents(".col_c_post:first").find(".ptExcerpt li").html()}};a.stdWithImage={elements:"[data-tip] > img",content:function(a){return b(a).parent().attr("data-tip")}};a=c.optionsFor("tooltips",{rules:a});for(k in a.rules)$$(a.rules[k].elements).invoke("platformTooltip",{position:"right",
content:a.rules[k].content})};c.autoload(d.prototypeExtension);c.autoload(d.tooltips)});
Platform.module(function(b,d,c){Platform.box=function(a){a=c.optionsFor("box",{width:500,height:500,modal:!1,element:!1,content:"",trigger:!1},a);a.width+="px";a.height+="px";if(a.element)b(a.element).hide(),a.content=b(a.element).html(),b(a.element).remove();var d=new ipb.Popup(a.name,{type:"pane",modal:a.modal,w:a.width,h:a.height,initial:a.content,hideAtStart:!0,close:'[rel="close"]'});a.trigger?b(a.trigger).click(function(b){b.stopPropagation();b.preventDefault();d.show()}):d.show()};Platform.balloon=
function(a){a=c.optionsFor("balloon",{width:350,height:200,once:!1,reference:"absolute",element:!1,content:"",trigger:!1,modal:!1,position:"auto",name:"balloon1",afterCreation:function(){}},a);a.width+="px";a.height+="px";if(a.element){var d=b(a.element);d.css({display:"none"});a.content=d.html();d.remove()}var d=b(a.trigger),g=Element.extend(d[0]),f,h=function(){f=new ipb.Popup(a.name,{type:"balloon",stem:!0,modal:a.modal,w:a.width,h:a.height,initial:a.content,hideAtStart:!0,close:'[rel="close"]',
attach:{target:g,position:a.position,offset:a.offset||void 0}});"fixed"==a.reference&&b("#"+a.name+"_popup").css({position:"fixed"});a.afterCreation(b)};a.once&&h();d.click(function(c){c.stopPropagation();c.preventDefault();a.once||(b("#"+a.name+"_popup").remove(),h());f.show()});return f};Platform.boxes=function(a){var c=[];void 0==a&&(a={});b("[data-target-box]").each(function(){var d=b(this).attr("data-target-box");-1==b.inArray(d,c)&&(c.push(d),void 0==a[d]&&(a[d]={}),Platform.box(b.extend({name:d,
element:"[data-box="+d+"]",trigger:"[data-target-box="+d+"]"},a[d])))})};Platform.domboxes=function(a){var c=[];void 0==a&&(a={});b("[data-target-dombox]").each(function(){var d=b(this).attr("data-target-dombox");-1==b.inArray(d,c)&&(c.push(d),void 0==a[d]&&(a[d]={}),Platform.box(b.extend({name:d,content:'<div id="dombox-'+d+'-placeholder"></div>',trigger:"[data-target-dombox="+d+"]",once:!0},a[d])),b("#dombox-"+d+"-placeholder").append(b("[data-dombox="+d+"]").show()))})};Platform.balloons=function(a){var c=
[];void 0==a&&(a={});b("[data-target-balloon]").each(function(){var d=b(this),f=d.attr("data-target-balloon");-1==b.inArray(f,c)&&(d.attr("id")||d.attr("id","target-balloon-"+f),c.push(f),void 0==a[f]&&(a[f]={}),Platform.balloon(b.extend({name:f,element:"[data-balloon="+f+"]",trigger:"[data-target-balloon="+f+"]"},a[f])))})};Platform.domballoons=function(a){var d=[];void 0==a&&(a="cielo"==c.options.skin?{bgpicker:{trigger:"[data-target-domballoon=bgpicker] img",position:"topleft",reference:"fixed"}}:
{});b("[data-target-domballoon]").each(function(){var c=b(this),f=c.attr("data-target-domballoon");-1==b.inArray(f,d)&&(c.attr("id")||c.attr("id","target-domballoon-"+f),d.push(f),void 0==a[f]&&(a[f]={}),Platform.balloon(b.extend({name:f,content:'<div id="domballoon-'+f+'-placeholder"></div>',trigger:"[data-target-domballoon="+f+"]",position:"bottomright",once:!0},a[f])),b("#domballoon-"+f+"-placeholder").append(b("[data-domballoon="+f+"]").show()))})};c.autoload(Platform.domballoons)});
Platform.module(function(b,d,c){function a(a){var c=b('<img src="'+a+'" style="display: none;" />'),d=b.Deferred();b("body").append(c);c.load(function(){d.resolve({width:c.width(),height:c.height()})});return d.promise()}var e=function(){return void 0==ipb||void 0==ipb.profile||void 0==ipb.profile.customization||1!=ipb.profile.customization},g=!1,f=function(a){var c=a.children("img");0===c.length&&(c=a.css("background-image"),c=c.substring(4,c.length-1),'"'==c.charAt(0)&&(c=c.substring(1,c.length-
1)),c=b('<img src="'+c+'" width="100%" style="position: fixed;" />'),a.append(c),a.css({"background-size":"auto","-webkit-background-size":"auto","background-image":"none"}));return c},h={fade:function(a){void 0===a&&(a={});return void 0===a.elementAbove||0==b(a.elementAbove).length?function(b,d,e,g){"before"===g?c.hide(d,{duration:a.duration||250,type:"fade"}):"after"===g&&(c.image({url:b.url,queue:d}),c.show(d,{duration:a.duration||250,type:"fade"}))}:function(d,e,h,m){if("before"===m)b.browser.webkit&&
g?(d=f(e),e=f(b(a.elementAbove)),e.attr("src",d.attr("src")),e.css("display","block")):b(a.elementAbove).css({"background-image":e.css("background-image"),"background-repeat":e.css("background-repeat"),"background-attachment":e.css("background-attachment")});else if("after"===m){var o=b(a.elementAbove);c.image({url:d.url,queue:o});c.hide(o,{duration:a.duration||500,type:"fade"});o.queue(function(a){b.browser.webkit&&g?f(o).css("display","none"):o.css("background-image","none");o.css("display","block");
a()})}}}};Platform.backgrounds=function(a){a=c.optionsFor("backgrounds",{element:"#background",transition:"fade",transitionOptions:{elementAbove:"#background-above",duration:250}});if(void 0!==a.transition)a.around=h[a.transition](a.transitionOptions);if(void 0===a.putYourOwn)a.putYourOwn="#putyourown";if(void 0!==a.around)a.before=function(b,c,d){a.around(b,c,d,"before")},a.after=function(b,c,d){a.around(b,c,d,"after")};if(void 0===a.before)a.before=function(){};if(void 0===a.after)a.after=function(){};
b.browser.webkit&&"cover"==b(a.element).css("background-size")&&(g=!0,f(b(a.element)));var d=b(a.putYourOwn);0!==d.length&&d.find("form").submit(function(h){h.preventDefault();var n=b(a.element),m=b(this).find("[name=url]").val();d.is("[data-layer]")&&c.hide(d,{type:"fade",duration:300});if(""!==m)c.storage.background=m,c.persist(),e()&&(a.before({url:m,id:void 0},n,a),n.queue(function(a){b.browser.webkit&&g?f(n).attr("src",m):n.css({"background-image":"url("+m+")","background-repeat":"no-repeat",
"background-attachment":"fixed"});a()}),a.after({url:m,id:void 0},n,a))});b("[data-background]").click(function(d){var h=b(this),m=h.attr("id"),j=b(a.element);if("put-your-own"!==m&&(d.preventDefault(),d.stopPropagation(),c.storage.background=m,c.persist(),e())){var r=h.attr("href");a.before({url:r,id:m},j,a);j.queue(function(a){b.browser.webkit&&g?f(j).attr("src",r):j.css({"background-image":"url("+r+")","background-repeat":h.attr("data-background-repeat"),"background-attachment":h.attr("data-background-attachment")});
a()});a.after({url:r,id:m},j,a)}})};c.autoload(Platform.backgrounds);Platform.animateBackground=function(c){function d(){var a=e.css("background-position").split(" "),b=parseFloat(a[0]),a=parseFloat(a[1]);window.isNaN(b)&&(b=0);window.isNaN(a)&&(a=0);a=l({x:b,y:a});b=a.x;a=a.y;b<h?(b=h,f="up"===f?"down":"up"):0<b&&(b=0,f="up"===f?"down":"up");a<r?(a=r,f="up"===f?"down":"up"):0<a&&(a=0,f="up"===f?"down":"up");e.css("background-position",b+"px "+a+"px")}if(void 0===c.fps)c.fps=30;if(void 0===c.move)c.move=
"diag";var e=b(c.element),g=Math.round(1E3/c.fps),f="up",h,r,s,p,l={rect:function(a){if("up"==f)return{x:0,y:a.y-p};if("down"==f)return{x:0,y:a.y+p}},diag:function(a){if("up"==f)return{x:a.x-s,y:a.y+p};if("down"==f)return{x:a.x+s,y:a.y-p}}}[c.move],c=e.css("background-image"),c=c.substring(4,c.length-1);'"'==c.charAt(0)&&(c=c.substring(1,c.length-1));b.when(a(c)).done(function(a){function c(){h=parseInt(b(window).width())-a.width;r=parseInt(b(window).height())-a.height;s=-h/(15E3/g);p=-r/(15E3/g)}
c();b(window).resize(c);var f=setInterval(d,g);e.data("sb-animate-background-loop",f)})}});
(function(b){function d(a){return"object"==typeof a?a:{top:a,left:a}}var c=b.scrollTo=function(a,c,d){b(window).scrollTo(a,c,d)};c.defaults={axis:"xy",duration:1.3<=parseFloat(b.fn.jquery)?0:1};c.window=function(){return b(window)._scrollable()};b.fn._scrollable=function(){return this.map(function(){if(this.nodeName&&-1==b.inArray(this.nodeName.toLowerCase(),["iframe","#document","html","body"]))return this;var a=(this.contentWindow||this).document||this.ownerDocument||this;return b.browser.safari||
"BackCompat"==a.compatMode?a.body:a.documentElement})};b.fn.scrollTo=function(a,e,g){"object"==typeof e&&(g=e,e=0);"function"==typeof g&&(g={onAfter:g});"max"==a&&(a=9E9);g=b.extend({},c.defaults,g);e=e||g.speed||g.duration;g.queue=g.queue&&1<g.axis.length;g.queue&&(e/=2);g.offset=d(g.offset);g.over=d(g.over);return this._scrollable().each(function(){function f(b){i.animate(n,e,g.easing,b&&function(){b.call(this,a,g)})}var h=this,i=b(h),j=a,q,n={},m=i.is("html,body");switch(typeof j){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(j)){j=
d(j);break}j=b(j,this);case "object":if(j.is||j.style)q=(j=b(j)).offset()}b.each(g.axis.split(""),function(a,b){var d="x"==b?"Left":"Top",e=d.toLowerCase(),l="scroll"+d,t=h[l],u=c.max(h,b);q?(n[l]=q[e]+(m?0:t-i.offset()[e]),g.margin&&(n[l]-=parseInt(j.css("margin"+d))||0,n[l]-=parseInt(j.css("border"+d+"Width"))||0),n[l]+=g.offset[e]||0,g.over[e]&&(n[l]+=j["x"==b?"width":"height"]()*g.over[e])):(d=j[e],n[l]=d.slice&&"%"==d.slice(-1)?parseFloat(d)/100*u:d);/^\d+$/.test(n[l])&&(n[l]=0>=n[l]?0:Math.min(n[l],
u));!a&&g.queue&&(t!=n[l]&&f(g.onAfterFirst),delete n[l])});f(g.onAfter)}).end()};c.max=function(a,c){var d="x"==c?"Width":"Height",f="scroll"+d;if(!b(a).is("html,body"))return a[f]-b(a)[d.toLowerCase()]();var d="client"+d,h=a.ownerDocument.documentElement,i=a.ownerDocument.body;return Math.max(h[f],i[f])-Math.min(h[d],i[d])}})(jQuery);
Platform.module(function(b,d,c){Platform.slidingHooks=function(a){function d(b){1<b.children().length&&b.children().wrapAll('<div class="ptInnerHook" />');var c=b.children().outerHeight(),e=parseInt(b.css("padding-top"));window.isNaN(e)&&(e=0);b=parseInt(b.css("padding-bottom"));window.isNaN(b)&&(b=0);c+=e+b;if(c>a.maxHeight)c=a.maxHeight;200>c&&(c=200);return c}function g(){void 0!==a.maxHeight&&c.show(b(a.top_wrapper).add(j),{type:{height:d(j)},duration:300})}void 0===a&&(a={});b.extend(a,{top_wrapper:"#ptHooksWrapper",
wrapper:"#ptHooks",hooks:"#ptHooks > div",next:"#ptNextHook",previous:"#ptPreviousHook",animationType:"slide",maxHeight:300});if(void 0!==c.options.hooks_animations&&!1===c.options.hooks_animations)a.animationType="none";var f=b(a.next),h=b(a.previous),i=b(a.hooks+":first"),j;b(a.top_wrapper).add(i).css({height:d(i)});f.click(function(c){c.preventDefault();j=i.next();0===j.length&&(j=b(a.hooks+":first"));i=j;b(a.top_wrapper).scrollTo(j,{axis:"x",duration:300});g();f.trigger("mouseleave");f.trigger("mouseenter")});
h.click(function(c){c.preventDefault();j=i.prev();0===j.length&&(j=b(a.hooks+":last"));i=j;b(a.top_wrapper).scrollTo(j,{axis:"x",duration:300});g();h.trigger("mouseleave");h.trigger("mouseenter")})};c.autoload(Platform.slidingHooks)});



window.skinName = "less"; window.skinBaseUrl = "http://pixelfreaks.pl/public/style_images/less";

Platform.backgroundPicker = function(){};



Platform.getCore().setOption('backgrounds', 'element', '#background' );
Platform.init();

Platform.ready([]);



