var JSON;JSON||(JSON={});
(function(){function c(a){return a<10?"0"+a:a}function e(a){f.lastIndex=0;return f.test(a)?'"'+a.replace(f,function(a){var c=g[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function b(c,d){var f,g,p,s,u=a,q,j=d[c];if(j&&typeof j==="object"&&typeof j.toJSON==="function")return j.toJSON(c);typeof i==="function"&&(j=i.call(d,c,j));switch(typeof j){case "string":return e(j);case "number":return isFinite(j)?String(j):"null";case "boolean":case "null":return String(j);
case "object":if(!j)return"null";a+=n;q=[];if(Object.prototype.toString.apply(j)==="[object Array]"){s=j.length;for(f=0;f<s;f+=1)q[f]=b(f,j)||"null";p=q.length===0?"[]":a?"[\n"+a+q.join(",\n"+a)+"\n"+u+"]":"["+q.join(",")+"]";a=u;return p}if(i&&typeof i==="object"){s=i.length;for(f=0;f<s;f+=1)typeof i[f]==="string"&&(g=i[f],(p=b(g,j))&&q.push(e(g)+(a?": ":":")+p))}else for(g in j)Object.prototype.hasOwnProperty.call(j,g)&&(p=b(g,j))&&q.push(e(g)+(a?": ":":")+p);p=q.length===0?"{}":a?"{\n"+a+q.join(",\n"+
a)+"\n"+u+"}":"{"+q.join(",")+"}";a=u;return p}}if(typeof Date.prototype.toJSON!=="function")Date.prototype.toJSON=function(){return isFinite(this.valueOf())?e(this.getUTCFullYear()+"-"+c(this.getUTCMonth()+1)+"-"+c(this.getUTCDate())+"T"+c(this.getUTCHours())+":"+c(this.getUTCMinutes())+":"+c(this.getUTCSeconds())+"Z"):null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return e(this.valueOf())};var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
f=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a,n,g={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},i;JSON.stringify=function(c,d,f){var e;n=a="";if(typeof f==="number")for(e=0;e<f;e+=1)n+=" ";else typeof f==="string"&&(n=f);if((i=d)&&typeof d!=="function"&&(typeof d!=="object"||typeof d.length!=="number"))throw Error("JSON.stringify");return b("",{"":c})};if(typeof JSON.parse!=="function")JSON.parse=
function(a,c){function f(a,d){var b,e,g=a[d];if(g&&typeof g==="object")for(b in g)Object.prototype.hasOwnProperty.call(g,b)&&(e=f(g,b),e!==void 0?g[b]=e:delete g[b]);return c.call(a,d,g)}var b,a=String(a);d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,
"")))return b=eval("("+a+")"),typeof c==="function"?f({"":b},""):b;throw new SyntaxError("JSON.parse");}})();jQuery.noConflict();
(function(c){function e(c){return typeof c=="object"?c:{top:c,left:c}}var b=c.scrollTo=function(d,b,a){c(window).scrollTo(d,b,a)};b.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};b.window=function(){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){if(this.nodeName&&c.inArray(this.nodeName.toLowerCase(),["iframe","#document","html","body"])==-1)return this;var d=(this.contentWindow||this).document||this.ownerDocument||this;return c.browser.safari||
d.compatMode=="BackCompat"?d.body:d.documentElement})};c.fn.scrollTo=function(d,f,a){typeof f=="object"&&(a=f,f=0);typeof a=="function"&&(a={onAfter:a});d=="max"&&(d=9E9);a=c.extend({},b.defaults,a);f=f||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;a.queue&&(f/=2);a.offset=e(a.offset);a.over=e(a.over);return this._scrollable().each(function(){function n(c){i.animate(m,f,a.easing,c&&function(){c.call(this,d,a)})}var g=this,i=c(g),h=d,l,m={},o=i.is("html,body");switch(typeof h){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(h)){h=
e(h);break}h=c(h,this);case "object":if(h.is||h.style)l=(h=c(h)).offset()}c.each(a.axis.split(""),function(c,d){var f=d=="x"?"Left":"Top",e=f.toLowerCase(),j="scroll"+f,v=g[j],r=b.max(g,d);l?(m[j]=l[e]+(o?0:v-i.offset()[e]),a.margin&&(m[j]-=parseInt(h.css("margin"+f))||0,m[j]-=parseInt(h.css("border"+f+"Width"))||0),m[j]+=a.offset[e]||0,a.over[e]&&(m[j]+=h[d=="x"?"width":"height"]()*a.over[e])):(f=h[e],m[j]=f.slice&&f.slice(-1)=="%"?parseFloat(f)/100*r:f);/^\d+$/.test(m[j])&&(m[j]=m[j]<=0?0:Math.min(m[j],
r));!c&&a.queue&&(v!=m[j]&&n(a.onAfterFirst),delete m[j])});n(a.onAfter)}).end()};b.max=function(d,b){var a=b=="x"?"Width":"Height",e="scroll"+a;if(!c(d).is("html,body"))return d[e]-c(d)[a.toLowerCase()]();var a="client"+a,g=d.ownerDocument.documentElement,i=d.ownerDocument.body;return Math.max(g[e],i[e])-Math.min(g[a],i[a])}})(jQuery);
jQuery.cookie=function(c,e,b){if(typeof e!="undefined"){b=b||{};if(e===null)e="",b.expires=-1;var d="";if(b.expires&&(typeof b.expires=="number"||b.expires.toUTCString))typeof b.expires=="number"?(d=new Date,d.setTime(d.getTime()+b.expires*864E5)):d=b.expires,d="; expires="+d.toUTCString();var f=b.path?"; path="+b.path:"",a=b.domain?"; domain="+b.domain:"",b=b.secure?"; secure":"";document.cookie=[c,"=",encodeURIComponent(e),d,f,a,b].join("")}else{e=null;if(document.cookie&&document.cookie!=""){b=
document.cookie.split(";");for(d=0;d<b.length;d++)if(f=jQuery.trim(b[d]),f.substring(0,c.length+1)==c+"="){e=decodeURIComponent(f.substring(c.length+1));break}}return e}};
(function(c,e,b){function d(){n=e[g](function(){f.each(function(){var a=c(this),d=a.width(),b=a.height(),f=c.data(this,h);if(d!==f.w||b!==f.h)a.trigger(i,[f.w=d,f.h=b])});d()},a[l])}var f=c([]),a=c.resize=c.extend(c.resize,{}),n,g="setTimeout",i="resize",h=i+"-special-event",l="delay";a[l]=250;a.throttleWindow=!0;c.event.special[i]={setup:function(){if(!a.throttleWindow&&this[g])return!1;var b=c(this);f=f.add(b);c.data(this,h,{w:b.width(),h:b.height()});f.length===1&&d()},teardown:function(){if(!a.throttleWindow&&
this[g])return!1;var b=c(this);f=f.not(b);b.removeData(h);f.length||clearTimeout(n)},add:function(d){function f(a,d,g){var n=c(this),i=c.data(this,h);i.w=d!==b?d:n.width();i.h=g!==b?g:n.height();e.apply(this,arguments)}if(!a.throttleWindow&&this[g])return!1;var e;if(c.isFunction(d))return e=d,f;else e=d.handler,d.handler=f}}})(jQuery,this);window.Selectivizr={parseCSS:function(){}};(function(){})(this);
(function(c,e){var b=c.jQuery||c.Cowboy||(c.Cowboy={}),d;b.throttle=d=function(c,a,d,g){function i(){function b(){l=+new Date;d.apply(p,u)}function i(){h=e}var p=this,s=+new Date-l,u=arguments;g&&!h&&b();h&&clearTimeout(h);g===e&&s>c?b():a!==!0&&(h=setTimeout(g?i:b,g===e?c-s:c))}var h,l=0;typeof a!=="boolean"&&(g=d,d=a,a=e);if(b.guid)i.guid=d.guid=d.guid||b.guid++;return i};b.debounce=function(c,a,b){return b===e?d(c,a,!1):d(c,b,a!==!1)}})(this);
jQuery.fn.topLink=function(c){c=jQuery.extend({min:250,fadeSpeed:250,ieOffset:50},c);return this.each(function(){var e=jQuery(this);jQuery(window).scroll(function(){jQuery.support.hrefNormalized||e.css({position:"absolute",top:jQuery(window).scrollTop()+jQuery(window).height()-c.ieOffset});jQuery(window).scrollTop()>=c.min?c.fadeSpeed===!1?e.show():e.fadeIn(c.fadeSpeed):c.fadeSpeed===!1?e.hide():e.fadeOut(c.fadeSpeed)})})};function $c(c,e){return function(){c(e)}}
var Platform=function(){var c={options:{},storage:{},forgets:[],autoloads:[],effects:{animate:{show:function(c,b){c.animate(b.animate,{duration:b.duration,complete:b.complete})},hide:function(e,b){c.effects.animate.show(e,b)}},fade:{show:function(c,b){c.fadeIn({duration:b.duration,complete:b.complete})},hide:function(c,b){c.fadeOut({duration:b.duration,complete:b.complete})}},slide:{show:function(c,b){c.slideDown({duration:b.duration,complete:b.complete})},hide:function(c,b){c.slideUp({duration:b.duration,
complete:b.complete})}},upslide:{show:function(e,b){var d=c.effects._utils.wrap(e);e.css("display")=="none"&&(d.$animation.css({marginTop:-e.outerHeight(),opacity:0}),e.show());d.$animation.animate({marginTop:0,opacity:1},{duration:b.duration,queue:!0,complete:b.complete})},hide:function(e,b){c.effects._utils.wrap(e).$animation.animate({marginTop:-e.outerHeight(),opacity:0},{duration:b.duration,queue:!0,complete:b.complete})}},rightslide:{show:function(){},hide:function(){}},_utils:{wrap:function(c){if(c.parent().hasClass("sb-animation"))return{$animation:c.parent(),
$animationWrapper:c.parent().parent()};if(c.hasClass("sb-animation-wrapper"))return{$animation:c.children(),$animationWrapper:c};var b={};b.$animation=c.wrapAll('<div class="sb-animation" />').parent();b.$animationWrapper=b.$animation.wrap('<div class="sb-animation-wrapper" />').parent();b.$animationWrapper.css({overflow:"hidden"});return b}}},persist:function(){var e=jQuery.extend(!0,{},c.storage);if(c.forgets.length!==0)for(var b=0;b<c.forgets.length;b++)e[c.forgets[b][0]]!==void 0&&e[c.forgets[b][0]][c.forgets[b][1]]!==
void 0&&(e[c.forgets[b][0]][c.forgets[b][1]]=void 0);jQuery.cookie("platform_storage_"+c.options.skin,JSON.stringify(e),{expires:10,path:"/"})},forget:function(e,b){c.forgets.push([e,b])},optionsFor:function(e,b,d){c.options[e]===void 0&&(c.options[e]={});return jQuery.extend(!0,b,c.options[e],d)},show:function(e,b){b=c.optionsFor("show",{type:"fade",duration:250,complete:function(){},stop:!1},b);b.stop&&e.stop(!0,!0);if(typeof b.type!="string")b.animate=b.type,b.type="animate";b.queue!==void 0?c.options.animation&&
b.type!=="none"?b.queue.queue(function(d){b.complete=d;c.effects[b.type].show(e,b)}):(e.show(),b.queue.queue(function(c){c()})):c.options.animation&&b.type!=="none"?c.effects[b.type].show(e,b):e.show()},hide:function(e,b){b=c.optionsFor("hide",{type:"fade",duration:250,complete:function(){},stop:!1},b);b.stop&&e.stop(!0,!0);if(typeof b.type!="string")b.animate=b.type,b.type="animate";b.queue!==void 0?c.options.animation&&b.type!=="none"?b.queue.queue(function(d){b.complete=d;c.effects[b.type].hide(e,
b)}):(e.hide(),b.queue.queue(function(c){c()})):c.options.animation&&b.type!=="none"?c.effects[b.type].hide(e,b):e.hide()},sequence:function(e,b){for(var b=jQuery.extend({queue:c.queue()},b),d=e.length,f=0;f<d;f++)jQuery.isArray(e[f])&&e[f][1].stop(!0,!0);for(f=0;f<d;f++)jQuery.isArray(e[f])?(e[f][2].queue=b.queue,e[f][2].stop=!0,c[e[f][0]](e[f][1],e[f][2])):b.queue.queue(e[f])},queue:function(){return jQuery("<div />")},autoload:function(e){c.autoloads.push(e)},image:function(c){c.queue.queue(function(b){var d=
new Image;d.onload=b;d.src=c.url})}};return{init:function(e){c.options=jQuery.extend({animation:!0,skin:window.skinName},c.options,e);c.storage=JSON.parse(jQuery.cookie("platform_storage_"+c.options.skin));if(!c.storage)c.storage={}},deactivate:function(c){for(var b in c)c[b]=="0"&&(Platform[b]=function(){})},module:function(e){e(jQuery,Platform,c)},ready:function(e){var b=e.length,d=c.autoloads.length;jQuery(document).ready(function(){for(var f=0;f<b;f++)e[f]();for(f=0;f<d;f++)c.autoloads[f]()})},
debug:function(){if(console===void 0)window.console={log:function(c){alert(c)}};console.log("STORAGE:");console.log(c.storage)},getCore:function(){return c}}}();
Platform.module(function(c,e,b){var d=function(a,c){c.length>0&&(c.stop(!0,!0),b.show(c,{type:"fade",duration:250}))},f=function(a,c){c.length>0&&b.hide(c,{type:"fade",duration:250})};Platform.dropdowns=function(){c("[data-dropdown]").each(function(){var a=c(this),b=a.children(":eq(1)");b.hide();b.addClass("sb-dropdown-off");a.attr("data-dropdown").indexOf("click")!==-1?a.click(function(e){e.preventDefault();b.is(":visible")?f(a,b,{}):(d(a,b,{}),e.stopPropagation(),c(document).one("click",function(c){c.preventDefault();
f(a,b,{})}))}):a.hover(function(){d(a,b,{})},function(){f(a,b,{})})})};b.autoload(Platform.dropdowns)});
Platform.module(function(c,e,b){var d=function(b,a){return c("[data-store="+b+"] > [data-key="+a+"]").html()};Platform.collapsiblePlugins={sidebar:{around:function(c){if(c.animationDuration===void 0)c.animationDuration=200;if(c.padding===void 0)c.padding=10;c.sidebarWidth=parseInt(b.options.sidebar_width)+"px";c.sidebarSide=b.options.sidebar_side;return function(a,b,d){b==="shown"&&d==="before"?(a.queue(function(a){var b={};c.sidebarSide==="right"?b.paddingRight=c.sidebarWidth:b.paddingLeft=c.sidebarWidth;
jQuery(c.contentElement).parent().animate(b,{duration:c.animationDuration,complete:a})}),a.queue(function(c){c()})):b==="hidden"&&d==="after"&&(a.queue(function(a){var b={};c.sidebarSide==="right"?b.paddingRight=c.padding+"px":b.paddingLeft=c.padding+"px";jQuery(c.contentElement).parent().animate(b,{duration:c.animationDuration,complete:a})}),a.queue(function(a){jQuery(c.contentElement).css("marginTop","-1px");a()}))}}},fade:{init:function(d){(b.storage.collapsibles[d.collapsible]!==void 0&&b.storage.collapsibles[d.collapsible]==
!1||c("[data-collapsible="+d.collapsible+"]").length===0)&&c(d.element).fadeTo(0,0.3)},around:function(b){return function(a,d,e){d==="shown"&&e==="before"?c(b.element).fadeTo(250,1):d==="hidden"&&e==="before"&&c(b.element).fadeTo(250,0.3)}}}};Platform.collapsibleSideblocks=function(){c("#ptSidebar").length!==0&&(c("body").append('<div data-store="sideblock"><span data-key="show">&hellip;</span><span data-key="hide">&times;</span></div>'),c("#ptSidebar .ipsSideBlock").each(function(d){var a=c(this);
a.find("h3").append('<a href="#" class="ptCollapseSideblock" data-use-store="sideblock" data-target-collapsible="sideblock-'+d+'">&times;</a>');a.children(":eq(1)").attr("data-collapsible","sideblock-"+d);if(b.options.collapsibles===void 0)b.options.collapsibles={};b.options.collapsibles["sideblock-"+d]={animation:"upslide",animationDuration:250}}))};Platform.collapsibles=function(){if(b.storage.collapsibles==void 0)b.storage.collapsibles={};else for(id in b.storage.collapsibles)if(!b.storage.collapsibles[id]){c("[data-collapsible="+
id+"]").hide();var f=c("[data-target-collapsible="+id+"][data-use-store]");f.length>0&&f.html(d(f.attr("data-use-store"),"show"))}var a=b.optionsFor("collapsibles",{sidebar:{animation:"fade",animationDuration:250,around:Platform.collapsiblePlugins.sidebar.around({contentElement:"#ptContent",animationDuration:250})}});c("[data-target-collapsible]").click(function(f){f.preventDefault();var f=c(this),e=f.attr("data-target-collapsible"),i=c("[data-collapsible="+e+"]"),h="";if(a[e]===void 0)a[e]={animation:"upslide",
animationDuration:500};else{if(a[e].animationDuration===void 0)a[e].animationDuration=500;if(a[e].around!==void 0)a[e].before=function(c,b){a[e].around(c,b,"before")},a[e].after=function(c,b){a[e].around(c,b,"after")}}h=b.storage.collapsibles[e]==void 0&&i.is(":visible")||b.storage.collapsibles[e]?"hidden":"shown";b.storage.collapsibles[e]=h==="shown";a[e].before!==void 0&&a[e].before(i,h);h==="hidden"?b.hide(i,{type:a[e].animation,duration:a[e].animationDuration}):b.show(i,{type:a[e].animation,duration:a[e].animationDuration});
a[e].after!==void 0&&a[e].after(i,h);i.queue(function(a){c(window).trigger("resize");a()});i.attr("data-persist")&&i.attr("data-persist")=="false"&&b.forget("collapsibles",e);b.persist();f.attr("data-use-store")&&f.html(d(f.attr("data-use-store"),b.storage.collapsibles[e]?"hide":"show"))})};b.autoload(Platform.collapsibleSideblocks);b.autoload(Platform.collapsibles)});
Platform.module(function(c,e,b){Platform.topLink=function(d){d=b.optionsFor("toplink",{element:"#backtotop",min:200,fadeSpeed:500,scrollSpeed:300},d);if(b.options.animation===!1)d.fadeSpeed=!1;c(d.element).topLink({min:d.min,fadeSpeed:d.fadeSpeed});c(d.element).click(function(b){b.preventDefault();c.scrollTo(0,d.scrollSpeed)})};b.autoload(Platform.topLink)});
Platform.module(function(c,e,b){var d={fade:{before:function(d){return function(a){b.hide(c(d.element),{type:"fade",queue:a,duration:d.duration||250})}},after:function(d){return function(a){b.show(c(d.element),{type:"fade",queue:a,duration:d.duration||250})}}},upslide:{before:function(d){return function(a){b.hide(c(d.element),{type:"upslide",queue:a,duration:d.duration||250})}},after:function(d){return function(a){b.show(c(d.element),{type:"upslide",queue:a,duration:d.duration||250})}}}};Platform.defineViewTransition=
function(c,a){d[c]=a};Platform.views=function(e){var a={},e=b.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(c("#categories > .ptColumnWrapper").length===0){var a=c("#categories"),b=c('<div class="ptColumnWrapper" />'),d=c('<div class="ptColumnWrapper" />');a.children().each(function(a){a%2==0?b.append(jQuery(this)):d.append(jQuery(this))});
a.append(b);a.append(d);delete a}}else if(c("#categories > .tpColumnWrapper").length!==0){a=c("#categories");b=a.find(".tpColumnWrapper:first");d=a.find(".tpColumnWrapper:last");b.detach();d.detach();for(var e=b.length,f=0;f<e;f++)b[f]!==void 0&&a.append(b[f]),d[f]!==void 0&&a.append(d[f])}}}},e),n=c("body");for(set in e){a[set]===void 0&&(a[set]=[],c("[data-target-set="+set+"]").each(function(){a[set].push(c(this).attr("data-target-view"))}));for(var g=a[set].length,i=void 0,h=0;h<g;h++)if(n.hasClass("view-"+
set+"-"+a[set][h])){i=c("[data-target-set="+set+"][data-target-view="+a[set][h]+"]");break}i!==void 0&&(i.addClass("active"),e[set].callback!==void 0&&e[set].callback(i))}c("[data-target-view]").click(function(g){g.preventDefault();var i=c(this),h=i.attr("data-target-set");a[h]===void 0&&(a[h]=[],c("[data-target-set="+h+"]").each(function(){a[h].push(c(this).attr("data-target-view"))}));c("[data-target-set="+h+"]").removeClass("active");i.addClass("active");g=b.queue();if(e[h]!==void 0&&e[h].transition!==
void 0)e[h].before=d[e[h].transition].before(e[h].transitionOptions),e[h].after=d[e[h].transition].after(e[h].transitionOptions);e[h]!==void 0&&e[h].before!==void 0&&e[h].before(g,i);g.queue(function(c){e[h]!==void 0&&e[h].callback!==void 0&&e[h].callback(i);for(var b=0;b<a[h].length;b++)n.removeClass("view-"+h+"-"+a[h][b]);n.addClass("view-"+h+"-"+i.attr("data-target-view"));c()});e[h]!==void 0&&e[h].after!==void 0&&e[h].after(g,i);if(b.storage.views===void 0)b.storage.views={};b.storage.views[h]=
i.attr("data-target-view");b.persist()})};b.autoload(Platform.views)});
Platform.prototypeExtension=function(){Element.addMethods({platformTooltip:function(c,e){var e=Object.extend({template:new Template("<div class='ipsTooltip ptTooltip' id='#{id}' style='display: none'><div class='ipsTooltip_inner'>#{content}</div></div>"),position:"auto",content:$(c).readAttribute("data-tooltip"),animate:!0,overrideBrowser:!0,delay:0.4},e),b=function(){if(!e.delay||e._still_going){var b=$(c).identify();$(b+"_tooltip")||$(document.body).insert({bottom:e.template.evaluate({id:b+"_tooltip",
content:e.content(c)})});e.overrideBrowser&&$(c).hasAttribute("title")&&$(c).writeAttribute("data-title",$(c).readAttribute("title")).writeAttribute("title",!1);var a=$(b+"_tooltip").setStyle({position:"absolute"}),d=$(c).getLayout(),g=$(c).cumulativeOffset(),b=$(b+"_tooltip").getDimensions(),i=$(document.body).getLayout();if(e.position=="auto")e.position=g.left+d.get("width")/2-b.width/2<0?"right":g.left+b.width/2>i.get("width")?"left":"top";Debug.write(b);switch(e.position){case "top":$(a).setStyle({top:g.top-
b.height-1+"px",left:g.left+d.get("width")/2-b.width/2+"px"}).addClassName("top");break;case "bottom":$(a).setStyle({top:g.top+d.get("height")+1+"px",left:g.left+d.get("width")/2-b.width/2+"px"}).addClassName("bottom");break;case "left":$(a).setStyle({top:g.top-d.get("height")/2+"px",left:g.left-b.width-3+"px"}).addClassName("left");break;case "right":$(a).setStyle({top:g.top+d.get("height")/2-b.height/2+"px",left:g.left+d.get("width")+"px"}).addClassName("right")}e.animate?new Effect.Appear($(a),
{duration:0.3,queue:"end"}):$(a).show()}},d=function(){var b=$(c).identify();$(b+"_tooltip")&&(e.animate?new Effect.Fade($(b+"_tooltip"),{duration:0.2,queue:"end"}):$(b+"_tooltip").hide())};$(c).observe("mouseenter",function(c){e.delay?(e._still_going=!0,b.delay(e.delay,c)):b(c)}).observe("click",function(){e._still_going=!1;d()}).observe("mouseleave",function(){e._still_going=!1;d()})}})};
Platform.module(function(c,e,b){e.tooltips=function(){var d={};if(c("body").hasClass("feature-excerpts_as_tooltip-on")&&c(".ptExcerpt").length!==0)d.excerpt={elements:"#categories .tpAvatarFrame ",content:function(b){return c(b).parents(".col_c_post:first").find(".ptExcerpt li").html()}};d=b.optionsFor("tooltips",{rules:d});for(k in d.rules)$$(d.rules[k].elements).invoke("platformTooltip",{position:"right",content:d.rules[k].content})};b.autoload(e.prototypeExtension);b.autoload(e.tooltips)});
(function(c,e){function b(a,b,d){if((b.empty||d)&&a==null)return null;if(b.def&&a==null)return b.def;b.type==="int"&&(a=~~a);b.mod&&(a=(a<0?a+b.mod*(1+~~(-a/b.mod)):a)%b.mod);b.type==="float"&&(a=parseFloat(a));if(c.isNaN(a))a=b.def;return b.min>a?b.min:b.max<a?b.max:a}function d(a,c,b){b=(b+1)%1;return b*6<1?a+(c-a)*6*b:b*2<1?c:b*3<2?a+(c-a)*(2/3-b)*6:a}var f="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color outlineColor".split(" "),a=/^([\-+])=\s*(\d+\.?\d*)/,
n=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,
parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],g=c.Color=function(a,b,d,e){return new c.Color.fn.parse(a,b,d,e)},i={rgba:{cache:"_rgba",props:{red:{idx:0,min:0,max:255,type:"int",empty:!0},green:{idx:1,min:0,max:255,type:"int",empty:!0},blue:{idx:2,min:0,max:255,type:"int",
empty:!0},alpha:{idx:3,min:0,max:1,type:"float",def:1}}},hsla:{cache:"_hsla",props:{hue:{idx:0,mod:360,type:"int",empty:!0},saturation:{idx:1,min:0,max:1,type:"float",empty:!0},lightness:{idx:2,min:0,max:1,type:"float",empty:!0}}}},h=i.rgba.props,l=g.support={},m,o=c.each;i.hsla.props.alpha=h.alpha;g.fn=g.prototype={constructor:g,parse:function(a,d,f,q){if(a===e)return this._rgba=[null,null,null,null],this;if(a instanceof c||a.nodeType)a=a instanceof c?a.css(d):c(a).css(d),d=e;var j=this,l=c.type(a),
r=this._rgba=[];d!==e&&(a=[a,d,f,q],l="array");if(l==="string"){a=a.toLowerCase();o(n,function(c,b){var d=b.re.exec(a),e=d&&b.parse(d),d=b.space||"rgba",f=i[d].cache;if(e)return e=j[d](e),d!="rgba"&&(j[f]=e[f]),r=j._rgba=e._rgba,!1});if(r.length!==0)return Math.max.apply(Math,r)===0&&$.extend(r,m.transparent),this;a=m[a]||m._default;return this.parse(a)}if(l==="array")return o(h,function(c,d){r[d.idx]=b(a[d.idx],d)}),this;if(l==="object")return a instanceof g?o(i,function(c,b){a[b.cache]&&(j[b.cache]=
a[b.cache].slice())}):o(i,function(c,d){o(d.props,function(c,e){var f=d.cache;if(!j[f]&&d.to){if(a[c]==null||c==="alpha")return;j[f]=d.to(j._rgba)}j[f][e.idx]=b(a[c],e,!0)})}),this},is:function(a){var c=g(a),b=!0,d=this;o(i,function(a,e){var f=c[e.cache],g;f&&(g=d[e.cache]||e.to&&e.to(d._rgba)||[],o(e.props,function(a,c){if(f[c.idx]!=null)return b=f[c.idx]==g[c.idx]}));return b});return b},_space:function(){var a=[],c=this;o(i,function(b,d){c[d.cache]&&a.push(b)});return a.pop()},transition:function(a,
c){var d=g(a),e=d._space(),f=i[e],h=this[f.cache]||f.to(this._rgba),n=h.slice(),d=d[f.cache];o(f.props,function(a,e){var f=h[e.idx],g=d[e.idx];g!==null&&(f===null?n[e.idx]=g:(e.mod&&(g-f>e.mod/2?f+=e.mod:f-g>e.mod/2&&(f-=e.mod)),n[e.idx]=b((g-f)*c+f,e)))});return this[e](n)},blend:function(a){if(this._rgba[3]===1)return this;var b=this._rgba.slice(),d=b.pop(),e=g(a)._rgba;return g(c.map(b,function(a,c){return(1-d)*e[c]+d*a}))},toRgbaString:function(){var a=c.map(this._rgba,function(a,c){return a==
null?c>2?1:0:a});if(a[3]===1)a.length=3;return(a.length===3?"rgb(":"rgba(")+a.join(",")+")"},toHslaString:function(){var a=c.map(this.hsla(),function(a,c){a=a==null?c>2?1:0:a;if(c===1||c===2)a=Math.round(a*100)+"%";return a});if(a[3]===1)a.length=3;return(a.length===3?"hsl(":"hsla(")+a.join(",")+")"},toHexString:function(a){var b=this._rgba.slice();if(!a)b.length=3;return"#"+c.map(b,function(a,c){var b=(a*(c===3?255:1)).toString(16);return b.length===1?"0"+b:b.substr(0,2)}).join("")},toString:function(){return this._rgba[3]===
0?"transparent":this.toRgbaString()}};g.fn.parse.prototype=g.fn;i.hsla.to=function(a){if(a[0]==null||a[1]==null||a[2]==null)return[null,null,null,a[3]];var c=a[0]/255,b=a[1]/255,d=a[2]/255,a=a[3],e=Math.max(c,b,d),f=Math.min(c,b,d),g=e-f,h=e+f,i=h*0.5;return[Math.round(f===e?0:c===e?60*(b-d)/g+360:b===e?60*(d-c)/g+120:60*(c-b)/g+240)%360,i===0||i===1?i:i<=0.5?g/h:g/(2-h),i,a==null?1:a]};i.hsla.from=function(a){if(a[0]==null||a[1]==null||a[2]==null)return[null,null,null,a[3]];var c=a[0]/360,b=a[1],
e=a[2],a=a[3],b=e<=0.5?e*(1+b):e+b-e*b,e=2*e-b;return[Math.round(d(e,b,c+1/3)*255),Math.round(d(e,b,c)*255),Math.round(d(e,b,c-1/3)*255),a]};o(i,function(d,f){var h=f.props,i=f.cache,n=f.to,l=f.from;g.fn[d]=function(a){n&&!this[i]&&(this[i]=n(this._rgba));if(a===e)return this[i].slice();var d=c.type(a),f=d==="array"||d==="object"?a:arguments,m=this[i].slice(),p;o(h,function(a,c){var e=f[d==="object"?a:c.idx];e==null&&(e=m[c.idx]);m[c.idx]=b(e,c)});return l?(p=g(l(m)),p[i]=m,p):g(m)};o(h,function(b,
e){g.fn[b]||(g.fn[b]=function(f){var g=c.type(f),h=b==="alpha"?this._hsla?"hsla":"rgba":d,i=this[h](),n=i[e.idx];if(g==="undefined")return n;g==="function"&&(f=f.call(this,n),g=c.type(f));if(f==null&&e.empty)return this;g==="string"&&(g=a.exec(f))&&(f=n+parseFloat(g[2])*(g[1]==="+"?1:-1));i[e.idx]=f;return this[h](i)})})});o(f,function(a,b){c.cssHooks[b]={set:function(a,d){d=g(d);if(!l.rgba&&d._rgba[3]!==1){var e=b==="backgroundColor"?a.parentNode:a,f;do if(f=c.curCSS(e,"backgroundColor"),f!==""&&
f!=="transparent")break;while((a=a.parentNode)&&a.style);d=d.blend(g(f||"_default"))}d=d.toRgbaString();a.style[b]=d}};c.fx.step[b]=function(a){if(!a.colorInit)a.start=g(a.elem,b),a.end=g(a.end),a.colorInit=!0;c.cssHooks[b].set(a.elem,a.start.transition(a.end,a.pos))}});c(function(){var a=document.createElement("div").style;a.cssText="background-color:rgba(150,255,150,.5)";l.rgba=a.backgroundColor.indexOf("rgba")>-1});m=c.Color.names={aqua:"#00ffff",azure:"#f0ffff",beige:"#f5f5dc",black:"#000000",
blue:"#0000ff",brown:"#a52a2a",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkviolet:"#9400d3",fuchsia:"#ff00ff",gold:"#ffd700",green:"#008000",indigo:"#4b0082",khaki:"#f0e68c",lightblue:"#add8e6",lightcyan:"#e0ffff",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightyellow:"#ffffe0",lime:"#00ff00",
magenta:"#ff00ff",maroon:"#800000",navy:"#000080",olive:"#808000",orange:"#ffa500",pink:"#ffc0cb",purple:"#800080",violet:"#800080",red:"#ff0000",silver:"#c0c0c0",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery);
(function(c){jQuery.fn.farbtastic=function(e){c.farbtastic(this,e);return this};jQuery.farbtastic=function(e,b){e=c(e).get(0);return e.farbtastic||(e.farbtastic=new jQuery._farbtastic(e,b))};jQuery._farbtastic=function(e,b){var d=this;c(e).html('<div class="farbtastic"><div class="color"></div><div class="wheel"></div><div class="overlay"></div><div class="h-marker marker"></div><div class="sl-marker marker"></div></div>');var f=c(".farbtastic",e);d.wheel=c(".wheel",e).get(0);d.radius=84;d.square=
100;d.width=194;navigator.appVersion.match(/MSIE [0-6]\./)&&c("*",f).each(function(){if(this.currentStyle.backgroundImage!="none"){var a=this.currentStyle.backgroundImage,a=this.currentStyle.backgroundImage.substring(5,a.length-2);c(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+a+"')"})}});d.linkTo=function(a){typeof d.callback=="object"&&c(d.callback).unbind("keyup",d.updateValue);d.color=null;if(typeof a=="function")d.callback=
a;else if(typeof a=="object"||typeof a=="string")d.callback=c(a),d.callback.bind("keyup",d.updateValue),d.callback.get(0).value&&d.setColor(d.callback.get(0).value);return this};d.updateValue=function(){this.value&&this.value!=d.color&&d.setColor(this.value)};d.setColor=function(a){var b=d.unpack(a);if(d.color!=a&&b)d.color=a,d.rgb=b,d.hsl=d.RGBToHSL(d.rgb),d.updateDisplay();return this};d.setHSL=function(a){d.hsl=a;d.rgb=d.HSLToRGB(a);d.color=d.pack(d.rgb);d.updateDisplay();return this};d.widgetCoords=
function(a){var b,e,f=a.target||a.srcElement,h=d.wheel;if(typeof a.offsetX!="undefined"){for(var l={x:a.offsetX,y:a.offsetY},a=f;a;)a.mouseX=l.x,a.mouseY=l.y,l.x+=a.offsetLeft,l.y+=a.offsetTop,a=a.offsetParent;a=h;for(l=h=0;a;){if(typeof a.mouseX!="undefined"){b=a.mouseX-h;e=a.mouseY-l;break}h+=a.offsetLeft;l+=a.offsetTop;a=a.offsetParent}for(a=f;a;)a.mouseX=void 0,a.mouseY=void 0,a=a.offsetParent}else l=d.absolutePosition(h),b=(a.pageX||0*(a.clientX+c("html").get(0).scrollLeft))-l.x,e=(a.pageY||
0*(a.clientY+c("html").get(0).scrollTop))-l.y;return{x:b-d.width/2,y:e-d.width/2}};d.mousedown=function(a){if(!document.dragging)c(document).bind("mousemove",d.mousemove).bind("mouseup",d.mouseup),document.dragging=!0;var b=d.widgetCoords(a);d.circleDrag=Math.max(Math.abs(b.x),Math.abs(b.y))*2>d.square;d.mousemove(a);c(d.callback).change();return!1};d.mousemove=function(a){var b=d.widgetCoords(a);d.circleDrag?(a=Math.atan2(b.x,-b.y)/6.28,a<0&&(a+=1),d.setHSL([a,d.hsl[1],d.hsl[2]])):(a=Math.max(0,
Math.min(1,-(b.x/d.square)+0.5)),b=Math.max(0,Math.min(1,-(b.y/d.square)+0.5)),d.setHSL([d.hsl[0],a,b]));return!1};d.mouseup=function(){c(document).unbind("mousemove",d.mousemove);c(document).unbind("mouseup",d.mouseup);document.dragging=!1;c(d.callback).change()};d.updateDisplay=function(){var a=d.hsl[0]*6.28;c(".h-marker",f).css({left:Math.round(Math.sin(a)*d.radius+d.width/2)+"px",top:Math.round(-Math.cos(a)*d.radius+d.width/2)+"px"});c(".sl-marker",f).css({left:Math.round(d.square*(0.5-d.hsl[1])+
d.width/2)+"px",top:Math.round(d.square*(0.5-d.hsl[2])+d.width/2)+"px"});c(".color",f).css("backgroundColor",d.pack(d.HSLToRGB([d.hsl[0],1,0.5])));typeof d.callback=="object"?(c(d.callback).css({backgroundColor:d.color,color:d.hsl[2]>0.5?"#000":"#fff"}),c(d.callback).each(function(){if(this.value&&this.value!=d.color)this.value=d.color,c.browser.msie||c(this).change()})):typeof d.callback=="function"&&d.callback.call(d,d.color)};d.absolutePosition=function(a){var b={x:a.offsetLeft,y:a.offsetTop};
a.offsetParent&&(a=d.absolutePosition(a.offsetParent),b.x+=a.x,b.y+=a.y);return b};d.pack=function(a){var b=Math.round(a[0]*255),c=Math.round(a[1]*255),a=Math.round(a[2]*255);return"#"+(b<16?"0":"")+b.toString(16)+(c<16?"0":"")+c.toString(16)+(a<16?"0":"")+a.toString(16)};d.unpack=function(a){if(a.length==7)return[parseInt("0x"+a.substring(1,3))/255,parseInt("0x"+a.substring(3,5))/255,parseInt("0x"+a.substring(5,7))/255];else if(a.length==4)return[parseInt("0x"+a.substring(1,2))/15,parseInt("0x"+
a.substring(2,3))/15,parseInt("0x"+a.substring(3,4))/15]};d.HSLToRGB=function(a){var b,c=a[0];b=a[1];a=a[2];b=a<=0.5?a*(b+1):a+b-a*b;a=a*2-b;return[this.hueToRGB(a,b,c+0.33333),this.hueToRGB(a,b,c),this.hueToRGB(a,b,c-0.33333)]};d.hueToRGB=function(a,b,c){c=c<0?c+1:c>1?c-1:c;return c*6<1?a+(b-a)*c*6:c*2<1?b:c*3<2?a+(b-a)*(0.66666-c)*6:a};d.RGBToHSL=function(a){var b,c,d,e,f=a[0],m=a[1],o=a[2];b=Math.min(f,Math.min(m,o));a=Math.max(f,Math.max(m,o));c=a-b;e=(b+a)/2;d=0;e>0&&e<1&&(d=c/(e<0.5?2*e:2-2*
e));b=0;c>0&&(a==f&&a!=m&&(b+=(m-o)/c),a==m&&a!=o&&(b+=2+(o-f)/c),a==o&&a!=f&&(b+=4+(f-m)/c),b/=6);return[b,d,e]};c("*",f).mousedown(d.mousedown);d.setColor("#000000");b&&d.linkTo(b)}})(jQuery);
Platform.module(function(c,e,b){var d=function(d,a,e,g){c("#dynamicsheet").remove();var i="",h={background:"background-color",text:"color",border:"border-color"},l,m;for(t in h){l=e[t].split(",");m=l.length;for(var o=0;o<m;o++)i+=l[o]+" { "+h[t]+": "+g+"; } "}c("head").append('<style type="text/css" id="dynamicsheet">'+i+"</style>");g=c.Color(g).toHexString();d.setColor(g);a.val(g);b.storage.color=g;b.persist()};Platform.colors=function(e){var e=b.optionsFor("colors",{element:"#ptColorPicker",input:"#ptColorInput"}),
a=c.Color(c(e.background).css("background-color")).toHexString(),n=c(e.element),g=c.farbtastic(n),i=c(e.input);g.linkTo(i);g.setColor(a);i.val(a);i.change(function(){d(g,i,e,i.val())});c("[data-target-color]").click(function(a){d(g,i,e,c(this).attr("data-target-color"));a.preventDefault()})};b.autoload(Platform.colors)});



