var JSON;JSON||(JSON={});
(function(){function b(b){return b<10?"0"+b:b}function d(b){e.lastIndex=0;return e.test(b)?'"'+b.replace(e,function(b){var a=i[b];return typeof a==="string"?a:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"'}function a(b,e){var c,h,m,p,i=f,o,n=e[b];if(n&&typeof n==="object"&&typeof n.toJSON==="function")return n.toJSON(b);typeof j==="function"&&(n=j.call(e,b,n));switch(typeof n){case "string":return d(n);case "number":return isFinite(n)?String(n):"null";case "boolean":case "null":return String(n);
case "object":if(!n)return"null";f+=g;o=[];if(Object.prototype.toString.apply(n)==="[object Array]"){p=n.length;for(c=0;c<p;c+=1)o[c]=a(c,n)||"null";m=o.length===0?"[]":f?"[\n"+f+o.join(",\n"+f)+"\n"+i+"]":"["+o.join(",")+"]";f=i;return m}if(j&&typeof j==="object"){p=j.length;for(c=0;c<p;c+=1)typeof j[c]==="string"&&(h=j[c],(m=a(h,n))&&o.push(d(h)+(f?": ":":")+m))}else for(h in n)Object.prototype.hasOwnProperty.call(n,h)&&(m=a(h,n))&&o.push(d(h)+(f?": ":":")+m);m=o.length===0?"{}":f?"{\n"+f+o.join(",\n"+
f)+"\n"+i+"}":"{"+o.join(",")+"}";f=i;return m}}if(typeof Date.prototype.toJSON!=="function")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 c=/[\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,f,g,i={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},j;JSON.stringify=function(b,e,c){var d;g=f="";if(typeof c==="number")for(d=0;d<c;d+=1)g+=" ";else typeof c==="string"&&(g=c);if((j=e)&&typeof e!=="function"&&(typeof e!=="object"||typeof e.length!=="number"))throw Error("JSON.stringify");return a("",{"":b})};if(typeof JSON.parse!=="function")JSON.parse=
function(b,a){function e(b,c){var d,f,j=b[c];if(j&&typeof j==="object")for(d in j)Object.prototype.hasOwnProperty.call(j,d)&&(f=e(j,d),f!==void 0?j[d]=f:delete j[d]);return a.call(b,c,j)}var d,b=String(b);c.lastIndex=0;c.test(b)&&(b=b.replace(c,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 d=eval("("+b+")"),typeof a==="function"?e({"":d},""):d;throw new SyntaxError("JSON.parse");}})();jQuery.noConflict();
jQuery.cookie=function(b,d,a){if(typeof d!="undefined"){a=a||{};if(d===null)d="",a.expires=-1;var c="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString))typeof a.expires=="number"?(c=new Date,c.setTime(c.getTime()+a.expires*864E5)):c=a.expires,c="; expires="+c.toUTCString();var e=a.path?"; path="+a.path:"",f=a.domain?"; domain="+a.domain:"",a=a.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(d),c,e,f,a].join("")}else{d=null;if(document.cookie&&document.cookie!=""){a=
document.cookie.split(";");for(c=0;c<a.length;c++)if(e=jQuery.trim(a[c]),e.substring(0,b.length+1)==b+"="){d=decodeURIComponent(e.substring(b.length+1));break}}return d}};
(function(b,d,a){function c(){g=d[i](function(){e.each(function(){var a=b(this),e=a.width(),c=a.height(),d=b.data(this,l);if(e!==d.w||c!==d.h)a.trigger(j,[d.w=e,d.h=c])});c()},f[q])}var e=b([]),f=b.resize=b.extend(b.resize,{}),g,i="setTimeout",j="resize",l=j+"-special-event",q="delay";f[q]=250;f.throttleWindow=true;b.event.special[j]={setup:function(){if(!f.throttleWindow&&this[i])return false;var a=b(this);e=e.add(a);b.data(this,l,{w:a.width(),h:a.height()});e.length===1&&c()},teardown:function(){if(!f.throttleWindow&&
this[i])return false;var a=b(this);e=e.not(a);a.removeData(l);e.length||clearTimeout(g)},add:function(d){function e(d,f,j){var h=b(this),g=b.data(this,l);g.w=f!==a?f:h.width();g.h=j!==a?j:h.height();c.apply(this,arguments)}if(!f.throttleWindow&&this[i])return false;var c;if(b.isFunction(d))return c=d,e;else c=d.handler,d.handler=e}}})(jQuery,this);
(function(b,d){var a=b.jQuery||b.Cowboy||(b.Cowboy={}),c;a.throttle=c=function(b,c,g,i){function j(){function a(){q=+new Date;g.apply(m,s)}function j(){l=d}var m=this,p=+new Date-q,s=arguments;i&&!l&&a();l&&clearTimeout(l);i===d&&p>b?a():c!==true&&(l=setTimeout(i?j:a,i===d?b-p:b))}var l,q=0;typeof c!=="boolean"&&(i=g,g=c,c=d);if(a.guid)j.guid=g.guid=g.guid||a.guid++;return j};a.debounce=function(b,a,g){return g===d?c(b,a,false):c(b,g,a!==false)}})(this);function $c(b,d){return function(){b(d)}}
var Platform=function(){var b={options:{},storage:{},forgets:[],autoloads:[],effects:{animate:{show:function(b,a){b.animate(a.animate,{duration:a.duration,complete:a.complete})},hide:function(d,a){b.effects.animate.show(d,a)}},fade:{show:function(b,a){b.fadeIn({duration:a.duration,complete:a.complete})},hide:function(b,a){b.fadeOut({duration:a.duration,complete:a.complete})}},slide:{show:function(b,a){b.slideDown({duration:a.duration,complete:a.complete})},hide:function(b,a){b.slideUp({duration:a.duration,
complete:a.complete})}},upslide:{show:function(d,a){var c=b.effects._utils.wrap(d);d.css("display")=="none"&&(c.$animation.css({marginTop:-d.outerHeight(),opacity:0}),d.show());c.$animation.animate({marginTop:0,opacity:1},{duration:a.duration,queue:true,complete:a.complete})},hide:function(d,a){b.effects._utils.wrap(d).$animation.animate({marginTop:-d.outerHeight(),opacity:0},{duration:a.duration,queue:true,complete:a.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 a={};a.$animation=b.wrapAll('<div class="sb-animation" />').parent();a.$animationWrapper=a.$animation.wrap('<div class="sb-animation-wrapper" />').parent();a.$animationWrapper.css({overflow:"hidden"});return a}}},persist:function(){var d=jQuery.extend(true,{},b.storage);if(b.forgets.length!==0)for(var a=0;a<b.forgets.length;a++)d[b.forgets[a][0]]!==void 0&&d[b.forgets[a][0]][b.forgets[a][1]]!==
void 0&&(d[b.forgets[a][0]][b.forgets[a][1]]=void 0);jQuery.cookie("platform_storage_"+b.options.skin,JSON.stringify(d),{expires:10,path:"/"})},forget:function(d,a){b.forgets.push([d,a])},optionsFor:function(d,a,c){b.options[d]===void 0&&(b.options[d]={});return jQuery.extend(true,a,b.options[d],c)},setOption:function(d,a,c){b.options[d]===void 0&&(b.options[d]={});b.options[d][a]=c},show:function(d,a){a=b.optionsFor("show",{type:"fade",duration:250,complete:function(){},stop:false},a);a.stop&&d.stop(true,
true);if(typeof a.type!="string")a.animate=a.type,a.type="animate";a.queue!==void 0?b.options.animation&&a.type!=="none"?a.queue.queue(function(c){a.complete=c;b.effects[a.type].show(d,a)}):(d.show(),a.queue.queue(function(b){b()})):b.options.animation&&a.type!=="none"?b.effects[a.type].show(d,a):d.show()},hide:function(d,a){a=b.optionsFor("hide",{type:"fade",duration:250,complete:function(){},stop:false},a);a.stop&&d.stop(true,true);if(typeof a.type!="string")a.animate=a.type,a.type="animate";a.queue!==
void 0?b.options.animation&&a.type!=="none"?a.queue.queue(function(c){a.complete=c;b.effects[a.type].hide(d,a)}):(d.hide(),a.queue.queue(function(b){b()})):b.options.animation&&a.type!=="none"?b.effects[a.type].hide(d,a):d.hide()},sequence:function(d,a){for(var a=jQuery.extend({queue:b.queue()},a),c=d.length,e=0;e<c;e++)jQuery.isArray(d[e])&&d[e][1].stop(true,true);for(e=0;e<c;e++)jQuery.isArray(d[e])?(d[e][2].queue=a.queue,d[e][2].stop=true,b[d[e][0]](d[e][1],d[e][2])):a.queue.queue(d[e])},queue:function(){return jQuery("<div />")},
autoload:function(d){b.autoloads.push(d)},image:function(b){b.queue.queue(function(a){var c=new Image;c.onload=a;c.src=b.url})}};return{init:function(d){b.options=jQuery.extend({animation:true,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 a in b)b[a]=="0"&&(Platform[a]=function(){})},module:function(d){d(jQuery,Platform,b)},ready:function(d){var a=d.length,c=b.autoloads.length;jQuery(document).ready(function(){for(var e=
0;e<a;e++)d[e]();for(e=0;e<c;e++)b.autoloads[e]()})},debug:function(){if(console===void 0)window.console={log:function(b){alert(b)}};console.log("STORAGE:");console.log(b.storage)},getCore:function(){return b}}}();
Platform.module(function(b,d,a){var c=function(b,c){c.length>0&&(c.stop(true,true),a.show(c,{type:"fade",duration:250}))},e=function(b,c){c.length>0&&a.hide(c,{type:"fade",duration:250})};Platform.dropdowns=function(){b("[data-dropdown]").each(function(){var a=b(this),d=a.children(":eq(1)");d.hide();d.addClass("sb-dropdown-off");a.attr("data-dropdown").indexOf("click")!==-1?a.click(function(i){i.preventDefault();d.is(":visible")?e(a,d,{}):(c(a,d,{}),i.stopPropagation(),b(document).one("click",function(b){b.preventDefault();
e(a,d,{})}))}):a.hover(function(){c(a,d,{})},function(){e(a,d,{})})})};a.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:true,overrideBrowser:true,delay:0.4},d),a=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",false);var c=$(a+"_tooltip").setStyle({position:"absolute"}),g=$(b).getLayout(),i=$(b).cumulativeOffset(),a=$(a+"_tooltip").getDimensions(),j=$(document.body).getLayout();if(d.position=="auto")d.position=i.left+g.get("width")/2-a.width/2<0?"right":i.left+a.width/2>j.get("width")?"left":"top";Debug.write(a);switch(d.position){case "top":$(c).setStyle({top:i.top-
a.height-1+"px",left:i.left+g.get("width")/2-a.width/2+"px"}).addClassName("top");break;case "bottom":$(c).setStyle({top:i.top+g.get("height")+1+"px",left:i.left+g.get("width")/2-a.width/2+"px"}).addClassName("bottom");break;case "left":$(c).setStyle({top:i.top-g.get("height")/2+"px",left:i.left-a.width-3+"px"}).addClassName("left");break;case "right":$(c).setStyle({top:i.top+g.get("height")/2-a.height/2+"px",left:i.left+g.get("width")+"px"}).addClassName("right")}d.animate?new Effect.Appear($(c),
{duration:0.3,queue:"end"}):$(c).show()}},c=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=true,a.delay(d.delay,b)):a(b)}).observe("click",function(){d._still_going=false;c()}).observe("mouseleave",function(){d._still_going=false;c()})}})};
Platform.module(function(b,d,a){d.tooltips=function(){var c={};if(b("body").hasClass("feature-excerpts_as_tooltip-on")&&b(".ptExcerpt").length!==0)c.excerpt={elements:"#categories .tpAvatarFrame ",content:function(a){return b(a).parents(".col_c_post:first").find(".ptExcerpt li").html()}};c.stdWithImage={elements:"[data-tip] > img",content:function(a){return b(a).parent().attr("data-tip")}};c=a.optionsFor("tooltips",{rules:c});for(k in c.rules)$$(c.rules[k].elements).invoke("platformTooltip",{position:"right",
content:c.rules[k].content})};a.autoload(d.prototypeExtension);a.autoload(d.tooltips)});
Platform.module(function(b,d,a){var c={fade:{before:function(c){return function(d){a.hide(b(c.element),{type:"fade",queue:d,duration:c.duration||250})}},after:function(c){return function(d){a.show(b(c.element),{type:"fade",queue:d,duration:c.duration||250})}}},upslide:{before:function(c){return function(d){a.hide(b(c.element),{type:"upslide",queue:d,duration:c.duration||250})}},after:function(c){return function(d){a.show(b(c.element),{type:"upslide",queue:d,duration:c.duration||250})}}}};Platform.defineViewTransition=
function(b,a){c[b]=a};Platform.views=function(d){var f={},d=a.optionsFor("views",{topics:{transition:"fade",transitionOptions:{element:".topic"}},forums:{transition:"fade",transitionOptions:{element:"#categories"},callback:function(a){if(a.attr("data-target-view")=="columns"){if(b("#categories > .ptColumnWrapper").length===0){var a=b("#categories"),c=b('<div class="ptColumnWrapper" />'),d=b('<div class="ptColumnWrapper" />');a.children().each(function(b){b%2==0?c.append(jQuery(this)):d.append(jQuery(this))});
a.append(c);a.append(d);delete a}}else if(b("#categories > .tpColumnWrapper").length!==0){a=b("#categories");c=a.find(".tpColumnWrapper:first");d=a.find(".tpColumnWrapper:last");c.detach();d.detach();for(var j=c.length,e=0;e<j;e++)c[e]!==void 0&&a.append(c[e]),d[e]!==void 0&&a.append(d[e])}}}},d),g=b("body");for(set in d){f[set]===void 0&&(f[set]=[],b("[data-target-set="+set+"]").each(function(){f[set].push(b(this).attr("data-target-view"))}));for(var i=f[set].length,j=void 0,l=0;l<i;l++)if(g.hasClass("view-"+
set+"-"+f[set][l])){j=b("[data-target-set="+set+"][data-target-view="+f[set][l]+"]");break}j!==void 0&&(j.addClass("active"),d[set].callback!==void 0&&d[set].callback(j))}b("[data-target-view]").click(function(j){j.preventDefault();var l=b(this),h=l.attr("data-target-set");f[h]===void 0&&(f[h]=[],b("[data-target-set="+h+"]").each(function(){f[h].push(b(this).attr("data-target-view"))}));b("[data-target-set="+h+"]").removeClass("active");l.addClass("active");j=a.queue();if(d[h]!==void 0&&d[h].transition!==
void 0)d[h].before=c[d[h].transition].before(d[h].transitionOptions),d[h].after=c[d[h].transition].after(d[h].transitionOptions);d[h]!==void 0&&d[h].before!==void 0&&d[h].before(j,l);j.queue(function(b){d[h]!==void 0&&d[h].callback!==void 0&&d[h].callback(l);for(var a=0;a<f[h].length;a++)g.removeClass("view-"+h+"-"+f[h][a]);g.addClass("view-"+h+"-"+l.attr("data-target-view"));b()});d[h]!==void 0&&d[h].after!==void 0&&d[h].after(j,l);if(a.storage.views===void 0)a.storage.views={};a.storage.views[h]=
l.attr("data-target-view");a.persist()})};a.autoload(Platform.views)});
Platform.module(function(b,d,a){function c(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 ipb==void 0||ipb.profile==void 0||ipb.profile.customization==void 0||ipb.profile.customization!=1},f=false,g=function(a){var c=a.children("img");c.length===0&&(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%" height="100%" />'),a.append(c),a.css({"background-size":"auto","-webkit-background-size":"auto","background-image":"none"}));return c},i={fade:function(c){c===void 0&&(c={});return c.elementAbove===void 0||b(c.elementAbove).length==0?function(b,d,e,f){f==="before"?a.hide(d,{duration:c.duration||250,type:"fade"}):f==="after"&&(a.image({url:b.url,queue:d}),a.show(d,{duration:c.duration||250,type:"fade"}))}:function(d,e,i,h){if(h==="before")b.browser.webkit&&f?
(d=g(e),e=g(b(c.elementAbove)),e.attr("src",d.attr("src")),e.css("display","block")):b(c.elementAbove).css({"background-image":e.css("background-image"),"background-repeat":e.css("background-repeat"),"background-attachment":e.css("background-attachment")});else if(h==="after"){var m=b(c.elementAbove);a.image({url:d.url,queue:m});a.hide(m,{duration:c.duration||500,type:"fade"});m.queue(function(a){b.browser.webkit&&f?g(m).css("display","none"):m.css("background-image","none");m.css("display","block");
a()})}}}};Platform.backgrounds=function(c){c=a.optionsFor("backgrounds",{element:"#background",transition:"fade",transitionOptions:{elementAbove:"#background-above",duration:250}});if(c.transition!==void 0)c.around=i[c.transition](c.transitionOptions);if(c.putYourOwn===void 0)c.putYourOwn="#putyourown";if(c.around!==void 0)c.before=function(b,a,d){c.around(b,a,d,"before")},c.after=function(b,a,d){c.around(b,a,d,"after")};if(c.before===void 0)c.before=function(){};if(c.after===void 0)c.after=function(){};
b.browser.webkit&&b(c.element).css("background-size")=="cover"&&(f=true,g(b(c.element)));var d=b(c.putYourOwn);d.length!==0&&d.find("form").submit(function(i){i.preventDefault();var r=b(c.element),h=b(this).find("[name=url]").val();d.is("[data-layer]")&&a.hide(d,{type:"fade",duration:300});if(h!=="")a.storage.background=h,a.persist(),e()&&(c.before({url:h,id:void 0},r,c),r.queue(function(a){b.browser.webkit&&f?g(r).attr("src",h):r.css({"background-image":"url("+h+")","background-repeat":"no-repeat",
"background-attachment":"fixed"});a()}),c.after({url:h,id:void 0},r,c))});b("[data-background]").click(function(d){var i=b(this),h=i.attr("id"),m=b(c.element);if(h!=="put-your-own"&&(d.preventDefault(),d.stopPropagation(),a.storage.background=h,a.persist(),e())){var l=i.attr("href");c.before({url:l,id:h},m,c);m.queue(function(a){b.browser.webkit&&f?g(m).attr("src",l):m.css({"background-image":"url("+l+")","background-repeat":i.attr("data-background-repeat"),"background-attachment":i.attr("data-background-attachment")});
a()});c.after({url:l,id:h},m,c)}})};a.autoload(Platform.backgrounds);Platform.animateBackground=function(a){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=n({x:b,y:a});b=a.x;a=a.y;b<g?(b=g,h=h==="up"?"down":"up"):b>0&&(b=0,h=h==="up"?"down":"up");a<i?(a=i,h=h==="up"?"down":"up"):a>0&&(a=0,h=h==="up"?"down":"up");e.css("background-position",b+"px "+a+"px")}if(a.fps===void 0)a.fps=30;if(a.move===void 0)a.move=
"diag";var e=b(a.element),f=Math.round(1E3/a.fps),h="up",g,i,s,o,n={rect:function(a){if(h=="up")return{x:0,y:a.y-o};else if(h=="down")return{x:0,y:a.y+o}},diag:function(a){if(h=="up")return{x:a.x-s,y:a.y+o};else if(h=="down")return{x:a.x+s,y:a.y-o}}}[a.move],a=e.css("background-image"),a=a.substring(4,a.length-1);a.charAt(0)=='"'&&(a=a.substring(1,a.length-1));b.when(c(a)).done(function(a){function c(){g=parseInt(b(window).width())-a.width;i=parseInt(b(window).height())-a.height;s=-g/(15E3/f);o=-i/
(15E3/f)}c();b(window).resize(c);var h=setInterval(d,f);e.data("sb-animate-background-loop",h)})}});
Platform.module(function(b,d,a){Platform.box=function(c){c=a.optionsFor("box",{width:500,height:500,modal:false,element:false,content:"",trigger:false},c);c.width+="px";c.height+="px";if(c.element)b(c.element).hide(),c.content=b(c.element).html(),b(c.element).remove();var d=new ipb.Popup(c.name,{type:"pane",modal:c.modal,w:c.width,h:c.height,initial:c.content,hideAtStart:true,close:'[rel="close"]'});c.trigger?b(c.trigger).click(function(a){a.stopPropagation();a.preventDefault();d.show()}):d.show()};
Platform.balloon=function(c){c=a.optionsFor("balloon",{width:350,height:200,once:false,reference:"absolute",element:false,content:"",trigger:false,modal:false,position:"auto",name:"balloon1",afterCreation:function(){}},c);c.width+="px";c.height+="px";if(c.element){var d=b(c.element);d.css({display:"none"});c.content=d.html();d.remove()}var d=b(c.trigger),f=Element.extend(d[0]),g,i=function(){g=new ipb.Popup(c.name,{type:"balloon",stem:true,modal:c.modal,w:c.width,h:c.height,initial:c.content,hideAtStart:true,
close:'[rel="close"]',attach:{target:f,position:c.position,offset:c.offset||void 0}});c.reference=="fixed"&&b("#"+c.name+"_popup").css({position:"fixed"});c.afterCreation(b)};c.once&&i();d.click(function(a){a.stopPropagation();a.preventDefault();c.once||(b("#"+c.name+"_popup").remove(),i());g.show()});return g};Platform.boxes=function(a){var d=[];a==void 0&&(a={});b("[data-target-box]").each(function(){var f=b(this).attr("data-target-box");b.inArray(f,d)==-1&&(d.push(f),a[f]==void 0&&(a[f]={}),Platform.box(b.extend({name:f,
element:"[data-box="+f+"]",trigger:"[data-target-box="+f+"]"},a[f])))})};Platform.domboxes=function(a){var d=[];a==void 0&&(a={});b("[data-target-dombox]").each(function(){var f=b(this).attr("data-target-dombox");b.inArray(f,d)==-1&&(d.push(f),a[f]==void 0&&(a[f]={}),Platform.box(b.extend({name:f,content:'<div id="dombox-'+f+'-placeholder"></div>',trigger:"[data-target-dombox="+f+"]",once:true},a[f])),b("#dombox-"+f+"-placeholder").append(b("[data-dombox="+f+"]").show()))})};Platform.balloons=function(a){var d=
[];a==void 0&&(a={});b("[data-target-balloon]").each(function(){var f=b(this),g=f.attr("data-target-balloon");b.inArray(g,d)==-1&&(f.attr("id")||f.attr("id","target-balloon-"+g),d.push(g),a[g]==void 0&&(a[g]={}),Platform.balloon(b.extend({name:g,element:"[data-balloon="+g+"]",trigger:"[data-target-balloon="+g+"]"},a[g])))})};Platform.domballoons=function(c){var d=[];c==void 0&&(c=a.options.skin=="cielo"?{bgpicker:{trigger:"[data-target-domballoon=bgpicker] img",position:"topleft",reference:"fixed"}}:
{});b("[data-target-domballoon]").each(function(){var a=b(this),g=a.attr("data-target-domballoon");b.inArray(g,d)==-1&&(a.attr("id")||a.attr("id","target-domballoon-"+g),d.push(g),c[g]==void 0&&(c[g]={}),Platform.balloon(b.extend({name:g,content:'<div id="domballoon-'+g+'-placeholder"></div>',trigger:"[data-target-domballoon="+g+"]",position:"bottomright",once:true},c[g])),b("#domballoon-"+g+"-placeholder").append(b("[data-domballoon="+g+"]").show()))})};a.autoload(Platform.domballoons)});



window.skinName = "cielo"; window.skinBaseUrl = "http://www.skinbox.net/dev32/public/style_images/cielo";





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

Platform.ready([]);



