(function(c,j){var d=c.document,b=function(){function b(){if(a.isReady)return;try{d.documentElement.doScroll("left")}catch(f){setTimeout(b,1);return}a.ready()}var a=function(){},g=c.jQuery,h=c.$,k=/^\s+/,e=/\s+$/,u=/^[\],:{}\s]*$/,i=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,l=/(?:^|:|,)(?:\s*\[)+/g,r,m,q=Object.prototype.toString,n=Object.prototype.hasOwnProperty,s=String.prototype.trim,t={};a.fn=a.prototype={ready:function(f){a.bindReady();
r.done(f);return this}};a.extend=a.fn.extend=function(){var f,b,c,k,g,h=arguments[0]||{},e=1,l=arguments.length,i=false;if(typeof h==="boolean"){i=h;h=arguments[1]||{};e=2}if(typeof h!=="object"&&!a.isFunction(h))h={};if(l===e){h=this;--e}for(;e<l;e++)if((f=arguments[e])!=null)for(b in f){c=h[b];k=f[b];if(h===k)continue;if(i&&k&&(a.isPlainObject(k)||(g=a.isArray(k)))){if(g){g=false;c=c&&a.isArray(c)?c:[]}else c=c&&a.isPlainObject(c)?c:{};h[b]=a.extend(i,c,k)}else if(k!==j)h[b]=k}return h};a.extend({noConflict:function(f){c.$=
h;if(f)c.jQuery=g;return a},isReady:false,readyWait:1,ready:function(f){if(f===true)a.readyWait--;if(!a.readyWait||f!==true&&!a.isReady){if(!d.body)return setTimeout(a.ready,1);a.isReady=true;if(f!==true&&--a.readyWait>0)return;r.resolveWith(d,[a])}},bindReady:function(){if(r)return;r=a._Deferred();if(d.readyState==="complete")return setTimeout(a.ready,1);if(d.addEventListener){d.addEventListener("DOMContentLoaded",m,false);c.addEventListener("load",a.ready,false)}else if(d.attachEvent){d.attachEvent("onreadystatechange",
m);c.attachEvent("onload",a.ready);var f=false;try{f=c.frameElement==null}catch(h){}if(d.documentElement.doScroll&&f)b()}},isFunction:function(f){return a.type(f)==="function"},isArray:Array.isArray||function(f){return a.type(f)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},type:function(a){return a==null?String(a):t[q.call(a)]||"object"},isPlainObject:function(f){if(!f||a.type(f)!=="object"||f.nodeType||a.isWindow(f))return false;if(f.constructor&&!n.call(f,"constructor")&&
!n.call(f.constructor.prototype,"isPrototypeOf"))return false;for(var b in f);return b===j||n.call(f,b)},error:function(a){throw a;},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=a.trim(b);if(u.test(b.replace(i,"@").replace(p,"]").replace(l,"")))return c.JSON&&c.JSON.parse?c.JSON.parse(b):(new Function("return "+b))();else a.error("Invalid JSON: "+b)},each:function(b,h,c){var k,g=0,e=b.length,i=e===j||a.isFunction(b);if(c)if(i)for(k in b){if(h.apply(b[k],c)===false)break}else for(;g<
e;){if(h.apply(b[g++],c)===false)break}else if(i)for(k in b){if(h.call(b[k],k,b[k])===false)break}else for(c=b[0];g<e&&h.call(c,g,c)!==false;c=b[++g]);return b},trim:s?function(a){return a==null?"":s.call(a)}:function(a){return a==null?"":a.toString().replace(k,"").replace(e,"")}});a.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){t["[object "+b+"]"]=b.toLowerCase()});if(d.addEventListener)m=function(){d.removeEventListener("DOMContentLoaded",m,false);a.ready()};
else if(d.attachEvent)m=function(){if(d.readyState==="complete"){d.detachEvent("onreadystatechange",m);a.ready()}};return a}();(function(b){var a="then done fail isResolved isRejected promise".split(" "),c=[].slice;b.extend({_Deferred:function(){var a=[],c,g,j,i={done:function(){if(!j){var g=arguments,e,d,m,q,n;if(c){n=c;c=0}for(e=0,d=g.length;e<d;e++){m=g[e];q=b.type(m);if(q==="array")i.done.apply(i,m);else if(q==="function")a.push(m)}if(n)i.resolveWith(n[0],n[1])}return this},resolveWith:function(b,
i){if(!j&&!c&&!g){i=i||[];g=1;try{for(;a[0];)a.shift().apply(b,i)}finally{c=[b,i];g=0}}return this},resolve:function(){i.resolveWith(this,arguments);return this},isResolved:function(){return!!(g||c)},cancel:function(){j=1;a=[];return this}};return i},Deferred:function(c){var g=b._Deferred(),e=b._Deferred(),j;b.extend(g,{then:function(a,b){g.done(a).fail(b);return this},fail:e.done,rejectWith:e.resolveWith,reject:e.resolve,isRejected:e.isResolved,promise:function(b){if(b==null){if(j)return j;j=b={}}for(var c=
a.length;c--;)b[a[c]]=g[a[c]];return b}});g.done(e.cancel).fail(g.cancel);delete g.cancel;if(c)c.call(g,g);return g},when:function(a){function j(a){return function(b){e[a]=arguments.length>1?c.call(arguments,0):b;if(!--p)l.resolveWith(l,c.call(e,0))}}var e=arguments,d=0,i=e.length,p=i,l=i<=1&&a&&b.isFunction(a.promise)?a:b.Deferred();if(i>1){for(;d<i;d++)if(e[d]&&b.isFunction(e[d].promise))e[d].promise().then(j(d),l.reject);else--p;if(!p)l.resolveWith(l,e)}else if(l!==a)l.resolveWith(l,i?[a]:[]);
return l.promise()}})})(b);c.jQuery=c.$=b})(window);(function(){(function(c){c.query={};c.query.parse=function(c){var d={},c=c.match(/^\??(.*)$/)[1];if(c.length)for(var c=c.split("&"),b=0;b<c.length;b++){part=c[b].split("=");d[part[0]]=part[1]==null?"":unescape(part[1]).replace(/\+/g," ")}return d};c.extend(c.query,c.query.parse(location.search))})(window.jQuery)})();
(function(){var c,j;c=j=window.jQuery.noConflict(true);var d=document.location.protocol.slice(0,-1),b=window.viximo=window.viximo||{};j.extend(b,{version:3,build:"3b36e3f4a",environment:"production",library:"viximo",errors:b.errors||[],info:b.info||[],callbacks:b.callbacks||{},jQuery:c,url:{javascript:function(a){return this.build("asset","javascripts",a+(b.params.v_debug+""!="true"?"":".plain")+".js")},hostWithPort:function(a){var c=b.urls[a],a=c.protocol,h=c.port,c=c.host;if(a=="http"&&h!=80||a==
"https"&&h!=443)c+=":"+h;return c},build:function(a,c,h,d){if(d==null)d=true;a=b.urls[a].protocol+"://"+this.hostWithPort(a);if(c){var e=b.params.v_build||b.build;if(e)a+="/api_assets/"+e;a+="/"+c}return a+(d?"/api/v"+(b.params.v_version||b.version):"")+"/"+h}},urls:function(){var a;if(d=="http")a={api:{protocol:"http",host:"api.viximo.com",port:80},asset:{protocol:"http",host:"cdn1.viximo.com",port:80}};else a={api:{protocol:"https",host:"api.viximo.com",port:443},asset:{protocol:"https",host:"viximo-designer-portal-production.s3.amazonaws.com",
port:443}};return a}(),params:b.params||function(){var a={},b;try{do{b=b?b.parent:window;var c=b.location;if(c.host==window.location.host)a=j.extend(a,j.query.parse(c.hash.substr(1)),j.query.parse(c.search))}while(b!=window.top)}catch(d){}return a}(),getRedirectUrl:function(){var a;if(!this.redirected&&(this.params.v_host&&this.params.v_host!=this.url.hostWithPort("api")||this.params.v_debug)){a="javascripts/api/"+this.library+(this.params.v_debug+""!="true"?"":".plain")+".js";if(this.params.v_host)a=
location.protocol+"//"+this.params.v_host+"/"+a;else a=this.url.build("api",null,a,false)}return a},defer:function(a){this[a]=function(){var c=[];c.push.apply(c,arguments);b.runner={method:a,arguments:c};b.load()}},boot:function(){if(this.options)this.redirected=true;if(!this.params.v_initial_environment)this.params.v_initial_environment=this.environment;var a=this.getRedirectUrl();if(a){if(this.environment!=this.params.v_initial_environment)this.errors.push(this.library+" loaded from "+this.environment+
", but was expected to load from "+this.params.v_initial_environment);this.info.push("redirecting to "+a+" from "+this.library+"/"+this.environment+"/"+this.build);this.getScript(a);this.test=this.redirected=true}else{if(!this.params.v_host)this.params.v_host=this.url.hostWithPort("api");if(!this.params.v_version)this.params.v_version=this.version;if(!this.params.v_build)this.params.v_build=this.build;if(!this.params.v_environment)this.params.v_environment=this.environment;this.environment=this.params.v_environment;
this.bootCompleted()}},bootCompleted:function(){},load:function(){this.getScript(this.library)},getScript:function(a,c){if(!a.match(/^http/)){if(c){if(!b.callbacks[a])b.callbacks[a]=[];b.callbacks[a].push(c)}a=b.url.javascript(a)}if(j.isReady){var d=document.getElementsByTagName("head")[0],k=document.createElement("script");k.src=a;d.appendChild(k)}else document.write('<script src="'+a+'" type="text/javascript"><\/script>')}});j.extend(b,{loadWithoutTracking:b.load,load:function(){var a=b.runner&&
b.runner.arguments[0]||{};if(a.trackingOnly)b.library="viximo.tracker";else b.library="vixui";if(!j.isReady&&(a.trackingOnly||a.complete))j.fn.ready(function(){b.loadWithoutTracking()});else this.loadWithoutTracking()},bootCompleted:function(){if(b.opensocialInitArguments)b.opensocialInit.apply(b,b.opensocialInitArguments);else if(b.options)b.init(b.options)}});b.defer("init");b.defer("opensocialInit");b.defer("yahooInit");j.fn.ready(function(){});if(window.gadgets&&window.gadgets.views&&window.gadgets.views.getParams){c=
gadgets.views.getParams();for(var o in c)b.params[o]=c[o]}if(window.v_publisher&&window.v_publisher.passed_parameters){c=window.v_publisher.passed_parameters();for(o in c)b.params[o]=c[o]}b.boot()})();