window.skinName = "platform"; window.skinBaseUrl = "http://localhost:8888/ipb/public/style_images/elegant";

Platform.backgroundPicker = function(){};Platform.hoverToggler = function(){};if(Platform.getCore().options.sortables == undefined) Platform.getCore().options.sortables = {}; Platform.getCore().options.sortables.categories = false;if(Platform.getCore().options.sortables == undefined) Platform.getCore().options.sortables = {}; Platform.getCore().options.sortables.sidebar = false;



Platform.getCore().options.colors = { background: 'html, body,#ipbwrapper,#branding,#primary_nav,.maintitle,#ipboard_body .header,.welcome,.row1, .post_block.row1, .topic_list tr:nth-child(odd), .category_block tr:nth-child(odd),general_box h3,.ipsSideBlock h3,.statistics_head,.post_block h3,.view-topics-compact .topic .author_info,.popupInner h3,.topic_buttons li.important a, .topic_buttons li.important span, .ipsButton .important,.topic_buttons li a, .topic_buttons li span, .ipsButton', border: '.ipsBox,.maintitle,.popupInner h3,.topic_buttons li.important a, .topic_buttons li.important span, .ipsButton .important,.topic_buttons li a, .topic_buttons li span, .ipsButton', text: 'a' };

Platform.getCore().options.sidebar_width = 330;
Platform.getCore().options.sidebar_side = 'right';Platform.init();

Platform.ready([
  
]);




