(function(){var a=function(){var a=[],b=1;function d(){if(typeof window.Flux4!="object")window.Flux4={};Flux4.createWidget=function(){var e=arguments;if(document.readyState!="complete"){var d=arguments.length==2&&typeof arguments[1]!="function"||arguments.length==3?arguments[1]:{};if(!d.container&&!d.containerId){var c="Flux4DebugWidget_"+b;b++;document.write('<div id="'+c+'"></div>');if(arguments.length==1)e=[arguments[0],{containerId:c}];else if(arguments.length==2&&typeof arguments[1]=="function")e=[arguments[0],{containerId:c},arguments[1]];else d.containerId=c}}a.push(e)}}function e(){for(var b=document.getElementsByTagName("script"),c=new RegExp("http://widgets4.(flux-dev.com|flux-staging.com|flux.com)/Core","i"),a=0;a<b.length;a++)if(c.test(b[a].getAttribute("src")||""))return b[a]}function c(){return typeof window.Flux4=="object"&&!!window.Flux4}return{reloadOnDebug:function(h){if(!c()&&window.location.href.toLowerCase().indexOf(h.toLowerCase())>-1){d();var i=e(),j=i.getAttribute("id"),g=i.getAttribute("src");g+=(g.indexOf("?")>-1?"&":"?")+h;var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("src",g);b.setAttribute("id",j);b.setAttribute("widgets4Debug","true");var f=document.getElementsByTagName("HEAD")[0]||document.documentElement;b.onload=b.onreadystatechange=function(){if(!this.readyState||this.readyState==="loaded"||this.readyState==="complete"){b.onload=b.onreadystatechange=null;f&&b.parentNode&&f.removeChild(b);this.removeAttribute("widgets4Debug");for(var c=0;c<a.length;c++)Flux4.createWidget.apply(null,a[c])}};f.insertBefore(b,f.firstChild);return true}return false}}}();if(!a.reloadOnDebug("enableWidgetsDebug=true")){/*
 * jQuery JavaScript Library v1.6.1
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu May 12 15:04:36 2011 -0400
 */
(function(d,b){var c=d.document,Tb=d.navigator,Yb=d.location,a=function(){var a=function(b,c){return new a.fn.init(b,c,m)},C=d.jQuery,G=d.$,m,x=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,n=/\S/,p=/^\s+/,o=/\s+$/,D=/\d/,w=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,v=/^[\],:{}\s]*$/,t=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,u=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,s=/(?:^|:|,)(?:\s*\[)+/g,B=/(webkit)[ \/]([\w.]+)/,E=/(opera)(?:.*version)?[ \/]([\w.]+)/,F=/(msie) ([\w.]+)/,z=/(mozilla)(?:.*? rv:([\w.]+))?/,y=Tb.userAgent,g,h,e,A=Object.prototype.toString,i=Object.prototype.hasOwnProperty,j=Array.prototype.push,f=Array.prototype.slice,r=String.prototype.trim,q=Array.prototype.indexOf,l={};a.fn=a.prototype={constructor:a,init:function(d,e,i){var f,h,g,j;if(!d)return this;if(d.nodeType){this.context=this[0]=d;this.length=1;return this}if(d==="body"&&!e&&c.body){this.context=c;this[0]=c.body;this.selector=d;this.length=1;return this}if(typeof d==="string"){if(d.charAt(0)==="<"&&d.charAt(d.length-1)===">"&&d.length>=3)f=[null,d,null];else f=x.exec(d);if(f&&(f[1]||!e))if(f[1]){e=e instanceof a?e[0]:e;j=e?e.ownerDocument||e:c;g=w.exec(d);if(g)if(a.isPlainObject(e)){d=[c.createElement(g[1])];a.fn.attr.call(d,e,true)}else d=[j.createElement(g[1])];else{g=a.buildFragment([f[1]],[j]);d=(g.cacheable?a.clone(g.fragment):g.fragment).childNodes}return a.merge(this,d)}else{h=c.getElementById(f[2]);if(h&&h.parentNode){if(h.id!==f[2])return i.find(d);this.length=1;this[0]=h}this.context=c;this.selector=d;return this}else return!e||e.jquery?(e||i).find(d):this.constructor(e).find(d)}else if(a.isFunction(d))return i.ready(d);if(d.selector!==b){this.selector=d.selector;this.context=d.context}return a.makeArray(d,this)},selector:"",jquery:"1.6.1",length:0,size:function(){return this.length},toArray:function(){return f.call(this,0)},"get":function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(c,d,e){var b=this.constructor();if(a.isArray(c))j.apply(b,c);else a.merge(b,c);b.prevObject=this;b.context=this.context;if(d==="find")b.selector=this.selector+(this.selector?" ":"")+e;else if(d)b.selector=this.selector+"."+d+"("+e+")";return b},each:function(b,c){return a.each(this,b,c)},ready:function(b){a.bindReady();h.done(b);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(f.apply(this,arguments),"slice",f.call(arguments).join(","))},map:function(b){return this.pushStack(a.map(this,function(a,c){return b.call(a,c,a)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice};a.fn.init.prototype=a.fn;a.extend=a.fn.extend=function(){var i,g,e,d,h,j,c=arguments[0]||{},f=1,l=arguments.length,k=false;if(typeof c==="boolean"){k=c;c=arguments[1]||{};f=2}if(typeof c!=="object"&&!a.isFunction(c))c={};if(l===f){c=this;--f}for(;f<l;f++)if((i=arguments[f])!=null)for(g in i){e=c[g];d=i[g];if(c===d)continue;if(k&&d&&(a.isPlainObject(d)||(h=a.isArray(d)))){if(h){h=false;j=e&&a.isArray(e)?e:[]}else j=e&&a.isPlainObject(e)?e:{};c[g]=a.extend(k,j,d)}else if(d!==b)c[g]=d}return c};a.extend({noConflict:function(b){if(d.$===a)d.$=G;if(b&&d.jQuery===a)d.jQuery=C;return a},isReady:false,readyWait:1,holdReady:function(b){if(b)a.readyWait++;else a.ready(true)},ready:function(b){if(b===true&&!--a.readyWait||b!==true&&!a.isReady){if(!c.body)return setTimeout(a.ready,1);a.isReady=true;if(b!==true&&--a.readyWait>0)return;h.resolveWith(c,[a]);a.fn.trigger&&a(c).trigger("ready").unbind("ready")}},bindReady:function(){if(h)return;h=a._Deferred();if(c.readyState==="complete")return setTimeout(a.ready,1);if(c.addEventListener){c.addEventListener("DOMContentLoaded",e,false);d.addEventListener("load",a.ready,false)}else if(c.attachEvent){c.attachEvent("onreadystatechange",e);d.attachEvent("onload",a.ready);var b=false;try{b=d.frameElement==null}catch(f){}c.documentElement.doScroll&&b&&k()}},isFunction:function(b){return a.type(b)==="function"},isArray:Array.isArray||function(b){return a.type(b)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!D.test(a)||isNaN(a)},type:function(a){return a==null?String(a):l[A.call(a)]||"object"},isPlainObject:function(c){if(!c||a.type(c)!=="object"||c.nodeType||a.isWindow(c))return false;if(c.constructor&&!i.call(c,"constructor")&&!i.call(c.constructor.prototype,"isPrototypeOf"))return false;var d;for(d in c);return d===b||i.call(c,d)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=a.trim(b);if(d.JSON&&d.JSON.parse)return d.JSON.parse(b);if(v.test(b.replace(t,"@").replace(u,"]").replace(s,"")))return new Function("return "+b)();a.error("Invalid JSON: "+b)},parseXML:function(e,c,b){if(d.DOMParser){b=new DOMParser;c=b.parseFromString(e,"text/xml")}else{c=new ActiveXObject("Microsoft.XMLDOM");c.async="false";c.loadXML(e)}b=c.documentElement;(!b||!b.nodeName||b.nodeName==="parsererror")&&a.error("Invalid XML: "+e);return c},noop:function(){},globalEval:function(a){a&&n.test(a)&&(d.execScript||function(a){d.eval.call(d,a)})(a)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(c,f,h){var d,e=0,g=c.length,i=g===b||a.isFunction(c);if(h){if(i){for(d in c)if(f.apply(c[d],h)===false)break}else for(;e<g;)if(f.apply(c[e++],h)===false)break}else if(i){for(d in c)if(f.call(c[d],d,c[d])===false)break}else for(;e<g;)if(f.call(c[e],e,c[e++])===false)break;return c},trim:r?function(a){return a==null?"":r.call(a)}:function(a){return a==null?"":a.toString().replace(p,"").replace(o,"")},makeArray:function(b,e){var d=e||[];if(b!=null){var c=a.type(b);if(b.length==null||c==="string"||c==="function"||c==="regexp"||a.isWindow(b))j.call(d,b);else a.merge(d,b)}return d},inArray:function(c,b){if(q)return q.call(b,c);for(var a=0,d=b.length;a<d;a++)if(b[a]===c)return a;return-1},merge:function(c,a){var e=c.length,d=0;if(typeof a.length==="number")for(var f=a.length;d<f;d++)c[e++]=a[d];else while(a[d]!==b)c[e++]=a[d++];c.length=e;return c},grep:function(b,f,c){var e=[],d;c=!!c;for(var a=0,g=b.length;a<g;a++){d=!!f(b[a],a);c!==d&&e.push(b[a])}return e},map:function(c,i,j){var e,h,f=[],g=0,d=c.length,k=c instanceof a||d!==b&&typeof d==="number"&&(d>0&&c[0]&&c[d-1]||d===0||a.isArray(c));if(k)for(;g<d;g++){e=i(c[g],g,j);if(e!=null)f[f.length]=e}else for(h in c){e=i(c[h],h,j);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(c,d){if(typeof d==="string"){var h=c[d];d=c;c=h}if(!a.isFunction(c))return b;var g=f.call(arguments,2),e=function(){return c.apply(d,g.concat(f.call(arguments)))};e.guid=c.guid=c.guid||e.guid||a.guid++;return e},access:function(c,d,f,g,h,j){var i=c.length;if(typeof d==="object"){for(var k in d)a.access(c,k,d[k],g,h,f);return c}if(f!==b){g=!j&&g&&a.isFunction(f);for(var e=0;e<i;e++)h(c[e],d,g?f.call(c[e],e,h(c[e],d)):f,j);return c}return i?h(c[0],d):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=B.exec(a)||E.exec(a)||F.exec(a)||a.indexOf("compatible")<0&&z.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function b(a,c){return new b.fn.init(a,c)}a.extend(true,b,this);b.superclass=this;b.fn=b.prototype=this();b.fn.constructor=b;b.sub=this.sub;b.fn.init=function(e,c){if(c&&c instanceof a&&!(c instanceof b))c=b(c);return a.fn.init.call(this,e,c,d)};b.fn.init.prototype=b.fn;var d=b(c);return b},browser:{}});a.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b,a){l["[object "+a+"]"]=a.toLowerCase()});g=a.uaMatch(y);if(g.browser){a.browser[g.browser]=true;a.browser.version=g.version}if(a.browser.webkit)a.browser.safari=true;if(n.test(" ")){p=/^[\s\xA0]+/;o=/[\s\xA0]+$/}m=a(c);if(c.addEventListener)e=function(){c.removeEventListener("DOMContentLoaded",e,false);a.ready()};else if(c.attachEvent)e=function(){if(c.readyState==="complete"){c.detachEvent("onreadystatechange",e);a.ready()}};function k(){if(a.isReady)return;try{c.documentElement.doScroll("left")}catch(b){setTimeout(k,1);return}a.ready()}return a}(),C="done fail isResolved isRejected promise then always pipe".split(" "),U=[].slice;a.extend({_Deferred:function(){var d=[],b,e,f,c={done:function(){if(!f){var k=arguments,h,j,g,i,e;if(b){e=b;b=0}for(h=0,j=k.length;h<j;h++){g=k[h];i=a.type(g);if(i==="array")c.done.apply(c,g);else i==="function"&&d.push(g)}e&&c.resolveWith(e[0],e[1])}return this},resolveWith:function(c,a){if(!f&&!b&&!e){a=a||[];e=1;try{while(d[0])d.shift().apply(c,a)}finally{b=[c,a];e=0}}return this},resolve:function(){c.resolveWith(this,arguments);return this},isResolved:function(){return!!(e||b)},cancel:function(){f=1;d=[];return this}};return c},Deferred:function(e){var b=a._Deferred(),c=a._Deferred(),d;a.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(c,d){return a.Deferred(function(e){a.each({done:[c,"resolve"],fail:[d,"reject"]},function(d,g){var h=g[0],f=g[1],c;if(a.isFunction(h))b[d](function(){c=h.apply(this,arguments);if(c&&a.isFunction(c.promise))c.promise().then(e.resolve,e.reject);else e[f](c)});else b[d](e[f])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=C.length;while(c--)a[C[c]]=b[C[c]];return a}});b.done(c.cancel).fail(b.cancel);delete b.cancel;e&&e.call(b,b);return b},when:function(e){var c=arguments,d=0,f=c.length,g=f,b=f<=1&&e&&a.isFunction(e.promise)?e:a.Deferred();function h(a){return function(d){c[a]=arguments.length>1?U.call(arguments,0):d;!--g&&b.resolveWith(b,U.call(c,0))}}if(f>1){for(;d<f;d++)if(c[d]&&a.isFunction(c[d].promise))c[d].promise().then(h(d),b.reject);else--g;!g&&b.resolveWith(b,c)}else b!==e&&b.resolveWith(b,f?[e]:[]);return b.promise()}});a.support=function(){var a=c.createElement("div"),l=c.documentElement,p,g,o,q,d,i,b,n,f,m,j,s,k,h,e;a.setAttribute("className","t");a.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";p=a.getElementsByTagName("*");g=a.getElementsByTagName("a")[0];if(!p||!p.length||!g)return{};o=c.createElement("select");q=o.appendChild(c.createElement("option"));d=a.getElementsByTagName("input")[0];b={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(g.getAttribute("style")),hrefNormalized:g.getAttribute("href")==="/a",opacity:/^0.55$/.test(g.style.opacity),cssFloat:!!g.style.cssFloat,checkOn:d.value==="on",optSelected:q.selected,getSetAttribute:a.className!=="t",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};d.checked=true;b.noCloneChecked=d.cloneNode(true).checked;o.disabled=true;b.optDisabled=!q.disabled;try{delete a.test}catch(t){b.deleteExpando=false}if(!a.addEventListener&&a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function r(){b.noCloneEvent=false;a.detachEvent("onclick",r)});a.cloneNode(true).fireEvent("onclick")}d=c.createElement("input");d.value="t";d.setAttribute("type","radio");b.radioValue=d.value==="t";d.setAttribute("checked","checked");a.appendChild(d);n=c.createDocumentFragment();n.appendChild(a.firstChild);b.checkClone=n.cloneNode(true).cloneNode(true).lastChild.checked;a.innerHTML="";a.style.width=a.style.paddingLeft="1px";f=c.createElement("body");m={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(h in m)f.style[h]=m[h];f.appendChild(a);l.insertBefore(f,l.firstChild);b.appendChecked=d.checked;b.boxModel=a.offsetWidth===2;if("zoom"in a.style){a.style.display="inline";a.style.zoom=1;b.inlineBlockNeedsLayout=a.offsetWidth===2;a.style.display="";a.innerHTML="<div style='width:4px;'></div>";b.shrinkWrapBlocks=a.offsetWidth!==2}a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";j=a.getElementsByTagName("td");e=j[0].offsetHeight===0;j[0].style.display="";j[1].style.display="none";b.reliableHiddenOffsets=e&&j[0].offsetHeight===0;a.innerHTML="";if(c.defaultView&&c.defaultView.getComputedStyle){i=c.createElement("div");i.style.width="0";i.style.marginRight="0";a.appendChild(i);b.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(i,null)||{marginRight:0}).marginRight,10)||0)===0}f.innerHTML="";l.removeChild(f);if(a.attachEvent)for(h in{submit:1,change:1,focusin:1}){k="on"+h;e=k in a;if(!e){a.setAttribute(k,"return;");e=typeof a[k]==="function"}b[h+"Bubbles"]=e}return b}();a.boxModel=a.support.boxModel;var kc=/^(?:\{.*\}|\[.*\])$/,Qb=/([a-z])([A-Z])/g;a.extend({cache:{},uuid:0,expando:"jQuery"+(a.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(b){b=b.nodeType?a.cache[b[a.expando]]:b[a.expando];return!!b&&!A(b)},data:function(h,f,j,k){if(!a.acceptData(h))return;var g=a.expando,l=typeof f==="string",d,i=h.nodeType,e=i?a.cache:h,c=i?h[a.expando]:h[a.expando]&&a.expando;if((!c||k&&c&&!e[c][g])&&l&&j===b)return;if(!c)if(i)h[a.expando]=c=++a.uuid;else c=a.expando;if(!e[c]){e[c]={};if(!i)e[c].toJSON=a.noop}if(typeof f==="object"||typeof f==="function")if(k)e[c][g]=a.extend(e[c][g],f);else e[c]=a.extend(e[c],f);d=e[c];if(k){if(!d[g])d[g]={};d=d[g]}if(j!==b)d[a.camelCase(f)]=j;return f==="events"&&!d[f]?d[g]&&d[g].events:l?d[a.camelCase(f)]:d},removeData:function(e,j,k){if(!a.acceptData(e))return;var f=a.expando,g=e.nodeType,b=g?a.cache:e,c=g?e[a.expando]:a.expando;if(!b[c])return;if(j){var h=k?b[c][f]:b[c];if(h){delete h[j];if(!A(h))return}}if(k){delete b[c][f];if(!A(b[c]))return}var i=b[c][f];if(a.support.deleteExpando||b!=d)delete b[c];else b[c]=null;if(i){b[c]={};if(!g)b[c].toJSON=a.noop;b[c][f]=i}else if(g)if(a.support.deleteExpando)delete e[a.expando];else if(e.removeAttribute)e.removeAttribute(a.expando);else e[a.expando]=null},_data:function(c,d,b){return a.data(c,d,b,true)},acceptData:function(c){if(c.nodeName){var b=a.noData[c.nodeName.toLowerCase()];if(b)return!(b===true||c.getAttribute("classid")!==b)}return true}});a.fn.extend({data:function(e,g){var d=null;if(typeof e==="undefined"){if(this.length){d=a.data(this[0]);if(this[0].nodeType===1)for(var i=this[0].attributes,f,h=0,j=i.length;h<j;h++){f=i[h].name;if(f.indexOf("data-")===0){f=a.camelCase(f.substring(5));cb(this[0],f,d[f])}}}return d}else if(typeof e==="object")return this.each(function(){a.data(this,e)});var c=e.split(".");c[1]=c[1]?"."+c[1]:"";if(g===b){d=this.triggerHandler("getData"+c[1]+"!",[c[0]]);if(d===b&&this.length){d=a.data(this[0],e);d=cb(this[0],e,d)}return d===b&&c[1]?this.data(c[0]):d}else return this.each(function(){var b=a(this),d=[c[0],g];b.triggerHandler("setData"+c[1]+"!",d);a.data(this,e,g);b.triggerHandler("changeData"+c[1]+"!",d)})},removeData:function(b){return this.each(function(){a.removeData(this,b)})}});function cb(d,e,c){if(c===b&&d.nodeType===1){var f="data-"+e.replace(Qb,"$1-$2").toLowerCase();c=d.getAttribute(f);if(typeof c==="string"){try{c=c==="true"?true:c==="false"?false:c==="null"?null:!a.isNaN(c)?parseFloat(c):kc.test(c)?a.parseJSON(c):c}catch(g){}a.data(d,e,c)}else c=b}return c}function A(b){for(var a in b)if(a!=="toJSON")return false;return true}function M(c,d,i){var e=d+"defer",f=d+"queue",g=d+"mark",h=a.data(c,e,b,true);h&&(i==="queue"||!a.data(c,f,b,true))&&(i==="mark"||!a.data(c,g,b,true))&&setTimeout(function(){if(!a.data(c,f,b,true)&&!a.data(c,g,b,true)){a.removeData(c,e,true);h.resolve()}},0)}a.extend({_mark:function(d,c){if(d){c=(c||"fx")+"mark";a.data(d,c,(a.data(d,c,b,true)||0)+1,true)}},_unmark:function(e,c,d){if(e!==true){d=c;c=e;e=false}if(c){d=d||"fx";var f=d+"mark",g=e?0:(a.data(c,f,b,true)||1)-1;if(g)a.data(c,f,g,true);else{a.removeData(c,f,true);M(c,d,"mark")}}},queue:function(f,d,c){if(f){d=(d||"fx")+"queue";var e=a.data(f,d,b,true);if(c)if(!e||a.isArray(c))e=a.data(f,d,a.makeArray(c),true);else e.push(c);return e||[]}},dequeue:function(c,b){b=b||"fx";var d=a.queue(c,b),e=d.shift(),f;if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(c,function(){a.dequeue(c,b)})}if(!d.length){a.removeData(c,b+"queue",true);M(c,b,"queue")}}});a.fn.extend({queue:function(c,d){if(typeof c!=="string"){d=c;c="fx"}return d===b?a.queue(this[0],c):this.each(function(){var b=a.queue(this,c,d);c==="fx"&&b[0]!=="inprogress"&&a.dequeue(this,c)})},dequeue:function(b){return this.each(function(){a.dequeue(this,b)})},delay:function(b,c){b=a.fx?a.fx.speeds[b]||b:b;c=c||"fx";return this.queue(c,function(){var d=this;setTimeout(function(){a.dequeue(d,c)},b)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(c,m){if(typeof c!=="string"){m=c;c=b}c=c||"fx";var i=a.Deferred(),d=this,e=d.length,h=1,f=c+"defer",k=c+"queue",l=c+"mark",j;function g(){!--h&&i.resolveWith(d,[d])}while(e--)if(j=a.data(d[e],f,b,true)||(a.data(d[e],k,b,true)||a.data(d[e],l,b,true))&&a.data(d[e],f,a._Deferred(),true)){h++;j.done(g)}g();return i.promise()}});var mb=/[\n\t\r]/g,K=/\s+/,hc=/\r/g,tc=/^(?:button|input)$/i,Pb=/^(?:button|input|object|select|textarea)$/i,Nb=/^a(?:rea)?$/i,eb=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Fb=/\:/,j,bb;a.fn.extend({attr:function(c,b){return a.access(this,c,b,true,a.attr)},removeAttr:function(b){return this.each(function(){a.removeAttr(this,b)})},prop:function(c,b){return a.access(this,c,b,true,a.prop)},removeProp:function(c){c=a.propFix[c]||c;return this.each(function(){try{this[c]=b;delete this[c]}catch(a){}})},addClass:function(b){if(a.isFunction(b))return this.each(function(d){var c=a(this);c.addClass(b.call(this,d,c.attr("class")||""))});if(b&&typeof b==="string")for(var e=(b||"").split(K),f=0,j=this.length;f<j;f++){var c=this[f];if(c.nodeType===1)if(!c.className)c.className=b;else{for(var h=" "+c.className+" ",g=c.className,d=0,i=e.length;d<i;d++)if(h.indexOf(" "+e[d]+" ")<0)g+=" "+e[d];c.className=a.trim(g)}}return this},removeClass:function(c){if(a.isFunction(c))return this.each(function(d){var b=a(this);b.removeClass(c.call(this,d,b.attr("class")))});if(c&&typeof c==="string"||c===b)for(var h=(c||"").split(K),g=0,j=this.length;g<j;g++){var d=this[g];if(d.nodeType===1&&d.className)if(c){for(var e=(" "+d.className+" ").replace(mb," "),f=0,i=h.length;f<i;f++)e=e.replace(" "+h[f]+" "," ");d.className=a.trim(e)}else d.className=""}return this},toggleClass:function(b,c){var d=typeof b,e=typeof c==="boolean";return a.isFunction(b)?this.each(function(e){var d=a(this);d.toggleClass(b.call(this,e,d.attr("class"),c),c)}):this.each(function(){if(d==="string"){var f,j=0,h=a(this),g=c,i=b.split(K);while(f=i[j++]){g=e?g:!h.hasClass(f);h[g?"addClass":"removeClass"](f)}}else if(d==="undefined"||d==="boolean"){this.className&&a._data(this,"__className__",this.className);this.className=this.className||b===false?"":a._data(this,"__className__")||""}})},hasClass:function(c){for(var b=" "+c+" ",a=0,d=this.length;a<d;a++)if((" "+this[a].className+" ").replace(mb," ").indexOf(b)>-1)return true;return false},val:function(e){var c,f,d=this[0];if(!arguments.length){if(d){c=a.valHooks[d.nodeName.toLowerCase()]||a.valHooks[d.type];return c&&"get"in c&&(f=c.get(d,"value"))!==b?f:(d.value||"").replace(hc,"")}return b}var g=a.isFunction(e);return this.each(function(h){var f=a(this),d;if(this.nodeType!==1)return;if(g)d=e.call(this,h,f.val());else d=e;if(d==null)d="";else if(typeof d==="number")d+="";else if(a.isArray(d))d=a.map(d,function(a){return a==null?"":a+""});c=a.valHooks[this.nodeName.toLowerCase()]||a.valHooks[this.type];if(!c||!("set"in c)||c.set(this,d,"value")===b)this.value=d})}});a.extend({valHooks:{option:{"get":function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{"get":function(h){var g,d=h.selectedIndex,f=[],c=h.options,e=h.type==="select-one";if(d<0)return null;for(var i=e?d:0,j=e?d+1:c.length;i<j;i++){var b=c[i];if(b.selected&&(a.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!a.nodeName(b.parentNode,"optgroup"))){g=a(b).val();if(e)return g;f.push(g)}}return e&&!f.length&&c.length?a(c[d]).val():f},"set":function(c,d){var b=a.makeArray(d);a(c).find("option").each(function(){this.selected=a.inArray(a(this).val(),b)>=0});if(!b.length)c.selectedIndex=-1;return b}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(d,c,f,k){var h=d.nodeType;if(!d||h===3||h===8||h===2)return b;if(k&&c in a.attrFn)return a(d)[c](f);if(!("getAttribute"in d))return a.prop(d,c,f);var g,e,i=h!==1||!a.isXMLDoc(d);c=i&&a.attrFix[c]||c;e=a.attrHooks[c];if(!e)if(eb.test(c)&&(typeof f==="boolean"||f===b||f.toLowerCase()===c.toLowerCase()))e=bb;else if(j&&(a.nodeName(d,"form")||Fb.test(c)))e=j;if(f!==b)if(f===null){a.removeAttr(d,c);return b}else if(e&&"set"in e&&i&&(g=e.set(d,f,c))!==b)return g;else{d.setAttribute(c,""+f);return f}else if(e&&"get"in e&&i)return e.get(d,c);else{g=d.getAttribute(c);return g===null?b:g}},removeAttr:function(c,b){var d;if(c.nodeType===1){b=a.attrFix[b]||b;if(a.support.getSetAttribute)c.removeAttribute(b);else{a.attr(c,b,"");c.removeAttributeNode(c.getAttributeNode(b))}if(eb.test(b)&&(d=a.propFix[b]||b)in c)c[d]=false}},attrHooks:{type:{"set":function(b,c){if(tc.test(b.nodeName)&&b.parentNode)a.error("type property can't be changed");else if(!a.support.radioValue&&c==="radio"&&a.nodeName(b,"input")){var d=b.value;b.setAttribute("type",c);if(d)b.value=d;return c}}},tabIndex:{"get":function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):Pb.test(a.nodeName)||Nb.test(a.nodeName)&&a.href?0:b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,c,h){var f=e.nodeType;if(!e||f===3||f===8||f===2)return b;var g,d,i=f!==1||!a.isXMLDoc(e);c=i&&a.propFix[c]||c;d=a.propHooks[c];return h!==b?d&&"set"in d&&(g=d.set(e,h,c))!==b?g:(e[c]=h):d&&"get"in d&&(g=d.get(e,c))!==b?g:e[c]},propHooks:{}});bb={"get":function(d,c){return d[a.propFix[c]||c]?c.toLowerCase():b},"set":function(c,e,b){var d;if(e===false)a.removeAttr(c,b);else{d=a.propFix[b]||b;if(d in c)c[d]=e;c.setAttribute(b,b.toLowerCase())}return b}};a.attrHooks.value={"get":function(b,c){return j&&a.nodeName(b,"button")?j.get(b,c):b.value},"set":function(b,c,d){if(j&&a.nodeName(b,"button"))return j.set(b,c,d);b.value=c}};if(!a.support.getSetAttribute){a.attrFix=a.propFix;j=a.attrHooks.name=a.valHooks.button={"get":function(c,d){var a;a=c.getAttributeNode(d);return a&&a.nodeValue!==""?a.nodeValue:b},"set":function(c,a,d){var b=c.getAttributeNode(d);if(b){b.nodeValue=a;return a}}};a.each(["width","height"],function(c,b){a.attrHooks[b]=a.extend(a.attrHooks[b],{"set":function(c,a){if(a===""){c.setAttribute(b,"auto");return a}}})})}!a.support.hrefNormalized&&a.each(["href","src","width","height"],function(d,c){a.attrHooks[c]=a.extend(a.attrHooks[c],{"get":function(d){var a=d.getAttribute(c,2);return a===null?b:a}})});if(!a.support.style)a.attrHooks.style={"get":function(a){return a.style.cssText.toLowerCase()||b},"set":function(b,a){return b.style.cssText=""+a}};if(!a.support.optSelected)a.propHooks.selected=a.extend(a.propHooks.selected,{"get":function(b){var a=b.parentNode;if(a){a.selectedIndex;if(a.parentNode)a.parentNode.selectedIndex}}});!a.support.checkOn&&a.each(["radio","checkbox"],function(){a.valHooks[this]={"get":function(a){return a.getAttribute("value")===null?"on":a.value}}});a.each(["radio","checkbox"],function(){a.valHooks[this]=a.extend(a.valHooks[this],{"set":function(c,b){if(a.isArray(b))return c.checked=a.inArray(a(c).val(),b)>=0}})});var Bc=Object.prototype.hasOwnProperty,F=/\.(.*)$/,H=/^(?:textarea|input|select)$/i,fc=/\./g,jc=/ /g,ec=/[^\w\s.|`]/g,Wb=function(a){return a.replace(ec,"\\$&")};a.event={add:function(d,o,c,p){if(d.nodeType===3||d.nodeType===8)return;if(c===false)c=i;else if(!c)return;var k,f;if(c.handler){k=c;c=k.handler}if(!c.guid)c.guid=a.guid++;var j=a._data(d);if(!j)return;var m=j.events,g=j.handle;if(!m)j.events=m={};if(!g)j.handle=g=function(c){return typeof a!=="undefined"&&(!c||a.event.triggered!==c.type)?a.event.handle.apply(g.elem,arguments):b};g.elem=d;o=o.split(" ");var e,q=0,h;while(e=o[q++]){f=k?a.extend({},k):{handler:c,data:p};if(e.indexOf(".")>-1){h=e.split(".");e=h.shift();f.namespace=h.slice(0).sort().join(".")}else{h=[];f.namespace=""}f.type=e;if(!f.guid)f.guid=c.guid;var n=m[e],l=a.event.special[e]||{};if(!n){n=m[e]=[];if(!l.setup||l.setup.call(d,p,h,g)===false)if(d.addEventListener)d.addEventListener(e,g,false);else d.attachEvent&&d.attachEvent("on"+e,g)}if(l.add){l.add.call(d,f);if(!f.handler.guid)f.handler.guid=c.guid}n.push(f);a.event.global[e]=true}d=null},global:{},remove:function(g,c,l,p){if(g.nodeType===3||g.nodeType===8)return;if(l===false)l=i;var t,d,v,e,u=0,o,k,q,m,f,h,r,j=a.hasData(g)&&a._data(g),n=j&&j.events;if(!j||!n)return;if(c&&c.type){l=c.handler;c=c.type}if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(d in n)a.event.remove(g,d+c);return}c=c.split(" ");while(d=c[u++]){r=d;h=null;o=d.indexOf(".")<0;k=[];if(!o){k=d.split(".");d=k.shift();q=new RegExp("(^|\\.)"+a.map(k.slice(0).sort(),Wb).join("\\.(?:.*\\.)?")+"(\\.|$)")}f=n[d];if(!f)continue;if(!l){for(e=0;e<f.length;e++){h=f[e];if(o||q.test(h.namespace)){a.event.remove(g,r,h.handler,e);f.splice(e--,1)}}continue}m=a.event.special[d]||{};for(e=p||0;e<f.length;e++){h=f[e];if(l.guid===h.guid){if(o||q.test(h.namespace)){p==null&&f.splice(e--,1);m.remove&&m.remove.call(g,h)}if(p!=null)break}}if(f.length===0||p!=null&&f.length===1){(!m.teardown||m.teardown.call(g,k)===false)&&a.removeEvent(g,d,j.handle);t=null;delete n[d]}}if(a.isEmptyObject(n)){var s=j.handle;if(s)s.elem=null;delete j.events;delete j.handle;a.isEmptyObject(j)&&a.removeData(g,b,true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(c,i,f,o){var e=c.type||c,j=[],l;if(e.indexOf("!")>=0){e=e.slice(0,-1);l=true}if(e.indexOf(".")>=0){j=e.split(".");e=j.shift();j.sort()}if((!f||a.event.customEvent[e])&&!a.event.global[e])return;c=typeof c==="object"?c[a.expando]?c:new a.Event(e,c):new a.Event(e);c.type=e;c.exclusive=l;c.namespace=j.join(".");c.namespace_re=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)");if(o||!f){c.preventDefault();c.stopPropagation()}if(!f){a.each(a.cache,function(){var d=a.expando,b=this[d];b&&b.events&&b.events[e]&&a.event.trigger(c,i,b.handle.elem)});return}if(f.nodeType===3||f.nodeType===8)return;c.result=b;c.target=f;i=i?a.makeArray(i):[];i.unshift(c);var g=f,h=e.indexOf(":")<0?"on"+e:"";do{var n=a._data(g,"handle");c.currentTarget=g;n&&n.apply(g,i);if(h&&a.acceptData(g)&&g[h]&&g[h].apply(g,i)===false){c.result=false;c.preventDefault()}g=g.parentNode||g.ownerDocument||g===c.target.ownerDocument&&d}while(g&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var k,m=a.event.special[e]||{};if((!m._default||m._default.call(f.ownerDocument,c)===false)&&!(e==="click"&&a.nodeName(f,"a"))&&a.acceptData(f)){try{if(h&&f[e]){k=f[h];if(k)f[h]=null;a.event.triggered=e;f[e]()}}catch(p){}if(k)f[h]=k;a.event.triggered=b}}return c.result},handle:function(c){c=a.event.fix(c||d.event);var h=((a._data(this,"events")||{})[c.type]||[]).slice(0),j=!c.exclusive&&!c.namespace,i=Array.prototype.slice.call(arguments,0);i[0]=c;c.currentTarget=this;for(var g=0,k=h.length;g<k;g++){var e=h[g];if(j||c.namespace_re.test(e.namespace)){c.handler=e.handler;c.data=e.data;c.handleObj=e;var f=e.handler.apply(this,i);if(f!==b){c.result=f;if(f===false){c.preventDefault();c.stopPropagation()}}if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(d){if(d[a.expando])return d;var i=d;d=a.Event(i);for(var j=this.props.length,g;j;){g=this.props[--j];d[g]=i[g]}if(!d.target)d.target=d.srcElement||c;if(d.target.nodeType===3)d.target=d.target.parentNode;if(!d.relatedTarget&&d.fromElement)d.relatedTarget=d.fromElement===d.target?d.toElement:d.fromElement;if(d.pageX==null&&d.clientX!=null){var h=d.target.ownerDocument||c,f=h.documentElement,e=h.body;d.pageX=d.clientX+(f&&f.scrollLeft||e&&e.scrollLeft||0)-(f&&f.clientLeft||e&&e.clientLeft||0);d.pageY=d.clientY+(f&&f.scrollTop||e&&e.scrollTop||0)-(f&&f.clientTop||e&&e.clientTop||0)}if(d.which==null&&(d.charCode!=null||d.keyCode!=null))d.which=d.charCode!=null?d.charCode:d.keyCode;if(!d.metaKey&&d.ctrlKey)d.metaKey=d.ctrlKey;if(!d.which&&d.button!==b)d.which=d.button&1?1:d.button&2?3:d.button&4?2:0;return d},guid:1e8,proxy:a.proxy,special:{ready:{setup:a.bindReady,teardown:a.noop},live:{add:function(b){a.event.add(this,s(b.origType,b.selector),a.extend({},b,{handler:Ib,guid:b.handler.guid}))},remove:function(b){a.event.remove(this,s(b.origType,b.selector),b)}},beforeunload:{setup:function(d,c,b){if(a.isWindow(this))this.onbeforeunload=b},teardown:function(b,a){if(this.onbeforeunload===a)this.onbeforeunload=null}}}};a.removeEvent=c.removeEventListener?function(a,c,b){a.removeEventListener&&a.removeEventListener(c,b,false)}:function(a,c,b){a.detachEvent&&a.detachEvent("on"+c,b)};a.Event=function(b,c){if(!this.preventDefault)return new a.Event(b,c);if(b&&b.type){this.originalEvent=b;this.type=b.type;this.isDefaultPrevented=b.defaultPrevented||b.returnValue===false||b.getPreventDefault&&b.getPreventDefault()?t:i}else this.type=b;c&&a.extend(this,c);this.timeStamp=a.now();this[a.expando]=true};function i(){return false}function t(){return true}a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=t;var a=this.originalEvent;if(!a)return;if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=t;var a=this.originalEvent;if(!a)return;a.stopPropagation&&a.stopPropagation();a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=t;this.stopPropagation()},isDefaultPrevented:i,isPropagationStopped:i,isImmediatePropagationStopped:i};var V=function(d){var b=d.relatedTarget;d.type=d.data;try{if(b&&b!==c&&!b.parentNode)return;while(b&&b!==this)b=b.parentNode;b!==this&&a.event.handle.apply(this,arguments)}catch(e){}},db=function(b){b.type=b.data;a.event.handle.apply(this,arguments)};a.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,c){a.event.special[b]={setup:function(d){a.event.add(this,c,d&&d.selector?db:V,b)},teardown:function(b){a.event.remove(this,c,b&&b.selector?db:V)}}});if(!a.support.submitBubbles)a.event.special.submit={setup:function(){if(!a.nodeName(this,"form")){a.event.add(this,"click.specialSubmit",function(d){var b=d.target,c=b.type;(c==="submit"||c==="image")&&a(b).closest("form").length&&jb("submit",this,arguments)});a.event.add(this,"keypress.specialSubmit",function(d){var b=d.target,c=b.type;(c==="text"||c==="password")&&a(b).closest("form").length&&d.keyCode===13&&jb("submit",this,arguments)})}else return false},teardown:function(){a.event.remove(this,".specialSubmit")}};if(!a.support.changeBubbles){var o,kb=function(b){var d=b.type,c=b.value;if(d==="radio"||d==="checkbox")c=b.checked;else if(d==="select-multiple")c=b.selectedIndex>-1?a.map(b.options,function(a){return a.selected}).join("-"):"";else if(a.nodeName(b,"select"))c=b.selectedIndex;return c},u=function(d){var c=d.target,e,f;if(!H.test(c.nodeName)||c.readOnly)return;e=a._data(c,"_change_data");f=kb(c);(d.type!=="focusout"||c.type!=="radio")&&a._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f){d.type="change";d.liveFired=b;a.event.trigger(d,arguments[1],c)}};a.event.special.change={filters:{focusout:u,beforedeactivate:u,click:function(d){var b=d.target,c=a.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||a.nodeName(b,"select"))&&u.call(this,d)},keydown:function(b){var c=b.target,d=a.nodeName(c,"input")?c.type:"";(b.keyCode===13&&!a.nodeName(c,"textarea")||b.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")&&u.call(this,b)},beforeactivate:function(c){var b=c.target;a._data(b,"_change_data",kb(b))}},setup:function(){if(this.type==="file")return false;for(var b in o)a.event.add(this,b+".specialChange",o[b]);return H.test(this.nodeName)},teardown:function(){a.event.remove(this,".specialChange");return H.test(this.nodeName)}};o=a.event.special.change.filters;o.focus=o.beforeactivate}function jb(f,e,d){var c=a.extend({},d[0]);c.type=f;c.originalEvent={};c.liveFired=b;a.event.handle.call(e,c);c.isDefaultPrevented()&&d[0].preventDefault()}!a.support.focusinBubbles&&a.each({focus:"focusin",blur:"focusout"},function(e,f){var b=0;a.event.special[f]={setup:function(){b++===0&&c.addEventListener(e,d,true)},teardown:function(){--b===0&&c.removeEventListener(e,d,true)}};function d(c){var b=a.event.fix(c);b.type=f;b.originalEvent={};a.event.trigger(b,null,b.target);b.isDefaultPrevented()&&c.preventDefault()}});a.each(["bind","one"],function(d,c){a.fn[c]=function(e,d,f){var g;if(typeof e==="object"){for(var i in e)this[c](i,d,e[i],f);return this}if(arguments.length===2||d===false){f=d;d=b}if(c==="one"){g=function(b){a(this).unbind(b,g);return f.apply(this,arguments)};g.guid=f.guid||a.guid++}else g=f;if(e==="unload"&&c!=="one")this.one(e,d,f);else for(var h=0,j=this.length;h<j;h++)a.event.add(this[h],e,g,d);return this}});a.fn.extend({unbind:function(b,e){if(typeof b==="object"&&!b.preventDefault)for(var d in b)this.unbind(d,b[d]);else for(var c=0,f=this.length;c<f;c++)a.event.remove(this[c],b,e);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(c,b){return this.each(function(){a.event.trigger(c,b,this)})},triggerHandler:function(c,b){if(this[0])return a.event.trigger(c,b,this[0],true)},toggle:function(c){var b=arguments,f=c.guid||a.guid++,d=0,e=function(f){var e=(a.data(this,"lastToggle"+c.guid)||0)%d;a.data(this,"lastToggle"+c.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false};e.guid=f;while(d<b.length)b[d++].guid=f;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var J={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};a.each(["live","die"],function(d,c){a.fn[c]=function(e,g,l,h){var d,q=0,m,f,o,k=h||this.selector,j=h?this:a(this.context);if(typeof e==="object"&&!e.preventDefault){for(var p in e)j[c](p,g,e[p],k);return this}if(c==="die"&&!e&&h&&h.charAt(0)==="."){j.unbind(h);return this}if(g===false||a.isFunction(g)){l=g||i;g=b}e=(e||"").split(" ");while((d=e[q++])!=null){m=F.exec(d);f="";if(m){f=m[0];d=d.replace(F,"")}if(d==="hover"){e.push("mouseenter"+f,"mouseleave"+f);continue}o=d;if(J[d]){e.push(J[d]+f);d=d+f}else d=(J[d]||d)+f;if(c==="live")for(var n=0,r=j.length;n<r;n++)a.event.add(j[n],"live."+s(d,k),{data:g,selector:k,handler:l,origType:d,origHandler:l,preType:o});else j.unbind("live."+s(d,k),l)}return this}});function Ib(b){var r,m,g,d,c,i,e,f,k,s,h,l,p,o=[],q=[],n=a._data(this,"events");if(b.liveFired===this||!n||!n.live||b.target.disabled||b.button&&b.type==="click")return;if(b.namespace)l=new RegExp("(^|\\.)"+b.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");b.liveFired=this;var j=n.live.slice(0);for(e=0;e<j.length;e++){c=j[e];if(c.origType.replace(F,"")===b.type)q.push(c.selector);else j.splice(e--,1)}d=a(b.target).closest(q,b.currentTarget);for(f=0,k=d.length;f<k;f++){h=d[f];for(e=0;e<j.length;e++){c=j[e];if(h.selector===c.selector&&(!l||l.test(c.namespace))&&!h.elem.disabled){i=h.elem;g=null;if(c.preType==="mouseenter"||c.preType==="mouseleave"){b.type=c.preType;g=a(b.relatedTarget).closest(c.selector)[0];if(g&&a.contains(i,g))g=i}(!g||g!==i)&&o.push({elem:i,handleObj:c,level:h.level})}}}for(f=0,k=o.length;f<k;f++){d=o[f];if(m&&d.level>m)break;b.currentTarget=d.elem;b.data=d.handleObj.data;b.handleObj=d.handleObj;p=d.handleObj.origHandler.apply(d.elem,arguments);if(p===false||b.isPropagationStopped()){m=d.level;if(p===false)r=false;if(b.isImmediatePropagationStopped())break}}return r}function s(a,b){return(a&&a!=="*"?a+".":"")+b.replace(fc,"`").replace(jc,"&")}a.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(c,b){a.fn[b]=function(a,c){if(c==null){c=a;a=null}return arguments.length>0?this.bind(b,a,c):this.trigger(b)};if(a.attrFn)a.attrFn[b]=true});
/*
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var m=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,n=0,s=Object.prototype.toString,i=false,o=true,g=/\\/g,k=/\W/;[0,0].sort(function(){o=false;return 0});var d=function(k,b,i,t){i=i||[];b=b||c;var y=b;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!k||typeof k!=="string")return i;var n,l,g,v,j,o,p,h,w=true,r=d.isXML(b),a=[],x=k;do{m.exec("");n=m.exec(x);if(n){x=n[3];a.push(n[1]);if(n[2]){v=n[3];break}}}while(n);if(a.length>1&&u.exec(k))if(a.length===2&&e.relative[a[0]])l=q(a[0]+a[1],b);else{l=e.relative[a[0]]?[b]:d(a.shift(),b);while(a.length){k=a.shift();if(e.relative[k])k+=a.shift();l=q(k,l)}}else{if(!t&&a.length>1&&b.nodeType===9&&!r&&e.match.ID.test(a[0])&&!e.match.ID.test(a[a.length-1])){j=d.find(a.shift(),b,r);b=j.expr?d.filter(j.expr,j.set)[0]:j.set[0]}if(b){j=t?{expr:a.pop(),"set":f(t)}:d.find(a.pop(),a.length===1&&(a[0]==="~"||a[0]==="+")&&b.parentNode?b.parentNode:b,r);l=j.expr?d.filter(j.expr,j.set):j.set;if(a.length>0)g=f(l);else w=false;while(a.length){o=a.pop();p=o;if(!e.relative[o])o="";else p=a.pop();if(p==null)p=b;e.relative[o](g,p,r)}}else g=a=[]}if(!g)g=l;!g&&d.error(o||k);if(s.call(g)==="[object Array]")if(!w)i.push.apply(i,g);else if(b&&b.nodeType===1)for(h=0;g[h]!=null;h++)g[h]&&(g[h]===true||g[h].nodeType===1&&d.contains(b,g[h]))&&i.push(l[h]);else for(h=0;g[h]!=null;h++)g[h]&&g[h].nodeType===1&&i.push(l[h]);else f(g,i);if(v){d(v,y,i,t);d.uniqueSort(i)}return i};d.uniqueSort=function(a){if(j){i=o;a.sort(j);if(i)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a};d.matches=function(a,b){return d(a,null,null,b)};d.matchesSelector=function(b,a){return d(a,null,null,[b]).length>0};d.find=function(b,d,j){var c;if(!b)return[];for(var h=0,k=e.order.length;h<k;h++){var a,f=e.order[h];if(a=e.leftMatch[f].exec(b)){var i=a[1];a.splice(1,1);if(i.substr(i.length-1)!=="\\"){a[1]=(a[1]||"").replace(g,"");c=e.find[f](a,d,j);if(c!=null){b=b.replace(e.match[f],"");break}}}}if(!c)c=typeof d.getElementsByTagName!=="undefined"?d.getElementsByTagName("*"):[];return{"set":c,expr:b}};d.filter=function(c,k,n,q){var a,g,r=c,h=[],f=k,s=k&&k[0]&&d.isXML(k[0]);while(c&&k.length){for(var j in e.filter)if((a=e.leftMatch[j].exec(c))!=null&&a[2]){var i,l,t=e.filter[j],o=a[1];g=false;a.splice(1,1);if(o.substr(o.length-1)==="\\")continue;if(f===h)h=[];if(e.preFilter[j]){a=e.preFilter[j](a,f,n,h,q,s);if(!a)g=i=true;else if(a===true)continue}if(a)for(var m=0;(l=f[m])!=null;m++)if(l){i=t(l,a,m,f);var p=q^!!i;if(n&&i!=null)if(p)g=true;else f[m]=false;else if(p){h.push(l);g=true}}if(i!==b){if(!n)f=h;c=c.replace(e.match[j],"");if(!g)return[];break}}if(c===r)if(g==null)d.error(c);else break;r=c}return f};d.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var e=d.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(c,b){var g=typeof b==="string",h=g&&!k.test(b),f=g&&!h;if(h)b=b.toLowerCase();for(var e=0,i=c.length,a;e<i;e++)if(a=c[e]){while((a=a.previousSibling)&&a.nodeType!==1);c[e]=f||a&&a.nodeName.toLowerCase()===b?a||false:a===b}f&&d.filter(b,c,true)},">":function(e,c){var b,f=typeof c==="string",a=0,h=e.length;if(f&&!k.test(c)){c=c.toLowerCase();for(;a<h;a++){b=e[a];if(b){var g=b.parentNode;e[a]=g.nodeName.toLowerCase()===c?g:false}}}else{for(;a<h;a++){b=e[a];if(b)e[a]=f?b.parentNode:b.parentNode===c}f&&d.filter(c,e,true)}},"":function(d,a,f){var b,e=n++,c=r;if(typeof a==="string"&&!k.test(a)){a=a.toLowerCase();b=a;c=p}c("parentNode",a,e,d,b,f)},"~":function(d,a,f){var b,e=n++,c=r;if(typeof a==="string"&&!k.test(a)){a=a.toLowerCase();b=a;c=p}c("previousSibling",a,e,d,b,f)}},find:{ID:function(d,b,c){if(typeof b.getElementById!=="undefined"&&!c){var a=b.getElementById(d[1]);return a&&a.parentNode?[a]:[]}},NAME:function(e,d){if(typeof d.getElementsByName!=="undefined"){for(var c=[],b=d.getElementsByName(e[1]),a=0,f=b.length;a<f;a++)b[a].getAttribute("name")===e[1]&&c.push(b[a]);return c.length===0?null:c}},TAG:function(b,a){if(typeof a.getElementsByTagName!=="undefined")return a.getElementsByTagName(b[1])}},preFilter:{CLASS:function(b,d,e,f,i,h){b=" "+b[1].replace(g,"")+" ";if(h)return b;for(var c=0,a;(a=d[c])!=null;c++)if(a)if(i^(a.className&&(" "+a.className+" ").replace(/[\t\n\r]/g," ").indexOf(b)>=0))!e&&f.push(a);else if(e)d[c]=false;return false},ID:function(a){return a[1].replace(g,"")},TAG:function(a){return a[1].replace(g,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){!a[2]&&d.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&d.error(a[0]);a[0]=n++;return a},ATTR:function(a,d,f,h,i,c){var b=a[1]=a[1].replace(g,"");if(!c&&e.attrMap[b])a[1]=e.attrMap[b];a[4]=(a[4]||a[5]||"").replace(g,"");if(a[2]==="~=")a[4]=" "+a[4]+" ";return a},PSEUDO:function(a,b,c,f,g){if(a[1]==="not")if((m.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=d(a[3],null,null,b);else{var h=d.filter(a[3],b,c,true^g);!c&&f.push.apply(f,h);return false}else if(e.match.POS.test(a[0])||e.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){if(a.parentNode)a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(b,c,a){return!!d(a[3],b).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(b,a){return a===0},last:function(d,b,c,a){return b===a.length-1},even:function(b,a){return a%2===0},odd:function(b,a){return a%2===1},lt:function(c,b,a){return b<a[3]-0},gt:function(c,b,a){return b>a[3]-0},nth:function(c,b,a){return a[3]-0===b},eq:function(c,b,a){return a[3]-0===b}},filter:{PSEUDO:function(a,b,j,i){var c=b[1],g=e.filters[c];if(g)return g(a,j,b,i);else if(c==="contains")return(a.textContent||a.innerText||d.getText([a])||"").indexOf(b[3])>=0;else if(c==="not"){for(var h=b[3],f=0,k=h.length;f<k;f++)if(h[f]===a)return false;return true}else d.error(c)},CHILD:function(b,e){var i=e[1],a=b;switch(i){case"only":case"first":while(a=a.previousSibling)if(a.nodeType===1)return false;if(i==="first")return true;a=b;case"last":while(a=a.nextSibling)if(a.nodeType===1)return false;return true;case"nth":var d=e[2],h=e[3];if(d===1&&h===0)return true;var g=e[0],c=b.parentNode;if(c&&(c.sizcache!==g||!b.nodeIndex)){var j=0;for(a=c.firstChild;a;a=a.nextSibling)if(a.nodeType===1)a.nodeIndex=++j;c.sizcache=g}var f=b.nodeIndex-h;return d===0?f===0:f%d===0&&f/d>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(b,a){return a==="*"&&b.nodeType===1||b.nodeName.toLowerCase()===a},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(f,h){var d=h[1],g=e.attrHandle[d]?e.attrHandle[d](f):f[d]!=null?f[d]:f.getAttribute(d),b=g+"",c=h[2],a=h[4];return g==null?c==="!=":c==="="?b===a:c==="*="?b.indexOf(a)>=0:c==="~="?(" "+b+" ").indexOf(a)>=0:!a?b&&g!==false:c==="!="?b!==a:c==="^="?b.indexOf(a)===0:c==="$="?b.substr(b.length-a.length)===a:c==="|="?b===a||b.substr(0,a.length+1)===a+"-":false},POS:function(d,b,g,c){var f=b[2],a=e.setFilters[f];if(a)return a(d,g,b,c)}}},u=e.match.POS,t=function(b,a){return"\\"+(a-0+1)};for(var l in e.match){e.match[l]=new RegExp(e.match[l].source+/(?![^\[]*\])(?![^\(]*\))/.source);e.leftMatch[l]=new RegExp(/(^(?:.|\r|\n)*?)/.source+e.match[l].source.replace(/\\(\d+)/g,t))}var f=function(b,a){b=Array.prototype.slice.call(b,0);if(a){a.push.apply(a,b);return a}return b};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(v){f=function(a,d){var b=0,c=d||[];if(s.call(a)==="[object Array]")Array.prototype.push.apply(c,a);else if(typeof a.length==="number")for(var e=a.length;b<e;b++)c.push(a[b]);else for(;a[b];b++)c.push(a[b]);return c}}var j,h;if(c.documentElement.compareDocumentPosition)j=function(a,b){if(a===b){i=true;return 0}return!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1};else{j=function(c,d){if(c===d){i=true;return 0}else if(c.sourceIndex&&d.sourceIndex)return c.sourceIndex-d.sourceIndex;var k,l,e=[],f=[],g=c.parentNode,j=d.parentNode,b=g;if(g===j)return h(c,d);else if(!g)return-1;else if(!j)return 1;while(b){e.unshift(b);b=b.parentNode}b=j;while(b){f.unshift(b);b=b.parentNode}k=e.length;l=f.length;for(var a=0;a<k&&a<l;a++)if(e[a]!==f[a])return h(e[a],f[a]);return a===k?h(c,f[a],-1):h(e[a],d,1)};h=function(b,c,d){if(b===c)return d;var a=b.nextSibling;while(a){if(a===c)return-1;a=a.nextSibling}return 1}}d.getText=function(e){for(var b="",a,c=0;e[c];c++){a=e[c];if(a.nodeType===3||a.nodeType===4)b+=a.nodeValue;else if(a.nodeType!==8)b+=d.getText(a.childNodes)}return b};(function(){var a=c.createElement("div"),f="script"+(new Date).getTime(),d=c.documentElement;a.innerHTML="<a name='"+f+"'/>";d.insertBefore(a,d.firstChild);if(c.getElementById(f)){e.find.ID=function(c,d,e){if(typeof d.getElementById!=="undefined"&&!e){var a=d.getElementById(c[1]);return a?a.id===c[1]||typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id").nodeValue===c[1]?[a]:b:[]}};e.filter.ID=function(a,c){var b=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&b&&b.nodeValue===c}}d.removeChild(a);d=a=null})();(function(){var a=c.createElement("div");a.appendChild(c.createComment(""));if(a.getElementsByTagName("*").length>0)e.find.TAG=function(c,e){var a=e.getElementsByTagName(c[1]);if(c[1]==="*"){for(var d=[],b=0;a[b];b++)a[b].nodeType===1&&d.push(a[b]);a=d}return a};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")e.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();c.querySelectorAll&&(function(){var b=d,a=c.createElement("div"),h="__sizzle__";a.innerHTML="<p class='TEST'></p>";if(a.querySelectorAll&&a.querySelectorAll(".TEST").length===0)return;d=function(j,a,g,p){a=a||c;if(!p&&!d.isXML(a)){var i=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(j);if(i&&(a.nodeType===1||a.nodeType===9))if(i[1])return f(a.getElementsByTagName(j),g);else if(i[2]&&e.find.CLASS&&a.getElementsByClassName)return f(a.getElementsByClassName(i[2]),g);if(a.nodeType===9){if(j==="body"&&a.body)return f([a.body],g);else if(i&&i[3]){var k=a.getElementById(i[3]);if(k&&k.parentNode){if(k.id===i[3])return f([k],g)}else return f([],g)}try{return f(a.querySelectorAll(j),g)}catch(s){}}else if(a.nodeType===1&&a.nodeName.toLowerCase()!=="object"){var q=a,m=a.getAttribute("id"),l=m||h,o=a.parentNode,n=/^\s*[+~]/.test(j);if(!m)a.setAttribute("id",l);else l=l.replace(/'/g,"\\$&");if(n&&o)a=a.parentNode;try{if(!n||o)return f(a.querySelectorAll("[id='"+l+"'] "+j),g)}catch(r){}finally{!m&&q.removeAttribute("id")}}}return b(j,a,g,p)};for(var g in b)d[g]=b[g];a=null})();(function(){var b=c.documentElement,a=b.matchesSelector||b.mozMatchesSelector||b.webkitMatchesSelector||b.msMatchesSelector;if(a){var g=!a.call(c.createElement("div"),"div"),f=false;try{a.call(c.documentElement,"[test!='']:sizzle")}catch(h){f=true}d.matchesSelector=function(c,b){b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!d.isXML(c))try{if(f||!e.match.PSEUDO.test(b)&&!/!=/.test(b)){var h=a.call(c,b);if(h||!g||c.document&&c.document.nodeType!==11)return h}}catch(i){}return d(b,null,null,[c]).length>0}}})();(function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!a.getElementsByClassName||a.getElementsByClassName("e").length===0)return;a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;e.order.splice(1,0,"CLASS");e.find.CLASS=function(c,a,b){if(typeof a.getElementsByClassName!=="undefined"&&!b)return a.getElementsByClassName(c[1])};a=null})();function p(f,h,e,c,j,g){for(var b=0,i=c.length;b<i;b++){var a=c[b];if(a){var d=false;a=a[f];while(a){if(a.sizcache===e){d=c[a.sizset];break}if(a.nodeType===1&&!g){a.sizcache=e;a.sizset=b}if(a.nodeName.toLowerCase()===h){d=a;break}a=a[f]}c[b]=d}}}function r(h,f,g,c,k,i){for(var b=0,j=c.length;b<j;b++){var a=c[b];if(a){var e=false;a=a[h];while(a){if(a.sizcache===g){e=c[a.sizset];break}if(a.nodeType===1){if(!i){a.sizcache=g;a.sizset=b}if(typeof f!=="string"){if(a===f){e=true;break}}else if(d.filter(f,[a]).length>0){e=a;break}}a=a[h]}c[b]=e}}}if(c.documentElement.contains)d.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):true)};else if(c.documentElement.compareDocumentPosition)d.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)};else d.contains=function(){return false};d.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":false};var q=function(a,b){var h,f=[],g="",i=b.nodeType?[b]:b;while(h=e.match.PSEUDO.exec(a)){g+=h[0];a=a.replace(e.match.PSEUDO,"")}a=e.relative[a]?a+"*":a;for(var c=0,j=i.length;c<j;c++)d(a,i[c],f);return d.filter(g,f)};a.find=d;a.expr=d.selectors;a.expr[":"]=a.expr.filters;a.unique=d.uniqueSort;a.text=d.getText;a.isXMLDoc=d.isXML;a.contains=d.contains})();var pc=/Until$/,Gb=/^(?:parents|prevUntil|prevAll)/,Bb=/,/,Xb=/^.[^:#\[\.,]*$/,uc=Array.prototype.slice,vb=a.expr.match.POS,xb={children:true,contents:true,next:true,prev:true};a.fn.extend({find:function(e){var i=this,b,f;if(typeof e!=="string")return a(e).filter(function(){for(b=0,f=i.length;b<f;b++)if(a.contains(i[b],this))return true});var c=this.pushStack("","find",e),h,d,g;for(b=0,f=this.length;b<f;b++){h=c.length;a.find(e,this[b],c);if(b>0)for(d=h;d<c.length;d++)for(g=0;g<h;g++)if(c[g]===c[d]){c.splice(d--,1);break}}return c},has:function(c){var b=a(c);return this.filter(function(){for(var c=0,d=b.length;c<d;c++)if(a.contains(this,b[c]))return true})},not:function(a){return this.pushStack(pb(this,a,false),"not",a)},filter:function(a){return this.pushStack(pb(this,a,true),"filter",a)},is:function(b){return!!b&&(typeof b==="string"?a.filter(b,this).length>0:this.filter(b).length>0)},closest:function(c,g){var e=[],f,j,b=this[0];if(a.isArray(c)){var i,d,h={},k=1;if(b&&c.length){for(f=0,j=c.length;f<j;f++){d=c[f];if(!h[d])h[d]=vb.test(d)?a(d,g||this.context):d}while(b&&b.ownerDocument&&b!==g){for(d in h){i=h[d];(i.jquery?i.index(b)>-1:a(b).is(i))&&e.push({selector:d,elem:b,level:k})}b=b.parentNode;k++}}return e}var l=vb.test(c)||typeof c!=="string"?a(c,g||this.context):0;for(f=0,j=this.length;f<j;f++){b=this[f];while(b)if(l?l.index(b)>-1:a.find.matchesSelector(b,c)){e.push(b);break}else{b=b.parentNode;if(!b||!b.ownerDocument||b===g||b.nodeType===11)break}}e=e.length>1?a.unique(e):e;return this.pushStack(e,"closest",c)},index:function(b){return!b||typeof b==="string"?a.inArray(this[0],b?a(b):this.parent().children()):a.inArray(b.jquery?b[0]:b,this)},add:function(b,e){var d=typeof b==="string"?a(b,e):a.makeArray(b&&b.nodeType?[b]:b),c=a.merge(this.get(),d);return this.pushStack(T(d[0])||T(c[0])?c:a.unique(c))},andSelf:function(){return this.add(this.prevObject)}});function T(a){return!a||!a.parentNode||a.parentNode.nodeType===11}a.each({parent:function(b){var a=b.parentNode;return a&&a.nodeType!==11?a:null},parents:function(b){return a.dir(b,"parentNode")},parentsUntil:function(c,d,b){return a.dir(c,"parentNode",b)},next:function(b){return a.nth(b,2,"nextSibling")},prev:function(b){return a.nth(b,2,"previousSibling")},nextAll:function(b){return a.dir(b,"nextSibling")},prevAll:function(b){return a.dir(b,"previousSibling")},nextUntil:function(c,d,b){return a.dir(c,"nextSibling",b)},prevUntil:function(c,d,b){return a.dir(c,"previousSibling",b)},siblings:function(b){return a.sibling(b.parentNode.firstChild,b)},children:function(b){return a.sibling(b.firstChild)},contents:function(b){return a.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:a.makeArray(b.childNodes)}},function(b,c){a.fn[b]=function(f,e){var d=a.map(this,c,f),g=uc.call(arguments);if(!pc.test(b))e=f;if(e&&typeof e==="string")d=a.filter(e,d);d=this.length>1&&!xb[b]?a.unique(d):d;if((this.length>1||Bb.test(e))&&Gb.test(b))d=d.reverse();return this.pushStack(d,b,g.join(","))}});a.extend({filter:function(c,b,d){if(d)c=":not("+c+")";return b.length===1?a.find.matchesSelector(b[0],c)?[b[0]]:[]:a.find.matches(c,b)},dir:function(g,f,e){var d=[],c=g[f];while(c&&c.nodeType!==9&&(e===b||c.nodeType!==1||!a(c).is(e))){c.nodeType===1&&d.push(c);c=c[f]}return d},nth:function(a,b,c){b=b||1;for(var d=0;a;a=a[c])if(a.nodeType===1&&++d===b)break;return a},sibling:function(a,c){for(var b=[];a;a=a.nextSibling)a.nodeType===1&&a!==c&&b.push(a);return b}});function pb(c,b,d){b=b||0;if(a.isFunction(b))return a.grep(c,function(a,e){var c=!!b.call(a,e,a);return c===d});else if(b.nodeType)return a.grep(c,function(a){return a===b===d});else if(typeof b==="string"){var e=a.grep(c,function(a){return a.nodeType===1});if(Xb.test(b))return a.filter(b,e,!d);else b=a.filter(b,e)}return a.grep(c,function(c){return a.inArray(c,b)>=0===d})}var Cb=/ jQuery\d+="(?:\d+|null)"/g,z=/^\s+/,ab=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,hb=/<([\w:]+)/,oc=/<tbody/i,sc=/<|&#?\w+;/,gb=/<(?:script|object|embed|option|style)/i,fb=/checked\s*(?:[^=]|=\s*.checked.)/i,Jb=/\/(java|ecma)script/i,Eb=/^\s*<!(?:\[CDATA\[|\-\-)/,e={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;if(!a.support.htmlSerialize)e._default=[1,"div<div>","</div>"];a.fn.extend({text:function(d){return a.isFunction(d)?this.each(function(c){var b=a(this);b.text(d.call(this,c,b.text()))}):typeof d!=="object"&&d!==b?this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(d)):a.text(this)},wrapAll:function(b){if(a.isFunction(b))return this.each(function(c){a(this).wrapAll(b.call(this,c))});if(this[0]){var c=a(b,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(b){return a.isFunction(b)?this.each(function(c){a(this).wrapInner(b.call(this,c))}):this.each(function(){var d=a(this),c=d.contents();if(c.length)c.wrapAll(b);else d.append(b)})},wrap:function(b){return this.each(function(){a(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){!a.nodeName(this,"body")&&a(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)});else if(arguments.length){var b=a(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)});else if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,a(arguments[0]).toArray());return b}},remove:function(c,e){for(var d=0,b;(b=this[d])!=null;d++)if(!c||a.filter(c,[b]).length){if(!e&&b.nodeType===1){a.cleanData(b.getElementsByTagName("*"));a.cleanData([b])}b.parentNode&&b.parentNode.removeChild(b)}return this},empty:function(){for(var c=0,b;(b=this[c])!=null;c++){b.nodeType===1&&a.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(b,c){b=b==null?false:b;c=c==null?b:c;return this.map(function(){return a.clone(this,b,c)})},html:function(c){if(c===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Cb,""):null;else if(typeof c==="string"&&!gb.test(c)&&(a.support.leadingWhitespace||!z.test(c))&&!e[(hb.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(ab,"<$1></$2>");try{for(var d=0,f=this.length;d<f;d++)if(this[d].nodeType===1){a.cleanData(this[d].getElementsByTagName("*"));this[d].innerHTML=c}}catch(g){this.empty().append(c)}}else if(a.isFunction(c))this.each(function(d){var b=a(this);b.html(c.call(this,d,b.html()))});else this.empty().append(c);return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(a.isFunction(b))return this.each(function(e){var c=a(this),d=c.html();c.replaceWith(b.call(this,e,d))});if(typeof b!=="string")b=a(b).detach();return this.each(function(){var c=this.nextSibling,d=this.parentNode;a(this).remove();if(c)a(c).before(b);else a(d).append(b)})}else return this.length?this.pushStack(a(a.isFunction(b)?b():b),"replaceWith",b):this},detach:function(a){return this.remove(a,true)},domManip:function(h,d,k){var j,g,c,f,e=h[0],l=[];if(!a.support.checkClone&&arguments.length===3&&typeof e==="string"&&fb.test(e))return this.each(function(){a(this).domManip(h,d,k,true)});if(a.isFunction(e))return this.each(function(f){var c=a(this);h[0]=e.call(this,f,d?c.html():b);c.domManip(h,d,k)});if(this[0]){f=e&&e.parentNode;if(a.support.parentNode&&f&&f.nodeType===11&&f.childNodes.length===this.length)j={fragment:f};else j=a.buildFragment(h,this,l);c=j.fragment;if(c.childNodes.length===1)g=c=c.firstChild;else g=c.firstChild;if(g){d=d&&a.nodeName(g,"tr");for(var i=0,m=this.length,n=m-1;i<m;i++)k.call(d?xc(this[i],g):this[i],j.cacheable||m>1&&i<n?a.clone(c,true,true):c)}l.length&&a.each(l,Lb)}return this}});function xc(b){return a.nodeName(b,"table")?b.getElementsByTagName("tbody")[0]||b.appendChild(b.ownerDocument.createElement("tbody")):b}function R(i,g){if(g.nodeType!==1||!a.hasData(i))return;var h=a.expando,e=a.data(i),f=a.data(g,e);if(e=e[h]){var b=e.events;f=f[h]=a.extend({},e);if(b){delete f.handle;f.events={};for(var c in b)for(var d=0,j=b[c].length;d<j;d++)a.event.add(g,c+(b[c][d].namespace?".":"")+b[c][d].namespace,b[c][d],b[c][d].data)}}}function N(c,b){var d;if(b.nodeType!==1)return;b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(c);d=b.nodeName.toLowerCase();if(d==="object")b.outerHTML=c.outerHTML;else if(d==="input"&&(c.type==="checkbox"||c.type==="radio")){if(c.checked)b.defaultChecked=b.checked=c.checked;if(b.value!==c.value)b.value=c.value}else if(d==="option")b.selected=c.defaultSelected;else if(d==="input"||d==="textarea")b.defaultValue=c.defaultValue;b.removeAttribute(a.expando)}a.buildFragment=function(b,f,i){var d,g,e,h=f&&f[0]?f[0].ownerDocument||f[0]:c;if(b.length===1&&typeof b[0]==="string"&&b[0].length<512&&h===c&&b[0].charAt(0)==="<"&&!gb.test(b[0])&&(a.support.checkClone||!fb.test(b[0]))){g=true;e=a.fragments[b[0]];if(e&&e!==1)d=e}if(!d){d=h.createDocumentFragment();a.clean(b,h,d,i)}if(g)a.fragments[b[0]]=e?d:1;return{fragment:d,cacheable:g}};a.fragments={};a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,b){a.fn[c]=function(i){var g=[],d=a(i),f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{for(var e=0,j=d.length;e<j;e++){var h=(e>0?this.clone(true):this).get();a(d[e])[b](h);g=g.concat(h)}return this.pushStack(g,c,d.selector)}}});function v(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function P(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function Y(b){if(a.nodeName(b,"input"))P(b);else b.getElementsByTagName&&a.grep(b.getElementsByTagName("input"),P)}a.extend({clone:function(c,h,g){var e=c.cloneNode(true),d,f,b;if((!a.support.noCloneEvent||!a.support.noCloneChecked)&&(c.nodeType===1||c.nodeType===11)&&!a.isXMLDoc(c)){N(c,e);d=v(c);f=v(e);for(b=0;d[b];++b)N(d[b],f[b])}if(h){R(c,e);if(g){d=v(c);f=v(e);for(b=0;d[b];++b)R(d[b],f[b])}}return e},clean:function(t,h,m,o){var l;h=h||c;if(typeof h.createElement==="undefined")h=h.ownerDocument||h[0]&&h[0].ownerDocument||c;for(var d=[],g,f=0,b;(b=t[f])!=null;f++){if(typeof b==="number")b+="";if(!b)continue;if(typeof b==="string")if(!sc.test(b))b=h.createTextNode(b);else{b=b.replace(ab,"<$1></$2>");var q=(hb.exec(b)||["",""])[1].toLowerCase(),k=e[q]||e._default,s=k[0],i=h.createElement("div");i.innerHTML=k[1]+b+k[2];while(s--)i=i.lastChild;if(!a.support.tbody){var n=oc.test(b),j=q==="table"&&!n?i.firstChild&&i.firstChild.childNodes:k[1]==="<table>"&&!n?i.childNodes:[];for(g=j.length-1;g>=0;--g)a.nodeName(j[g],"tbody")&&!j[g].childNodes.length&&j[g].parentNode.removeChild(j[g])}!a.support.leadingWhitespace&&z.test(b)&&i.insertBefore(h.createTextNode(z.exec(b)[0]),i.firstChild);b=i.childNodes}var p;if(!a.support.appendChecked)if(b[0]&&typeof(p=b.length)==="number")for(g=0;g<p;g++)Y(b[g]);else Y(b);if(b.nodeType)d.push(b);else d=a.merge(d,b)}if(m){l=function(a){return!a.type||Jb.test(a.type)};for(f=0;d[f];f++)if(o&&a.nodeName(d[f],"script")&&(!d[f].type||d[f].type.toLowerCase()==="text/javascript"))o.push(d[f].parentNode?d[f].parentNode.removeChild(d[f]):d[f]);else{if(d[f].nodeType===1){var r=a.grep(d[f].getElementsByTagName("script"),l);d.splice.apply(d,[f+1,0].concat(r))}m.appendChild(d[f])}}return d},cleanData:function(k){for(var c,d,e=a.cache,i=a.expando,j=a.event.special,h=a.support.deleteExpando,g=0,b;(b=k[g])!=null;g++){if(b.nodeName&&a.noData[b.nodeName.toLowerCase()])continue;d=b[a.expando];if(d){c=e[d]&&e[d][i];if(c&&c.events){for(var f in c.events)if(j[f])a.event.remove(b,f);else a.removeEvent(b,f,c.handle);if(c.handle)c.handle.elem=null}if(h)delete b[a.expando];else b.removeAttribute&&b.removeAttribute(a.expando);delete e[d]}}}});function Lb(c,b){if(b.src)a.ajax({url:b.src,async:false,dataType:"script"});else a.globalEval((b.text||b.textContent||b.innerHTML||"").replace(Eb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}var lb=/alpha\([^)]*\)/i,cc=/opacity=([^)]*)/,Ob=/-([a-z])/ig,qc=/([A-Z]|^ms)/g,nb=/^-?\d+(?:px)?$/i,wc=/^-?\d/,gc=/^[+\-]=/,Db=/[^+\-\.\de]+/g,dc={position:"absolute",visibility:"hidden",display:"block"},Vb=["Left","Right"],Sb=["Top","Bottom"],m,Q,r,Mb=function(b,a){return a.toUpperCase()};a.fn.css=function(d,c){return arguments.length===2&&c===b?this:a.access(this,d,c,true,function(d,e,c){return c!==b?a.style(d,e,c):a.css(d,e)})};a.extend({cssHooks:{opacity:{"get":function(a,c){if(c){var b=m(a,"opacity","opacity");return b===""?"1":b}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true,widows:true,orphans:true},cssProps:{"float":a.support.cssFloat?"cssFloat":"styleFloat"},style:function(d,f,c,k){if(!d||d.nodeType===3||d.nodeType===8||!d.style)return;var j,h,g=a.camelCase(f),i=d.style,e=a.cssHooks[g];f=a.cssProps[g]||g;if(c!==b){h=typeof c;if(h==="number"&&isNaN(c)||c==null)return;if(h==="string"&&gc.test(c))c=+c.replace(Db,"")+parseFloat(a.css(d,f));if(h==="number"&&!a.cssNumber[g])c+="px";if(!e||!("set"in e)||(c=e.set(d,c))!==b)try{i[f]=c}catch(l){}}else return e&&"get"in e&&(j=e.get(d,false,k))!==b?j:i[f]},css:function(e,c,g){var f,d;c=a.camelCase(c);d=a.cssHooks[c];c=a.cssProps[c]||c;if(c==="cssFloat")c="float";return d&&"get"in d&&(f=d.get(e,true,g))!==b?f:m?m(e,c):void 0},swap:function(b,c,e){var d={};for(var a in c){d[a]=b.style[a];b.style[a]=c[a]}e.call(b);for(a in c)b.style[a]=d[a]},camelCase:function(a){return a.replace(Ob,Mb)}});a.curCSS=a.css;a.each(["height","width"],function(c,b){a.cssHooks[b]={"get":function(d,f,e){var c;if(f){if(d.offsetWidth!==0)c=qb(d,b,e);else a.swap(d,dc,function(){c=qb(d,b,e)});if(c<=0){c=m(d,b,b);if(c==="0px"&&r)c=r(d,b,b);if(c!=null)return c===""||c==="auto"?"0px":c}if(c<0||c==null){c=d.style[b];return c===""||c==="auto"?"0px":c}return typeof c==="string"?c:c+"px"}},"set":function(b,a){if(nb.test(a)){a=parseFloat(a);if(a>=0)return a+"px"}else return a}}});if(!a.support.opacity)a.cssHooks.opacity={"get":function(a,b){return cc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},"set":function(g,f){var c=g.style,d=g.currentStyle;c.zoom=1;var e=a.isNaN(f)?"":"alpha(opacity="+f*100+")",b=d&&d.filter||c.filter||"";c.filter=lb.test(b)?b.replace(lb,e):b+" "+e}};a(function(){if(!a.support.reliableMarginRight)a.cssHooks.marginRight={"get":function(b,d){var c;a.swap(b,{display:"inline-block"},function(){if(d)c=m(b,"margin-right","marginRight");else c=b.style.marginRight});return c}}});if(c.defaultView&&c.defaultView.getComputedStyle)Q=function(c,d){var e,g,f;d=d.replace(qc,"-$1").toLowerCase();if(!(g=c.ownerDocument.defaultView))return b;if(f=g.getComputedStyle(c,null)){e=f.getPropertyValue(d);if(e===""&&!a.contains(c.ownerDocument.documentElement,c))e=a.style(c,d)}return e};if(c.documentElement.currentStyle)r=function(a,e){var f,b=a.currentStyle&&a.currentStyle[e],d=a.runtimeStyle&&a.runtimeStyle[e],c=a.style;if(!nb.test(b)&&wc.test(b)){f=c.left;if(d)a.runtimeStyle.left=a.currentStyle.left;c.left=e==="fontSize"?"1em":b||0;b=c.pixelLeft+"px";c.left=f;if(d)a.runtimeStyle.left=d}return b===""?"auto":b};m=Q||r;function qb(b,e,d){var f=e==="width"?Vb:Sb,c=e==="width"?b.offsetWidth:b.offsetHeight;if(d==="border")return c;a.each(f,function(){if(!d)c-=parseFloat(a.css(b,"padding"+this))||0;if(d==="margin")c+=parseFloat(a.css(b,"margin"+this))||0;else c-=parseFloat(a.css(b,"border"+this+"Width"))||0});return c}if(a.expr&&a.expr.filters){a.expr.filters.hidden=function(b){var d=b.offsetWidth,c=b.offsetHeight;return d===0&&c===0||!a.support.reliableHiddenOffsets&&(b.style.display||a.css(b,"display"))==="none"};a.expr.filters.visible=function(b){return!a.expr.filters.hidden(b)}}var zc=/%20/g,Zb=/\[\]$/,rb=/\r?\n/g,rc=/#.*$/,bc=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,mc=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ab=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,Rb=/^(?:GET|HEAD)$/,Ub=/^\/\//,ob=/\?/,ic=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,zb=/^(?:select|textarea)/i,X=/\s+/,Ac=/([?&])_=[^&]*/,ub=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,tb=a.fn.load,G={},Z={},g,h;try{g=Yb.href}catch(Cc){g=c.createElement("a");g.href="";g=g.href}h=ub.exec(g.toLowerCase())||[];function L(b){return function(d,f){if(typeof d!=="string"){f=d;d="*"}if(a.isFunction(f))for(var h=d.toLowerCase().split(X),g=0,j=h.length,c,i,e;g<j;g++){c=h[g];e=/^\+/.test(c);if(e)c=c.substr(1)||"*";i=b[c]=b[c]||[];i[e?"unshift":"push"](f)}}}function q(e,d,g,i,f,c){f=f||d.dataTypes[0];c=c||{};c[f]=true;for(var j=e[f],k=0,l=j?j.length:0,h=e===G,a;k<l&&(h||!a);k++){a=j[k](d,g,i);if(typeof a==="string")if(!h||c[a])a=b;else{d.dataTypes.unshift(a);a=q(e,d,g,i,a,c)}}if((h||!a)&&!c["*"])a=q(e,d,g,i,"*",c);return a}a.fn.extend({load:function(d,c,e){if(typeof d!=="string"&&tb)return tb.apply(this,arguments);else if(!this.length)return this;var f=d.indexOf(" ");if(f>=0){var g=d.slice(f,d.length);d=d.slice(0,f)}var i="GET";if(c)if(a.isFunction(c)){e=c;c=b}else if(typeof c==="object"){c=a.param(c,a.ajaxSettings.traditional);i="POST"}var h=this;a.ajax({url:d,type:i,dataType:"html",data:c,complete:function(c,d,b){b=c.responseText;if(c.isResolved()){c.done(function(a){b=a});h.html(g?a("<div>").append(b.replace(ic,"")).find(g):b)}e&&h.each(e,[b,d,c])}});return this},serialize:function(){return a.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?a.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||zb.test(this.nodeName)||mc.test(this.type))}).map(function(d,c){var b=a(this).val();return b==null?null:a.isArray(b)?a.map(b,function(a){return{name:c.name,value:a.replace(rb,"\r\n")}}):{name:c.name,value:b.replace(rb,"\r\n")}}).get()}});a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,b){a.fn[b]=function(a){return this.bind(b,a)}});a.each(["get","post"],function(d,c){a[c]=function(g,d,e,f){if(a.isFunction(d)){f=f||e;e=d;d=b}return a.ajax({type:c,url:g,data:d,success:e,dataType:f})}});a.extend({getScript:function(d,c){return a.get(d,b,c,"script")},getJSON:function(d,c,b){return a.get(d,c,b,"json")},ajaxSetup:function(c,b){if(!b){b=c;c=a.extend(true,a.ajaxSettings,b)}else a.extend(true,c,a.ajaxSettings,b);for(var d in{context:1,url:1})if(d in b)c[d]=b[d];else if(d in a.ajaxSettings)c[d]=a.ajaxSettings[d];return c},ajaxSettings:{url:g,isLocal:Ab.test(h[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":d.String,"text html":true,"text json":a.parseJSON,"text xml":a.parseXML}},ajaxPrefilter:L(G),ajaxTransport:L(Z),ajax:function(r,i){if(typeof r==="object"){i=r;r=b}i=i||{};var c=a.ajaxSetup({},i),g=c.context||c,t=g!==c&&(g.nodeType||g instanceof a)?a(g):a.event,v=a.Deferred(),x=a._Deferred(),o=c.statusCode||{},f,y={},w={},s,n,j,u,k,e=0,m,l,d={readyState:0,setRequestHeader:function(a,c){if(!e){var b=a.toLowerCase();a=w[b]=w[b]||a;y[a]=c}return this},getAllResponseHeaders:function(){return e===2?s:null},getResponseHeader:function(c){var a;if(e===2){if(!n){n={};while(a=bc.exec(s))n[a[1].toLowerCase()]=a[2]}a=n[c.toLowerCase()]}return a===b?null:a},overrideMimeType:function(a){if(!e)c.mimeType=a;return this},abort:function(a){a=a||"abort";j&&j.abort(a);p(0,a);return this}};function p(i,h,q,y){if(e===2)return;e=2;u&&clearTimeout(u);j=b;s=y||"";d.readyState=i?4:0;var k,n,l,w=q?wb(c,d,q):b,p,r;if(i>=200&&i<300||i===304){if(c.ifModified){if(p=d.getResponseHeader("Last-Modified"))a.lastModified[f]=p;if(r=d.getResponseHeader("Etag"))a.etag[f]=r}if(i===304){h="notmodified";k=true}else try{n=Hb(c,w);h="success";k=true}catch(z){h="parsererror";l=z}}else{l=h;if(!h||i){h="error";if(i<0)i=0}}d.status=i;d.statusText=h;if(k)v.resolveWith(g,[n,h,d]);else v.rejectWith(g,[d,h,l]);d.statusCode(o);o=b;m&&t.trigger("ajax"+(k?"Success":"Error"),[d,c,k?n:l]);x.resolveWith(g,[d,h]);if(m){t.trigger("ajaxComplete",[d,c]);!--a.active&&a.event.trigger("ajaxStop")}}v.promise(d);d.success=d.done;d.error=d.fail;d.complete=x.done;d.statusCode=function(b){if(b){var a;if(e<2)for(a in b)o[a]=[o[a],b[a]];else{a=b[d.status];d.then(a,a)}}return this};c.url=((r||c.url)+"").replace(rc,"").replace(Ub,h[1]+"//");c.dataTypes=a.trim(c.dataType||"*").toLowerCase().split(X);if(c.crossDomain==null){k=ub.exec(c.url.toLowerCase());c.crossDomain=!!(k&&(k[1]!=h[1]||k[2]!=h[2]||(k[3]||(k[1]==="http:"?80:443))!=(h[3]||(h[1]==="http:"?80:443))))}if(c.data&&c.processData&&typeof c.data!=="string")c.data=a.param(c.data,c.traditional);q(G,c,i,d);if(e===2)return false;m=c.global;c.type=c.type.toUpperCase();c.hasContent=!Rb.test(c.type);m&&a.active++===0&&a.event.trigger("ajaxStart");if(!c.hasContent){if(c.data)c.url+=(ob.test(c.url)?"&":"?")+c.data;f=c.url;if(c.cache===false){var A=a.now(),z=c.url.replace(Ac,"$1_="+A);c.url=z+(z===c.url?(ob.test(c.url)?"&":"?")+"_="+A:"")}}(c.data&&c.hasContent&&c.contentType!==false||i.contentType)&&d.setRequestHeader("Content-Type",c.contentType);if(c.ifModified){f=f||c.url;a.lastModified[f]&&d.setRequestHeader("If-Modified-Since",a.lastModified[f]);a.etag[f]&&d.setRequestHeader("If-None-Match",a.etag[f])}d.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", */*; q=0.01":""):c.accepts["*"]);for(l in c.headers)d.setRequestHeader(l,c.headers[l]);if(c.beforeSend&&(c.beforeSend.call(g,d,c)===false||e===2)){d.abort();return false}for(l in{success:1,error:1,complete:1})d[l](c[l]);j=q(Z,c,i,d);if(!j)p(-1,"No Transport");else{d.readyState=1;m&&t.trigger("ajaxSend",[d,c]);if(c.async&&c.timeout>0)u=setTimeout(function(){d.abort("timeout")},c.timeout);try{e=1;j.send(y,p)}catch(B){if(status<2)p(-1,B);else a.error(B)}}return d},param:function(c,d){var e=[],g=function(c,b){b=a.isFunction(b)?b():b;e[e.length]=encodeURIComponent(c)+"="+encodeURIComponent(b)};if(d===b)d=a.ajaxSettings.traditional;if(a.isArray(c)||c.jquery&&!a.isPlainObject(c))a.each(c,function(){g(this.name,this.value)});else for(var f in c)D(f,c[f],d,g);return e.join("&").replace(zc,"+")}});function D(c,b,d,e){if(a.isArray(b))a.each(b,function(f,b){if(d||Zb.test(c))e(c,b);else D(c+"["+(typeof b==="object"||a.isArray(b)?f:"")+"]",b,d,e)});else if(!d&&b!=null&&typeof b==="object")for(var f in b)D(c+"["+f+"]",b[f],d,e);else e(c,b)}a.extend({active:0,lastModified:{},etag:{}});function wb(f,k,e){var i=f.contents,c=f.dataTypes,j=f.responseFields,g,a,d,h;for(a in j)if(a in e)k[j[a]]=e[a];while(c[0]==="*"){c.shift();if(g===b)g=f.mimeType||k.getResponseHeader("content-type")}if(g)for(a in i)if(i[a]&&i[a].test(g)){c.unshift(a);break}if(c[0]in e)d=c[0];else{for(a in e){if(!c[0]||f.converters[a+" "+c[0]]){d=a;break}if(!h)h=a}d=d||h}if(d){d!==c[0]&&c.unshift(d);return e[d]}}function Hb(j,h){if(j.dataFilter)h=j.dataFilter(h,j.dataType);for(var o=j.dataTypes,g={},k,p=o.length,l,c=o[0],i,n,d,e,f,m=1;m<p;m++){if(m===1)for(k in j.converters)if(typeof k==="string")g[k.toLowerCase()]=j.converters[k];i=c;c=o[m];if(c==="*")c=i;else if(i!=="*"&&i!==c){n=i+" "+c;d=g[n]||g["* "+c];if(!d){f=b;for(e in g){l=e.split(" ");if(l[0]===i||l[0]==="*"){f=g[l[1]+" "+c];if(f){e=g[e];if(e===true)d=f;else if(f===true)d=e;break}}}}!(d||f)&&a.error("No conversion from "+n.replace(" "," to "));if(d!==true)h=d?d(h):f(e(h))}}return h}var yc=a.now(),x=/(\=)\?(&|$)|\?\?/i;a.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return a.expando+"_"+yc++}});a.ajaxPrefilter("json jsonp",function(b,l,k){var h=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==false&&(x.test(b.url)||h&&x.test(b.data))){var f,c=b.jsonpCallback=a.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=d[c],e=b.url,g=b.data,j="$1"+c+"$2";if(b.jsonp!==false){e=e.replace(x,j);if(b.url===e){if(h)g=g.replace(x,j);if(b.data===g)e+=(/\?/.test(e)?"&":"?")+b.jsonp+"="+c}}b.url=e;b.data=g;d[c]=function(a){f=[a]};k.always(function(){d[c]=i;f&&a.isFunction(i)&&d[c](f[0])});b.converters["script json"]=function(){!f&&a.error(c+" was not called");return f[0]};b.dataTypes[0]="json";return"script"}});a.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(b){a.globalEval(b);return b}}});a.ajaxPrefilter("script",function(a){if(a.cache===b)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});a.ajaxTransport("script",function(e){if(e.crossDomain){var a,d=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(g,f){a=c.createElement("script");a.async="async";if(e.scriptCharset)a.charset=e.scriptCharset;a.src=e.url;a.onload=a.onreadystatechange=function(e,c){if(c||!a.readyState||/loaded|complete/.test(a.readyState)){a.onload=a.onreadystatechange=null;d&&a.parentNode&&d.removeChild(a);a=b;!c&&f(200,"success")}};d.insertBefore(a,d.firstChild)},abort:function(){if(a)a.onload(0,1)}}}});var B=d.ActiveXObject?function(){for(var a in k)k[a](0,1)}:false,vc=0,k;function O(){try{return new d.XMLHttpRequest}catch(a){}}function yb(){try{return new d.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}a.ajaxSettings.xhr=d.ActiveXObject?function(){return!this.isLocal&&O()||yb()}:O;(function(b){a.extend(a.support,{ajax:!!b,cors:!!b&&"withCredentials"in b})})(a.ajaxSettings.xhr());a.support.ajax&&a.ajaxTransport(function(c){if(!c.crossDomain||a.support.cors){var e;return{send:function(h,j){var f=c.xhr(),i,g;if(c.username)f.open(c.type,c.url,c.async,c.username,c.password);else f.open(c.type,c.url,c.async);if(c.xhrFields)for(g in c.xhrFields)f[g]=c.xhrFields[g];c.mimeType&&f.overrideMimeType&&f.overrideMimeType(c.mimeType);if(!c.crossDomain&&!h["X-Requested-With"])h["X-Requested-With"]="XMLHttpRequest";try{for(g in h)f.setRequestHeader(g,h[g])}catch(l){}f.send(c.hasContent&&c.data||null);e=function(q,m){var g,l,n,d,h;try{if(e&&(m||f.readyState===4)){e=b;if(i){f.onreadystatechange=a.noop;if(B)delete k[i]}if(m)f.readyState!==4&&f.abort();else{g=f.status;n=f.getAllResponseHeaders();d={};h=f.responseXML;if(h&&h.documentElement)d.xml=h;d.text=f.responseText;try{l=f.statusText}catch(p){l=""}if(!g&&c.isLocal&&!c.crossDomain)g=d.text?200:404;else if(g===1223)g=204}}}catch(o){!m&&j(-1,o)}d&&j(g,l,d,n)};if(!c.async||f.readyState===4)e();else{i=++vc;if(B){if(!k){k={};a(d).unload(B)}k[i]=e}f.onreadystatechange=e}},abort:function(){e&&e(0,1)}}}});var E={},f,p,ac=/^(?:toggle|show|hide)$/,lc=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,l,ib=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],w,y=d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame;a.fn.extend({show:function(e,h,g){var b,c;if(e||e===0)return this.animate(n("show",3),e,h,g);else{for(var d=0,f=this.length;d<f;d++){b=this[d];if(b.style){c=b.style.display;if(!a._data(b,"olddisplay")&&c==="none")c=b.style.display="";c===""&&a.css(b,"display")==="none"&&a._data(b,"olddisplay",S(b.nodeName))}}for(d=0;d<f;d++){b=this[d];if(b.style){c=b.style.display;if(c===""||c==="none")b.style.display=a._data(b,"olddisplay")||""}}return this}},hide:function(c,g,f){if(c||c===0)return this.animate(n("hide",3),c,g,f);else{for(var b=0,e=this.length;b<e;b++)if(this[b].style){var d=a.css(this[b],"display");d!=="none"&&!a._data(this[b],"olddisplay")&&a._data(this[b],"olddisplay",d)}for(b=0;b<e;b++)if(this[b].style)this[b].style.display="none";return this}},_toggle:a.fn.toggle,toggle:function(b,d,e){var c=typeof b==="boolean";if(a.isFunction(b)&&a.isFunction(d))this._toggle.apply(this,arguments);else if(b==null||c)this.each(function(){var d=c?b:a(this).is(":hidden");a(this)[d?"show":"hide"]()});else this.animate(n("toggle",3),b,d,e);return this},fadeTo:function(c,d,b,a){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:d},c,b,a)},animate:function(b,f,e,d){var c=a.speed(f,e,d);if(a.isEmptyObject(b))return this.each(c.complete,[false]);b=a.extend({},b);return this[c.queue===false?"each":"queue"](function(){c.queue===false&&a._mark(this);var g=a.extend({},c),n=this.nodeType===1,m=n&&a(this).is(":hidden"),f,d,e,o,k,i,h,j,l;g.animatedProperties={};for(e in b){f=a.camelCase(e);if(e!==f){b[f]=b[e];delete b[e]}d=b[f];if(a.isArray(d)){g.animatedProperties[f]=d[1];d=b[f]=d[0]}else g.animatedProperties[f]=g.specialEasing&&g.specialEasing[f]||g.easing||"swing";if(d==="hide"&&m||d==="show"&&!m)return g.complete.call(this);if(n&&(f==="height"||f==="width")){g.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(a.css(this,"display")==="inline"&&a.css(this,"float")==="none")if(!a.support.inlineBlockNeedsLayout)this.style.display="inline-block";else{o=S(this.nodeName);if(o==="inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}}}}if(g.overflow!=null)this.style.overflow="hidden";for(e in b){k=new a.fx(this,g,e);d=b[e];if(ac.test(d))k[d==="toggle"?m?"show":"hide":d]();else{i=lc.exec(d);h=k.cur();if(i){j=parseFloat(i[2]);l=i[3]||(a.cssNumber[e]?"":"px");if(l!=="px"){a.style(this,e,(j||1)+l);h=(j||1)/k.cur()*h;a.style(this,e,h+l)}if(i[1])j=(i[1]==="-="?-1:1)*j+h;k.custom(h,j,l)}else k.custom(h,d,"")}}return true})},stop:function(c,b){c&&this.queue([]);this.each(function(){var c=a.timers,d=c.length;!b&&a._unmark(true,this);while(d--)if(c[d].elem===this){b&&c[d](true);c.splice(d,1)}});!b&&this.dequeue();return this}});function W(){setTimeout(Kb,0);return w=a.now()}function Kb(){w=b}function n(c,d){var b={};a.each(ib.concat.apply([],ib.slice(0,d)),function(){b[this]=c});return b}a.each({slideDown:n("show",1),slideUp:n("hide",1),slideToggle:n("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,b){a.fn[c]=function(d,c,a){return this.animate(b,d,c,a)}});a.extend({speed:function(c,d,e){var b=c&&typeof c==="object"?a.extend({},c):{complete:e||!e&&d||a.isFunction(c)&&c,duration:c,easing:e&&d||d&&!a.isFunction(d)&&d};b.duration=a.fx.off?0:typeof b.duration==="number"?b.duration:b.duration in a.fx.speeds?a.fx.speeds[b.duration]:a.fx.speeds._default;b.old=b.complete;b.complete=function(c){if(b.queue!==false)a.dequeue(this);else c!==false&&a._unmark(this);a.isFunction(b.old)&&b.old.call(this)};return b},easing:{linear:function(c,d,a,b){return a+b*c},swing:function(c,d,a,b){return(-Math.cos(c*Math.PI)/2+.5)*b+a}},timers:[],fx:function(b,a,c){this.options=a;this.elem=b;this.prop=c;a.orig=a.orig||{}}});a.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(a.fx.step[this.prop]||a.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var c,b=a.css(this.elem,this.prop);return isNaN(c=parseFloat(b))?!b||b==="auto"?0:b:c},custom:function(e,h,g){var f=this,c=a.fx,b;this.startTime=w||W();this.start=e;this.end=h;this.unit=g||this.unit||(a.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;function d(a){return f.step(a)}d.elem=this.elem;if(d()&&a.timers.push(d)&&!l)if(y){l=1;b=function(){if(l){y(b);c.tick()}};y(b)}else l=setInterval(c.tick,c.interval)},show:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());a(this.elem).show()},hide:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(i){var e=w||W(),f=true,c=this.elem,b=this.options,g,d;if(i||e>=b.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();b.animatedProperties[this.prop]=true;for(g in b.animatedProperties)if(b.animatedProperties[g]!==true)f=false;if(f){b.overflow!=null&&!a.support.shrinkWrapBlocks&&a.each(["","X","Y"],function(a,d){c.style["overflow"+d]=b.overflow[a]});b.hide&&a(c).hide();if(b.hide||b.show)for(var h in b.animatedProperties)a.style(c,h,b.orig[h]);b.complete.call(c)}return false}else{if(b.duration==Infinity)this.now=e;else{d=e-this.startTime;this.state=d/b.duration;this.pos=a.easing[b.animatedProperties[this.prop]](this.state,d,0,1,b.duration);this.now=this.start+(this.end-this.start)*this.pos}this.update()}return true}};a.extend(a.fx,{tick:function(){for(var b=a.timers,c=0;c<b.length;++c)!b[c]()&&b.splice(c--,1);!b.length&&a.fx.stop()},interval:13,stop:function(){clearInterval(l);l=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){a.style(b.elem,"opacity",b.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(a.expr&&a.expr.filters)a.expr.filters.animated=function(b){return a.grep(a.timers,function(a){return b===a.elem}).length};function S(b){if(!E[b]){var d=a("<"+b+">").appendTo("body"),e=d.css("display");d.remove();if(e==="none"||e===""){if(!f){f=c.createElement("iframe");f.frameBorder=f.width=f.height=0}c.body.appendChild(f);if(!p||!f.createElement){p=(f.contentWindow||f.contentDocument).document;p.write("<!doctype><html><body></body></html>")}d=p.createElement(b);p.body.appendChild(d);e=a.css(d,"display");c.body.removeChild(f)}E[b]=e}return E[b]}var nc=/^t(?:able|d|h)$/i,sb=/^(?:body|html)$/i;if("getBoundingClientRect"in c.documentElement)a.fn.offset=function(g){var b=this[0],c;if(g)return this.each(function(b){a.offset.setOffset(this,g,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return a.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(o){}var f=b.ownerDocument,d=f.documentElement;if(!c||!a.contains(d,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var e=f.body,h=I(f),k=d.clientTop||e.clientTop||0,i=d.clientLeft||e.clientLeft||0,l=h.pageYOffset||a.support.boxModel&&d.scrollTop||e.scrollTop,j=h.pageXOffset||a.support.boxModel&&d.scrollLeft||e.scrollLeft,n=c.top+l-k,m=c.left+j-i;return{top:n,left:m}};else a.fn.offset=function(l){var b=this[0];if(l)return this.each(function(b){a.offset.setOffset(this,l,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return a.offset.bodyOffset(b);a.offset.initialize();var c,i=b.offsetParent,m=b,k=b.ownerDocument,j=k.documentElement,g=k.body,h=k.defaultView,f=h?h.getComputedStyle(b,null):b.currentStyle,e=b.offsetTop,d=b.offsetLeft;while((b=b.parentNode)&&b!==g&&b!==j){if(a.offset.supportsFixedPosition&&f.position==="fixed")break;c=h?h.getComputedStyle(b,null):b.currentStyle;e-=b.scrollTop;d-=b.scrollLeft;if(b===i){e+=b.offsetTop;d+=b.offsetLeft;if(a.offset.doesNotAddBorder&&!(a.offset.doesAddBorderForTableAndCells&&nc.test(b.nodeName))){e+=parseFloat(c.borderTopWidth)||0;d+=parseFloat(c.borderLeftWidth)||0}m=i;i=b.offsetParent}if(a.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){e+=parseFloat(c.borderTopWidth)||0;d+=parseFloat(c.borderLeftWidth)||0}f=c}if(f.position==="relative"||f.position==="static"){e+=g.offsetTop;d+=g.offsetLeft}if(a.offset.supportsFixedPosition&&f.position==="fixed"){e+=Math.max(j.scrollTop,g.scrollTop);d+=Math.max(j.scrollLeft,g.scrollLeft)}return{top:e,left:d}};a.offset={initialize:function(){var f=c.body,d=c.createElement("div"),e,b,j,g,h=parseFloat(a.css(f,"marginTop"))||0,i="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.extend(d.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});d.innerHTML=i;f.insertBefore(d,f.firstChild);e=d.firstChild;b=e.firstChild;g=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=b.offsetTop!==5;this.doesAddBorderForTableAndCells=g.offsetTop===5;b.style.position="fixed";b.style.top="20px";this.supportsFixedPosition=b.offsetTop===20||b.offsetTop===15;b.style.position=b.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=b.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=f.offsetTop!==h;f.removeChild(d);a.offset.initialize=a.noop},bodyOffset:function(b){var d=b.offsetTop,c=b.offsetLeft;a.offset.initialize();if(a.offset.doesNotIncludeMarginInBodyOffset){d+=parseFloat(a.css(b,"marginTop"))||0;c+=parseFloat(a.css(b,"marginLeft"))||0}return{top:d,left:c}},setOffset:function(c,b,n){var g=a.css(c,"position");if(g==="static")c.style.position="relative";var h=a(c),f=h.offset(),l=a.css(c,"top"),k=a.css(c,"left"),m=(g==="absolute"||g==="fixed")&&a.inArray("auto",[l,k])>-1,d={},e={},j,i;if(m){e=h.position();j=e.top;i=e.left}else{j=parseFloat(l)||0;i=parseFloat(k)||0}if(a.isFunction(b))b=b.call(c,n,f);if(b.top!=null)d.top=b.top-f.top+j;if(b.left!=null)d.left=b.left-f.left+i;if("using"in b)b.using.call(c,d);else h.css(d)}};a.fn.extend({position:function(){if(!this[0])return null;var e=this[0],b=this.offsetParent(),d=this.offset(),c=sb.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(a.css(e,"marginTop"))||0;d.left-=parseFloat(a.css(e,"marginLeft"))||0;c.top+=parseFloat(a.css(b[0],"borderTopWidth"))||0;c.left+=parseFloat(a.css(b[0],"borderLeftWidth"))||0;return{top:d.top-c.top,left:d.left-c.left}},offsetParent:function(){return this.map(function(){var b=this.offsetParent||c.body;while(b&&(!sb.test(b.nodeName)&&a.css(b,"position")==="static"))b=b.offsetParent;return b})}});a.each(["Left","Top"],function(d,e){var c="scroll"+e;a.fn[c]=function(g){var f,e;if(g===b){f=this[0];if(!f)return null;e=I(f);return e?"pageXOffset"in e?e[d?"pageYOffset":"pageXOffset"]:a.support.boxModel&&e.document.documentElement[c]||e.document.body[c]:f[c]}return this.each(function(){e=I(this);if(e)e.scrollTo(!d?g:a(e).scrollLeft(),d?g:a(e).scrollTop());else this[c]=g})}});function I(b){return a.isWindow(b)?b:b.nodeType===9?b.defaultView||b.parentWindow:false}a.each(["Height","Width"],function(e,c){var d=c.toLowerCase();a.fn["inner"+c]=function(){return this[0]?parseFloat(a.css(this[0],d,"padding")):null};a.fn["outer"+c]=function(b){return this[0]?parseFloat(a.css(this[0],d,b?"margin":"border")):null};a.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(a.isFunction(f))return this.each(function(c){var b=a(this);b[d](f.call(this,c,b[d]()))});if(a.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}else if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);else if(f===b){var h=a.css(e,d),i=parseFloat(h);return a.isNaN(i)?h:i}else return this.css(d,typeof f==="string"?f:f+"px")}});d.jQuery=d.$=a})(window);var b=window.jQuery.noConflict(true);(function(){var k=this,w=k._,h={},d=Array.prototype,t=Object.prototype,A=Function.prototype,b=d.slice,D=d.unshift,C=t.toString,f=t.hasOwnProperty,n=d.forEach,s=d.map,p=d.reduce,m=d.reduceRight,o=d.filter,q=d.every,r=d.some,g=d.indexOf,l=d.lastIndexOf,x=Array.isArray,z=Object.keys,i=A.bind,a=function(a){return new e(a)};if(typeof module!=="undefined"&&module.exports){module.exports=a;a._=a}else k._=a;a.VERSION="1.1.7";var c=a.each=a.forEach=function(a,c,d){if(a==null)return;if(n&&a.forEach===n)a.forEach(c,d);else if(a.length===+a.length){for(var b=0,g=a.length;b<g;b++)if(b in a&&c.call(d,a[b],b,a)===h)return}else for(var e in a)if(f.call(a,e))if(c.call(d,a[e],e,a)===h)return};a.map=function(b,d,e){var a=[];if(b==null)return a;if(s&&b.map===s)return b.map(d,e);c(b,function(c,b,f){a[a.length]=d.call(e,c,b,f)});return a};a.reduce=a.foldl=a.inject=function(d,e,b,g){var f=b!==void 0;if(d==null)d=[];if(p&&d.reduce===p){if(g)e=a.bind(e,g);return f?d.reduce(e,b):d.reduce(e)}c(d,function(a,c,d){if(!f){b=a;f=true}else b=e.call(g,b,a,c,d)});if(!f)throw new TypeError("Reduce of empty array with no initial value");return b};a.reduceRight=a.foldr=function(b,c,e,d){if(b==null)b=[];if(m&&b.reduceRight===m){if(d)c=a.bind(c,d);return e!==void 0?b.reduceRight(c,e):b.reduceRight(c)}var f=(a.isArray(b)?b.slice():a.toArray(b)).reverse();return a.reduce(f,c,e,d)};a.find=a.detect=function(d,b,c){var a;v(d,function(d,e,f){if(b.call(c,d,e,f)){a=d;return true}});return a};a.filter=a.select=function(b,d,e){var a=[];if(b==null)return a;if(o&&b.filter===o)return b.filter(d,e);c(b,function(b,c,f){if(d.call(e,b,c,f))a[a.length]=b});return a};a.reject=function(b,d,e){var a=[];if(b==null)return a;c(b,function(b,c,f){if(!d.call(e,b,c,f))a[a.length]=b});return a};a.every=a.all=function(b,d,e){var a=true;if(b==null)return a;if(q&&b.every===q)return b.every(d,e);c(b,function(c,b,f){if(!(a=a&&d.call(e,c,b,f)))return h});return a};var v=a.some=a.any=function(d,b,f){b=b||a.identity;var e=false;if(d==null)return e;if(r&&d.some===r)return d.some(b,f);c(d,function(c,a,d){if(e|=b.call(f,c,a,d))return h});return!!e};a.include=a.contains=function(a,c){var b=false;if(a==null)return b;if(g&&a.indexOf===g)return a.indexOf(c)!=-1;v(a,function(a){if(b=a===c)return true});return b};a.invoke=function(e,c){var d=b.call(arguments,2);return a.map(e,function(a){return(c.call?c||a:a[c]).apply(a,d)})};a.pluck=function(c,b){return a.map(c,function(a){return a[b]})};a.max=function(e,b,f){if(!b&&a.isArray(e))return Math.max.apply(Math,e);var d={computed:-Infinity};c(e,function(a,e,g){var c=b?b.call(f,a,e,g):a;c>=d.computed&&(d={value:a,computed:c})});return d.value};a.min=function(e,b,f){if(!b&&a.isArray(e))return Math.min.apply(Math,e);var d={computed:Infinity};c(e,function(a,e,g){var c=b?b.call(f,a,e,g):a;c<d.computed&&(d={value:a,computed:c})});return d.value};a.sortBy=function(d,b,c){return a.pluck(a.map(d,function(a,d,e){return{value:a,criteria:b.call(c,a,d,e)}}).sort(function(d,c){var a=d.criteria,b=c.criteria;return a<b?-1:a>b?1:0}),"value")};a.groupBy=function(d,b){var a={};c(d,function(c,e){var d=b(c,e);(a[d]||(a[d]=[])).push(c)});return a};a.sortedIndex=function(f,g,b){b||(b=a.identity);var c=0,d=f.length;while(c<d){var e=c+d>>1;b(f[e])<b(g)?(c=e+1):(d=e)}return c};a.toArray=function(c){return!c?[]:c.toArray?c.toArray():a.isArray(c)?b.call(c):a.isArguments(c)?b.call(c):a.values(c)};a.size=function(b){return a.toArray(b).length};a.first=a.head=function(a,c,d){return c!=null&&!d?b.call(a,0,c):a[0]};a.rest=a.tail=function(c,a,d){return b.call(c,a==null||d?1:a)};a.last=function(a){return a[a.length-1]};a.compact=function(b){return a.filter(b,function(a){return!!a})};a.flatten=function(b){return a.reduce(b,function(b,c){if(a.isArray(c))return b.concat(a.flatten(c));b[b.length]=c;return b},[])};a.without=function(c){return a.difference(c,b.call(arguments,1))};a.uniq=a.unique=function(c,b){return a.reduce(c,function(c,d,e){if(0==e||(b===true?a.last(c)!=d:!a.include(c,d)))c[c.length]=d;return c},[])};a.union=function(){return a.uniq(a.flatten(arguments))};a.intersection=a.intersect=function(c){var d=b.call(arguments,1);return a.filter(a.uniq(c),function(b){return a.every(d,function(c){return a.indexOf(c,b)>=0})})};a.difference=function(b,c){return a.filter(b,function(b){return!a.include(c,b)})};a.zip=function(){for(var f=b.call(arguments),e=a.max(a.pluck(f,"length")),d=new Array(e),c=0;c<e;c++)d[c]=a.pluck(f,""+c);return d};a.indexOf=function(c,d,f){if(c==null)return-1;var b,e;if(f){b=a.sortedIndex(c,d);return c[b]===d?b:-1}if(g&&c.indexOf===g)return c.indexOf(d);for(b=0,e=c.length;b<e;b++)if(c[b]===d)return b;return-1};a.lastIndexOf=function(a,c){if(a==null)return-1;if(l&&a.lastIndexOf===l)return a.lastIndexOf(c);var b=a.length;while(b--)if(a[b]===c)return b;return-1};a.range=function(a,d,b){if(arguments.length<=1){d=a||0;a=0}b=arguments[2]||1;var f=Math.max(Math.ceil((d-a)/b),0),e=0,c=new Array(f);while(e<f){c[e++]=a;a+=b}return c};a.bind=function(a,d){if(a.bind===i&&i)return i.apply(a,b.call(arguments,1));var c=b.call(arguments,2);return function(){return a.apply(d,c.concat(b.call(arguments)))}};a.bindAll=function(d){var e=b.call(arguments,1);if(e.length==0)e=a.functions(d);c(e,function(b){d[b]=a.bind(d[b],d)});return d};a.memoize=function(d,b){var c={};b||(b=a.identity);return function(){var a=b.apply(this,arguments);return f.call(c,a)?c[a]:(c[a]=d.apply(this,arguments))}};a.delay=function(a,d){var c=b.call(arguments,2);return setTimeout(function(){return a.apply(a,c)},d)};a.defer=function(c){return a.delay.apply(a,[c,1].concat(b.call(arguments,1)))};var u=function(c,d,b){var a;return function(){var f=this,g=arguments,e=function(){a=null;c.apply(f,g)};b&&clearTimeout(a);if(b||!a)a=setTimeout(e,d)}};a.throttle=function(a,b){return u(a,b,false)};a.debounce=function(a,b){return u(a,b,true)};a.once=function(c){var b=false,a;return function(){if(b)return a;b=true;return a=c.apply(this,arguments)}};a.wrap=function(c,a){return function(){var d=[c].concat(b.call(arguments));return a.apply(this,d)}};a.compose=function(){var a=b.call(arguments);return function(){for(var c=b.call(arguments),d=a.length-1;d>=0;d--)c=[a[d].apply(this,c)];return c[0]}};a.after=function(a,b){return function(){if(--a<1)return b.apply(this,arguments)}};a.keys=z||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[];for(var c in a)if(f.call(a,c))b[b.length]=c;return b};a.values=function(b){return a.map(b,a.identity)};a.functions=a.methods=function(d){var b=[];for(var c in d)a.isFunction(d[c])&&b.push(c);return b.sort()};a.extend=function(a){c(b.call(arguments,1),function(b){for(var c in b)if(b[c]!==void 0)a[c]=b[c]});return a};a.defaults=function(a){c(b.call(arguments,1),function(c){for(var b in c)if(a[b]==null)a[b]=c[b]});return a};a.clone=function(b){return a.isArray(b)?b.slice():a.extend({},b)};a.tap=function(a,b){b(a);return a};a.isEqual=function(b,c){if(b===c)return true;var e=typeof b,h=typeof c;if(e!=h)return false;if(b==c)return true;if(!b&&c||b&&!c)return false;if(b._chain)b=b._wrapped;if(c._chain)c=c._wrapped;if(b.isEqual)return b.isEqual(c);if(c.isEqual)return c.isEqual(b);if(a.isDate(b)&&a.isDate(c))return b.getTime()===c.getTime();if(a.isNaN(b)&&a.isNaN(c))return false;if(a.isRegExp(b)&&a.isRegExp(c))return b.source===c.source&&b.global===c.global&&b.ignoreCase===c.ignoreCase&&b.multiline===c.multiline;if(e!=="object")return false;if(b.length&&b.length!==c.length)return false;var f=a.keys(b),g=a.keys(c);if(f.length!=g.length)return false;for(var d in b)if(!(d in c)||!a.isEqual(b[d],c[d]))return false;return true};a.isEmpty=function(b){if(a.isArray(b)||a.isString(b))return b.length===0;for(var c in b)if(f.call(b,c))return false;return true};a.isElement=function(a){return!!(a&&a.nodeType==1)};a.isArray=x||function(a){return C.call(a)==="[object Array]"};a.isObject=function(a){return a===Object(a)};a.isArguments=function(a){return!!(a&&f.call(a,"callee"))};a.isFunction=function(a){return!!(a&&a.constructor&&a.call&&a.apply)};a.isString=function(a){return!!(a===""||a&&a.charCodeAt&&a.substr)};a.isNumber=function(a){return!!(a===0||a&&a.toExponential&&a.toFixed)};a.isNaN=function(a){return a!==a};a.isBoolean=function(a){return a===true||a===false};a.isDate=function(a){return!!(a&&a.getTimezoneOffset&&a.setUTCFullYear)};a.isRegExp=function(a){return!!(a&&a.test&&a.exec&&(a.ignoreCase||a.ignoreCase===false))};a.isNull=function(a){return a===null};a.isUndefined=function(a){return a===void 0};a.noConflict=function(){k._=w;return this};a.identity=function(a){return a};a.times=function(d,b,c){for(var a=0;a<d;a++)b.call(c,a)};a.mixin=function(b){c(a.functions(b),function(c){y(c,a[c]=b[c])})};var B=0;a.uniqueId=function(a){var b=B++;return a?a+b:b};a.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g};a.template=function(f,b){var d=a.templateSettings,e="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+f.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(d.interpolate,function(b,a){return"',"+a.replace(/\\'/g,"'")+",'"}).replace(d.evaluate||null,function(b,a){return"');"+a.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",c=new Function("obj",e);return b?c(b):c};var e=function(a){this._wrapped=a};a.prototype=e.prototype;var j=function(b,c){return c?a(b).chain():b},y=function(d,c){e.prototype[d]=function(){var d=b.call(arguments);D.call(d,this._wrapped);return j(c.apply(a,d),this._chain)}};a.mixin(a);c(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var b=d[a];e.prototype[a]=function(){b.apply(this._wrapped,arguments);return j(this._wrapped,this._chain)}});c(["concat","join","slice"],function(a){var b=d[a];e.prototype[a]=function(){return j(b.apply(this._wrapped,arguments),this._chain)}});e.prototype.chain=function(){this._chain=true;return this};e.prototype.value=function(){return this._wrapped}})();
/*
 * Modernizr v2.0.6
 * http://www.modernizr.com
 *
 * Copyright (c) 2009-2011 Faruk Ates, Paul Irish, Alex Sexton
 * Dual-licensed under the BSD or MIT licenses: www.modernizr.com/license/
 */
window.Modernizr=function(e,b,h){var H="2.0.6",c={},E=true,f=b.documentElement,J=b.head||b.getElementsByTagName("head")[0],m="modernizr",A=b.createElement(m),j=A.style,d=b.createElement("input"),t=":)",y=Object.prototype.toString,i=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),k="Webkit Moz O ms Khtml".split(" "),u={svg:"http://www.w3.org/2000/svg"},a={},B={},C={},z=[],q,v=function(h,j,c,e){var g,i,d,a=b.createElement("div");if(parseInt(c,10))while(c--){d=b.createElement("div");d.id=e?e[c]:m+(c+1);a.appendChild(d)}g=["&shy;","<style>",h,"</style>"].join("");a.id=m;a.innerHTML+=g;f.appendChild(a);i=j(a,h);a.parentNode.removeChild(a);return!!i},D=function(b){if(e.matchMedia)return matchMedia(b).matches;var a;v("@media "+b+" { #"+m+" { position: absolute; } }",function(b){a=(e.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position=="absolute"});return a},o=function(){var c={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function a(d,a){a=a||b.createElement(c[d]||"div");d="on"+d;var e=d in a;if(!e){if(!a.setAttribute)a=b.createElement("div");if(a.setAttribute&&a.removeAttribute){a.setAttribute(d,"");e=n(a[d],"function");if(!n(a[d],h))a[d]=h;a.removeAttribute(d)}}a=null;return e}return a}(),w={}.hasOwnProperty,p;if(!n(w,h)&&!n(w.call,h))p=function(b,a){return w.call(b,a)};else p=function(b,a){return a in b&&n(b.constructor.prototype[a],h)};function l(a){j.cssText=a}function F(a,b){return l(i.join(a+";")+(b||""))}function n(b,a){return typeof b===a}function s(b,a){return!!~(""+b).indexOf(a)}function r(a,c){for(var b in a)if(j[a[b]]!==h)return c=="pfx"?a[b]:true;return false}function g(a,c){var b=a.charAt(0).toUpperCase()+a.substr(1),d=(a+" "+k.join(b+" ")+b).split(" ");return r(d,c)}var I=function(f,d){var g=f.join(""),a=d.length;v(g,function(i,j){var d=b.styleSheets[b.styleSheets.length-1],h=d.cssRules&&d.cssRules[0]?d.cssRules[0].cssText:d.cssText||"",g=i.childNodes,f={};while(a--)f[g[a].id]=g[a];c.touch="ontouchstart"in e||f.touch.offsetTop===9;c.csstransforms3d=f.csstransforms3d.offsetLeft===9;c.generatedcontent=f.generatedcontent.offsetHeight>=1;c.fontface=/src/i.test(h)&&h.indexOf(j.split(" ")[0])===0},a,d)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",i.join("touch-enabled),("),m,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",i.join("transform-3d),("),m,")","{#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',t,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);a.flexbox=function(){function e(b,a,d,c){a+=":";b.style.cssText=(a+i.join(d+";"+a)).slice(0,-a.length)+(c||"")}function d(b,a,d,c){b.style.cssText=i.join(a+":"+d+";")+(c||"")}var a=b.createElement("div"),c=b.createElement("div");e(a,"display","box","width:42px;padding:0;");d(c,"box-flex","1","width:10px;");a.appendChild(c);f.appendChild(a);var g=c.offsetWidth===42;a.removeChild(c);f.removeChild(a);return g};a.canvas=function(){var a=b.createElement("canvas");return!!(a.getContext&&a.getContext("2d"))};a.canvastext=function(){return!!(c.canvas&&n(b.createElement("canvas").getContext("2d").fillText,"function"))};a.webgl=function(){return!!e.WebGLRenderingContext};a.touch=function(){return c.touch};a.geolocation=function(){return!!navigator.geolocation};a.postmessage=function(){return!!e.postMessage};a.websqldatabase=function(){return!!e.openDatabase};a.indexedDB=function(){for(var a=-1,b=k.length;++a<b;)if(e[k[a].toLowerCase()+"IndexedDB"])return true;return!!e.indexedDB};a.hashchange=function(){return o("hashchange",e)&&(b.documentMode===h||b.documentMode>7)};a.history=function(){return!!(e.history&&history.pushState)};a.draganddrop=function(){return o("dragstart")&&o("drop")};a.websockets=function(){for(var a=-1,b=k.length;++a<b;)if(e[k[a]+"WebSocket"])return true;return"WebSocket"in e};a.rgba=function(){l("background-color:rgba(150,255,150,.5)");return s(j.backgroundColor,"rgba")};a.hsla=function(){l("background-color:hsla(120,40%,100%,.5)");return s(j.backgroundColor,"rgba")||s(j.backgroundColor,"hsla")};a.multiplebgs=function(){l("background:url(https://),url(https://),red url(https://)");return/(url\s*\(.*?){3}/.test(j.background)};a.backgroundsize=function(){return g("backgroundSize")};a.borderimage=function(){return g("borderImage")};a.borderradius=function(){return g("borderRadius")};a.boxshadow=function(){return g("boxShadow")};a.textshadow=function(){return b.createElement("div").style.textShadow===""};a.opacity=function(){F("opacity:.55");return/^0.55$/.test(j.opacity)};a.cssanimations=function(){return g("animationName")};a.csscolumns=function(){return g("columnCount")};a.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";l((a+i.join(b+a)+i.join(c+a)).slice(0,-a.length));return s(j.backgroundImage,"gradient")};a.cssreflections=function(){return g("boxReflect")};a.csstransforms=function(){return!!r(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};a.csstransforms3d=function(){var a=!!r(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(a&&"webkitPerspective"in f.style)a=c.csstransforms3d;return a};a.csstransitions=function(){return g("transitionProperty")};a.fontface=function(){return c.fontface};a.generatedcontent=function(){return c.generatedcontent};a.video=function(){var c=b.createElement("video"),a=false;try{if(a=!!c.canPlayType){a=new Boolean(a);a.ogg=c.canPlayType('video/ogg; codecs="theora"');var d='video/mp4; codecs="avc1.42E01E';a.h264=c.canPlayType(d+'"')||c.canPlayType(d+', mp4a.40.2"');a.webm=c.canPlayType('video/webm; codecs="vp8, vorbis"')}}catch(e){}return a};a.audio=function(){var c=b.createElement("audio"),a=false;try{if(a=!!c.canPlayType){a=new Boolean(a);a.ogg=c.canPlayType('audio/ogg; codecs="vorbis"');a.mp3=c.canPlayType("audio/mpeg;");a.wav=c.canPlayType('audio/wav; codecs="1"');a.m4a=c.canPlayType("audio/x-m4a;")||c.canPlayType("audio/aac;")}}catch(d){}return a};a.localstorage=function(){try{return!!localStorage.getItem}catch(a){return false}};a.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(a){return false}};a.webworkers=function(){return!!e.Worker};a.applicationcache=function(){return!!e.applicationCache};a.svg=function(){return!!b.createElementNS&&!!b.createElementNS(u.svg,"svg").createSVGRect};a.inlinesvg=function(){var a=b.createElement("div");a.innerHTML="<svg/>";return(a.firstChild&&a.firstChild.namespaceURI)==u.svg};a.smil=function(){return!!b.createElementNS&&/SVG/.test(y.call(b.createElementNS(u.svg,"animate")))};a.svgclippaths=function(){return!!b.createElementNS&&/SVG/.test(y.call(b.createElementNS(u.svg,"clipPath")))};function G(){c.input=function(b){for(var a=0,c=b.length;a<c;a++)C[b[a]]=!!(b[a]in d);return C}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));c.inputtypes=function(i){for(var e=0,a,c,g,j=i.length;e<j;e++){d.setAttribute("type",c=i[e]);a=d.type!=="text";if(a){d.value=t;d.style.cssText="position:absolute;visibility:hidden;";if(/^range$/.test(c)&&d.style.WebkitAppearance!==h){f.appendChild(d);g=b.defaultView;a=g.getComputedStyle&&g.getComputedStyle(d,null).WebkitAppearance!=="textfield"&&d.offsetHeight!==0;f.removeChild(d)}else if(!/^(search|tel)$/.test(c))if(/^(url|email)$/.test(c))a=d.checkValidity&&d.checkValidity()===false;else if(/^color$/.test(c)){f.appendChild(d);f.offsetWidth;a=d.value!=t;f.removeChild(d)}else a=d.value!=t}B[i[e]]=!!a}return B}("search tel url email datetime date month week time datetime-local number range color".split(" "))}for(var x in a)if(p(a,x)){q=x.toLowerCase();c[q]=a[x]();z.push((c[q]?"":"no-")+q)}c.input||G();c.addTest=function(a,b){if(typeof a=="object")for(var d in a)p(a,d)&&c.addTest(d,a[d]);else{a=a.toLowerCase();if(c[a]!==h)return;b=typeof b=="boolean"?b:!!b();f.className+=" "+(b?"":"no-")+a;c[a]=b}return c};l("");A=d=null;e.attachEvent&&function(){var a=b.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&(function(f,b){f.iepp=f.iepp||{};var a=f.iepp,i=a.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",g=i.split("|"),k=g.length,p=new RegExp("(^|\\s)("+i+")","gi"),s=new RegExp("<(/*)("+i+")","gi"),r=/^\s*[\{\}]\s*$/,q=new RegExp("(^|[^\\n]*?\\s)("+i+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),l=b.createDocumentFragment(),j=b.documentElement,m=j.firstChild,d=b.createElement("body"),e=b.createElement("style"),o=/print|all/,c;function n(b){var a=-1;while(++a<k)b.createElement(g[a])}a.getCSS=function(d,c){if(d+""===h)return"";var f=-1,g=d.length,b,e=[];while(++f<g){b=d[f];if(b.disabled)continue;c=b.media||c;o.test(c)&&e.push(a.getCSS(b.imports,c),b.cssText);c="all"}return e.join("")};a.parseCSS=function(c){var b=[],a;while((a=q.exec(c))!=null)b.push(((r.exec(a[1])?"\n":a[1])+a[2]+a[3]).replace(p,"$1.iepp_$2")+a[4]);return b.join("\n")};a.writeHTML=function(){var e=-1;c=c||b.body;while(++e<k){var a=b.getElementsByTagName(g[e]),h=a.length,f=-1;while(++f<h)if(a[f].className.indexOf("iepp_")<0)a[f].className+=" iepp_"+g[e]}l.appendChild(c);j.appendChild(d);d.className=c.className;d.id=c.id;d.innerHTML=c.innerHTML.replace(s,"<$1font")};a._beforePrint=function(){e.styleSheet.cssText=a.parseCSS(a.getCSS(b.styleSheets,"all"));a.writeHTML()};a.restoreHTML=function(){d.innerHTML="";j.removeChild(d);j.appendChild(c)};a._afterPrint=function(){a.restoreHTML();e.styleSheet.cssText=""};n(b);n(l);if(a.disablePP)return;m.insertBefore(e,m.firstChild);e.media="print";e.className="iepp-printshim";f.attachEvent("onbeforeprint",a._beforePrint);f.attachEvent("onafterprint",a._afterPrint)})(e,b);c._version=H;c._prefixes=i;c._domPrefixes=k;c.mq=D;c.hasEvent=o;c.testProp=function(a){return r([a])};c.testAllProps=g;c.testStyles=v;c.prefixed=function(a){return g(a,"pfx")};f.className=f.className.replace(/\bno-js\b/,"")+(E?" js "+z.join(" "):"");return c}(this,this.document);Modernizr.addTest("positionfixed",function(){var b=document.createElement("div"),c=b.cloneNode(false),d=false,a=document.body||function(){d=true;return document.documentElement.appendChild(document.createElement("body"))}(),e=a.style.cssText;a.style.cssText="padding:0;margin:0";b.style.cssText="position:fixed;top:42px";a.appendChild(b);a.appendChild(c);var f=b.offsetTop!==c.offsetTop;a.removeChild(b);a.removeChild(c);a.style.cssText=e;d&&document.documentElement.removeChild(a);return f});Modernizr.addTest("iospositionfixed",function(){var c=document.createElement("div"),b,f=false,a=document.body||function(){f=true;return document.documentElement.appendChild(document.createElement("body"))}();if(typeof document.body.scrollIntoViewIfNeeded==="function"){var h=a.style.cssText,d=20,g=window.pageYOffset;a.appendChild(c);c.style.cssText="position:fixed;top:0px;height:10px;";a.style.height="3000px";var e=function(){if(b===undefined){c.scrollIntoViewIfNeeded();if(window.pageYOffset===d)b=true;else b=false}window.removeEventListener("scroll",e,false)};window.addEventListener("scroll",d,false);window.setTimeout(e,20);window.scrollTo(0,d);e();a.removeChild(c);a.style.cssText=h;window.scrollTo(0,g)}else b=Modernizr.positionfixed;f&&document.documentElement.removeChild(a);return b});(function(a){var q=function(){var b=a("script[widgets4Debug=true]")[0];if(!b)b=a("script.widgets4Core")[0];if(!b){var e=document.getElementsByTagName("script"),d=new RegExp("http://widgets4.(flux-dev.com|flux-staging.com|flux.com)/Core","i");a.each(e,function(){if(d.test(a(this).attr("src"))){b=this;return false}})}return{getCommunityUcid:function(){return b.getAttribute("id")},getCulture:function(){return c.getQueryParameter(window.document.location.href,"culture")||b.getAttribute("culture")}}}(),T=function(){var a=false;function f(){!b.user&&!b.community.readOnlyMode&&B.processMtvnUserIdForLoggedOut();g.addEventListener("FbTlToggleChanged",function(a){if(!!b.user)b.user.publishToFbTimeline=a});g.addEventListener("UserPhoneSaved",function(){if(!!b.user)b.user.hasPhone=true})}function c(){!!b.user&&!b.community.readOnlyMode&&B.processMtvnUserId(b.user.loggedMtvnUserId);!b.user&&d.removeBigDoorCookie()}function e(){if(!a){a=true;f()}c()}return{onContextReload:e}}(),b={_queue:[],loadIfEmpty:function(a){if(!this.community)this.reload(a);else a()},reload:function(b){var d=c.buildContextUrl();this._queue.push(b);this._queue.length==1&&o.loadScript(d,_.bind(function(b){a.extend(this,b);a.each(this._queue,function(b,a){a()});this._queue=[];T.onContextReload()},this))},hostedPage:_.isBoolean(window.FluxHostedPage)&&window.FluxHostedPage},E=function(){var m=false,k=[],i=1,n=false;function e(){}function w(){return typeof window.Flux4=="object"&&!_.isNull(window.Flux4)&&a.isFunction(Flux4.signIn)}function f(d,c){b.loadIfEmpty(function(){var b=(new y(true)).performCheck(d);a.isFunction(c)&&c(b)})}function t(){if(typeof window.Flux4!="object"||_.isNull(window.Flux4))window.Flux4={};Flux4.createWidget=E.createWidget;Flux4.signIn=function(c,a){b.loadIfEmpty(function(){(new l(c)).signIn(a)})};Flux4.signUp=function(c,a){b.loadIfEmpty(function(){(new l(c)).signUp(a)})};Flux4.thouToFluxSignUp=function(a,d,c){b.loadIfEmpty(function(){(new l(d)).thouToFluxSignUp(a,c)})};Flux4.sutSignUp=function(c,d,a){b.loadIfEmpty(function(){(new l(d)).sutSignUp(c,a)})};Flux4.showInterimForm=function(c,a){b.loadIfEmpty(function(){(new l(c)).showInterimForm(a)})};Flux4.performRoadBlockerCheck=function(c,a,e){if(e&&b.community)d.authenticationChanged(function(){f(c,a)});else f(c,a)};Flux4.signOut=function(a,c){b.loadIfEmpty(function(){(new l).signOut(a,c)})};Flux4.addEventListener=function(b,a){g.addEventListener(b,a)}}function v(){e("Widget list:");a.each(r.widgets,function(){e(this.name+" -> "+this.url)});e("Control list:");a.each(r.controls,function(){e(this.name+" -> "+this.url)})}function u(){var b=a("<link />").attr({type:"text/css",rel:"stylesheet",href:c.commonCssUrl});a(a("head")[0]||document.documentElement).prepend(b);e("Common css has been added")}function h(b){if(_.isUndefined(b.container)&&_.isUndefined(b.containerId)&&!n){var c="Flux4Widget_"+i;i++;document.write('<div id="'+c+'"></div>');b.container=a("#"+c).removeAttr("id")}}function o(i,b,h,d,f,g){if(!d){e(f,true);return}var c=null;if(b.container){c=a(b.container);delete b.container}if(b.containerId){c=a("#"+b.containerId);delete b.containerId}W.get(d,function(a){a.controlData=g;p.invokeWidget(c,i,a,b,h)})}function q(a,b){if(p.isSingletonWidget(a)){var c=p.tryGetWidgetByName(a);if(!!c){e('"'+a+'" is singleton, will be reused');b&&b(c.getExternalInterface());return true}}return false}function j(a,e,d){if(m)b.loadIfEmpty(function(){x.loadIfNeed(function(){var f=c.buildWidgetUrl(a),b='Widget "'+a+'" is not allowed. Creation is failed';o(a,e,d,f,b)})});else k.push(arguments)}function z(f){e('Create widget "'+f+'"...');var b=null,c=null;switch(arguments.length){case 1:e("createWidget called with no settings");break;case 2:var d=arguments[1];if(a.isFunction(d))c=d;else b=d;break;case 3:b=arguments[1];c=arguments[2];break;default:e("Incorrect args count for createWidget",true);return}b=b||{};h(b);!q(f,c)&&window.setTimeout(function(){j(f,b,c)},30)}return{initialize:function(d,c,b){if(w())return;D.enabled=d;s.loadFacebookJDK=b;e("Register Flux4 object...");t();a(function(){e("DOM is ready");n=true;c&&u();(new l).checkAuthRedirectParams();r.load(function(){v();m=true;a.each(k,function(){j.apply(null,this)})})})},createWidget:z,createControl:function(a,b,d,g){e('Create control "'+a+'" with version '+b.version+"...");h(d);var i=c.buildControlUrl(a,b.version),f='Control "'+a+'" is not allowed. Creation is failed';o(a,d,g,i,f,b)}}}(),R=new function(){var g=null,d;function b(){}function o(){return document.getElementById(g)}function h(d){for(var c=d.substring(1).split("|"),a=[],b=0;b<c.length;b++)a[a.length]=parseInt(c[b],16);return String.fromCharCode.apply(String,a)}function j(a){return eval('"'+a.replace(/\|/g,"\\u")+'"')}function l(a){var b="\13"=="v";return b?j(a):h(a)}function k(c,a){return n.create(function(d){window.setTimeout(function(){b("Received data from "+c);if(d){var e=(new Date).getTime();d=l(d);b("Data decoded in "+((new Date).getTime()-e)+" ms")}a.call(null,d)},0)})}var f=false,e=false,a=[];function i(c){if(f)c();else{a.push(c);if(!e){e=true;b("Initialization...");m(function(){b("Initialization complete");f=true;for(var c=0;c<a.length;c++)a[c]();a=null})}}}function m(i){var h=0;function b(){++h==2&&i()}var e=v.generate(),a=document.createElement("div");a.setAttribute("id",e);a.style.height="0";a.style.width="0";var f=document.getElementsByTagName("body")[0];f.insertBefore(a,f.firstChild);d=v.generate();g=U.embed(c.coreFlashUrl,e,"0","0",{onload:n.create(b),executeWebRequest:d},{allowscriptaccess:"always"});b()}return{executeWebRequest:function(f,a,e,c,b){i(function(){o()[d](f,a,e,k(a,c),b)})}}},x=function(){var d,e;function g(b){d={};a.each(b,function(b,a){d[a.name.toLowerCase().replace("widgets4,","")]=a.strings})}function f(){var a=q.getCulture();if(!a)if(!!b.user&&!!b.user.localization&&b.user.localization.cultureName)a=b.user.localization.cultureName;else a=b.community.localization.cultureName;return a}return{loadIfNeed:function(h){var a=f(),b=e!=a;if(b)d={};if(a.toLowerCase()!="en-us"&&(!e||b)){var i=c.buildLocalizedResourcesUrl(a);o.loadScript(i,function(b){e=a;g(b);h()})}else{e=a;h()}},merge:function(f,c,e){var b=d?d[f.toLowerCase()]:null;return a.extend({},c,b||{},e)},getCurrentCulture:function(){return f()}}}(),c=function(){var k="enableWidgetsDebug",j="true",o="http://cus.flux.com/api/widgetsService/widgetList?communityUcid={communityUcid}",p="http://daapi.flux.com/2.0/00001/json/{communityUcid}/feeds/widgets4Context",e="s.fluxstatic.com/widgets4",m="http://daapi.flux.com/2.0/00001/Json/{communityUcid}/Action/FacebookSignUp2",s="http://daapi.flux.com/2.0/00001/Json/{communityUcid}/Action/Logout",l="http://daapi.flux.com/2.0/00001/json/{communityUcid}/feeds/LocalizedResources?culture={culture}&resourceGroupId=50",n="/CSS/common.css?v=7";function i(e,a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^&#]*)",d=new RegExp(c),b=d.exec(e);return b?b[1]:""}function g(a,e){var g=i(a,e),d=e+"="+g,f=d.length,b=a.indexOf(d);if(b<0)return a;var c=b+f;if(a[b-1]!="?"||c==a.length)b--;else c++;c=Math.min(c,a.length);return a.substring(0,b)+""+a.substring(c)}function d(a,c,d){a=g(a,c);var b=a.indexOf("?");if(b==-1)a+="?";else if(b<a.length-1)a+="&";return a+c+"="+d}function h(a){return!D.enabled||a.toLowerCase().indexOf((k.toLowerCase()+"="+j).toLowerCase())!=-1?a:d(a,k,j)}return{commonCssUrl:"http://"+e+n,coreFlashUrl:"http://"+e+"/Flash/Core/Core.swf",clipboardFlashUrl:"http://"+e+"/Flash/Clipboard/Clipboard.swf",zeroClipboardFlashUrl:"http://"+e+"/Flash/ZeroClipboard/ZeroClipboard10.swf",facebookSignUpUrlTemplate:m,logoutUrlTemplate:s,buildWidgetUrl:function(c){var b=a.grep(r.widgets,function(a){return a.name.toLowerCase()==c.toLowerCase()})[0];if(b)return h(b.url)},buildControlUrl:function(d,c){var b=a.grep(r.controls,function(a){return a.name.toLowerCase()==d.toLowerCase()})[0];if(b)return h(b.url.replace("{version}",c||""))},buildWidgetListUrl:function(){return o.replace("{communityUcid}",q.getCommunityUcid())},buildContextUrl:function(){return p.replace("{communityUcid}",q.getCommunityUcid())},buildDaapiUrl:function(b){if(b.params)for(var h in b.params){var g=b.params[h];if(_.isString(g)&&!!a.trim(g))b.params[h]=encodeURIComponent(g)}var e=f.replace(b.template,a.extend({communityUcid:q.getCommunityUcid()},b.params||{}));if(b.bypassCache)e=d(e,"skipCache","true");if(b.product)e=c.addQueryParameter(e,"product",b.product);if(b.productLocation)e=c.addQueryParameter(e,"productLocation",b.productLocation);return e},addQueryParameter:d,getQueryParameter:i,removeQueryParameter:g,setHash:function(a,d){var c=new RegExp("#([^\\?&]*)"),b=c.exec(a);if(b)a=a.replace("#"+b[1],"");return a+"#"+d},buildLocalizedResourcesUrl:function(a){if(b.community)return f.replace(l,{communityUcid:q.getCommunityUcid(),culture:a})},addCultureQueryParameter:function(b){var a=q.getCulture();return a?d(b,"culture",a):b},getProductLocationName:function(a){switch(a.toLowerCase()){case"rpx":a="JanRain"}return a}}}(),W=function(){var a={};return{"get":function(b,c){var d=a[b];if(d)c(d);else o.loadScript(b,function(d){a[b]=d;c(d)})}}}(),r={load:function(a){var b=c.buildWidgetListUrl();o.loadScript(b,function(b){r=b;a()})}},G=function(){var b=function(){var b=0,c,d=function(){b=0;a.isFunction(c)&&c()};return{newCallback:function(c){b++;return function(){a.isFunction(c)&&c();b--;b==0&&d()}},allDone:function(a){c=a;b==0&&d()}}};return{fork:function(){var d=arguments.length-1,c=arguments[arguments.length-1];if(!a.isFunction(c))throw new h("AsyncOperations - fork: last argument must be a function.");for(var f=function(){d--;d==0&&c()},b=0;b<arguments.length-1;b++){var e=arguments[b];if(!a.isFunction(e))throw new h("AsyncOperations - fork: "+(b+1)+" argument must be a function.");e(f)}},createAsyncManager:function(){return new b}}}(),X=function(){var a="Flux4_Core_Utils_Clipboard_GlobalCallbacks",e=function(){var c="undefined",g="object",x="Shockwave Flash",u="ShockwaveFlash.ShockwaveFlash",B="application/x-shockwave-flash",z="SWFObjectExprInst",d=window,b=document,n=navigator,o=[],f=[],q=null,j=null,r=null,l=false,m=false,a=function(){var l=typeof b.getElementById!=c&&typeof b.getElementsByTagName!=c&&typeof b.createElement!=c&&typeof b.appendChild!=c&&typeof b.replaceChild!=c&&typeof b.removeChild!=c&&typeof b.cloneNode!=c,e=[0,0,0],a=null;if(typeof n.plugins!=c&&typeof n.plugins[x]==g){a=n.plugins[x].description;if(a){a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1");e[0]=parseInt(a.replace(/^(.*)\..*$/,"$1"),10);e[1]=parseInt(a.replace(/^.*\.(.*)\s.*$/,"$1"),10);e[2]=/r/.test(a)?parseInt(a.replace(/^.*r(.*)$/,"$1"),10):0}}else if(typeof d.ActiveXObject!=c){var f=null,j=false;try{f=new ActiveXObject(u+".7")}catch(q){try{f=new ActiveXObject(u+".6");e=[6,0,21];f.AllowScriptAccess="always"}catch(q){if(e[0]==6)j=true}if(!j)try{f=new ActiveXObject(u)}catch(q){}}if(!j&&f)try{a=f.GetVariable("$version");if(a){a=a.split(" ")[1].split(",");e=[parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)]}}catch(q){}}var i=n.userAgent.toLowerCase(),h=n.platform.toLowerCase(),p=/webkit/.test(i)?parseFloat(i.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,k=false,o=h?/win/.test(h):/win/.test(i),m=h?/mac/.test(h):/mac/.test(i);return{w3cdom:l,pv:e,webkit:p,ie:k,win:o,mac:m}}(),H=function(){if(!a.w3cdom)return;p(F);if(a.ie&&a.win)try{b.write("<script id=__ie_ondomload defer=true src=//:><\/script>");var d=e("__ie_ondomload");if(d)d.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);s()}}}catch(f){}if(a.webkit&&typeof b.readyState!=c)q=setInterval(function(){/loaded|complete/.test(b.readyState)&&s()},10);typeof b.addEventListener!=c&&b.addEventListener("DOMContentLoaded",s,null);A(s)}();function s(){if(l)return;if(a.ie&&a.win){var f=h("span");try{var d=b.getElementsByTagName("body")[0].appendChild(f);d.parentNode.removeChild(d)}catch(g){return}}l=true;if(q){clearInterval(q);q=null}for(var e=o.length,c=0;c<e;c++)o[c]()}function p(a){if(l)a();else o[o.length]=a}function A(a){if(typeof d.addEventListener!=c)d.addEventListener("load",a,false);else if(typeof b.addEventListener!=c)b.addEventListener("load",a,false);else if(typeof d.attachEvent!=c)d.attachEvent("onload",a);else if(typeof d.onload=="function"){var e=d.onload;d.onload=function(){e();a()}}else d.onload=a}function F(){for(var g=f.length,b=0;b<g;b++){var d=f[b].id;if(a.pv[0]>0){var c=e(d);if(c){f[b].width=c.getAttribute("width")?c.getAttribute("width"):"0";f[b].height=c.getAttribute("height")?c.getAttribute("height"):"0";if(k(f[b].swfVersion)){a.webkit&&a.webkit<312&&G(c);i(d,true)}else if(f[b].expressInstall&&!m&&k("6.0.65")&&(a.win||a.mac))y(f[b]);else C(c)}}else i(d,true)}}function G(i){var f=i.getElementsByTagName(g)[0];if(f){var e=h("embed"),d=f.attributes;if(d)for(var j=d.length,b=0;b<j;b++)if(d[b].nodeName.toLowerCase()=="data")e.setAttribute("src",d[b].nodeValue);else e.setAttribute(d[b].nodeName,d[b].nodeValue);var c=f.childNodes;if(c)for(var k=c.length,a=0;a<k;a++)c[a].nodeType==1&&c[a].nodeName.toLowerCase()=="param"&&e.setAttribute(c[a].getAttribute("name"),c[a].getAttribute("value"));i.parentNode.replaceChild(e,i)}}function E(b){a.ie&&a.win&&k("8.0.0")&&d.attachEvent("onunload",function(){var a=e(b);if(a){for(var c in a)if(typeof a[c]=="function")a[c]=function(){};a.parentNode.removeChild(a)}})}function y(c){m=true;var f=e(c.id);if(f){if(c.altContentId){var k=e(c.altContentId);if(k){j=k;r=c.altContentId}}else j=t(f);if(!/%$/.test(c.width)&&parseInt(c.width,10)<310)c.width="310";if(!/%$/.test(c.height)&&parseInt(c.height,10)<137)c.height="137";b.title=b.title.slice(0,47)+" - Flash Player Installation";var o=a.ie&&a.win?"ActiveX":"PlugIn",l=b.title,n="MMredirectURL="+d.location+"&MMplayerType="+o+"&MMdoctitle="+l,g=c.id;if(a.ie&&a.win&&f.readyState!=4){var i=h("div");g+="SWFObjectNew";i.setAttribute("id",g);f.parentNode.insertBefore(i,f);f.style.display="none";d.attachEvent("onload",function(){f.parentNode.removeChild(f)})}v({data:c.expressInstall,id:z,width:c.width,height:c.height},{flashvars:n},g)}}function C(b){if(a.ie&&a.win&&b.readyState!=4){var c=h("div");b.parentNode.insertBefore(c,b);c.parentNode.replaceChild(t(b),c);b.style.display="none";d.attachEvent("onload",function(){b.parentNode.removeChild(b)})}else b.parentNode.replaceChild(t(b),b)}function t(f){var d=h("div");if(a.win&&a.ie)d.innerHTML=f.innerHTML;else{var e=f.getElementsByTagName(g)[0];if(e){var c=e.childNodes;if(c)for(var i=c.length,b=0;b<i;b++)!(c[b].nodeType==1&&c[b].nodeName.toLowerCase()=="param")&&!(c[b].nodeType==8)&&d.appendChild(c[b].cloneNode(true))}}return d}function v(b,d,t){var p,m=e(t);if(typeof b.id==c)b.id=t;if(a.ie&&a.win){var r="";for(var i in b)if(b[i]!=Object.prototype[i])if(i=="data")d.movie=b[i];else if(i.toLowerCase()=="styleclass")r+=' class="'+b[i]+'"';else if(i!="classid")r+=" "+i+'="'+b[i]+'"';var s="";for(var q in d)if(d[q]!=Object.prototype[q])s+='<param name="'+q+'" value="'+d[q]+'" />';m.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+r+">"+s+"</object>";E(b.id);p=e(b.id)}else if(a.webkit&&a.webkit<312){var j=h("embed");j.setAttribute("type",B);for(var f in b)if(b[f]!=Object.prototype[f])if(f=="data")j.setAttribute("src",b[f]);else if(f.toLowerCase()=="styleclass")j.setAttribute("class",b[f]);else f!="classid"&&j.setAttribute(f,b[f]);for(var o in d)if(d[o]!=Object.prototype[o])o!="movie"&&j.setAttribute(o,d[o]);m.parentNode.replaceChild(j,m);p=j}else{var l=h(g);l.setAttribute("type",B);for(var k in b)if(b[k]!=Object.prototype[k])if(k.toLowerCase()=="styleclass")l.setAttribute("class",b[k]);else k!="classid"&&l.setAttribute(k,b[k]);for(var n in d)d[n]!=Object.prototype[n]&&n!="movie"&&D(l,n,d[n]);m.parentNode.replaceChild(l,m);p=l}return p}function D(d,b,c){var a=h("param");a.setAttribute("name",b);a.setAttribute("value",c);d.appendChild(a)}function e(a){return b.getElementById(a)}function h(a){return b.createElement(a)}function k(d){var c=a.pv,b=d.split(".");b[0]=parseInt(b[0],10);b[1]=parseInt(b[1],10);b[2]=parseInt(b[2],10);return c[0]>b[0]||c[0]==b[0]&&c[1]>b[1]||c[0]==b[0]&&c[1]==b[1]&&c[2]>=b[2]?true:false}function w(i,f){if(a.ie&&a.mac)return;var j=b.getElementsByTagName("head")[0],d=h("style");d.setAttribute("type","text/css");d.setAttribute("media","screen");!(a.ie&&a.win)&&typeof b.createTextNode!=c&&d.appendChild(b.createTextNode(i+" {"+f+"}"));j.appendChild(d);if(a.ie&&a.win&&typeof b.styleSheets!=c&&b.styleSheets.length>0){var e=b.styleSheets[b.styleSheets.length-1];typeof e.addRule==g&&e.addRule(i,f)}}function i(b,c){var a=c?"visible":"hidden";if(l)e(b).style.visibility=a;else w("#"+b,"visibility:"+a)}return{registerObject:function(c,d,e){if(!a.w3cdom||!c||!d)return;var b={};b.id=c;b.swfVersion=d;b.expressInstall=e?e:false;f[f.length]=b;i(c,false)},getObjectById:function(h){var f=null;if(a.w3cdom&&l){var b=e(h);if(b){var d=b.getElementsByTagName(g)[0];if(!d||d&&typeof b.SetVariable!=c)f=b;else if(typeof d.SetVariable!=c)f=d}}return f},embedSWF:function(q,b,j,l,n,o,e,r,s){if(!a.w3cdom||!q||!b||!j||!l||!n)return;j+="";l+="";if(k(n)){i(b,false);var f=typeof s==g?s:{};f.data=q;f.width=j;f.height=l;var h=typeof r==g?r:{};if(typeof e==g)for(var d in e)if(e[d]!=Object.prototype[d])if(typeof h.flashvars!=c)h.flashvars+="&"+d+"="+e[d];else h.flashvars=d+"="+e[d];p(function(){v(f,h,b);f.id==b&&i(b,true)})}else if(o&&!m&&k("6.0.65")&&(a.win||a.mac)){i(b,false);p(function(){var a={};a.id=a.altContentId=b;a.width=j;a.height=l;a.expressInstall=o;y(a)})}},getFlashPlayerVersion:function(){return{major:a.pv[0],minor:a.pv[1],release:a.pv[2]}},hasFlashPlayerVersion:k,createSWF:function(d,c,b){return a.w3cdom&&l?v(d,c,b):undefined},createCSS:function(c,b){a.w3cdom&&w(c,b)},addDomLoadEvent:p,addLoadEvent:A,getQueryParamValue:function(e){var d=b.location.search||b.location.hash;if(e==null)return d;if(d)for(var c=d.substring(1).split("&"),a=0;a<c.length;a++)if(c[a].substring(0,c[a].indexOf("="))==e)return c[a].substring(c[a].indexOf("=")+1);return""},expressInstallCallback:function(){if(m&&j){var b=e(z);if(b){b.parentNode.replaceChild(j,b);if(r){i(r,true);if(a.ie&&a.win)j.style.display="block"}j=null;r=null;m=false}}}}}(),b=0;function f(){}function d(h,i,d){(!d||!d.width||!d.height||!d.buttonSpriteUrl)&&f("parameter buttonInfo of embedClipboardFlash(containerId, callback, buttonInfo) must contain width, height and buttonSpriteUrl");var g="_copyCallback_"+b;b++;if(!window[a])window[a]=[];window[a][g]=function(){return i()};e.embedSWF(c.clipboardFlashUrl,h,d.width,d.height,"9.0.0",null,{buttonSpriteUrl:encodeURIComponent(d.buttonSpriteUrl),copyCallbackName:"window."+a+"."+g},{allowscriptaccess:"always",wmode:"transparent",scale:"noscale",salign:"lt",menu:"false"},{id:h})}return{embedClipboardFlash:d}}(),H=function(a,b){function h(c,b){return D.trace("CookieDataCache"+(a?"["+a+"]:":":")+c,b)}!a&&h("cookieName is not defined");if(!b)b=15*60*1e3;function d(){var b=e.getCookie(a),c=[];if(b)try{c=j.parse(b)}catch(d){h("cookie parsing error: "+d,true)}return c}function g(a){return a.expires<=(new Date).getTime()}function c(a,b){return _.detect(a,function(a){return a.key==b&&!g(a)})}function f(d){var c=_.reject(d,function(a){return g(a)});if(c.length>0)e.setCookie(a,j.stringify(c),b);else e.setCookie(a,"",-1)}return{containsKey:function(a){return!!c(d(),a)},getValue:function(a){return(c(d(),a)||{}).value},add:function(h,g){var e=d(),a=c(e,h);if(!a){a={key:h};e.push(a)}if(!_.isUndefined(g))a.value=g;a.expires=(new Date).getTime()+b;f(e)},removeKey:function(e){var b=d(),a=c(b,e);if(a){a.expires=-1;f(b)}},clear:function(){f([])}}},C={getCookie:function(b){var a=_.detect(document.cookie.split("; "),function(a){return a.indexOf(b)==0});if(a)return unescape(a.substring(b.length+1))},setCookie:function(d,c,a){if(a){var b=new Date;b.setTime(b.getTime()+a);a="; expires="+b.toGMTString()}document.cookie=d+"="+c+a+"; path=/"},setCookieToRootDomain:function(e,d,b){if(b){var c=new Date;c.setTime(c.getTime()+b);b="; expires="+c.toGMTString()}var a=location.hostname.split(".");if(a.length>1)a=a[a.length-2]+"."+a[a.length-1];document.cookie=e+"="+d+b+"; path=/; domain="+a}},Z={generate:function(b){function f(i){var d=i+"",e="",b,c,h=0;b=c=0;h=d.length;for(var g=0;g<h;g++){var a=d.charCodeAt(g),f=null;if(a<128)c++;else if(a>127&&a<2048)f=String.fromCharCode(a>>6|192)+String.fromCharCode(a&63|128);else f=String.fromCharCode(a>>12|224)+String.fromCharCode(a>>6&63|128)+String.fromCharCode(a&63|128);if(f!==null){if(c>b)e+=d.substring(b,c);e+=f;b=c=g+1}}if(c>b)e+=d.substring(b,d.length);return e}function g(d){var c,a,b;c=d&65535;a=c.toString(16).toUpperCase();while(a.length<4)a="0"+a;c=d>>>16&65535;b=c.toString(16).toUpperCase();while(b.length<4)b="0"+b;return b+a}b=f(b);var h="00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",a=0,d=0,e=0;a=a^-1;for(var c=0;c<b.length;c++){e=(a^b.charCodeAt(c))&255;d="0x"+h.substr(e*9,8);a=a>>>8^d}a=a^-1;return g(a)}},D=function(){function a(b,a){return(b+Math.pow(10,a)).toString().substr(1)}function b(){var b=new Date;return"["+a(b.getHours(),2)+":"+a(b.getMinutes(),2)+":"+a(b.getSeconds(),2)+"."+a(b.getMilliseconds(),3)+"]"}return{trace:function(d,c){if(!this.enabled||!window.console||!window.console.log)return;var a=b()+" WDK4:"+d;if(!c||!console.error)console.log(a);else console.error(a)},enabled:false}}(),g=function(){var b={};function c(){}function d(b){if(!_.isString(b)||!a.trim(b)){c("event name is not a string or empty",true);return false}return true}function f(g,f){if(!d(g))return;if(!a.isFunction(f)){c("event listener is not a function",true);return}var e=g.toLowerCase();if(!b[e])b[e]=[];b[e].push(f)}function e(f,e){if(!d(f))return;if(!a.isFunction(e)){c("event listener is not a function",true);return}var g=f.toLowerCase();if(!b[g])return;b[g].pop(e)}return{addEventListener:f,removeEventListener:e,addListOfEventListeners:function(b){if(!b){c("event list is empty",true);return}a.each(b,function(a,b){e(a,b);f(a,b)})},raiseEvent:function(e){if(!d(e))return;c('"'+e+'" has been raised');var f=Array.prototype.slice.call(arguments,1);a.each(b[e.toLowerCase()]||[],function(b,a){a.apply(null,f)})}}}(),P=function(){var b={twitter:{url:"http://platform.twitter.com/widgets.js",isLoaded:function(){return!!window.twttr&&!!window.twttr.widgets}},tumblr:{url:"http://platform.tumblr.com/v1/share.js",isLoaded:function(){return!!window.Tumblr}},foursquare:{url:"http://platform.foursquare.com/js/widgets.js",isLoaded:function(){return!!window.fourSq}}};return{loadLibrary:function(e,d){var c=b[e.toLowerCase()];if(c)if(c.isLoaded())d();else if(!c.isLoading){c.isLoading=true;if(!c.callbacks)c.callbacks=[];a.isFunction(d)&&c.callbacks.push(d);a.getScript(c.url,function(){delete c.isLoading;a.each(c.callbacks,function(b,a){a()});delete c.callbacks})}else c.callbacks.push(d)}}}(),Q={subscribe:function(b,d,c){if(typeof window.FB!="object"||_.isNull(window.Fb))return;if(!this[b]){this[b]={};FB.Event.subscribe(b,_.bind(function(d){var c=this[b][d.toLowerCase()];a.isFunction(c)&&c()},this))}this[b][d.toLowerCase()]=c}},U={embed:function(g,e,k,j,f,c,b){var h=v.generate();b=b||{};b.id=h;b.type="application/x-shockwave-flash";b.data=g;b.width=k;b.height=j;var d="<object ";for(var a in b)if(b[a]!=Object.prototype[a])d+=a+'="'+b[a]+'" ';d+=">";c=c||{};c.movie=g;if(f){var i="";for(var a in f)if(f[a]!=Object.prototype[a])i+=a+"="+f[a]+"&";c.flashVars=i}for(var a in c)if(c[a]!=Object.prototype[a])d+='<param name="'+a+'" value="'+c[a]+'" />';d+="</object>";if(_.isString(e))e=document.getElementById(e);e.innerHTML=d;return h}},O=function(){var b=false,c=[];function d(c,d){if(window.gapi&&window.gapi.plusone)return;var b=document.head||document.getElementsByTagName("head")[0]||document.documentElement,a=document.createElement("script");a.type="text/javascript";a.async=true;if(!!c)a.text="{lang: '"+c+"'}";a.src="https://apis.google.com/js/plusone.js";a.onload=a.onreadystatechange=function(){if(!window.gapi||!window.gapi.plusone)return;a.onload=a.onreadystatechange=null;a=undefined;d()};b.insertBefore(a,b.firstChild)}return{loadApiScript:function(f,e){if(!window.gapi||!window.gapi.plusone){c.push(e);if(!b){b=true;d(f,function(){b=false;a.each(c,function(b,a){a()})})}}else setTimeout(e,0)},renderButton:function(b,a){if(!window.gapi||!window.gapi.plusone)throw new h("GooglePlusOneButton.renderButton: google api os not loaded. Invoke loadApiScript first.");gapi.plusone.render(b,a)}}}();function V(v,n){var h=/(\n|\r)\s{4,}/gi;function r(d,i,f,e){var b=d.find(i);a(d).is(i)&&b.push(d);if(b.length==0)return;for(var c=0;c<b.length;c++)if(a(b[c]).text().replace(h,"").length>f){if(e){var l=a(b[c]).html(),k=a(b[c]),g=a("<a class='more'>&nbsp;more</a>");g.click(function(){k.html(l)})}var m=j(a(b[c]).html(),f);a(b[c]).html(m);e&&a(b[c]).append(g)}}function j(a,m){var g=0,e=[],f="",d=0,i=false,j=false,k=false,c="",l=0,b;a=a.replace(h,"");a=a.replace(/<br>/gi,"<br/>");while(g<m&&g!=m&&l<a.length){b=a.charAt(d);if(b=="<"){f="";k=true;if(a.length>d+1&&a.charAt(d+1)=="/")j=true;else i=true}if(k){f+=b;if(b==">"){i&&!t(f)&&e.push(f);j&&e.pop();i=false;j=false;k=false}}else{g++;if(b=="&")g-=q(a,d)}c+=b;d++;l++}if(l<a.length)c+="...";if(e.length>0)c=B(e,c);return c}function q(h,f){for(var d=h.substring(f,f+7),c=d.charAt(0),b,e=1;e<d.length;e++){b=d.charAt(e);if(b=="<"||b=="&")break;c+=b}var g=c.length-a("<span>"+c+"</span>").text().length;return g}function B(f,g){for(var e=0;e<f.length;e++){var c=f[e],b=c.charAt(0)+"/",d=1,a=c.charAt(d);while(a!=" "&&a!=">"){b+=a;d++;a=c.charAt(d)}b+=">";g+=b}return g}function t(c){var b=c.length-2,a=c.charAt(b);while(a!="<"&&a!="/"&&a==" "){b--;a=c.charAt(b)}return a=="/"?true:false}var b={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};function i(a){try{return Array.prototype.slice.call(a)}catch(e){for(var b=[],d=a.length,c=0;c<d;c++)b.push(a[c]);return b}}function d(a){if(typeof a==="string")return a;if(a.nodeType===b.TEXT_NODE)return a.nodeValue;var c=document.createElement("div");c.appendChild(a);return c.innerHTML}function e(c,b){a(c).html(b)}var g="B,SPAN,WBR,EM,STRONG,I".split(","),x=/^(((https?|ftp):\/\/)|(www\.))/,s=/\S$/,A=/[.,!:;\\?]/,w=/\s/,z=/\b/;function l(d){var k=[],a,j,m,h,c,e,g={node:d,nodeType:d.nodeType,subNodes:null},f=[];if(d.nodeType===b.TEXT_NODE){c=d.nodeValue.split(z);for(a=1,h=c.length;a<h;a++)if(!c[a].indexOf("/")){c[a-1]+="/";c[a]=c[a].substring(1)}e=d.nodeValue}else if(d.nodeType===b.ELEMENT_NODE){j=i(d.childNodes);for(a=0,h=j.length;a<h;a++){f.push(l(j[a]));k=k.concat(f[f.length-1].texts)}e=k.join("");c=[e]}else{e="";c=[]}g.text=e;g.texts=c;g.subNodes=f;return g}function m(j){var o,c,n,s,i="",g=[],p,l=[],a,h=[],q,r,t=j.node;for(c=0,o=j.subNodes.length;c<o;c++){a=j.subNodes[c];if(a.nodeType===b.TEXT_NODE){q=a.texts;for(n=0,s=q.length;n<s;n++)l.push([q[n],b.TEXT_NODE,undefined])}else{r=a.text;l.push([r,b.ELEMENT_NODE,a])}}for(c=0,o=l.length;c<o;c++){a=l[c];p=i+a[0];if(!f(p,true)){if(f(i))h.push(k(g.join("")));else h.push(g.join(""));i="";g=[];if(a[1]===b.ELEMENT_NODE){a[2]=m(a[2]);h.push(d(a[2].node))}else h.push(a[0])}else{i=p;if(a[1]===b.ELEMENT_NODE)g.push(d(a[2].node));else g.push(a[0])}}if(f(i))h.push(k(g.join("")));else h.push(g.join(""));e(t,h.join(""));return j}function u(k,r){var j=[],f=[],m,s,p=false,h,n,l,e,q=false;k=i(k);for(m=0,s=k.length;m<s;m++){h=k[m];if(h.nodeType===b.TEXT_NODE){p=true;l=h.nodeValue}else{n=o(h,a.inArray(h.nodeName,g)>=0);p=!n[1];l=n[0]}if(p)f.push(l);else{if(f){e=f.join("");if(!r)e=c(e);j.push(e);f=[]}j.push(d(l));q=true}}if(f){e=f.join("");if(!r)e=c(e);j.push(e)}return[j,q]}function o(f,j,k){var i,h=a.inArray(f.nodeName,g)===-1;if(!f)return["",false];if(f.nodeType===b.TEXT_NODE)return[!j?c(f.nodeValue):f.nodeValue,false];if(f.nodeType===b.ELEMENT_NODE)if(f.nodeName!=="A"){i=u(f.childNodes,j);e(f,i[0].join(""));h=h||i[1]}return[k?f.innerHTML:d(f),h]}function f(a,b){return!a||w.test(a)?false:b&&a.length<=8?true:x.test(a)&&s.test(a)}function k(c){var b=a("<div>"+c+"</div>").text();if(!b.indexOf("www."))b="http://"+b;while(b.charAt(b.length-1).match(A))b=b.substring(0,b.length-1);return'<a href="'+b+'" target="_blank">'+c+"</a>"}function c(c){var d,f,a=document.createElement("div"),b;e(a,c);b=l(a);a=m(b).node;return a.innerHTML}function y(d){var b=a("<div>"+d+"</div>");return!v?c(b.text()):o(b[0],false,true)[0]}function p(c){var b=a("<div></div>");c.contents().each(function(){if(this.nodeType==3)b.append(C(this.nodeValue));else{var c=a(this);if(c.html().length>0){var d=p(c);c.html(d)}b.append(c)}});return b.html()}function C(b){if(b.length<=n)return b;for(var e=a("<div></div>"),c=1,d=0;d<b.length;d++){e.append(b.charAt(d));if(c==n){e.append(a("<wbr />"));c=1}else c++}return e.html()}return{controlHtmlLength:r,linkWrapper:y,truncateHtml:j,toWbr:p}}var j=function(){var e=new RegExp('["\\b\\f\\n\\r\\t\\\\\\x00-\\x1F]',"i");function b(b,a){a.append(String(b))}function c(c,a){a.append('"');if(e.test(c)){var d=c.length;for(i=0;i<d;++i){var b=c.charAt(i);if(b>=" "){(b==="\\"||b==='"')&&a.append("\\");a.append(b)}else switch(b){case"\b":a.append("\\b");break;case"\f":a.append("\\f");break;case"\n":a.append("\\n");break;case"\r":a.append("\\r");break;case"\t":a.append("\\t");break;default:a.append("\\u00");b.charCodeAt()<16&&a.append("0");a.append(b.charCodeAt().toString(16))}}}else a.append(c);a.append('"')}function d(b,a){a.append(b.toString())}function a(f,e,k,g){var h;switch(typeof f){case"object":if(f){if(g){for(var l=0;l<g.length;l++)if(g[l]===f)throw"JSON: Circular reference";}else g=[];try{g.push(f);if(f instanceof Number)b(f,e);else if(f instanceof Boolean)d(f,e);else if(f instanceof String)c(f,e);else if(f instanceof Array){e.append("[");for(h=0;h<f.length;++h){h>0&&e.append(",");a(f[h],e,false,g)}e.append("]")}else{if(f instanceof Date){e.append('"\\/Date(');e.append(f.getTime());e.append(')\\/"');break}var i=[],m=0;for(var o in f)i[m++]=o;k&&i.sort();e.append("{");var n=false;for(h=0;h<m;h++){var j=f[i[h]];if(typeof j!=="undefined"&&typeof j!=="function"){if(n)e.append(",");else n=true;a(i[h],e,k,g);e.append(":");a(j,e,k,g)}}e.append("}")}}finally{g.splice(g.length-1,1)}}else e.append("null");break;case"number":b(f,e);break;case"string":c(f,e);break;case"boolean":e.append(f.toString());break;default:e.append("null")}}var f=new RegExp('(^|[^\\\\])\\"\\\\/Date\\((-?[0-9]+)(?:[a-zA-Z]|(?:\\+|-)[0-9]{4})?\\)\\\\/\\"',"g");function g(a){return a.replace(f,function(){return arguments[1]+'"'+(new Date(parseInt(arguments[2]))).toString()+'"'})}return{stringify:function(c){var b={data:"",append:function(a){this.data=this.data+a}};a(c,b,false);return b.data},parse:function(a){return eval("("+g(a)+")")},dictionaryToJson:function(a){var c={};if(a instanceof Array)for(var b=0;b<a.length;b++)c[a[b].Key]=a[b].Value;return c},jsonToDictionary:function(c){var a=[];for(var b in c)a.push({Key:b,Value:c[b]});return a},parseDate:function(a){return new Date(parseInt(a.replace(/\/Date\(|\)\//gi,"")))}}}(),e=function(){return{getCookie:function(b){for(var d=document.cookie.split("; "),a=0;a<d.length;a++){var c=d[a];if(c.indexOf(b)==0)return unescape(c.substring(b.length+1))}return null},setCookie:function(d,c,a){if(a){var b=new Date;b.setTime(b.getTime()+a);a="; expires="+b.toGMTString()}document.cookie=d+"="+c+a+"; path=/"}}}(),B=function(){var c="vmn_uuid",b="http://daapi.flux.com/2.0/00001/Json/{communityUcid}/Action/UpdateCookie?mtvnUserId={mtvnUserId}";function h(){}function d(){}function e(){}function g(g){var f=a();if(!!f){if(f!=g){var i=new A("MtvnUserIdHelper",null,[{name:"updateMtvnCookieValue",template:b,isAction:false}],{});i.methods().updateMtvnCookieValue({mtvnUserId:f},d,e)}}else h("cookie '"+c+"' not found",false)}function f(){var c=a();if(!!c){var f=new A("MtvnUserIdHelper",null,[{name:"updateMtvnCookieValue",template:b,isAction:false}],{});f.methods().updateMtvnCookieValue({mtvnUserId:c},d,e)}}function a(){return C.getCookie(c)}return{processMtvnUserId:g,processMtvnUserIdForLoggedOut:f,getMtvnCookie:a}}(),o=function(){var b={};function e(){}function d(){return!!window.XMLHttpRequest&&_.isNull((new window.XMLHttpRequest).onprogress)}return{loadScript:function(f,j,g){var d="F"+Z.generate(f);f=c.addQueryParameter(f,"callback",d);b[d]=b[d]||[];b[d].push(j);if(b[d].length==1){var h=a("<script>").attr({src:f,type:"text/javascript"});n.create(function(i,c){h.remove();if(c&&c!=200)if(a.isFunction(g))g(i,c);else{var j="There was an error (HTTP "+c+") with request to url "+f+".";if(i)j+=" Error: "+i;e(j,true)}else a.each(b[d],function(){this.call(null,i)});delete b[d]},d);var i=document.getElementsByTagName("HEAD")[0]||document.documentElement;i.insertBefore(h[0],i.firstChild)}},invokePostRequest:function(e,c,b){if(d())a.ajax({url:e,type:"POST",data:c,success:b,xhrFields:{withCredentials:"true"},contentType:"application/json"});else R.executeWebRequest("POST",e,c,b,true)}}}(),f={replace:function(a,b,c){return!_.isString(a)?null:a.replace(c||new RegExp("\\{(.*?)\\}","gm"),function(){var a=(b||{})[arguments[1]];return _.isUndefined(a)||_.isNull(a)?"":a})},truncate:function(a,b){var c="...";return a==null||b==0?"":a.length<=b?a:a.substring(0,b)+c},toWbrFormat:function(c,a){if(!_.isString("string"))return"";var b=[];a=a||5;for(var d=a;d<c.length;d+=a)b.push(c.substring(d-a,d));b.length*a<c.length&&b.push(c.substring(b.length*a));return b.join("<wbr />")},isEmail:function(b){var a=/^[A-Z0-9._%+-:]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;return a.test(b)},camelize:function(a){return a.charAt(0).toLowerCase()+a.substr(1)}},I=function(){var d={},f,g;function e(){if(!f){g=Math.random();f=true}}function h(){e();c._lastTrackingImage=null;try{var a=new Image;a.onError=function(){};a.onAbort=function(){};a.src=i();c._lastTrackingImage=a}catch(b){}}function i(){e();return[decodeURIComponent(c._trackingUrl),"?","CMU=",a("CommunityUcid",""),"&CU=",a("ContentUcid",""),"&UU=",a("UserUcid",""),"&PT=",a("PageTypeId","17"),"&CUR=",a("ContentUri",""),"&AU=",a("AbsoluteUri",""),"&WN=",a("WidgetName",""),"&FTG=",encodeURIComponent(g),"&rnd=",encodeURIComponent(Math.random()),"&REF=",function(){return a("ServerRefferer",null)?a("ServerRefferer"):document.referrer?encodeURIComponent(document.referrer):""}(),"&RT=",a("ReportType",""),"&RP=",a("RP",""),"&RPL=",a("RPL",""),"&RAIU=",a("RAIU",""),"&RAS=",a("RAS",""),"&AIA=",a("activityItemAuthor",""),"&AICD=",a("activityItemClickDetail",""),"&MUID=",a("MtvUuid","")].join("")}function b(b,a){d[b]=a}function a(a,b){return d[a]?encodeURIComponent(d[a]):b}var c={_trackingUrl:"http://t.flux.com/tracking.gif",_lastTrackingImage:null,trackWidget:function(a,d,c){b("CommunityUcid",a);b("WidgetName",d);b("ContentUri",c);h()},trackForReporting:function(g,j,l,k,m,f,d,e,i,c,a){b("CommunityUcid",g);b("ContentUri",j);b("UserUcid",l);b("WidgetName","Reporting");b("ReportType",k);b("RP",m);b("RPL",f);b("RAIU",d);b("RAS",e);b("ContentUcid",i);b("activityItemAuthor",c);b("activityItemClickDetail",a);b("MtvUuid",B.getMtvnCookie());h()}};return c}(),v=function(){var a=0;return{generate:function(){return"F"+(new Date).getTime()+a++}}}(),t={getBrowserVersion:function(){var a=navigator.userAgent.match(/(?:firefox|MSIE|opera|safari|chrome)[\/\:\s]([\d\.]+)/i),b={msie:a[0]&&/MSIE/gi.test(a[0]),firefox:a[0]&&/firefox/gi.test(a[0]),opera:a[0]&&/opera/gi.test(a[0]),safari:a[0]&&/safari/gi.test(a[0]),chrome:a[0]&&/chrome/gi.test(a[0]),other:false,version:a[1]?a[1]:0};b.other=!b.msie&&!b.firefox&&!b.opera&&!b.safari&&!b.chrome;return b}},n={create:function(b,a,c){a=a||v.generate();if(c)window[a]=function(){window[a]=undefined;try{delete window[a]}catch(c){}return b.apply(this,arguments)};else window[a]=function(){window[a]=undefined;try{delete window[a]}catch(d){}var c=arguments;window.setTimeout(function(){b.apply(this,c)},0)};return a}},L=function(b){var d=null,e=false;function f(){return window.postMessage&&!(a.browser.msie&&a.browser.version<8)}function h(a){var d=b.attr("src");if(f()){var e=d.match(/:\/\/(.[^\/]+)/)[1];b.get(0).contentWindow.postMessage(j.stringify(a),"http://"+e)}else b.attr("src",c.setHash(d,"args="+encodeURIComponent(j.stringify(a))))}function g(a){h(a.data[0]);b.unbind("load",g)}b.load(function(){e=false});return{loadAndListen:function(g,h,i){this.stopListening();if(a.isFunction(h)){g=c.addQueryParameter(g,"callbackName",n.create(h,null,true));if(f()&&!i){g=c.addQueryParameter(g,"postMessage","true");d=function(b){if(g.toLowerCase().indexOf(b.origin.toLowerCase())!=0)return;var a;try{a=j.parse(b.data)}catch(b){}a&&h(a)};if(window.addEventListener)window.addEventListener("message",d,false);else window.attachEvent("onmessage",d)}}e=true;b.attr("src",g)},stopListening:function(){if(d){if(window.addEventListener)window.removeEventListener("message",d,false);else window.detachEvent("onmessage",d);d=null}},send:function(a){if(b.attr("src")&&!e)h(a);else b.load([a],g)}}},A=function(q,p,v,m){var l=new H("WDK4SkipDaapiCacheFlags"),d={};function b(){var a="DAAPI["+q+"]:";if(p)a+="Instance["+p+"]:"}function k(d,e,c){if(!a.isFunction(e)||!a.isFunction(d)){b('onComplete or onError delegate is not specified. Request with template "'+c+'" has been skipped',true);return false}return true}function i(a,d,c){if(a&&a.readOnly){b("ReadOnly mode detected",true);c(new h(u.readOnlyMode,a))}else if(a&&a.d&&!_.isUndefined(a.d.StatusCode)&&a.d.StatusCode){b("Widgets web service call returned error: code "+a.d.StatusCode+", message: "+a.d.ErrorText,true);c(new h("WebService#"+a.d.StatusCode,a))}else d(a)}function g(c,a){if(_.isUndefined(a))return false;if(a&&!_.isString(c[a])){b('Parameter "'+a+'" is configured as skip cache parameter, but its value is not string or absent',true);return false}return true}function f(b,a){return b[a]+"_"+q}function n(a){return a+"Completed"}var t=function(a){return _.detect(_.functions(d),function(b){return d[b]==a})},e=_.bind(function(e,d,c){if(this.externalInterface){var b=n(t(e));a.isFunction(this.externalInterface[b])&&this.externalInterface[b](d,c)}},this);function s(d,a){return function(){var q=arguments.callee,r=arguments[arguments.length-2],p=arguments[arguments.length-1];if(!k(r,p,d))return;var n=false,j;if(_.isBoolean(arguments[arguments.length-3])){n=arguments[arguments.length-3];j=arguments[arguments.length-4]}else{j=arguments[arguments.length-3];if(g(j,a)){n=l.containsKey(f(j,a));n&&b("Skip cache param has been detected: name="+a+" value="+j[a])}}var m=c.buildDaapiUrl({template:d,params:j,bypassCache:n});b("GET "+m);o.loadScript(m,function(a){e(q,j,a);i(a,r,p)},function(c,d){e(q,j,c);var a;switch(d){case 400:a="There was an error (HTTP 400) with daapi request "+m+". Most likely that url is malformed. Check that you provided all information in it: community UCID, content UCID (if applicable), sorting/filtering options.";break;case 500:a="There was an error (HTTP 500) with request to url "+m+". There might be some server side troubles. Please check url again and if you continue to experience this problem - report this URL to Social Media support team.";break;default:a="There was an error (HTTP "+d+") with request to url "+m+"."}if(c)a+=" Error: "+c;b(a,true);p(new h(u.systemError,c))})}}function r(n,d){return function(){var v=arguments.callee,s=arguments[arguments.length-2],q=arguments[arguments.length-1];if(!k(s,q,n))return;var p=arguments[arguments.length-3],t=c.buildDaapiUrl({template:n,params:a.extend({},p),product:(m.settings||{}).product,productLocation:(m.settings||{}).productLocation}),r=j.stringify(p||{});b("POST "+t);o.invokePostRequest(t,r,function(c){e(v,r,c);if(!_.isString(c)&&!a.isPlainObject(c)){b("Postback error has occured! data: "+c,true);q(new h(u.unexpected))}else{var k=function(a){if(a.Status==1&&g(p,d)){l.add(f(p,d));b("Skip cache param has been added: value="+p[d])}s(a)};i(_.isString(c)?j.parse(c):c,k,q)}})}}a.each(v,function(b,a){d[a.name]=a.isAction?r(a.template,a.skipCacheParam):s(a.template,a.skipCacheParam)});this.initEvents=function(b){var c=[];this.externalInterface=b;a.each(_.functions(d),function(e,d){var a=n(d);b[a]=function(){};c.push(a)});return c};this.methods=function(){return d}},h=function(b,a){this.id=b;this.description=a},u=function(){var c=["unexpected","unknown","invalidParameters","systemError","notFound","forbidden","notLoggedIn","ratingUnsupportedSystem","ratingIllegal","ratingIllegalSystem","invalidCaptcha","readOnlyMode","faceBookAccountAlreadyLinkedToAnother","accountNotFound","incorrectPassword"],b={};a.each(c,function(c,a){b[a]=a});return b}(),S=function(c){var b=w.get();return{save:function(){b.add(c,a.makeArray(arguments))},tryExecute:function(d){if(b.readyToUse()){var a=b.getValue(c);if(a){d.apply(null,a);b.removeKey(c)}}}}},w=function(){var a,b="readyToUse";return{"get":function(){if(!a){a=new H("PostAuthActionParams",5*60*1e3);a.readyToUse=function(c){if(typeof c=="undefined")return a.getValue(b);else if(!!c)a.add(b,c);else a.clear()}}return a}}}(),y=function(i,f){function c(){}function d(){i&&setTimeout(function(){g.raiseEvent("roadBlock",{widgetName:f},b.user)},1)}function e(c){if(a.isFunction(c)&&b.community.readOnlyMode){c(new h(u.readOnlyMode));d();return true}return false}return{performCheck:function(i,h,j){var g=new l(null,f);if(!!b.user){c("Perform check, checkFRD = "+!!i);var a;if(!i||!b.user.roadBlocker.FRD)a=b.user.roadBlocker.redirectUrl;if(a){if(e(h))return false;if(g.isOverlayMode()){g.showInterimForm(null,j);d()}else{a=a.replace("(returnPath)",encodeURIComponent(window.location.href));c("Perform redirect to "+a);window.location.href=a}return false}else c("Action allowed")}else{if(e(h))return false;g.signIn();d();c("User is not logged in");return false}c("Bypass check");return true},userCanPostComment:function(a){if(!!b.user){c("Can user post a comment?");if(b.user.isSystemBanned||b.user.isCommunityBanned){c("User is banned");return false}if(!b.user.roadBlocker.userCanPostComment){c("User can't post a comment");this.performCheck(false,a);return false}else c("Action allowed")}else c("User is not logged in, bypass check");return true}}},F=function(){var b=[];return{embedStyleSheet:function(c){var d=_.include(b,c);if(!d){b.push(c);a(a("head")[0]||document.documentElement).prepend(a('<style type="text/css">'+c+"</style>"))}}}}(),z=function(f,h,b,c){this._widgetName=h;this._container=f;if(!!c.parent_raise_external_event_method){this._raiseParentExternalEvent=c.parent_raise_external_event_method;delete c.parent_raise_external_event_method}else this._raiseParentExternalEvent=null;this._settings=c;this._defaultSettings=null;this._controls=b.controls;this._daapiUrls=b.daapiUrls;this._markup=b.markup;this._strings=b.strings;this._style=b.style;this._controlData=b.controlData;this._context={};this._updateContext();this._renderCompleteList=[];this._instanceId=++z.instanceCounter;this._createThisProxy();try{this._trace("Create...");var g=new A(this._widgetName,this._instanceId,this._daapiUrls,this.thisProxy),d=new M(this._widgetName,b,g);this._instance=new b.constructor(a,this.thisProxy,d,this._context,a.extend({},u),j);if(!this._instance.externalInterface)this._instance.externalInterface={};var e=d.initEvents(this._instance.externalInterface);if(this._controlData)this._instance.externalInterface.getCoreEventNames=function(){return e};this._trace("Done")}catch(i){this._trace(i+". Creation is failed",true);this._isError=true}};z.instanceCounter=0;z.prototype={render:function(b,d){if(d){this._updateContext();this._updateThisProxy()}if(a.isFunction(this._instance.render)){if(!this._container){this._onRenderError("containerId or container is not specified",b);return}if(!this._container.length){this._onRenderError("container is not found",b);return}try{this._trace("Render...");var c=a("<div />");this._instance.render(c,_.bind(function(){this._container&&this._container.empty().append(c);a.isFunction(b)&&b();a.each(this._renderCompleteList,function(b,a){a()});this._renderCompleteList=[]},this),d);this._trace("Done")}catch(e){this._onRenderError(e,b)}}else a.isFunction(b)&&b()},getExternalInterface:function(){return this._instance.externalInterface},getStyle:function(){return this._style},isError:function(){return this._isError},getName:function(){return this._widgetName},_onRenderError:function(c,b){this._trace(c+". Render is failed",true);this._isError=true;a.isFunction(b)&&b()},_updateContext:function(){this._context.community=a.extend({},b.community);this._context.user=!!b.user?a.extend({},b.user):null;this._context.hostedPage=b.hostedPage;this._context.currentCulture=x.getCurrentCulture()},_trace:function(){},_getSettings:function(b){return a.extend(!b,{},this._defaultSettings,this._settings)},_createControl:function(c,f,e){if(this._controls&&this._controls[c]){var b=f||{};b.parent_raise_external_event_method=this.thisProxy.raiseExternalEvent;if(_.isUndefined(b.containerId))b.containerId=null;if(_.isUndefined(b.productLocation))b.productLocation=this.thisProxy.productLocation;var d=this._instance.externalInterface;E.createControl(c,{version:this._controls[c],parentName:this._widgetName},b,function(b){e(b);a.each(b.getCoreEventNames(),function(f,c){var e=b[c];b[c]=function(){a.isFunction(e)&&e.apply(null,arguments);a.isFunction(d[c])&&d[c].apply(null,arguments)}})})}else this._trace('Control "'+c+'" is not registered for widget "'+this._widgetName+'"',true)},_createThisProxy:function(){var a={clientId:this._widgetName+"_"+this._instanceId,settings:this._getSettings(),trace:_.bind(this._trace,this),createControl:_.bind(this._createControl,this),renderComplete:_.bind(function(a){this._renderCompleteList.push(a)},this),createWidget:_.bind(this._createWidget,this),raiseExternalEvent:_.bind(this._createRaiseExternalEvent(this),this)};a.setDefaultSettings=_.bind(function(b,c){this._defaultSettings=b;a.settings=this._getSettings(c)},this);a.defaultErrorHandler=function(a){if(!!a&&!!a.id)throw new h("Error has occured: "+a.id);};this.thisProxy=a;this._updateThisProxy()},_updateThisProxy:function(){var c=this.thisProxy,e=x.merge(this._widgetName,this._strings,this._settings.localizedStrings),b=a.extend({},this._markup),d;for(d in b)b[d]=f.replace(b[d],e,new RegExp("\\${(.*?)\\}","gm"));c.strings=e;c.markup=b;c.daapiUrls={};a.each(this._daapiUrls,function(){c.daapiUrls[this.name]=this})},_createWidget:function(e,b,d){if(_.isUndefined(b.productLocation))b.productLocation=this.thisProxy.settings.productLocation;var c=a.extend(true,{},b);c.parent_raise_external_event_method=this.thisProxy.raiseExternalEvent;Flux4.createWidget(e,c,d)},_createRaiseExternalEvent:function(c){var b=c;return function(){var h=b.getName(),g=b._raiseParentExternalEvent,e=b.getExternalInterface(),c,d=Array.prototype.slice.call(arguments);if(d.length==1&&!!d[0].eventName){c=d[0];c.callerName=c.callerName+"."+h}else c={eventName:d[0],args:d.length>1?d.slice(1):[],callerName:h};this._trace(c.callerName+': raised event "'+c.eventName+'" ');if(!!e[c.eventName]&&a.isFunction(e[c.eventName])){var f=a.extend(true,[],c.args);f.push(c.callerName);setTimeout(function(){e[c.eventName].apply(this,f)},1)}!!g&&g(c)}}};var p=function(){var d=[],h=["userprofile"],e=[];function c(){}function g(b){return a.inArray(b.toLowerCase(),h)>-1}return{reloadWidgets:function(c){b.reload(function(){x.loadIfNeed(function(){a.each(d,function(){this.render(null,true)});a.isFunction(c)&&c()})});!!window.Flux&&a.isFunction(window.Flux.reloadWidgets)&&window.Flux.reloadWidgets()},invokeWidget:function(i,h,j,n,k){c('Invoke widget "'+h+'"...');if(g(h)){if(a.inArray(h.toLowerCase(),e)>-1){c("The widget is singleton and already loading...");return}e.push(h.toLowerCase())}if(i&&i.length){var m=a("<div />").addClass(f.camelize(h)+(j.controlData?j.controlData.version:""));i.addClass("flux4Widget").addClass("flux4").append(m);i=m}var b=new z(i,h,j,n);if(b.isError())return;var l=b.getStyle();l&&F.embedStyleSheet(l);b.render(function(){a.isFunction(k)&&k(b.getExternalInterface())});d.push(b);if(b.isError())c("Widget has been created, but with errors",true);else c("Widget has been created successfully")},tryGetWidgetByName:function(a){return _.detect(d,function(b){return a==b.getName()})},isSingletonWidget:g}}(),l=function(l,i){var q="FluxAuthRedirectParams",m=false;l=l||{};var G=new y(false,i);function E(){return"authentication"+(d.isNewAuth()?"":" oldAuth")}function n(e,a,f,d,b){m=false;a=c.addQueryParameter(a,"fbAutoLoginDisabled","true");if(!_.isUndefined(i))a=c.addQueryParameter(a,"productLocation",c.getProductLocationName(i));k.show(E(),{pageUrl:c.addCultureQueryParameter(a),size:f,clickEvent:d,onPageLoaded:b,onClose:function(){w.get().readyToUse(false);v()},callback:e})}function v(){m&&b.hostedPage&&window.location.reload()}function o(a,d){if(t.getBrowserVersion().safari&&!_.isUndefined(a.setAuthCookieUrl)){a.action=d;e.setCookie(q,j.stringify(a),60*1e3);var b=decodeURIComponent(a.setAuthCookieUrl);window.location.href=c.addQueryParameter(b,"returnUrl",encodeURIComponent(window.location.href));return true}return false}function D(){var c=e.getCookie(q);if(!c)return false;var a;try{a=j.parse(c)}catch(d){}e.setCookie(q,"",-1);a&&!_.isUndefined(a.action)&&b.loadIfEmpty(function(){if(a.action=="deactivationCompleted"){x();return}if(!b.user)return;h(a)});return true}function f(a){return!a?null:{eventName:a,widgetName:i}}function h(c,h){if(c.eventName==="SignIn"){var l=false;g.addEventListener("OverlayCancelled",function(){if(!l){g.raiseEvent("SignInComplete",{widgetName:i},b.user);l=true}})}!_.isUndefined(c.resetAuth)&&e.setCookie("MasterAuthIsRequested","",-1);!_.isUndefined(c.BigDoorCookie)&&d.addBigDoorCookie(c.BigDoorCookie);c.set3POUFirstTimeCookie=="true"&&d.setThirdPartyJustLoggedInCookie();c&&c.errorMsg&&alert(decodeURIComponent(String(c.errorMsg).replace(/\+/g," ")));if(!_.isUndefined(c.postAuthRedirectUrl)){var j=decodeURIComponent(c.postAuthRedirectUrl);if(c.redirectOverlay=="true"){d.authenticationChanged(null,true,f(c.eventName));m=true;k.redirectToUrl(j,d.postAuthOverlaySize())}else k.hide(function(){window.location.href=j})}else if(!_.isUndefined(c.roadBlockerCheck))d.authenticationChanged(function(){G.performCheck(undefined,undefined,c.eventName==="SignIn")},false,f(c.eventName));else if(c.isCommunityMember=="false")d.authenticationChanged(function(){B(null,true,true)},false,f(c.eventName));else if(!_.isUndefined(c.reload)||c.isCommunityMember=="true"){w.get().readyToUse(true);d.reload(null,f(c.eventName),true)}else if(c.logOut=="true"){d.removeBigDoorCookie();d.reload(null,f("signOut"))}else if(!_.isUndefined(c.showSignUpForm))k.hide(function(){p()});else if(!_.isUndefined(c.reloadSignIn)||!_.isUndefined(c.showSignInForm))if(!!b.user)d.authenticationChanged(function(){r(c.email)});else k.hide(function(){r(c.email)});else if(c.closeOverlay=="true")v();else _.isUndefined(c.setheight)&&a.isFunction(h)&&h()}function r(e,f){if(u(f))return;var a=l.customSigninPage||C(b.community.authentication.signInUrl);if(e)a=c.addQueryParameter(a,"email",e);n(function(a){o(a,"signIn")||h(a)},a,d.signInOverlaySize(),f)}function F(e,c,a){if(!b.user&&u(a))return;n(function(a){o(a,"signUp")||h(a)},d.replaceUrlLocation(e),c||d.signInOverlaySize(),a)}function u(a){if(!b.community.authentication.signUpAndSignInEnabled&&d.isNewAuth()){var c=C(b.community.authentication.thouSignInSignUpUrl);n(function(a){!b.user&&o(a,"signUp")||h(a)},c,d.thouSignInSignUpOverlaySize(),a);return true}return false}function C(a){return t.getBrowserVersion().safari&&H()?c.addQueryParameter(a,"callbackUrl",encodeURIComponent(window.location.href)):a}function H(){var a=navigator.userAgent.toLowerCase();return a.indexOf("iphone")>-1||a.indexOf("ipod")>-1||a.indexOf("ipad")>-1}function p(g,c,e,f){if(!c&&b.user)return;var a=g||l.customSignupPage||b.community.authentication.signUpUrl;if(d.isOverlayMode())F(a,e,f);else window.location.href=d.replaceUrlLocation(a)}function z(e,f){var a=b.community.authentication.thouToFluxSignUpUrl;if(e)a=c.addQueryParameter(a,"fbDisconnect","true");p(a,true,d.interimOverlaySize(),f)}function B(a,o,p){if(!b.user.communityMember){var k=b.user.globalThirdPartyOnly||b.user.communityThirdPartyOnly,g=(b.user.initialThirdPartyConnection||"").toLowerCase();if(k&&(g=="facebook"||g=="twitter")){var j=(new J(i)).connectWithProvider(b.user.initialThirdPartyConnection);if(j.success||j.error=="readOnly")return}if(u(a))return;if(d.isNewAuth()&&k||!b.community.rpxContext&&!s.enabled()&&b.user.facebookOnly){z(false,a);return}}var e=d.replaceUrlLocation(l.customInterimPage||b.community.authentication.interimPageUrl);if(d.isThirdPartyJustLoggedIn())e=c.addQueryParameter(e,"fbJustLoggedIn",1);n(function(a){h(a,function(){w.get().readyToUse(true);d.reload(null,f(a.eventName),p)})},e,d.interimOverlaySize(),a,function(){d.removeThirdPartyJustLoggedInCookie()});m=!!o||d.isThirdPartyJustLoggedIn()}function x(){n(h,b.community.authentication.accountDeactivatedUrl,d.accountDeactivatedOverlaySize())}return{isNewAuth:d.isNewAuth,isOverlayMode:d.isOverlayMode,signUp:function(a){p(null,false,null,a)},thouToFluxSignUp:z,sutSignUp:function(a,e){var d=l.customSignupPage||b.community.authentication.signUpUrl;p(a?c.addQueryParameter(d,"sutid",a):d,false,null,e)},signIn:function(a){if(b.user)return;if(d.isOverlayMode())r(null,a);else window.location.href=d.replaceUrlLocation(b.community.authentication.signInUrl)},joinCommunity:function(a){if(b.user.communityMember)return;this.showInterimForm(a)},showInterimForm:function(a,c){if(!b.user)return;if(d.isOverlayMode())B(a,undefined,c);else window.location.href=d.replaceUrlLocation(b.community.authentication.interimPageUrl)},checkAuthRedirectParams:D,signOut:function(h,i){if(!b.user)return;d.removeBigDoorCookie();var j=new A("Authentication",null,[{name:"logout",template:c.logoutUrlTemplate,isAction:true}],{}),e=i;if(!a.isFunction(e))e=function(){};var g=function(){if(h)window.location.reload();else d.reload(null,f("signOut"))};j.methods().logout({},function(){var d=b.community.cookieProxyUrl;if(t.getBrowserVersion().safari)window.location.href=d+"?returnPath="+encodeURIComponent(window.location.href)+"&authCookie=";else{var c=a("<iframe>").attr("src",d+"?authCookie=").css("display","none");c.load(function(){window.setTimeout(function(){c.remove()},0);if(s.enabled()&&b.user.facebookConnected)s.signOut(function(){g()});else g()});a("body").append(c)}},e)},deactivationCompleted:function(a){if(o(a||{},"deactivationCompleted"))return;d.authenticationChanged(function(){x();m=true})}}},d=function(){var c="fbJustLoggedIn";function d(d,c){p.reloadWidgets(function(){a.isFunction(d)&&d();c&&setTimeout(function(){g.raiseEvent(c.eventName,{widgetName:c.widgetName},b.user)},1)})}return{isNewAuth:function(){return b.community.authentication.pageDisplayMode==3},isOverlayMode:function(){return b.community.authentication.pageDisplayMode==2||b.community.authentication.pageDisplayMode==3},signInOverlaySize:function(){var b=300;if(this.isNewAuth()){b=378;if(a.browser.msie){if(a.browser.version=="7.0")b=399;if(a.browser.version=="9.0")b=377.5}if(a.browser.mozilla)if(parseInt(a.browser.version,10)>=7)b=377;if(a.browser.webkit)b=377}return{width:this.isNewAuth()?760:680,height:b}},thouSignInSignUpOverlaySize:function(){return{width:383,height:232}},interimOverlaySize:function(){return{width:this.isNewAuth()?735:680,height:300}},postAuthOverlaySize:function(){return{width:735,height:450}},accountDeactivatedOverlaySize:function(){return{width:400,height:300}},authenticationChanged:function(e,h,c,i){function f(){d(function(){a.isFunction(e)&&e();i&&setTimeout(function(){g.raiseEvent("SignInComplete",{widgetName:c&&c.widgetName},b.user)},1)},c)}if(h)f();else k.hide(f)},reload:function(d,c,a){if(!b.hostedPage)this.authenticationChanged(d,false,c,a);else k.hide(function(){window.location.reload()})},replaceUrlLocation:function(a){return a.replace("(location)",encodeURIComponent(window.location.href))},setThirdPartyJustLoggedInCookie:function(){e.setCookie(c,"1",1e3*60*5)},isThirdPartyJustLoggedIn:function(){return e.getCookie(c)=="1"},removeThirdPartyJustLoggedInCookie:function(){e.setCookie(c,"",-1)},addBigDoorCookie:function(a){C.setCookieToRootDomain("BDACWE",a,365*24*60*60*1e3)},removeBigDoorCookie:function(){!!e.getCookie("BDACWE")&&C.setCookieToRootDomain("BDACWE","",-1)}}}(),s=function(){var d=false,e=false,c=[];function m(){}function i(a){FB.ensureInit(function(){a.call(null)})}function j(){var b="FB_HiddenContainer";!a("#"+b).length&&a("<div>").attr("id",b).css("display","none").appendTo(a("body"))}function f(){return typeof window.FB=="object"}function g(){return b.community.facebookContext}function l(){return!!b.community.rpxContext}function h(c,b){if(!f()){a.ajaxSetup({cache:true});a.getScript(c,function(){b()})}else b()}function k(f){if(e)i(f);else{c.push(f);if(!d){d=true;j();h("http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php",function(){FB_RequireFeatures(["Connect"],function(){var d=b.hostedPage?b.community.facebookContext.xdReceiverPageUrl:"http://"+document.domain+"/xd_receiver.htm";FB.init(b.community.facebookContext.appId,d);a.each(c,function(){i(this)});c=null;e=true})})}}}return{loadFacebookJDK:true,enabled:function(){return g()},signOut:function(a){m("Sign Out");if(l())this.loadJdk({},function(){FB.getLoginStatus(function(b){if(b.session)FB.logout(a);else a()})});else g()&&k(function(){FB.ensureInit(function(){FB.Connect.logout(function(){typeof a=="function"&&a()})})})},loadJdk:function(c,d){var e=a("#fb-root");e.length==0&&a("body").prepend('<div id="fb-root"></div>');var g=(c?c.locale:null)||"en_US";if(this.loadFacebookJDK)h(document.location.protocol+"//connect.facebook.net/"+g+"/all.js",function(){FB.init(a.extend({appId:c.appId||b.community.facebookContext.appId,status:true,oauth:true,cookie:false},c));d()});else{if(!f())return;d()}}}}(),J=function(i){var e,l={facebook:",width=475,height=500",twitter:",width=457,height=907"};function h(){}function f(d,j,m,l){var g=n.create(function(b){k(b);a.isFunction(j)&&j(b)},null,true);if(l){var e=decodeURIComponent(c.getQueryParameter(d,"token_url"));e=c.addQueryParameter(e,"productLocation",c.getProductLocationName(i)||"undefined");d=c.addQueryParameter(d,"token_url",encodeURIComponent(e))}var f="callbackName="+g+"&fluxHosted="+b.hostedPage+"&domain="+document.domain,h=c.getQueryParameter(window.location.href,"callbackUrl");if(h)f+="&callbackUrl="+h;return{callbackName:g,url:d.replace("(queryString)",m?f:encodeURIComponent(f))}}function k(a){a&&a.errorMsg&&alert(decodeURIComponent(String(a.errorMsg).replace(/\+/g," ")))}function j(){var a;if(!b.user)a="signIn";else if(!b.user.communityMember)a="join";return a?{eventName:a,widgetName:i}:null}function g(c,f){if(e)if(a.browser.safari)setTimeout(function(){e.close()},0);else e.close();if(c&&c.cancel&&c.cancel=="true")return;a.isFunction(f)&&f();d.setThirdPartyJustLoggedInCookie();d.authenticationChanged(function(){(new y(false)).performCheck()&&b.hostedPage&&window.location.reload()},false,j())}return{connectWithProvider:function(c,j){var a={success:false};if(b.community.rpxContext){var d=_.detect(b.community.rpxContext.providers,function(a){return a.name.toLowerCase()==c.toLowerCase()});if(d)if(!b.community.readOnlyMode){var i=f(d.url,function(a){g(a,j)},false,true).url;e=window.open(i,"RpxConnect","toolbar=0,menubar=0,resizable=0"+(l[c.toLowerCase()]||""));if(!e.opener)e.opener=window;a.success=true}else{a.error="readOnly";alert("Our system is currently down for scheduled maintenance. Please try to connect to "+c+" later")}else{h('Unknown provider "'+c+'"',true);a.error="unknownProvider"}}else a.error="disabledRpx";return a},connectWithProviderPrepare:function(i,k,m){var d={success:false},j;if(!b.community.rpxContext){d.error="disabledRpx";return d}j=_.detect(b.community.rpxContext.providers,function(a){return a.name.toLowerCase()==i.toLowerCase()});if(!j){h('Unknown provider "'+i+'"',true);d.error="unknownProvider";return d}if(b.community.readOnlyMode){d.error="readOnly";h("Our system is currently down for scheduled maintenance. Please try to connect to "+i+" later",true);return d}var e=f(j.url,function(a){g(a,callback)},false,true).url;e=decodeURIComponent(c.getQueryParameter(e,"token_url"));if(e.substr(0,7)==="http://")e=e.substr(7);if(!!window.innerRpxWidget){d.status="already created";return d}window.innerRpxWidget=true;var l=a("<div></div>").addClass("innerRpxWidget").appendTo("body");Flux4.createWidget("Rpx",{container:l,elements:[{id:"SignInWidget",onConnected:function(){},callbackUrl:e,reloadAfterConnect:false,customUI:true,ajaxSignIn:true,janrainExtraSettings:k,onloaded:m}]},function(a){window.innerRpxWidget=a});d.success=true;return d},connectWithProviderNew:function(d,e){var h=_.detect(b.community.rpxContext.providers,function(a){return a.name.toLowerCase()==d.toLowerCase()}),a=f(h.url,function(a){g(a,e)},false,true).url;a=decodeURIComponent(c.getQueryParameter(a,"token_url"));if(a.substr(0,7)==="http://")a=a.substr(7);a=a.substr(a.indexOf("/"));if(!!window.innerRpxWidget){window.innerRpxWidget.setSigninCallbackUrl(a);janrain.engage.signin.triggerFlow(d.toLowerCase())}},getConnectWithProviderNewUrl:function(){return"http://widgets4.flux.com/iframe/rpx_iframe.html"},buildConnectInfo:f}},M=function(c,b,d){this.DAAPI=d.methods();this.utils=new K;var a=b.controlData?b.controlData.parentName:c;this.authentication=new l(null,a);this.UI=new N(this.authentication,c);this.performRoadBlockerCheck=function(c,b){return(new y(true,a)).performCheck(c,b)};this.rpxConnect=new J(a);this.initEvents=function(a){return[].concat(d.initEvents(a),this.UI.initEvents(a))};this.events=g};M.prototype={reloadWidgets:p.reloadWidgets,loadFacebookJdk:_.bind(s.loadJdk,s),createPostAuthAction:function(a){return new S(a)}};var N=function(a,b){this.authentication=a;this.widgetName=b;this._overlayOpenEventName="onOverlayOpen";this._overlayClosedEventName="onOverlayClosed"};N.prototype={_addExternalOverlayEvent:function(c,e){var b=this.externalInterface;if(b&&a.isFunction(b[e])){var f=_.bind(b[e],b),d;if(!a.isFunction(c))d=f;else if(!c.externalEventAdded)d=_.wrap(c,function(a){a();f()});return a.extend(d,{externalEventAdded:true})}return c},initEvents:function(b){this.externalInterface=b;var c=[this._overlayOpenEventName,this._overlayClosedEventName];a.each(c,function(){b[this]=function(){}});return c},showOverlay:function(a){if(!a)return;a.onShowComplete=this._addExternalOverlayEvent(a.onShowComplete,this._overlayOpenEventName);a.onClose=this._addExternalOverlayEvent(a.onClose,this._overlayClosedEventName);m.showOverlay(this.widgetName,a)},hideOverlay:function(a){m.hideOverlay(this.widgetName,this._addExternalOverlayEvent(a,this._overlayClosedEventName))},correctOverlayPosition:function(){m.correctPosition(this.widgetName)},initAuthElements:function(c,f,e){c.find(".signIn").click(_.bind(this.authentication.signIn,this.authentication)).end().find(".signUp").click(_.bind(this.authentication.signUp,this.authentication)).end().find(".joinCommunity").click(_.bind(this.authentication.joinCommunity,this.authentication));if(!b.user&&b.community.rpxContext){c.find(".connectTo3PContainer").show();if(this.authentication.isNewAuth())c.find(".connectTo3P").addClass("thirdPartyAuth").click(_.bind(this.authentication.signIn,this.authentication));else{var d=a.extend({elements:[{id:"FacebookConnectButton",size:"small",length:"short"}],reloadOnConnect:true},f||{});d.container=c.find(".connectTo3P").addClass("thirdPartyAuthViaRpx");Flux4.createWidget("Rpx",d,e)}}else c.find(".connectTo3PContainer").hide()},initLoggedUserElements:function(c,d){if(b.user){_this=this;b.user.communityMember&&c.find(".loggedProfileUrl").removeClass("loggedProfileUrl").wrap(a("<a>").addClass("loggedProfileUrl")).click(function(a){a.preventDefault();_this.openUserProfile(b.user.ucid,a,b.user.profileUrl)});if(d){var e=b.user.thumbnails[d];e&&c.find("img.loggedUserThumbnail").attr("src",e)}c.find(".loggedDisplayName").each(function(){a(this).html()==""&&a(this).html(b.user.name);!b.user.communityMember&&b.user.communityThirdPartyOnly&&a(this).hide()})}},openUserProfile:function(a,g,c,f,e){!a;var d=p.tryGetWidgetByName("UserProfile");if(!!d)d.getExternalInterface().openProfile(a,g,f,e);else window.location.href=!!c?c:b.community.landingPageUrl+"profile/0"+a},showExternalUrlOverlay:function(a){return!a?void 0:k.show(this.widgetName,a)},hideExternalUrlOverlay:function(){k.hide()}};var K=function(){this.XdReceiver=L};K.prototype={readCookie:e.getCookie,writeCookie:e.setCookie,replace:f.replace,truncateString:f.truncate,toWbrFormatString:f.toWbrFormat,camelize:f.camelize,validateEmail:f.isEmail,getBrowserVersion:t.getBrowserVersion,getQueryParameter:c.getQueryParameter,removeQueryParameter:c.removeQueryParameter,trackWidget:I.trackWidget,trackForReporting:I.trackForReporting,embedStyleSheet:F.embedStyleSheet,generateUID:v.generate,externalWidgets:P,googlePlusOneButton:O,registerNamedCallback:function(a){return n.create(a,null,true)},addQueryParameter:c.addQueryParameter,addCultureQueryParameter:c.addCultureQueryParameter,fork:G.fork,createAsyncManager:G.createAsyncManager,facebookEvents:Q,clipboard:X.embedClipboardFlash,zeroClipboardFlashUrl:c.zeroClipboardFlashUrl,buildUrl:function(a,b){return c.buildDaapiUrl({template:a,params:b})},HtmlHelper:V};var k=function(){var e=null,i=null,g=null,d=null;function k(b){if(!_.isUndefined(b.closeOverlay)&&b.closeOverlay=="true")this.hide();else!_.isUndefined(b.setheight)&&this.setSize(b);a.isFunction(d.callback)&&d.callback(b)}function l(){var f=d.pageUrl;f=c.addQueryParameter(f,"domain",document.domain);f=c.addQueryParameter(f,"fluxHosted",b.hostedPage);var g=a("<iframe>").attr({frameborder:0,marginheight:0,marginwidth:0,scrolling:"no"}).width(d.size.width).height(d.size.height).hide().load(function(){a.isFunction(d.onPageLoaded)&&d.onPageLoaded()}).appendTo(e);i=new L(g);i.loadAndListen(f,a.proxy(k,this),d.useOldReceiver)}function j(){if(!e)return;i.stopListening();e=null;i=null;g=null;d=null}return{show:function(c,b){if(!!e)throw new h("ExternalUrlOverlay [show] : another overlay already open. Close it first.");g=c;d=a.extend({size:{width:400,height:500},animationDuration:{fade:400,resize:300}},b);e=a(f.replace('<div style="width: {width}px;"><div class="loaderBar" align="center" style="width: {width}px; height: {height}px;"><div class="loaderIcon">&nbsp;</div></div></div>',d.size));d=a.extend(d,{initContent:e,onClose:function(){j();a.isFunction(b.onClose)&&b.onClose()},onShowComplete:a.proxy(l,this)});m.showOverlay(g,d)},hide:function(b){if(!e){a.isFunction(b)&&b();return}m.hideOverlay(g,function(){j();a.isFunction(b)&&b()})},setSize:function(c,f){if(!e)return;e.find(".loaderBar").length>0&&e.find(".loaderBar").remove().end().find("iframe").fadeIn(d.animationDuration.fade);var h=Number(c.setheight);if(h==0)return;var b=c.setwidth?Number(c.setwidth):0,i={height:h};if(b){i.width=b;e.css("width","auto")}e.find("iframe").animate(i,d.animationDuration.resize,function(){b&&m.correctPosition(g,false,true);a.isFunction(f)&&f()})},redirectToUrl:function(b,a){if(e){e.find("iframe").attr("src",b);this.setSize({setheight:a.height,setwidth:a.width},function(){e.find("iframe").attr("scrolling","auto")})}}}}(),Y=function(j){var d={show:400,hide:300},e=null,b=null,g=null,h=false,c=null;function l(){var a=t.getBrowserVersion();return!a.msie||a.version*1>8}function k(e){if(!b)return;var d={};d.left=Math.max((a(window).width()-(e?0:c.width()))/2,0);if(!h)d.left+=a(window).scrollLeft();d.top=Math.max((a(window).height()-(e?0:c.height()))/2,0);if(!h)d.top+=a(window).scrollTop();return d}function i(e,c){var a=k();if(c)delete a.top;if(e)b.css(a);else b.animate(a,d.show)}function n(c){var b={position:h?"fixed":"absolute",top:"0px",left:"0px",width:"100%",height:"100%",zIndex:c};return a("<div>").css(b).addClass("flux4").addClass("flux4Widget")}function o(f){if(l())e.fadeIn(d.show);else e.show();g=a.extend(f.clickEvent?{left:f.clickEvent.pageX,top:f.clickEvent.pageY}:k(true),{width:0,height:0});var h=a.extend(k(),{width:c.outerWidth(),height:c.outerHeight()});b.css(g).css("visibility","visible");b.children().hide();b.animate(h,d.show,function(){a.isFunction(f.onStartFadeIn)&&setTimeout(function(){f.onStartFadeIn()},1);b.find(".closeButton").fadeIn(d.show/2);c.fadeIn(d.show/2,function(){b.css({width:"auto",height:"auto"});a.isFunction(f.onShowComplete)&&setTimeout(function(){f.onShowComplete()},1)})})}return{getWidgetName:function(){return j},show:function(d){if(b||!d||!d.initContent)return;h=!!d.showFixed;var g=n(d.zIndex);e=a("<div>").addClass("overlayShadow");c=d.initContent.addClass("overlayContent");b=a("<div>").addClass("overlayContentWrapper").append(a("<div>").addClass("closeButton").click(function(){m.hideOverlay(j,d.onClose,true)})).append(c);g.append(e.hide()).append(a("<div>").addClass(f.camelize(j)).append(b)).appendTo(a("body"));o(d);a(window).bind("resize",i)},hide:function(f){if(!b)return;a(window).unbind("resize",i);b.width(c.outerWidth()).height(c.outerHeight());setTimeout(function(){b.find("iframe").attr("src","").end().children().remove()},100);b.animate(g,d.hide,function(){b.closest(".flux4").remove();a.isFunction(f)&&setTimeout(function(){f()},1);b=e=g=null});e.fadeOut(d.hide)},correctPosition:function(b,a){i(b,a)}}},m=function(){function d(b){for(var a=c.length-1;a>=0;a--)if(c[a].getWidgetName()==b)return a;return-1}var c=[],f=9999,b=null;function e(a){if(!b)b=a.zIndex||f;else b=a.zIndex?Math.max(a.zIndex,b+1):b+1}return{showOverlay:function(f,a){var d=new Y(f);e(a);a.zIndex=b;c.push(d);d.show(a)},hideOverlay:function(h,f,i){var e=d(h);if(e>-1){c[e].hide(function(){a.isFunction(f)&&f();i&&g.raiseEvent("OverlayCancelled")});b--;c.splice(e,1)}if(c.length==0)b=null},correctPosition:function(f,e,b){var a=d(f);a>-1&&c[a].correctPosition(e,b)}}}();E.initialize(false,true,true)})(b)}})()
