if (typeof(Function.__typeName) === 'undefined') {
//----------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------
// MicrosoftAjax.js
Function.__typeName="Function";Function.__class=true;Function.createCallback=function(b,a){return function(){var e=arguments.length;if(e>0){var d=[];for(var c=0;c<e;c++)d[c]=arguments[c];d[e]=a;return b.apply(this,d)}return b.call(this,a)}};Function.createDelegate=function(a,b){return function(){return b.apply(a,arguments)}};Function.emptyFunction=Function.emptyMethod=function(){};Function.validateParameters=function(c,b,a){return Function._validateParams(c,b,a)};Function._validateParams=function(g,e,c){var a,d=e.length;c=c||typeof c==="undefined";a=Function._validateParameterCount(g,e,c);if(a){a.popStackFrame();return a}for(var b=0,i=g.length;b<i;b++){var f=e[Math.min(b,d-1)],h=f.name;if(f.parameterArray)h+="["+(b-d+1)+"]";else if(!c&&b>=d)break;a=Function._validateParameter(g[b],f,h);if(a){a.popStackFrame();return a}}return null};Function._validateParameterCount=function(j,d,i){var a,c,b=d.length,e=j.length;if(e<b){var f=b;for(a=0;a<b;a++){var g=d[a];if(g.optional||g.parameterArray)f--}if(e<f)c=true}else if(i&&e>b){c=true;for(a=0;a<b;a++)if(d[a].parameterArray){c=false;break}}if(c){var h=Error.parameterCount();h.popStackFrame();return h}return null};Function._validateParameter=function(c,a,h){var b,g=a.type,l=!!a.integer,k=!!a.domElement,m=!!a.mayBeNull;b=Function._validateParameterType(c,g,l,k,m,h);if(b){b.popStackFrame();return b}var e=a.elementType,f=!!a.elementMayBeNull;if(g===Array&&typeof c!=="undefined"&&c!==null&&(e||!f)){var j=!!a.elementInteger,i=!!a.elementDomElement;for(var d=0;d<c.length;d++){var n=c[d];b=Function._validateParameterType(n,e,j,i,f,h+"["+d+"]");if(b){b.popStackFrame();return b}}}return null};Function._validateParameterType=function(b,c,k,j,h,d){var a,g;if(typeof b==="undefined")if(h)return null;else{a=Error.argumentUndefined(d);a.popStackFrame();return a}if(b===null)if(h)return null;else{a=Error.argumentNull(d);a.popStackFrame();return a}if(c&&c.__enum){if(typeof b!=="number"){a=Error.argumentType(d,Object.getType(b),c);a.popStackFrame();return a}if(b%1===0){var e=c.prototype;if(!c.__flags||b===0){for(g in e)if(e[g]===b)return null}else{var i=b;for(g in e){var f=e[g];if(f===0)continue;if((f&b)===f)i-=f;if(i===0)return null}}}a=Error.argumentOutOfRange(d,b,String.format(Sys.Res.enumInvalidValue,b,c.getName()));a.popStackFrame();return a}if(j&&(!Sys._isDomElement(b)||b.nodeType===3)){a=Error.argument(d,Sys.Res.argumentDomElement);a.popStackFrame();return a}if(c&&!Sys._isInstanceOfType(c,b)){a=Error.argumentType(d,Object.getType(b),c);a.popStackFrame();return a}if(c===Number&&k)if(b%1!==0){a=Error.argumentOutOfRange(d,b,Sys.Res.argumentInteger);a.popStackFrame();return a}return null};Error.__typeName="Error";Error.__class=true;Error.create=function(d,b){var a=new Error(d);a.message=d;if(b)for(var c in b)a[c]=b[c];a.popStackFrame();return a};Error.argument=function(a,c){var b="Sys.ArgumentException: "+(c?c:Sys.Res.argument);if(a)b+="\n"+String.format(Sys.Res.paramName,a);var d=Error.create(b,{name:"Sys.ArgumentException",paramName:a});d.popStackFrame();return d};Error.argumentNull=function(a,c){var b="Sys.ArgumentNullException: "+(c?c:Sys.Res.argumentNull);if(a)b+="\n"+String.format(Sys.Res.paramName,a);var d=Error.create(b,{name:"Sys.ArgumentNullException",paramName:a});d.popStackFrame();return d};Error.argumentOutOfRange=function(c,a,d){var b="Sys.ArgumentOutOfRangeException: "+(d?d:Sys.Res.argumentOutOfRange);if(c)b+="\n"+String.format(Sys.Res.paramName,c);if(typeof a!=="undefined"&&a!==null)b+="\n"+String.format(Sys.Res.actualValue,a);var e=Error.create(b,{name:"Sys.ArgumentOutOfRangeException",paramName:c,actualValue:a});e.popStackFrame();return e};Error.argumentType=function(d,c,b,e){var a="Sys.ArgumentTypeException: ";if(e)a+=e;else if(c&&b)a+=String.format(Sys.Res.argumentTypeWithTypes,c.getName(),b.getName());else a+=Sys.Res.argumentType;if(d)a+="\n"+String.format(Sys.Res.paramName,d);var f=Error.create(a,{name:"Sys.ArgumentTypeException",paramName:d,actualType:c,expectedType:b});f.popStackFrame();return f};Error.argumentUndefined=function(a,c){var b="Sys.ArgumentUndefinedException: "+(c?c:Sys.Res.argumentUndefined);if(a)b+="\n"+String.format(Sys.Res.paramName,a);var d=Error.create(b,{name:"Sys.ArgumentUndefinedException",paramName:a});d.popStackFrame();return d};Error.format=function(a){var c="Sys.FormatException: "+(a?a:Sys.Res.format),b=Error.create(c,{name:"Sys.FormatException"});b.popStackFrame();return b};Error.invalidOperation=function(a){var c="Sys.InvalidOperationException: "+(a?a:Sys.Res.invalidOperation),b=Error.create(c,{name:"Sys.InvalidOperationException"});b.popStackFrame();return b};Error.notImplemented=function(a){var c="Sys.NotImplementedException: "+(a?a:Sys.Res.notImplemented),b=Error.create(c,{name:"Sys.NotImplementedException"});b.popStackFrame();return b};Error.parameterCount=function(a){var c="Sys.ParameterCountException: "+(a?a:Sys.Res.parameterCount),b=Error.create(c,{name:"Sys.ParameterCountException"});b.popStackFrame();return b};Error.prototype.popStackFrame=function(){if(typeof this.stack==="undefined"||this.stack===null||typeof this.fileName==="undefined"||this.fileName===null||typeof this.lineNumber==="undefined"||this.lineNumber===null)return;var a=this.stack.split("\n"),c=a[0],e=this.fileName+":"+this.lineNumber;while(typeof c!=="undefined"&&c!==null&&c.indexOf(e)===-1){a.shift();c=a[0]}var d=a[1];if(typeof d==="undefined"||d===null)return;var b=d.match(/@(.*):(\d+)$/);if(typeof b==="undefined"||b===null)return;this.fileName=b[1];this.lineNumber=parseInt(b[2]);a.shift();this.stack=a.join("\n")};Object.__typeName="Object";Object.__class=true;Object.getType=function(b){var a=b.constructor;if(!a||typeof a!=="function"||!a.__typeName||a.__typeName==="Object")return Object;return a};Object.getTypeName=function(a){return Object.getType(a).getName()};String.__typeName="String";String.__class=true;String.prototype.endsWith=function(a){return this.substr(this.length-a.length)===a};String.prototype.startsWith=function(a){return this.substr(0,a.length)===a};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.trimEnd=function(){return this.replace(/\s+$/,"")};String.prototype.trimStart=function(){return this.replace(/^\s+/,"")};String.format=function(){return String._toFormattedString(false,arguments)};String._toFormattedString=function(l,j){var c="",e=j[0];for(var a=0;true;){var f=e.indexOf("{",a),d=e.indexOf("}",a);if(f<0&&d<0){c+=e.slice(a);break}if(d>0&&(d<f||f<0)){c+=e.slice(a,d+1);a=d+2;continue}c+=e.slice(a,f);a=f+1;if(e.charAt(a)==="{"){c+="{";a++;continue}if(d<0)break;var h=e.substring(a,d),g=h.indexOf(":"),k=parseInt(g<0?h:h.substring(0,g),10)+1,i=g<0?"":h.substring(g+1),b=j[k];if(typeof b==="undefined"||b===null)b="";if(b.toFormattedString)c+=b.toFormattedString(i);else if(l&&b.localeFormat)c+=b.localeFormat(i);else if(b.format)c+=b.format(i);else c+=b.toString();a=d+1}return c};Boolean.__typeName="Boolean";Boolean.__class=true;Boolean.parse=function(b){var a=b.trim().toLowerCase();if(a==="false")return false;if(a==="true")return true};Date.__typeName="Date";Date.__class=true;Number.__typeName="Number";Number.__class=true;RegExp.__typeName="RegExp";RegExp.__class=true;if(!window)this.window=this;window.Type=Function;Type.prototype.callBaseMethod=function(a,d,b){var c=Sys._getBaseMethod(this,a,d);if(!b)return c.apply(a);else return c.apply(a,b)};Type.prototype.getBaseMethod=function(a,b){return Sys._getBaseMethod(this,a,b)};Type.prototype.getBaseType=function(){return typeof this.__baseType==="undefined"?null:this.__baseType};Type.prototype.getInterfaces=function(){var a=[],b=this;while(b){var c=b.__interfaces;if(c)for(var d=0,f=c.length;d<f;d++){var e=c[d];if(!Array.contains(a,e))a[a.length]=e}b=b.__baseType}return a};Type.prototype.getName=function(){return typeof this.__typeName==="undefined"?"":this.__typeName};Type.prototype.implementsInterface=function(d){this.resolveInheritance();var c=d.getName(),a=this.__interfaceCache;if(a){var e=a[c];if(typeof e!=="undefined")return e}else a=this.__interfaceCache={};var b=this;while(b){var f=b.__interfaces;if(f)if(Array.indexOf(f,d)!==-1)return a[c]=true;b=b.__baseType}return a[c]=false};Type.prototype.inheritsFrom=function(b){this.resolveInheritance();var a=this.__baseType;while(a){if(a===b)return true;a=a.__baseType}return false};Type.prototype.initializeBase=function(a,b){this.resolveInheritance();if(this.__baseType)if(!b)this.__baseType.apply(a);else this.__baseType.apply(a,b);return a};Type.prototype.isImplementedBy=function(a){if(typeof a==="undefined"||a===null)return false;var b=Object.getType(a);return !!(b.implementsInterface&&b.implementsInterface(this))};Type.prototype.isInstanceOfType=function(a){return Sys._isInstanceOfType(this,a)};Type.prototype.registerClass=function(c,b,d){this.prototype.constructor=this;this.__typeName=c;this.__class=true;if(b){this.__baseType=b;this.__basePrototypePending=true}Sys.__upperCaseTypes[c.toUpperCase()]=this;if(d){this.__interfaces=[];for(var a=2,f=arguments.length;a<f;a++){var e=arguments[a];this.__interfaces.push(e)}}return this};Type.prototype.registerInterface=function(a){Sys.__upperCaseTypes[a.toUpperCase()]=this;this.prototype.constructor=this;this.__typeName=a;this.__interface=true;return this};Type.prototype.resolveInheritance=function(){if(this.__basePrototypePending){var b=this.__baseType;b.resolveInheritance();for(var a in b.prototype){var c=b.prototype[a];if(!this.prototype[a])this.prototype[a]=c}delete this.__basePrototypePending}};Type.getRootNamespaces=function(){return Array.clone(Sys.__rootNamespaces)};Type.isClass=function(a){if(typeof a==="undefined"||a===null)return false;return !!a.__class};Type.isInterface=function(a){if(typeof a==="undefined"||a===null)return false;return !!a.__interface};Type.isNamespace=function(a){if(typeof a==="undefined"||a===null)return false;return !!a.__namespace};Type.parse=function(typeName,ns){var fn;if(ns){fn=Sys.__upperCaseTypes[ns.getName().toUpperCase()+"."+typeName.toUpperCase()];return fn||null}if(!typeName)return null;if(!Type.__htClasses)Type.__htClasses={};fn=Type.__htClasses[typeName];if(!fn){fn=eval(typeName);Type.__htClasses[typeName]=fn}return fn};Type.registerNamespace=function(e){var d=window,c=e.split(".");for(var b=0;b<c.length;b++){var f=c[b],a=d[f];if(!a)a=d[f]={};if(!a.__namespace){if(b===0&&e!=="Sys")Sys.__rootNamespaces[Sys.__rootNamespaces.length]=a;a.__namespace=true;a.__typeName=c.slice(0,b+1).join(".");a.getName=function(){return this.__typeName}}d=a}};Type._checkDependency=function(c,a){var d=Type._registerScript._scripts,b=d?!!d[c]:false;if(typeof a!=="undefined"&&!b)throw Error.invalidOperation(String.format(Sys.Res.requiredScriptReferenceNotIncluded,a,c));return b};Type._registerScript=function(a,c){var b=Type._registerScript._scripts;if(!b)Type._registerScript._scripts=b={};if(b[a])throw Error.invalidOperation(String.format(Sys.Res.scriptAlreadyLoaded,a));b[a]=true;if(c)for(var d=0,f=c.length;d<f;d++){var e=c[d];if(!Type._checkDependency(e))throw Error.invalidOperation(String.format(Sys.Res.scriptDependencyNotFound,a,e))}};Type.registerNamespace("Sys");Sys.__upperCaseTypes={};Sys.__rootNamespaces=[Sys];Sys._isInstanceOfType=function(c,b){if(typeof b==="undefined"||b===null)return false;if(b instanceof c)return true;var a=Object.getType(b);return !!(a===c)||a.inheritsFrom&&a.inheritsFrom(c)||a.implementsInterface&&a.implementsInterface(c)};Sys._getBaseMethod=function(d,e,c){var b=d.getBaseType();if(b){var a=b.prototype[c];return a instanceof Function?a:null}return null};Sys._isDomElement=function(a){var c=false;if(typeof a.nodeType!=="number"){var b=a.ownerDocument||a.document||a;if(b!=a){var d=b.defaultView||b.parentWindow;c=d!=a}else c=typeof b.body==="undefined"}return !c};Array.__typeName="Array";Array.__class=true;Array.add=Array.enqueue=function(a,b){a[a.length]=b};Array.addRange=function(a,b){a.push.apply(a,b)};Array.clear=function(a){a.length=0};Array.clone=function(a){if(a.length===1)return [a[0]];else return Array.apply(null,a)};Array.contains=function(a,b){return Sys._indexOf(a,b)>=0};Array.dequeue=function(a){return a.shift()};Array.forEach=function(b,e,d){for(var a=0,f=b.length;a<f;a++){var c=b[a];if(typeof c!=="undefined")e.call(d,c,a,b)}};Array.indexOf=function(a,c,b){return Sys._indexOf(a,c,b)};Array.insert=function(a,b,c){a.splice(b,0,c)};Array.parse=function(value){if(!value)return [];return eval(value)};Array.remove=function(b,c){var a=Sys._indexOf(b,c);if(a>=0)b.splice(a,1);return a>=0};Array.removeAt=function(a,b){a.splice(b,1)};Sys._indexOf=function(d,e,a){if(typeof e==="undefined")return -1;var c=d.length;if(c!==0){a=a-0;if(isNaN(a))a=0;else{if(isFinite(a))a=a-a%1;if(a<0)a=Math.max(0,c+a)}for(var b=a;b<c;b++)if(typeof d[b]!=="undefined"&&d[b]===e)return b}return -1};Type._registerScript._scripts={"MicrosoftAjaxCore.js":true,"MicrosoftAjaxGlobalization.js":true,"MicrosoftAjaxSerialization.js":true,"MicrosoftAjaxComponentModel.js":true,"MicrosoftAjaxHistory.js":true,"MicrosoftAjaxNetwork.js":true,"MicrosoftAjaxWebServices.js":true};Sys.IDisposable=function(){};Sys.IDisposable.prototype={};Sys.IDisposable.registerInterface("Sys.IDisposable");Sys.StringBuilder=function(a){this._parts=typeof a!=="undefined"&&a!==null&&a!==""?[a.toString()]:[];this._value={};this._len=0};Sys.StringBuilder.prototype={append:function(a){this._parts[this._parts.length]=a},appendLine:function(a){this._parts[this._parts.length]=typeof a==="undefined"||a===null||a===""?"\r\n":a+"\r\n"},clear:function(){this._parts=[];this._value={};this._len=0},isEmpty:function(){if(this._parts.length===0)return true;return this.toString()===""},toString:function(a){a=a||"";var b=this._parts;if(this._len!==b.length){this._value={};this._len=b.length}var d=this._value;if(typeof d[a]==="undefined"){if(a!=="")for(var c=0;c<b.length;)if(typeof b[c]==="undefined"||b[c]===""||b[c]===null)b.splice(c,1);else c++;d[a]=this._parts.join(a)}return d[a]}};Sys.StringBuilder.registerClass("Sys.StringBuilder");Sys.Browser={};Sys.Browser.InternetExplorer={};Sys.Browser.Firefox={};Sys.Browser.Safari={};Sys.Browser.Opera={};Sys.Browser.agent=null;Sys.Browser.hasDebuggerStatement=false;Sys.Browser.name=navigator.appName;Sys.Browser.version=parseFloat(navigator.appVersion);Sys.Browser.documentMode=0;if(navigator.userAgent.indexOf(" MSIE ")>-1){Sys.Browser.agent=Sys.Browser.InternetExplorer;Sys.Browser.version=parseFloat(navigator.userAgent.match(/MSIE (\d+\.\d+)/)[1]);if(Sys.Browser.version>=8)if(document.documentMode>=7)Sys.Browser.documentMode=document.documentMode;Sys.Browser.hasDebuggerStatement=true}else if(navigator.userAgent.indexOf(" Firefox/")>-1){Sys.Browser.agent=Sys.Browser.Firefox;Sys.Browser.version=parseFloat(navigator.userAgent.match(/Firefox\/(\d+\.\d+)/)[1]);Sys.Browser.name="Firefox";Sys.Browser.hasDebuggerStatement=true}else if(navigator.userAgent.indexOf(" AppleWebKit/")>-1){Sys.Browser.agent=Sys.Browser.Safari;Sys.Browser.version=parseFloat(navigator.userAgent.match(/AppleWebKit\/(\d+(\.\d+)?)/)[1]);Sys.Browser.name="Safari"}else if(navigator.userAgent.indexOf("Opera/")>-1)Sys.Browser.agent=Sys.Browser.Opera;Sys.EventArgs=function(){};Sys.EventArgs.registerClass("Sys.EventArgs");Sys.EventArgs.Empty=new Sys.EventArgs;Sys.CancelEventArgs=function(){Sys.CancelEventArgs.initializeBase(this);this._cancel=false};Sys.CancelEventArgs.prototype={get_cancel:function(){return this._cancel},set_cancel:function(a){this._cancel=a}};Sys.CancelEventArgs.registerClass("Sys.CancelEventArgs",Sys.EventArgs);Type.registerNamespace("Sys.UI");Sys._Debug=function(){};Sys._Debug.prototype={_appendConsole:function(a){if(typeof Debug!=="undefined"&&Debug.writeln)Debug.writeln(a);if(window.console&&window.console.log)window.console.log(a);if(window.opera)window.opera.postError(a);if(window.debugService)window.debugService.trace(a)},_appendTrace:function(b){var a=document.getElementById("TraceConsole");if(a&&a.tagName.toUpperCase()==="TEXTAREA")a.value+=b+"\n"},assert:function(c,a,b){if(!c){a=b&&this.assert.caller?String.format(Sys.Res.assertFailedCaller,a,this.assert.caller):String.format(Sys.Res.assertFailed,a);if(confirm(String.format(Sys.Res.breakIntoDebugger,a)))this.fail(a)}},clearTrace:function(){var a=document.getElementById("TraceConsole");if(a&&a.tagName.toUpperCase()==="TEXTAREA")a.value=""},fail:function(message){this._appendConsole(message);if(Sys.Browser.hasDebuggerStatement)eval("debugger")},trace:function(a){this._appendConsole(a);this._appendTrace(a)},traceDump:function(a,b){var c=this._traceDump(a,b,true)},_traceDump:function(a,c,f,b,d){c=c?c:"traceDump";b=b?b:"";if(a===null){this.trace(b+c+": null");return}switch(typeof a){case "undefined":this.trace(b+c+": Undefined");break;case "number":case "string":case "boolean":this.trace(b+c+": "+a);break;default:if(Date.isInstanceOfType(a)||RegExp.isInstanceOfType(a)){this.trace(b+c+": "+a.toString());break}if(!d)d=[];else if(Array.contains(d,a)){this.trace(b+c+": ...");return}Array.add(d,a);if(a==window||a===document||window.HTMLElement&&a instanceof HTMLElement||typeof a.nodeName==="string"){var k=a.tagName?a.tagName:"DomElement";if(a.id)k+=" - "+a.id;this.trace(b+c+" {"+k+"}")}else{var i=Object.getTypeName(a);this.trace(b+c+(typeof i==="string"?" {"+i+"}":""));if(b===""||f){b+="    ";var e,j,l,g,h;if(Array.isInstanceOfType(a)){j=a.length;for(e=0;e<j;e++)this._traceDump(a[e],"["+e+"]",f,b,d)}else for(g in a){h=a[g];if(!Function.isInstanceOfType(h))this._traceDump(h,g,f,b,d)}}}Array.remove(d,a)}}};Sys._Debug.registerClass("Sys._Debug");Sys.Debug=new Sys._Debug;Sys.Debug.isDebug=false;function Sys$Enum$parse(c,e){var a,b,i;if(e){a=this.__lowerCaseValues;if(!a){this.__lowerCaseValues=a={};var g=this.prototype;for(var f in g)a[f.toLowerCase()]=g[f]}}else a=this.prototype;if(!this.__flags){i=e?c.toLowerCase():c;b=a[i.trim()];if(typeof b!=="number")throw Error.argument("value",String.format(Sys.Res.enumInvalidValue,c,this.__typeName));return b}else{var h=(e?c.toLowerCase():c).split(","),j=0;for(var d=h.length-1;d>=0;d--){var k=h[d].trim();b=a[k];if(typeof b!=="number")throw Error.argument("value",String.format(Sys.Res.enumInvalidValue,c.split(",")[d].trim(),this.__typeName));j|=b}return j}}function Sys$Enum$toString(c){if(typeof c==="undefined"||c===null)return this.__string;var d=this.prototype,a;if(!this.__flags||c===0){for(a in d)if(d[a]===c)return a}else{var b=this.__sortedValues;if(!b){b=[];for(a in d)b[b.length]={key:a,value:d[a]};b.sort(function(a,b){return a.value-b.value});this.__sortedValues=b}var e=[],g=c;for(a=b.length-1;a>=0;a--){var h=b[a],f=h.value;if(f===0)continue;if((f&c)===f){e[e.length]=h.key;g-=f;if(g===0)break}}if(e.length&&g===0)return e.reverse().join(", ")}return ""}Type.prototype.registerEnum=function(b,c){Sys.__upperCaseTypes[b.toUpperCase()]=this;for(var a in this.prototype)this[a]=this.prototype[a];this.__typeName=b;this.parse=Sys$Enum$parse;this.__string=this.toString();this.toString=Sys$Enum$toString;this.__flags=c;this.__enum=true};Type.isEnum=function(a){if(typeof a==="undefined"||a===null)return false;return !!a.__enum};Type.isFlags=function(a){if(typeof a==="undefined"||a===null)return false;return !!a.__flags};Sys.CollectionChange=function(e,a,c,b,d){this.action=e;if(a)if(!(a instanceof Array))a=[a];this.newItems=a||null;if(typeof c!=="number")c=-1;this.newStartingIndex=c;if(b)if(!(b instanceof Array))b=[b];this.oldItems=b||null;if(typeof d!=="number")d=-1;this.oldStartingIndex=d};Sys.CollectionChange.registerClass("Sys.CollectionChange");Sys.NotifyCollectionChangedAction=function(){throw Error.notImplemented()};Sys.NotifyCollectionChangedAction.prototype={add:0,remove:1,reset:2};Sys.NotifyCollectionChangedAction.registerEnum("Sys.NotifyCollectionChangedAction");Sys.NotifyCollectionChangedEventArgs=function(a){this._changes=a;Sys.NotifyCollectionChangedEventArgs.initializeBase(this)};Sys.NotifyCollectionChangedEventArgs.prototype={get_changes:function(){return this._changes||[]}};Sys.NotifyCollectionChangedEventArgs.registerClass("Sys.NotifyCollectionChangedEventArgs",Sys.EventArgs);Sys.Observer=function(){};Sys.Observer.registerClass("Sys.Observer");Sys.Observer.makeObservable=function(a){var c=a instanceof Array,b=Sys.Observer;if(a.setValue===b._observeMethods.setValue)return a;b._addMethods(a,b._observeMethods);if(c)b._addMethods(a,b._arrayMethods);return a};Sys.Observer._addMethods=function(c,b){for(var a in b)c[a]=b[a]};Sys.Observer._addEventHandler=function(c,a,b){Sys.Observer._getContext(c,true).events._addHandler(a,b)};Sys.Observer.addEventHandler=function(c,a,b){Sys.Observer._addEventHandler(c,a,b)};Sys.Observer._removeEventHandler=function(c,a,b){Sys.Observer._getContext(c,true).events._removeHandler(a,b)};Sys.Observer.removeEventHandler=function(c,a,b){Sys.Observer._removeEventHandler(c,a,b)};Sys.Observer.raiseEvent=function(b,e,d){var c=Sys.Observer._getContext(b);if(!c)return;var a=c.events.getHandler(e);if(a)a(b,d)};Sys.Observer.addPropertyChanged=function(b,a){Sys.Observer._addEventHandler(b,"propertyChanged",a)};Sys.Observer.removePropertyChanged=function(b,a){Sys.Observer._removeEventHandler(b,"propertyChanged",a)};Sys.Observer.beginUpdate=function(a){Sys.Observer._getContext(a,true).updating=true};Sys.Observer.endUpdate=function(b){var a=Sys.Observer._getContext(b);if(!a||!a.updating)return;a.updating=false;var d=a.dirty;a.dirty=false;if(d){if(b instanceof Array){var c=a.changes;a.changes=null;Sys.Observer.raiseCollectionChanged(b,c)}Sys.Observer.raisePropertyChanged(b,"")}};Sys.Observer.isUpdating=function(b){var a=Sys.Observer._getContext(b);return a?a.updating:false};Sys.Observer._setValue=function(a,j,g){var b,f,k=a,d=j.split(".");for(var i=0,m=d.length-1;i<m;i++){var l=d[i];b=a["get_"+l];if(typeof b==="function")a=b.call(a);else a=a[l];var n=typeof a;if(a===null||n==="undefined")throw Error.invalidOperation(String.format(Sys.Res.nullReferenceInPath,j))}var e,c=d[m];b=a["get_"+c];f=a["set_"+c];if(typeof b==="function")e=b.call(a);else e=a[c];if(typeof f==="function")f.call(a,g);else a[c]=g;if(e!==g){var h=Sys.Observer._getContext(k);if(h&&h.updating){h.dirty=true;return}Sys.Observer.raisePropertyChanged(k,d[0])}};Sys.Observer.setValue=function(b,a,c){Sys.Observer._setValue(b,a,c)};Sys.Observer.raisePropertyChanged=function(b,a){Sys.Observer.raiseEvent(b,"propertyChanged",new Sys.PropertyChangedEventArgs(a))};Sys.Observer.addCollectionChanged=function(b,a){Sys.Observer._addEventHandler(b,"collectionChanged",a)};Sys.Observer.removeCollectionChanged=function(b,a){Sys.Observer._removeEventHandler(b,"collectionChanged",a)};Sys.Observer._collectionChange=function(d,c){var a=Sys.Observer._getContext(d);if(a&&a.updating){a.dirty=true;var b=a.changes;if(!b)a.changes=b=[c];else b.push(c)}else{Sys.Observer.raiseCollectionChanged(d,[c]);Sys.Observer.raisePropertyChanged(d,"length")}};Sys.Observer.add=function(a,b){var c=new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.add,[b],a.length);Array.add(a,b);Sys.Observer._collectionChange(a,c)};Sys.Observer.addRange=function(a,b){var c=new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.add,b,a.length);Array.addRange(a,b);Sys.Observer._collectionChange(a,c)};Sys.Observer.clear=function(a){var b=Array.clone(a);Array.clear(a);Sys.Observer._collectionChange(a,new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.reset,null,-1,b,0))};Sys.Observer.insert=function(a,b,c){Array.insert(a,b,c);Sys.Observer._collectionChange(a,new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.add,[c],b))};Sys.Observer.remove=function(a,b){var c=Array.indexOf(a,b);if(c!==-1){Array.remove(a,b);Sys.Observer._collectionChange(a,new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.remove,null,-1,[b],c));return true}return false};Sys.Observer.removeAt=function(b,a){if(a>-1&&a<b.length){var c=b[a];Array.removeAt(b,a);Sys.Observer._collectionChange(b,new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.remove,null,-1,[c],a))}};Sys.Observer.raiseCollectionChanged=function(b,a){Sys.Observer.raiseEvent(b,"collectionChanged",new Sys.NotifyCollectionChangedEventArgs(a))};Sys.Observer._observeMethods={add_propertyChanged:function(a){Sys.Observer._addEventHandler(this,"propertyChanged",a)},remove_propertyChanged:function(a){Sys.Observer._removeEventHandler(this,"propertyChanged",a)},addEventHandler:function(a,b){Sys.Observer._addEventHandler(this,a,b)},removeEventHandler:function(a,b){Sys.Observer._removeEventHandler(this,a,b)},get_isUpdating:function(){return Sys.Observer.isUpdating(this)},beginUpdate:function(){Sys.Observer.beginUpdate(this)},endUpdate:function(){Sys.Observer.endUpdate(this)},setValue:function(b,a){Sys.Observer._setValue(this,b,a)},raiseEvent:function(b,a){Sys.Observer.raiseEvent(this,b,a)},raisePropertyChanged:function(a){Sys.Observer.raiseEvent(this,"propertyChanged",new Sys.PropertyChangedEventArgs(a))}};Sys.Observer._arrayMethods={add_collectionChanged:function(a){Sys.Observer._addEventHandler(this,"collectionChanged",a)},remove_collectionChanged:function(a){Sys.Observer._removeEventHandler(this,"collectionChanged",a)},add:function(a){Sys.Observer.add(this,a)},addRange:function(a){Sys.Observer.addRange(this,a)},clear:function(){Sys.Observer.clear(this)},insert:function(a,b){Sys.Observer.insert(this,a,b)},remove:function(a){return Sys.Observer.remove(this,a)},removeAt:function(a){Sys.Observer.removeAt(this,a)},raiseCollectionChanged:function(a){Sys.Observer.raiseEvent(this,"collectionChanged",new Sys.NotifyCollectionChangedEventArgs(a))}};Sys.Observer._getContext=function(b,c){var a=b._observerContext;if(a)return a();if(c)return (b._observerContext=Sys.Observer._createContext())();return null};Sys.Observer._createContext=function(){var a={events:new Sys.EventHandlerList};return function(){return a}};Date._appendPreOrPostMatch=function(e,b){var d=0,a=false;for(var c=0,g=e.length;c<g;c++){var f=e.charAt(c);switch(f){case "'":if(a)b.append("'");else d++;a=false;break;case "\\":if(a)b.append("\\");a=!a;break;default:b.append(f);a=false}}return d};Date._expandFormat=function(a,b){if(!b)b="F";var c=b.length;if(c===1)switch(b){case "d":return a.ShortDatePattern;case "D":return a.LongDatePattern;case "t":return a.ShortTimePattern;case "T":return a.LongTimePattern;case "f":return a.LongDatePattern+" "+a.ShortTimePattern;case "F":return a.FullDateTimePattern;case "M":case "m":return a.MonthDayPattern;case "s":return a.SortableDateTimePattern;case "Y":case "y":return a.YearMonthPattern;default:throw Error.format(Sys.Res.formatInvalidString)}else if(c===2&&b.charAt(0)==="%")b=b.charAt(1);return b};Date._expandYear=function(c,a){var d=new Date,e=Date._getEra(d);if(a<100){var b=Date._getEraYear(d,c,e);a+=b-b%100;if(a>c.Calendar.TwoDigitYearMax)a-=100}return a};Date._getEra=function(e,c){if(!c)return 0;var b,d=e.getTime();for(var a=0,f=c.length;a<f;a+=4){b=c[a+2];if(b===null||d>=b)return a}return 0};Date._getEraYear=function(d,b,e,c){var a=d.getFullYear();if(!c&&b.eras)a-=b.eras[e+3];return a};Date._getParseRegExp=function(b,e){if(!b._parseRegExp)b._parseRegExp={};else if(b._parseRegExp[e])return b._parseRegExp[e];var c=Date._expandFormat(b,e);c=c.replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");var a=new Sys.StringBuilder("^"),j=[],f=0,i=0,h=Date._getTokenRegExp(),d;while((d=h.exec(c))!==null){var l=c.slice(f,d.index);f=h.lastIndex;i+=Date._appendPreOrPostMatch(l,a);if(i%2===1){a.append(d[0]);continue}switch(d[0]){case "dddd":case "ddd":case "MMMM":case "MMM":case "gg":case "g":a.append("(\\D+)");break;case "tt":case "t":a.append("(\\D*)");break;case "yyyy":a.append("(\\d{4})");break;case "fff":a.append("(\\d{3})");break;case "ff":a.append("(\\d{2})");break;case "f":a.append("(\\d)");break;case "dd":case "d":case "MM":case "M":case "yy":case "y":case "HH":case "H":case "hh":case "h":case "mm":case "m":case "ss":case "s":a.append("(\\d\\d?)");break;case "zzz":a.append("([+-]?\\d\\d?:\\d{2})");break;case "zz":case "z":a.append("([+-]?\\d\\d?)");break;case "/":a.append("(\\"+b.DateSeparator+")")}Array.add(j,d[0])}Date._appendPreOrPostMatch(c.slice(f),a);a.append("$");var k=a.toString().replace(/\s+/g,"\\s+"),g={"regExp":k,"groups":j};b._parseRegExp[e]=g;return g};Date._getTokenRegExp=function(){return /\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g};Date.parseLocale=function(a){return Date._parse(a,Sys.CultureInfo.CurrentCulture,arguments)};Date.parseInvariant=function(a){return Date._parse(a,Sys.CultureInfo.InvariantCulture,arguments)};Date._parse=function(h,d,i){var a,c,b,f,e,g=false;for(a=1,c=i.length;a<c;a++){f=i[a];if(f){g=true;b=Date._parseExact(h,f,d);if(b)return b}}if(!g){e=d._getDateTimeFormats();for(a=0,c=e.length;a<c;a++){b=Date._parseExact(h,e[a],d);if(b)return b}}return null};Date._parseExact=function(w,D,k){w=w.trim();var g=k.dateTimeFormat,A=Date._getParseRegExp(g,D),C=(new RegExp(A.regExp)).exec(w);if(C===null)return null;var B=A.groups,x=null,e=null,c=null,j=null,i=null,d=0,h,p=0,q=0,f=0,l=null,v=false;for(var s=0,E=B.length;s<E;s++){var a=C[s+1];if(a)switch(B[s]){case "dd":case "d":j=parseInt(a,10);if(j<1||j>31)return null;break;case "MMMM":c=k._getMonthIndex(a);if(c<0||c>11)return null;break;case "MMM":c=k._getAbbrMonthIndex(a);if(c<0||c>11)return null;break;case "M":case "MM":c=parseInt(a,10)-1;if(c<0||c>11)return null;break;case "y":case "yy":e=Date._expandYear(g,parseInt(a,10));if(e<0||e>9999)return null;break;case "yyyy":e=parseInt(a,10);if(e<0||e>9999)return null;break;case "h":case "hh":d=parseInt(a,10);if(d===12)d=0;if(d<0||d>11)return null;break;case "H":case "HH":d=parseInt(a,10);if(d<0||d>23)return null;break;case "m":case "mm":p=parseInt(a,10);if(p<0||p>59)return null;break;case "s":case "ss":q=parseInt(a,10);if(q<0||q>59)return null;break;case "tt":case "t":var z=a.toUpperCase();v=z===g.PMDesignator.toUpperCase();if(!v&&z!==g.AMDesignator.toUpperCase())return null;break;case "f":f=parseInt(a,10)*100;if(f<0||f>999)return null;break;case "ff":f=parseInt(a,10)*10;if(f<0||f>999)return null;break;case "fff":f=parseInt(a,10);if(f<0||f>999)return null;break;case "dddd":i=k._getDayIndex(a);if(i<0||i>6)return null;break;case "ddd":i=k._getAbbrDayIndex(a);if(i<0||i>6)return null;break;case "zzz":var u=a.split(/:/);if(u.length!==2)return null;h=parseInt(u[0],10);if(h<-12||h>13)return null;var m=parseInt(u[1],10);if(m<0||m>59)return null;l=h*60+(a.startsWith("-")?-m:m);break;case "z":case "zz":h=parseInt(a,10);if(h<-12||h>13)return null;l=h*60;break;case "g":case "gg":var o=a;if(!o||!g.eras)return null;o=o.toLowerCase().trim();for(var r=0,F=g.eras.length;r<F;r+=4)if(o===g.eras[r+1].toLowerCase()){x=r;break}if(x===null)return null}}var b=new Date,t,n=g.Calendar.convert;if(n)t=n.fromGregorian(b)[0];else t=b.getFullYear();if(e===null)e=t;else if(g.eras)e+=g.eras[(x||0)+3];if(c===null)c=0;if(j===null)j=1;if(n){b=n.toGregorian(e,c,j);if(b===null)return null}else{b.setFullYear(e,c,j);if(b.getDate()!==j)return null;if(i!==null&&b.getDay()!==i)return null}if(v&&d<12)d+=12;b.setHours(d,p,q,f);if(l!==null){var y=b.getMinutes()-(l+b.getTimezoneOffset());b.setHours(b.getHours()+parseInt(y/60,10),y%60)}return b};Date.prototype.format=function(a){return this._toFormattedString(a,Sys.CultureInfo.InvariantCulture)};Date.prototype.localeFormat=function(a){return this._toFormattedString(a,Sys.CultureInfo.CurrentCulture)};Date.prototype._toFormattedString=function(e,j){var b=j.dateTimeFormat,n=b.Calendar.convert;if(!e||!e.length||e==="i")if(j&&j.name.length)if(n)return this._toFormattedString(b.FullDateTimePattern,j);else{var r=new Date(this.getTime()),x=Date._getEra(this,b.eras);r.setFullYear(Date._getEraYear(this,b,x));return r.toLocaleString()}else return this.toString();var l=b.eras,k=e==="s";e=Date._expandFormat(b,e);var a=new Sys.StringBuilder,c;function d(a){if(a<10)return "0"+a;return a.toString()}function m(a){if(a<10)return "00"+a;if(a<100)return "0"+a;return a.toString()}function v(a){if(a<10)return "000"+a;else if(a<100)return "00"+a;else if(a<1000)return "0"+a;return a.toString()}var h,p,t=/([^d]|^)(d|dd)([^d]|$)/g;function s(){if(h||p)return h;h=t.test(e);p=true;return h}var q=0,o=Date._getTokenRegExp(),f;if(!k&&n)f=n.fromGregorian(this);for(;true;){var w=o.lastIndex,i=o.exec(e),u=e.slice(w,i?i.index:e.length);q+=Date._appendPreOrPostMatch(u,a);if(!i)break;if(q%2===1){a.append(i[0]);continue}function g(a,b){if(f)return f[b];switch(b){case 0:return a.getFullYear();case 1:return a.getMonth();case 2:return a.getDate()}}switch(i[0]){case "dddd":a.append(b.DayNames[this.getDay()]);break;case "ddd":a.append(b.AbbreviatedDayNames[this.getDay()]);break;case "dd":h=true;a.append(d(g(this,2)));break;case "d":h=true;a.append(g(this,2));break;case "MMMM":a.append(b.MonthGenitiveNames&&s()?b.MonthGenitiveNames[g(this,1)]:b.MonthNames[g(this,1)]);break;case "MMM":a.append(b.AbbreviatedMonthGenitiveNames&&s()?b.AbbreviatedMonthGenitiveNames[g(this,1)]:b.AbbreviatedMonthNames[g(this,1)]);break;case "MM":a.append(d(g(this,1)+1));break;case "M":a.append(g(this,1)+1);break;case "yyyy":a.append(v(f?f[0]:Date._getEraYear(this,b,Date._getEra(this,l),k)));break;case "yy":a.append(d((f?f[0]:Date._getEraYear(this,b,Date._getEra(this,l),k))%100));break;case "y":a.append((f?f[0]:Date._getEraYear(this,b,Date._getEra(this,l),k))%100);break;case "hh":c=this.getHours()%12;if(c===0)c=12;a.append(d(c));break;case "h":c=this.getHours()%12;if(c===0)c=12;a.append(c);break;case "HH":a.append(d(this.getHours()));break;case "H":a.append(this.getHours());break;case "mm":a.append(d(this.getMinutes()));break;case "m":a.append(this.getMinutes());break;case "ss":a.append(d(this.getSeconds()));break;case "s":a.append(this.getSeconds());break;case "tt":a.append(this.getHours()<12?b.AMDesignator:b.PMDesignator);break;case "t":a.append((this.getHours()<12?b.AMDesignator:b.PMDesignator).charAt(0));break;case "f":a.append(m(this.getMilliseconds()).charAt(0));break;case "ff":a.append(m(this.getMilliseconds()).substr(0,2));break;case "fff":a.append(m(this.getMilliseconds()));break;case "z":c=this.getTimezoneOffset()/60;a.append((c<=0?"+":"-")+Math.floor(Math.abs(c)));break;case "zz":c=this.getTimezoneOffset()/60;a.append((c<=0?"+":"-")+d(Math.floor(Math.abs(c))));break;case "zzz":c=this.getTimezoneOffset()/60;a.append((c<=0?"+":"-")+d(Math.floor(Math.abs(c)))+":"+d(Math.abs(this.getTimezoneOffset()%60)));break;case "g":case "gg":if(b.eras)a.append(b.eras[Date._getEra(this,l)+1]);break;case "/":a.append(b.DateSeparator)}}return a.toString()};String.localeFormat=function(){return String._toFormattedString(true,arguments)};Number.parseLocale=function(a){return Number._parse(a,Sys.CultureInfo.CurrentCulture)};Number.parseInvariant=function(a){return Number._parse(a,Sys.CultureInfo.InvariantCulture)};Number._parse=function(b,o){b=b.trim();if(b.match(/^[+-]?infinity$/i))return parseFloat(b);if(b.match(/^0x[a-f0-9]+$/i))return parseInt(b);var a=o.numberFormat,g=Number._parseNumberNegativePattern(b,a,a.NumberNegativePattern),h=g[0],e=g[1];if(h===""&&a.NumberNegativePattern!==1){g=Number._parseNumberNegativePattern(b,a,1);h=g[0];e=g[1]}if(h==="")h="+";var j,d,f=e.indexOf("e");if(f<0)f=e.indexOf("E");if(f<0){d=e;j=null}else{d=e.substr(0,f);j=e.substr(f+1)}var c,k,m=d.indexOf(a.NumberDecimalSeparator);if(m<0){c=d;k=null}else{c=d.substr(0,m);k=d.substr(m+a.NumberDecimalSeparator.length)}c=c.split(a.NumberGroupSeparator).join("");var n=a.NumberGroupSeparator.replace(/\u00A0/g," ");if(a.NumberGroupSeparator!==n)c=c.split(n).join("");var l=h+c;if(k!==null)l+="."+k;if(j!==null){var i=Number._parseNumberNegativePattern(j,a,1);if(i[0]==="")i[0]="+";l+="e"+i[0]+i[1]}if(l.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/))return parseFloat(l);return Number.NaN};Number._parseNumberNegativePattern=function(a,d,e){var b=d.NegativeSign,c=d.PositiveSign;switch(e){case 4:b=" "+b;c=" "+c;case 3:if(a.endsWith(b))return ["-",a.substr(0,a.length-b.length)];else if(a.endsWith(c))return ["+",a.substr(0,a.length-c.length)];break;case 2:b+=" ";c+=" ";case 1:if(a.startsWith(b))return ["-",a.substr(b.length)];else if(a.startsWith(c))return ["+",a.substr(c.length)];break;case 0:if(a.startsWith("(")&&a.endsWith(")"))return ["-",a.substr(1,a.length-2)]}return ["",a]};Number.prototype.format=function(a){return this._toFormattedString(a,Sys.CultureInfo.InvariantCulture)};Number.prototype.localeFormat=function(a){return this._toFormattedString(a,Sys.CultureInfo.CurrentCulture)};Number.prototype._toFormattedString=function(e,j){if(!e||e.length===0||e==="i")if(j&&j.name.length>0)return this.toLocaleString();else return this.toString();var o=["n %","n%","%n"],n=["-n %","-n%","-%n"],p=["(n)","-n","- n","n-","n -"],m=["$n","n$","$ n","n $"],l=["($n)","-$n","$-n","$n-","(n$)","-n$","n-$","n$-","-n $","-$ n","n $-","$ n-","$ -n","n- $","($ n)","(n $)"];function g(a,c,d){for(var b=a.length;b<c;b++)a=d?"0"+a:a+"0";return a}function i(j,i,l,n,p){var h=l[0],k=1,o=Math.pow(10,i),m=Math.round(j*o)/o;if(!isFinite(m))m=j;j=m;var b=j.toString(),a="",c,e=b.split(/e/i);b=e[0];c=e.length>1?parseInt(e[1]):0;e=b.split(".");b=e[0];a=e.length>1?e[1]:"";var q;if(c>0){a=g(a,c,false);b+=a.slice(0,c);a=a.substr(c)}else if(c<0){c=-c;b=g(b,c+1,true);a=b.slice(-c,b.length)+a;b=b.slice(0,-c)}if(i>0){if(a.length>i)a=a.slice(0,i);else a=g(a,i,false);a=p+a}else a="";var d=b.length-1,f="";while(d>=0){if(h===0||h>d)if(f.length>0)return b.slice(0,d+1)+n+f+a;else return b.slice(0,d+1)+a;if(f.length>0)f=b.slice(d-h+1,d+1)+n+f;else f=b.slice(d-h+1,d+1);d-=h;if(k<l.length){h=l[k];k++}}return b.slice(0,d+1)+n+f+a}var a=j.numberFormat,d=Math.abs(this);if(!e)e="D";var b=-1;if(e.length>1)b=parseInt(e.slice(1),10);var c;switch(e.charAt(0)){case "d":case "D":c="n";if(b!==-1)d=g(""+d,b,true);if(this<0)d=-d;break;case "c":case "C":if(this<0)c=l[a.CurrencyNegativePattern];else c=m[a.CurrencyPositivePattern];if(b===-1)b=a.CurrencyDecimalDigits;d=i(Math.abs(this),b,a.CurrencyGroupSizes,a.CurrencyGroupSeparator,a.CurrencyDecimalSeparator);break;case "n":case "N":if(this<0)c=p[a.NumberNegativePattern];else c="n";if(b===-1)b=a.NumberDecimalDigits;d=i(Math.abs(this),b,a.NumberGroupSizes,a.NumberGroupSeparator,a.NumberDecimalSeparator);break;case "p":case "P":if(this<0)c=n[a.PercentNegativePattern];else c=o[a.PercentPositivePattern];if(b===-1)b=a.PercentDecimalDigits;d=i(Math.abs(this)*100,b,a.PercentGroupSizes,a.PercentGroupSeparator,a.PercentDecimalSeparator);break;default:throw Error.format(Sys.Res.formatBadFormatSpecifier)}var k=/n|\$|-|%/g,f="";for(;true;){var q=k.lastIndex,h=k.exec(c);f+=c.slice(q,h?h.index:c.length);if(!h)break;switch(h[0]){case "n":f+=d;break;case "$":f+=a.CurrencySymbol;break;case "-":if(/[1-9]/.test(d))f+=a.NegativeSign;break;case "%":f+=a.PercentSymbol}}return f};Sys.CultureInfo=function(c,b,a){this.name=c;this.numberFormat=b;this.dateTimeFormat=a};Sys.CultureInfo.prototype={_getDateTimeFormats:function(){if(!this._dateTimeFormats){var a=this.dateTimeFormat;this._dateTimeFormats=[a.MonthDayPattern,a.YearMonthPattern,a.ShortDatePattern,a.ShortTimePattern,a.LongDatePattern,a.LongTimePattern,a.FullDateTimePattern,a.RFC1123Pattern,a.SortableDateTimePattern,a.UniversalSortableDateTimePattern]}return this._dateTimeFormats},_getIndex:function(c,d,e){var b=this._toUpper(c),a=Array.indexOf(d,b);if(a===-1)a=Array.indexOf(e,b);return a},_getMonthIndex:function(a){if(!this._upperMonths){this._upperMonths=this._toUpperArray(this.dateTimeFormat.MonthNames);this._upperMonthsGenitive=this._toUpperArray(this.dateTimeFormat.MonthGenitiveNames)}return this._getIndex(a,this._upperMonths,this._upperMonthsGenitive)},_getAbbrMonthIndex:function(a){if(!this._upperAbbrMonths){this._upperAbbrMonths=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames);this._upperAbbrMonthsGenitive=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthGenitiveNames)}return this._getIndex(a,this._upperAbbrMonths,this._upperAbbrMonthsGenitive)},_getDayIndex:function(a){if(!this._upperDays)this._upperDays=this._toUpperArray(this.dateTimeFormat.DayNames);return Array.indexOf(this._upperDays,this._toUpper(a))},_getAbbrDayIndex:function(a){if(!this._upperAbbrDays)this._upperAbbrDays=this._toUpperArray(this.dateTimeFormat.AbbreviatedDayNames);return Array.indexOf(this._upperAbbrDays,this._toUpper(a))},_toUpperArray:function(c){var b=[];for(var a=0,d=c.length;a<d;a++)b[a]=this._toUpper(c[a]);return b},_toUpper:function(a){return a.split("\u00a0").join(" ").toUpperCase()}};Sys.CultureInfo.registerClass("Sys.CultureInfo");Sys.CultureInfo._parse=function(a){var b=a.dateTimeFormat;if(b&&!b.eras)b.eras=a.eras;return new Sys.CultureInfo(a.name,a.numberFormat,b)};Sys.CultureInfo.InvariantCulture=Sys.CultureInfo._parse({"name":"","numberFormat":{"CurrencyDecimalDigits":2,"CurrencyDecimalSeparator":".","IsReadOnly":true,"CurrencyGroupSizes":[3],"NumberGroupSizes":[3],"PercentGroupSizes":[3],"CurrencyGroupSeparator":",","CurrencySymbol":"\u00a4","NaNSymbol":"NaN","CurrencyNegativePattern":0,"NumberNegativePattern":1,"PercentPositivePattern":0,"PercentNegativePattern":0,"NegativeInfinitySymbol":"-Infinity","NegativeSign":"-","NumberDecimalDigits":2,"NumberDecimalSeparator":".","NumberGroupSeparator":",","CurrencyPositivePattern":0,"PositiveInfinitySymbol":"Infinity","PositiveSign":"+","PercentDecimalDigits":2,"PercentDecimalSeparator":".","PercentGroupSeparator":",","PercentSymbol":"%","PerMilleSymbol":"\u2030","NativeDigits":["0","1","2","3","4","5","6","7","8","9"],"DigitSubstitution":1},"dateTimeFormat":{"AMDesignator":"AM","Calendar":{"MinSupportedDateTime":"@-62135568000000@","MaxSupportedDateTime":"@253402300799999@","AlgorithmType":1,"CalendarType":1,"Eras":[1],"TwoDigitYearMax":2029,"IsReadOnly":true},"DateSeparator":"/","FirstDayOfWeek":0,"CalendarWeekRule":0,"FullDateTimePattern":"dddd, dd MMMM yyyy HH:mm:ss","LongDatePattern":"dddd, dd MMMM yyyy","LongTimePattern":"HH:mm:ss","MonthDayPattern":"MMMM dd","PMDesignator":"PM","RFC1123Pattern":"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'","ShortDatePattern":"MM/dd/yyyy","ShortTimePattern":"HH:mm","SortableDateTimePattern":"yyyy'-'MM'-'dd'T'HH':'mm':'ss","TimeSeparator":":","UniversalSortableDateTimePattern":"yyyy'-'MM'-'dd HH':'mm':'ss'Z'","YearMonthPattern":"yyyy MMMM","AbbreviatedDayNames":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"ShortestDayNames":["Su","Mo","Tu","We","Th","Fr","Sa"],"DayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"AbbreviatedMonthNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"IsReadOnly":true,"NativeCalendarName":"Gregorian Calendar","AbbreviatedMonthGenitiveNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthGenitiveNames":["January","February","March","April","May","June","July","August","September","October","November","December",""]},"eras":[1,"A.D.",null,0]});if(typeof __cultureInfo==="object"){Sys.CultureInfo.CurrentCulture=Sys.CultureInfo._parse(__cultureInfo);delete __cultureInfo}else Sys.CultureInfo.CurrentCulture=Sys.CultureInfo._parse({"name":"en-US","numberFormat":{"CurrencyDecimalDigits":2,"CurrencyDecimalSeparator":".","IsReadOnly":false,"CurrencyGroupSizes":[3],"NumberGroupSizes":[3],"PercentGroupSizes":[3],"CurrencyGroupSeparator":",","CurrencySymbol":"$","NaNSymbol":"NaN","CurrencyNegativePattern":0,"NumberNegativePattern":1,"PercentPositivePattern":0,"PercentNegativePattern":0,"NegativeInfinitySymbol":"-Infinity","NegativeSign":"-","NumberDecimalDigits":2,"NumberDecimalSeparator":".","NumberGroupSeparator":",","CurrencyPositivePattern":0,"PositiveInfinitySymbol":"Infinity","PositiveSign":"+","PercentDecimalDigits":2,"PercentDecimalSeparator":".","PercentGroupSeparator":",","PercentSymbol":"%","PerMilleSymbol":"\u2030","NativeDigits":["0","1","2","3","4","5","6","7","8","9"],"DigitSubstitution":1},"dateTimeFormat":{"AMDesignator":"AM","Calendar":{"MinSupportedDateTime":"@-62135568000000@","MaxSupportedDateTime":"@253402300799999@","AlgorithmType":1,"CalendarType":1,"Eras":[1],"TwoDigitYearMax":2029,"IsReadOnly":false},"DateSeparator":"/","FirstDayOfWeek":0,"CalendarWeekRule":0,"FullDateTimePattern":"dddd, MMMM dd, yyyy h:mm:ss tt","LongDatePattern":"dddd, MMMM dd, yyyy","LongTimePattern":"h:mm:ss tt","MonthDayPattern":"MMMM dd","PMDesignator":"PM","RFC1123Pattern":"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'","ShortDatePattern":"M/d/yyyy","ShortTimePattern":"h:mm tt","SortableDateTimePattern":"yyyy'-'MM'-'dd'T'HH':'mm':'ss","TimeSeparator":":","UniversalSortableDateTimePattern":"yyyy'-'MM'-'dd HH':'mm':'ss'Z'","YearMonthPattern":"MMMM, yyyy","AbbreviatedDayNames":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"ShortestDayNames":["Su","Mo","Tu","We","Th","Fr","Sa"],"DayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"AbbreviatedMonthNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"IsReadOnly":false,"NativeCalendarName":"Gregorian Calendar","AbbreviatedMonthGenitiveNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthGenitiveNames":["January","February","March","April","May","June","July","August","September","October","November","December",""]},"eras":[1,"A.D.",null,0]});Type.registerNamespace("Sys.Serialization");Sys.Serialization.JavaScriptSerializer=function(){};Sys.Serialization.JavaScriptSerializer.registerClass("Sys.Serialization.JavaScriptSerializer");Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs=[];Sys.Serialization.JavaScriptSerializer._charsToEscape=[];Sys.Serialization.JavaScriptSerializer._dateRegEx=new RegExp('(^|[^\\\\])\\"\\\\/Date\\((-?[0-9]+)(?:[a-zA-Z]|(?:\\+|-)[0-9]{4})?\\)\\\\/\\"',"g");Sys.Serialization.JavaScriptSerializer._escapeChars={};Sys.Serialization.JavaScriptSerializer._escapeRegEx=new RegExp('["\\\\\\x00-\\x1F]',"i");Sys.Serialization.JavaScriptSerializer._escapeRegExGlobal=new RegExp('["\\\\\\x00-\\x1F]',"g");Sys.Serialization.JavaScriptSerializer._jsonRegEx=new RegExp("[^,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t]","g");Sys.Serialization.JavaScriptSerializer._jsonStringRegEx=new RegExp('"(\\\\.|[^"\\\\])*"',"g");Sys.Serialization.JavaScriptSerializer._serverTypeFieldName="__type";Sys.Serialization.JavaScriptSerializer._init=function(){var c=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000b","\\f","\\r","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f"];Sys.Serialization.JavaScriptSerializer._charsToEscape[0]="\\";Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs["\\"]=new RegExp("\\\\","g");Sys.Serialization.JavaScriptSerializer._escapeChars["\\"]="\\\\";Sys.Serialization.JavaScriptSerializer._charsToEscape[1]='"';Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs['"']=new RegExp('"',"g");Sys.Serialization.JavaScriptSerializer._escapeChars['"']='\\"';for(var a=0;a<32;a++){var b=String.fromCharCode(a);Sys.Serialization.JavaScriptSerializer._charsToEscape[a+2]=b;Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs[b]=new RegExp(b,"g");Sys.Serialization.JavaScriptSerializer._escapeChars[b]=c[a]}};Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder=function(b,a){a.append(b.toString())};Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder=function(a,b){if(isFinite(a))b.append(String(a));else throw Error.invalidOperation(Sys.Res.cannotSerializeNonFiniteNumbers)};Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder=function(a,c){c.append('"');if(Sys.Serialization.JavaScriptSerializer._escapeRegEx.test(a)){if(Sys.Serialization.JavaScriptSerializer._charsToEscape.length===0)Sys.Serialization.JavaScriptSerializer._init();if(a.length<128)a=a.replace(Sys.Serialization.JavaScriptSerializer._escapeRegExGlobal,function(a){return Sys.Serialization.JavaScriptSerializer._escapeChars[a]});else for(var d=0;d<34;d++){var b=Sys.Serialization.JavaScriptSerializer._charsToEscape[d];if(a.indexOf(b)!==-1)if(Sys.Browser.agent===Sys.Browser.Opera||Sys.Browser.agent===Sys.Browser.FireFox)a=a.split(b).join(Sys.Serialization.JavaScriptSerializer._escapeChars[b]);else a=a.replace(Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs[b],Sys.Serialization.JavaScriptSerializer._escapeChars[b])}}c.append(a);c.append('"')};Sys.Serialization.JavaScriptSerializer._serializeWithBuilder=function(b,a,i,g){var c;switch(typeof b){case "object":if(b)if(Number.isInstanceOfType(b))Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder(b,a);else if(Boolean.isInstanceOfType(b))Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder(b,a);else if(String.isInstanceOfType(b))Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder(b,a);else if(Array.isInstanceOfType(b)){a.append("[");for(c=0;c<b.length;++c){if(c>0)a.append(",");Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(b[c],a,false,g)}a.append("]")}else{if(Date.isInstanceOfType(b)){a.append('"\\/Date(');a.append(b.getTime());a.append(')\\/"');break}var d=[],f=0;for(var e in b){if(e.startsWith("$"))continue;if(e===Sys.Serialization.JavaScriptSerializer._serverTypeFieldName&&f!==0){d[f++]=d[0];d[0]=e}else d[f++]=e}if(i)d.sort();a.append("{");var j=false;for(c=0;c<f;c++){var h=b[d[c]];if(typeof h!=="undefined"&&typeof h!=="function"){if(j)a.append(",");else j=true;Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(d[c],a,i,g);a.append(":");Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(h,a,i,g)}}a.append("}")}else a.append("null");break;case "number":Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder(b,a);break;case "string":Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder(b,a);break;case "boolean":Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder(b,a);break;default:a.append("null")}};Sys.Serialization.JavaScriptSerializer.serialize=function(b){var a=new Sys.StringBuilder;Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(b,a,false);return a.toString()};Sys.Serialization.JavaScriptSerializer.deserialize=function(data,secure){if(data.length===0)throw Error.argument("data",Sys.Res.cannotDeserializeEmptyString);try{var exp=data.replace(Sys.Serialization.JavaScriptSerializer._dateRegEx,"$1new Date($2)");if(secure&&Sys.Serialization.JavaScriptSerializer._jsonRegEx.test(exp.replace(Sys.Serialization.JavaScriptSerializer._jsonStringRegEx,"")))throw null;return eval("("+exp+")")}catch(a){throw Error.argument("data",Sys.Res.cannotDeserializeInvalidJson)}};Type.registerNamespace("Sys.UI");Sys.EventHandlerList=function(){this._list={}};Sys.EventHandlerList.prototype={_addHandler:function(b,a){Array.add(this._getEvent(b,true),a)},addHandler:function(b,a){this._addHandler(b,a)},_removeHandler:function(c,b){var a=this._getEvent(c);if(!a)return;Array.remove(a,b)},removeHandler:function(b,a){this._removeHandler(b,a)},getHandler:function(b){var a=this._getEvent(b);if(!a||a.length===0)return null;a=Array.clone(a);return function(c,d){for(var b=0,e=a.length;b<e;b++)a[b](c,d)}},_getEvent:function(a,b){if(!this._list[a]){if(!b)return null;this._list[a]=[]}return this._list[a]}};Sys.EventHandlerList.registerClass("Sys.EventHandlerList");Sys.CommandEventArgs=function(c,a,b){Sys.CommandEventArgs.initializeBase(this);this._commandName=c;this._commandArgument=a;this._commandSource=b};Sys.CommandEventArgs.prototype={_commandName:null,_commandArgument:null,_commandSource:null,get_commandName:function(){return this._commandName},get_commandArgument:function(){return this._commandArgument},get_commandSource:function(){return this._commandSource}};Sys.CommandEventArgs.registerClass("Sys.CommandEventArgs",Sys.CancelEventArgs);Sys.INotifyPropertyChange=function(){};Sys.INotifyPropertyChange.prototype={};Sys.INotifyPropertyChange.registerInterface("Sys.INotifyPropertyChange");Sys.PropertyChangedEventArgs=function(a){Sys.PropertyChangedEventArgs.initializeBase(this);this._propertyName=a};Sys.PropertyChangedEventArgs.prototype={get_propertyName:function(){return this._propertyName}};Sys.PropertyChangedEventArgs.registerClass("Sys.PropertyChangedEventArgs",Sys.EventArgs);Sys.INotifyDisposing=function(){};Sys.INotifyDisposing.prototype={};Sys.INotifyDisposing.registerInterface("Sys.INotifyDisposing");Sys.Component=function(){if(Sys.Application)Sys.Application.registerDisposableObject(this)};Sys.Component.prototype={_id:null,_initialized:false,_updating:false,get_events:function(){if(!this._events)this._events=new Sys.EventHandlerList;return this._events},get_id:function(){return this._id},set_id:function(a){this._id=a},get_isInitialized:function(){return this._initialized},get_isUpdating:function(){return this._updating},add_disposing:function(a){this.get_events().addHandler("disposing",a)},remove_disposing:function(a){this.get_events().removeHandler("disposing",a)},add_propertyChanged:function(a){this.get_events().addHandler("propertyChanged",a)},remove_propertyChanged:function(a){this.get_events().removeHandler("propertyChanged",a)},beginUpdate:function(){this._updating=true},dispose:function(){if(this._events){var a=this._events.getHandler("disposing");if(a)a(this,Sys.EventArgs.Empty)}delete this._events;Sys.Application.unregisterDisposableObject(this);Sys.Application.removeComponent(this)},endUpdate:function(){this._updating=false;if(!this._initialized)this.initialize();this.updated()},initialize:function(){this._initialized=true},raisePropertyChanged:function(b){if(!this._events)return;var a=this._events.getHandler("propertyChanged");if(a)a(this,new Sys.PropertyChangedEventArgs(b))},updated:function(){}};Sys.Component.registerClass("Sys.Component",null,Sys.IDisposable,Sys.INotifyPropertyChange,Sys.INotifyDisposing);function Sys$Component$_setProperties(a,i){var d,j=Object.getType(a),e=j===Object||j===Sys.UI.DomElement,h=Sys.Component.isInstanceOfType(a)&&!a.get_isUpdating();if(h)a.beginUpdate();for(var c in i){var b=i[c],f=e?null:a["get_"+c];if(e||typeof f!=="function"){var k=a[c];if(!b||typeof b!=="object"||e&&!k)a[c]=b;else Sys$Component$_setProperties(k,b)}else{var l=a["set_"+c];if(typeof l==="function")l.apply(a,[b]);else if(b instanceof Array){d=f.apply(a);for(var g=0,m=d.length,n=b.length;g<n;g++,m++)d[m]=b[g]}else if(typeof b==="object"&&Object.getType(b)===Object){d=f.apply(a);Sys$Component$_setProperties(d,b)}}}if(h)a.endUpdate()}function Sys$Component$_setReferences(c,b){for(var a in b){var e=c["set_"+a],d=$find(b[a]);e.apply(c,[d])}}var $create=Sys.Component.create=function(h,f,d,c,g){var a=g?new h(g):new h,b=Sys.Application,i=b.get_isCreatingComponents();a.beginUpdate();if(f)Sys$Component$_setProperties(a,f);if(d)for(var e in d)a["add_"+e](d[e]);if(a.get_id())b.addComponent(a);if(i){b._createdComponents[b._createdComponents.length]=a;if(c)b._addComponentToSecondPass(a,c);else a.endUpdate()}else{if(c)Sys$Component$_setReferences(a,c);a.endUpdate()}return a};Sys.UI.MouseButton=function(){throw Error.notImplemented()};Sys.UI.MouseButton.prototype={leftButton:0,middleButton:1,rightButton:2};Sys.UI.MouseButton.registerEnum("Sys.UI.MouseButton");Sys.UI.Key=function(){throw Error.notImplemented()};Sys.UI.Key.prototype={backspace:8,tab:9,enter:13,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,del:127};Sys.UI.Key.registerEnum("Sys.UI.Key");Sys.UI.Point=function(a,b){this.x=a;this.y=b};Sys.UI.Point.registerClass("Sys.UI.Point");Sys.UI.Bounds=function(c,d,b,a){this.x=c;this.y=d;this.height=a;this.width=b};Sys.UI.Bounds.registerClass("Sys.UI.Bounds");Sys.UI.DomEvent=function(e){var a=e,b=this.type=a.type.toLowerCase();this.rawEvent=a;this.altKey=a.altKey;if(typeof a.button!=="undefined")this.button=typeof a.which!=="undefined"?a.button:a.button===4?Sys.UI.MouseButton.middleButton:a.button===2?Sys.UI.MouseButton.rightButton:Sys.UI.MouseButton.leftButton;if(b==="keypress")this.charCode=a.charCode||a.keyCode;else if(a.keyCode&&a.keyCode===46)this.keyCode=127;else this.keyCode=a.keyCode;this.clientX=a.clientX;this.clientY=a.clientY;this.ctrlKey=a.ctrlKey;this.target=a.target?a.target:a.srcElement;if(!b.startsWith("key"))if(typeof a.offsetX!=="undefined"&&typeof a.offsetY!=="undefined"){this.offsetX=a.offsetX;this.offsetY=a.offsetY}else if(this.target&&this.target.nodeType!==3&&typeof a.clientX==="number"){var c=Sys.UI.DomElement.getLocation(this.target),d=Sys.UI.DomElement._getWindow(this.target);this.offsetX=(d.pageXOffset||0)+a.clientX-c.x;this.offsetY=(d.pageYOffset||0)+a.clientY-c.y}this.screenX=a.screenX;this.screenY=a.screenY;this.shiftKey=a.shiftKey};Sys.UI.DomEvent.prototype={preventDefault:function(){if(this.rawEvent.preventDefault)this.rawEvent.preventDefault();else if(window.event)this.rawEvent.returnValue=false},stopPropagation:function(){if(this.rawEvent.stopPropagation)this.rawEvent.stopPropagation();else if(window.event)this.rawEvent.cancelBubble=true}};Sys.UI.DomEvent.registerClass("Sys.UI.DomEvent");var $addHandler=Sys.UI.DomEvent.addHandler=function(a,d,e,g){if(!a._events)a._events={};var c=a._events[d];if(!c)a._events[d]=c=[];var b;if(a.addEventListener){b=function(b){return e.call(a,new Sys.UI.DomEvent(b))};a.addEventListener(d,b,false)}else if(a.attachEvent){b=function(){var b={};try{b=Sys.UI.DomElement._getWindow(a).event}catch(c){}return e.call(a,new Sys.UI.DomEvent(b))};a.attachEvent("on"+d,b)}c[c.length]={handler:e,browserHandler:b,autoRemove:g};if(g){var f=a.dispose;if(f!==Sys.UI.DomEvent._disposeHandlers){a.dispose=Sys.UI.DomEvent._disposeHandlers;if(typeof f!=="undefined")a._chainDispose=f}}},$addHandlers=Sys.UI.DomEvent.addHandlers=function(f,d,c,e){for(var b in d){var a=d[b];if(c)a=Function.createDelegate(c,a);$addHandler(f,b,a,e||false)}},$clearHandlers=Sys.UI.DomEvent.clearHandlers=function(a){Sys.UI.DomEvent._clearHandlers(a,false)};Sys.UI.DomEvent._clearHandlers=function(a,g){if(a._events){var e=a._events;for(var b in e){var d=e[b];for(var c=d.length-1;c>=0;c--){var f=d[c];if(!g||f.autoRemove)$removeHandler(a,b,f.handler)}}a._events=null}};Sys.UI.DomEvent._disposeHandlers=function(){Sys.UI.DomEvent._clearHandlers(this,true);var b=this._chainDispose,a=typeof b;if(a!=="undefined"){this.dispose=b;this._chainDispose=null;if(a==="function")this.dispose()}};var $removeHandler=Sys.UI.DomEvent.removeHandler=function(b,a,c){Sys.UI.DomEvent._removeHandler(b,a,c)};Sys.UI.DomEvent._removeHandler=function(a,e,f){var d=null,c=a._events[e];for(var b=0,g=c.length;b<g;b++)if(c[b].handler===f){d=c[b].browserHandler;break}if(a.removeEventListener)a.removeEventListener(e,d,false);else if(a.detachEvent)a.detachEvent("on"+e,d);c.splice(b,1)};Sys.UI.DomElement=function(){};Sys.UI.DomElement.registerClass("Sys.UI.DomElement");Sys.UI.DomElement.addCssClass=function(a,b){if(!Sys.UI.DomElement.containsCssClass(a,b))if(a.className==="")a.className=b;else a.className+=" "+b};Sys.UI.DomElement.containsCssClass=function(b,a){return Array.contains(b.className.split(" "),a)};Sys.UI.DomElement.getBounds=function(a){var b=Sys.UI.DomElement.getLocation(a);return new Sys.UI.Bounds(b.x,b.y,a.offsetWidth||0,a.offsetHeight||0)};var $get=Sys.UI.DomElement.getElementById=function(f,e){if(!e)return document.getElementById(f);if(e.getElementById)return e.getElementById(f);var c=[],d=e.childNodes;for(var b=0;b<d.length;b++){var a=d[b];if(a.nodeType==1)c[c.length]=a}while(c.length){a=c.shift();if(a.id==f)return a;d=a.childNodes;for(b=0;b<d.length;b++){a=d[b];if(a.nodeType==1)c[c.length]=a}}return null};if(document.documentElement.getBoundingClientRect)Sys.UI.DomElement.getLocation=function(b){if(b.self||b.nodeType===9||b===document.documentElement||b.parentNode===b.ownerDocument.documentElement)return new Sys.UI.Point(0,0);var f=b.getBoundingClientRect();if(!f)return new Sys.UI.Point(0,0);var k,e=b.ownerDocument.documentElement,c=Math.round(f.left)+e.scrollLeft,d=Math.round(f.top)+e.scrollTop;if(Sys.Browser.agent===Sys.Browser.InternetExplorer){try{var g=b.ownerDocument.parentWindow.frameElement||null;if(g){var h=g.frameBorder==="0"||g.frameBorder==="no"?2:0;c+=h;d+=h}}catch(l){}if(Sys.Browser.version===7&&!document.documentMode){var i=document.body,j=i.getBoundingClientRect(),a=(j.right-j.left)/i.clientWidth;a=Math.round(a*100);a=(a-a%5)/100;if(!isNaN(a)&&a!==1){c=Math.round(c/a);d=Math.round(d/a)}}if((document.documentMode||0)<8){c-=e.clientLeft;d-=e.clientTop}}return new Sys.UI.Point(c,d)};else if(Sys.Browser.agent===Sys.Browser.Safari)Sys.UI.DomElement.getLocation=function(c){if(c.window&&c.window===c||c.nodeType===9)return new Sys.UI.Point(0,0);var d=0,e=0,a,j=null,g=null,b;for(a=c;a;j=a,(g=b,a=a.offsetParent)){b=Sys.UI.DomElement._getCurrentStyle(a);var f=a.tagName?a.tagName.toUpperCase():null;if((a.offsetLeft||a.offsetTop)&&(f!=="BODY"||(!g||g.position!=="absolute"))){d+=a.offsetLeft;e+=a.offsetTop}if(j&&Sys.Browser.version>=3){d+=parseInt(b.borderLeftWidth);e+=parseInt(b.borderTopWidth)}}b=Sys.UI.DomElement._getCurrentStyle(c);var h=b?b.position:null;if(!h||h!=="absolute")for(a=c.parentNode;a;a=a.parentNode){f=a.tagName?a.tagName.toUpperCase():null;if(f!=="BODY"&&f!=="HTML"&&(a.scrollLeft||a.scrollTop)){d-=a.scrollLeft||0;e-=a.scrollTop||0}b=Sys.UI.DomElement._getCurrentStyle(a);var i=b?b.position:null;if(i&&i==="absolute")break}return new Sys.UI.Point(d,e)};else Sys.UI.DomElement.getLocation=function(d){if(d.window&&d.window===d||d.nodeType===9)return new Sys.UI.Point(0,0);var e=0,f=0,a,i=null,g=null,b=null;for(a=d;a;i=a,(g=b,a=a.offsetParent)){var c=a.tagName?a.tagName.toUpperCase():null;b=Sys.UI.DomElement._getCurrentStyle(a);if((a.offsetLeft||a.offsetTop)&&!(c==="BODY"&&(!g||g.position!=="absolute"))){e+=a.offsetLeft;f+=a.offsetTop}if(i!==null&&b){if(c!=="TABLE"&&c!=="TD"&&c!=="HTML"){e+=parseInt(b.borderLeftWidth)||0;f+=parseInt(b.borderTopWidth)||0}if(c==="TABLE"&&(b.position==="relative"||b.position==="absolute")){e+=parseInt(b.marginLeft)||0;f+=parseInt(b.marginTop)||0}}}b=Sys.UI.DomElement._getCurrentStyle(d);var h=b?b.position:null;if(!h||h!=="absolute")for(a=d.parentNode;a;a=a.parentNode){c=a.tagName?a.tagName.toUpperCase():null;if(c!=="BODY"&&c!=="HTML"&&(a.scrollLeft||a.scrollTop)){e-=a.scrollLeft||0;f-=a.scrollTop||0;b=Sys.UI.DomElement._getCurrentStyle(a);if(b){e+=parseInt(b.borderLeftWidth)||0;f+=parseInt(b.borderTopWidth)||0}}}return new Sys.UI.Point(e,f)};Sys.UI.DomElement.isDomElement=function(a){return Sys._isDomElement(a)};Sys.UI.DomElement.removeCssClass=function(d,c){var a=" "+d.className+" ",b=a.indexOf(" "+c+" ");if(b>=0)d.className=(a.substr(0,b)+" "+a.substring(b+c.length+1,a.length)).trim()};Sys.UI.DomElement.resolveElement=function(b,c){var a=b;if(!a)return null;if(typeof a==="string")a=Sys.UI.DomElement.getElementById(a,c);return a};Sys.UI.DomElement.raiseBubbleEvent=function(c,d){var b=c;while(b){var a=b.control;if(a&&a.onBubbleEvent&&a.raiseBubbleEvent){Sys.UI.DomElement._raiseBubbleEventFromControl(a,c,d);return}b=b.parentNode}};Sys.UI.DomElement._raiseBubbleEventFromControl=function(a,b,c){if(!a.onBubbleEvent(b,c))a._raiseBubbleEvent(b,c)};Sys.UI.DomElement.setLocation=function(b,c,d){var a=b.style;a.position="absolute";a.left=c+"px";a.top=d+"px"};Sys.UI.DomElement.toggleCssClass=function(b,a){if(Sys.UI.DomElement.containsCssClass(b,a))Sys.UI.DomElement.removeCssClass(b,a);else Sys.UI.DomElement.addCssClass(b,a)};Sys.UI.DomElement.getVisibilityMode=function(a){return a._visibilityMode===Sys.UI.VisibilityMode.hide?Sys.UI.VisibilityMode.hide:Sys.UI.VisibilityMode.collapse};Sys.UI.DomElement.setVisibilityMode=function(a,b){Sys.UI.DomElement._ensureOldDisplayMode(a);if(a._visibilityMode!==b){a._visibilityMode=b;if(Sys.UI.DomElement.getVisible(a)===false)if(a._visibilityMode===Sys.UI.VisibilityMode.hide)a.style.display=a._oldDisplayMode;else a.style.display="none";a._visibilityMode=b}};Sys.UI.DomElement.getVisible=function(b){var a=b.currentStyle||Sys.UI.DomElement._getCurrentStyle(b);if(!a)return true;return a.visibility!=="hidden"&&a.display!=="none"};Sys.UI.DomElement.setVisible=function(a,b){if(b!==Sys.UI.DomElement.getVisible(a)){Sys.UI.DomElement._ensureOldDisplayMode(a);a.style.visibility=b?"visible":"hidden";if(b||a._visibilityMode===Sys.UI.VisibilityMode.hide)a.style.display=a._oldDisplayMode;else a.style.display="none"}};Sys.UI.DomElement._ensureOldDisplayMode=function(a){if(!a._oldDisplayMode){var b=a.currentStyle||Sys.UI.DomElement._getCurrentStyle(a);a._oldDisplayMode=b?b.display:null;if(!a._oldDisplayMode||a._oldDisplayMode==="none")switch(a.tagName.toUpperCase()){case "DIV":case "P":case "ADDRESS":case "BLOCKQUOTE":case "BODY":case "COL":case "COLGROUP":case "DD":case "DL":case "DT":case "FIELDSET":case "FORM":case "H1":case "H2":case "H3":case "H4":case "H5":case "H6":case "HR":case "IFRAME":case "LEGEND":case "OL":case "PRE":case "TABLE":case "TD":case "TH":case "TR":case "UL":a._oldDisplayMode="block";break;case "LI":a._oldDisplayMode="list-item";break;default:a._oldDisplayMode="inline"}}};Sys.UI.DomElement._getWindow=function(a){var b=a.ownerDocument||a.document||a;return b.defaultView||b.parentWindow};Sys.UI.DomElement._getCurrentStyle=function(a){if(a.nodeType===3)return null;var c=Sys.UI.DomElement._getWindow(a);if(a.documentElement)a=a.documentElement;var b=c&&a!==c&&c.getComputedStyle?c.getComputedStyle(a,null):a.currentStyle||a.style;if(!b&&Sys.Browser.agent===Sys.Browser.Safari&&a.style){var g=a.style.display,f=a.style.position;a.style.position="absolute";a.style.display="block";var e=c.getComputedStyle(a,null);a.style.display=g;a.style.position=f;b={};for(var d in e)b[d]=e[d];b.display="none"}return b};Sys.IContainer=function(){};Sys.IContainer.prototype={};Sys.IContainer.registerInterface("Sys.IContainer");Sys.ApplicationLoadEventArgs=function(b,a){Sys.ApplicationLoadEventArgs.initializeBase(this);this._components=b;this._isPartialLoad=a};Sys.ApplicationLoadEventArgs.prototype={get_components:function(){return this._components},get_isPartialLoad:function(){return this._isPartialLoad}};Sys.ApplicationLoadEventArgs.registerClass("Sys.ApplicationLoadEventArgs",Sys.EventArgs);Sys._Application=function(){Sys._Application.initializeBase(this);this._disposableObjects=[];this._components={};this._createdComponents=[];this._secondPassComponents=[];this._unloadHandlerDelegate=Function.createDelegate(this,this._unloadHandler);Sys.UI.DomEvent.addHandler(window,"unload",this._unloadHandlerDelegate);this._domReady()};Sys._Application.prototype={_creatingComponents:false,_disposing:false,_deleteCount:0,get_isCreatingComponents:function(){return this._creatingComponents},get_isDisposing:function(){return this._disposing},add_init:function(a){if(this._initialized)a(this,Sys.EventArgs.Empty);else this.get_events().addHandler("init",a)},remove_init:function(a){this.get_events().removeHandler("init",a)},add_load:function(a){this.get_events().addHandler("load",a)},remove_load:function(a){this.get_events().removeHandler("load",a)},add_unload:function(a){this.get_events().addHandler("unload",a)},remove_unload:function(a){this.get_events().removeHandler("unload",a)},addComponent:function(a){this._components[a.get_id()]=a},beginCreateComponents:function(){this._creatingComponents=true},dispose:function(){if(!this._disposing){this._disposing=true;if(this._timerCookie){window.clearTimeout(this._timerCookie);delete this._timerCookie}if(this._endRequestHandler){Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(this._endRequestHandler);delete this._endRequestHandler}if(this._beginRequestHandler){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(this._beginRequestHandler);delete this._beginRequestHandler}if(window.pageUnload)window.pageUnload(this,Sys.EventArgs.Empty);var c=this.get_events().getHandler("unload");if(c)c(this,Sys.EventArgs.Empty);var b=Array.clone(this._disposableObjects);for(var a=0,f=b.length;a<f;a++){var d=b[a];if(typeof d!=="undefined")d.dispose()}Array.clear(this._disposableObjects);Sys.UI.DomEvent.removeHandler(window,"unload",this._unloadHandlerDelegate);if(Sys._ScriptLoader){var e=Sys._ScriptLoader.getInstance();if(e)e.dispose()}Sys._Application.callBaseMethod(this,"dispose")}},disposeElement:function(c,j){if(c.nodeType===1){var b,h=c.getElementsByTagName("*"),g=h.length,i=new Array(g);for(b=0;b<g;b++)i[b]=h[b];for(b=g-1;b>=0;b--){var d=i[b],f=d.dispose;if(f&&typeof f==="function")d.dispose();else{var e=d.control;if(e&&typeof e.dispose==="function")e.dispose()}var a=d._behaviors;if(a)this._disposeComponents(a);a=d._components;if(a){this._disposeComponents(a);d._components=null}}if(!j){var f=c.dispose;if(f&&typeof f==="function")c.dispose();else{var e=c.control;if(e&&typeof e.dispose==="function")e.dispose()}var a=c._behaviors;if(a)this._disposeComponents(a);a=c._components;if(a){this._disposeComponents(a);c._components=null}}}},endCreateComponents:function(){var b=this._secondPassComponents;for(var a=0,d=b.length;a<d;a++){var c=b[a].component;Sys$Component$_setReferences(c,b[a].references);c.endUpdate()}this._secondPassComponents=[];this._creatingComponents=false},findComponent:function(b,a){return a?Sys.IContainer.isInstanceOfType(a)?a.findComponent(b):a[b]||null:Sys.Application._components[b]||null},getComponents:function(){var a=[],b=this._components;for(var c in b)a[a.length]=b[c];return a},initialize:function(){if(!this.get_isInitialized()&&!this._disposing){Sys._Application.callBaseMethod(this,"initialize");this._raiseInit();if(this.get_stateString){if(Sys.WebForms&&Sys.WebForms.PageRequestManager){this._beginRequestHandler=Function.createDelegate(this,this._onPageRequestManagerBeginRequest);Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(this._beginRequestHandler);this._endRequestHandler=Function.createDelegate(this,this._onPageRequestManagerEndRequest);Sys.WebForms.PageRequestManager.getInstance().add_endRequest(this._endRequestHandler)}var a=this.get_stateString();if(a!==this._currentEntry)this._navigate(a);else this._ensureHistory()}this.raiseLoad()}},notifyScriptLoaded:function(){},registerDisposableObject:function(b){if(!this._disposing){var a=this._disposableObjects,c=a.length;a[c]=b;b.__msdisposeindex=c}},raiseLoad:function(){var b=this.get_events().getHandler("load"),a=new Sys.ApplicationLoadEventArgs(Array.clone(this._createdComponents),!!this._loaded);this._loaded=true;if(b)b(this,a);if(window.pageLoad)window.pageLoad(this,a);this._createdComponents=[]},removeComponent:function(b){var a=b.get_id();if(a)delete this._components[a]},unregisterDisposableObject:function(a){if(!this._disposing){var e=a.__msdisposeindex;if(typeof e==="number"){var b=this._disposableObjects;delete b[e];delete a.__msdisposeindex;if(++this._deleteCount>1000){var c=[];for(var d=0,f=b.length;d<f;d++){a=b[d];if(typeof a!=="undefined"){a.__msdisposeindex=c.length;c.push(a)}}this._disposableObjects=c;this._deleteCount=0}}}},_addComponentToSecondPass:function(b,a){this._secondPassComponents[this._secondPassComponents.length]={component:b,references:a}},_disposeComponents:function(a){if(a)for(var b=a.length-1;b>=0;b--){var c=a[b];if(typeof c.dispose==="function")c.dispose()}},_domReady:function(){var a,g,f=this;function b(){f.initialize()}var c=function(){Sys.UI.DomEvent.removeHandler(window,"load",c);b()};Sys.UI.DomEvent.addHandler(window,"load",c);if(document.addEventListener)try{document.addEventListener("DOMContentLoaded",a=function(){document.removeEventListener("DOMContentLoaded",a,false);b()},false)}catch(h){}else if(document.attachEvent)if(window==window.top&&document.documentElement.doScroll){var e,d=document.createElement("div");a=function(){try{d.doScroll("left")}catch(c){e=window.setTimeout(a,0);return}d=null;b()};a()}else document.attachEvent("onreadystatechange",a=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",a);b()}})},_raiseInit:function(){var a=this.get_events().getHandler("init");if(a){this.beginCreateComponents();a(this,Sys.EventArgs.Empty);this.endCreateComponents()}},_unloadHandler:function(){this.dispose()}};Sys._Application.registerClass("Sys._Application",Sys.Component,Sys.IContainer);Sys.Application=new Sys._Application;var $find=Sys.Application.findComponent;Sys.UI.Behavior=function(b){Sys.UI.Behavior.initializeBase(this);this._element=b;var a=b._behaviors;if(!a)b._behaviors=[this];else a[a.length]=this};Sys.UI.Behavior.prototype={_name:null,get_element:function(){return this._element},get_id:function(){var a=Sys.UI.Behavior.callBaseMethod(this,"get_id");if(a)return a;if(!this._element||!this._element.id)return "";return this._element.id+"$"+this.get_name()},get_name:function(){if(this._name)return this._name;var a=Object.getTypeName(this),b=a.lastIndexOf(".");if(b!==-1)a=a.substr(b+1);if(!this.get_isInitialized())this._name=a;return a},set_name:function(a){this._name=a},initialize:function(){Sys.UI.Behavior.callBaseMethod(this,"initialize");var a=this.get_name();if(a)this._element[a]=this},dispose:function(){Sys.UI.Behavior.callBaseMethod(this,"dispose");var a=this._element;if(a){var c=this.get_name();if(c)a[c]=null;var b=a._behaviors;Array.remove(b,this);if(b.length===0)a._behaviors=null;delete this._element}}};Sys.UI.Behavior.registerClass("Sys.UI.Behavior",Sys.Component);Sys.UI.Behavior.getBehaviorByName=function(b,c){var a=b[c];return a&&Sys.UI.Behavior.isInstanceOfType(a)?a:null};Sys.UI.Behavior.getBehaviors=function(a){if(!a._behaviors)return [];return Array.clone(a._behaviors)};Sys.UI.Behavior.getBehaviorsByType=function(d,e){var a=d._behaviors,c=[];if(a)for(var b=0,f=a.length;b<f;b++)if(e.isInstanceOfType(a[b]))c[c.length]=a[b];return c};Sys.UI.VisibilityMode=function(){throw Error.notImplemented()};Sys.UI.VisibilityMode.prototype={hide:0,collapse:1};Sys.UI.VisibilityMode.registerEnum("Sys.UI.VisibilityMode");Sys.UI.Control=function(a){Sys.UI.Control.initializeBase(this);this._element=a;a.control=this;var b=this.get_role();if(b)a.setAttribute("role",b)};Sys.UI.Control.prototype={_parent:null,_visibilityMode:Sys.UI.VisibilityMode.hide,get_element:function(){return this._element},get_id:function(){if(!this._element)return "";return this._element.id},set_id:function(){throw Error.invalidOperation(Sys.Res.cantSetId)},get_parent:function(){if(this._parent)return this._parent;if(!this._element)return null;var a=this._element.parentNode;while(a){if(a.control)return a.control;a=a.parentNode}return null},set_parent:function(a){this._parent=a},get_role:function(){return null},get_visibilityMode:function(){return Sys.UI.DomElement.getVisibilityMode(this._element)},set_visibilityMode:function(a){Sys.UI.DomElement.setVisibilityMode(this._element,a)},get_visible:function(){return Sys.UI.DomElement.getVisible(this._element)},set_visible:function(a){Sys.UI.DomElement.setVisible(this._element,a)},addCssClass:function(a){Sys.UI.DomElement.addCssClass(this._element,a)},dispose:function(){Sys.UI.Control.callBaseMethod(this,"dispose");if(this._element){this._element.control=null;delete this._element}if(this._parent)delete this._parent},onBubbleEvent:function(){return false},raiseBubbleEvent:function(a,b){this._raiseBubbleEvent(a,b)},_raiseBubbleEvent:function(b,c){var a=this.get_parent();while(a){if(a.onBubbleEvent(b,c))return;a=a.get_parent()}},removeCssClass:function(a){Sys.UI.DomElement.removeCssClass(this._element,a)},toggleCssClass:function(a){Sys.UI.DomElement.toggleCssClass(this._element,a)}};Sys.UI.Control.registerClass("Sys.UI.Control",Sys.Component);Sys.HistoryEventArgs=function(a){Sys.HistoryEventArgs.initializeBase(this);this._state=a};Sys.HistoryEventArgs.prototype={get_state:function(){return this._state}};Sys.HistoryEventArgs.registerClass("Sys.HistoryEventArgs",Sys.EventArgs);Sys.Application._appLoadHandler=null;Sys.Application._beginRequestHandler=null;Sys.Application._clientId=null;Sys.Application._currentEntry="";Sys.Application._endRequestHandler=null;Sys.Application._history=null;Sys.Application._enableHistory=false;Sys.Application._historyFrame=null;Sys.Application._historyInitialized=false;Sys.Application._historyPointIsNew=false;Sys.Application._ignoreTimer=false;Sys.Application._initialState=null;Sys.Application._state={};Sys.Application._timerCookie=0;Sys.Application._timerHandler=null;Sys.Application._uniqueId=null;Sys._Application.prototype.get_stateString=function(){var a=null;if(Sys.Browser.agent===Sys.Browser.Firefox){var c=window.location.href,b=c.indexOf("#");if(b!==-1)a=c.substring(b+1);else a="";return a}else a=window.location.hash;if(a.length>0&&a.charAt(0)==="#")a=a.substring(1);return a};Sys._Application.prototype.get_enableHistory=function(){return this._enableHistory};Sys._Application.prototype.set_enableHistory=function(a){this._enableHistory=a};Sys._Application.prototype.add_navigate=function(a){this.get_events().addHandler("navigate",a)};Sys._Application.prototype.remove_navigate=function(a){this.get_events().removeHandler("navigate",a)};Sys._Application.prototype.addHistoryPoint=function(c,f){this._ensureHistory();var b=this._state;for(var a in c){var d=c[a];if(d===null){if(typeof b[a]!=="undefined")delete b[a]}else b[a]=d}var e=this._serializeState(b);this._historyPointIsNew=true;this._setState(e,f);this._raiseNavigate()};Sys._Application.prototype.setServerId=function(a,b){this._clientId=a;this._uniqueId=b};Sys._Application.prototype.setServerState=function(a){this._ensureHistory();this._state.__s=a;this._updateHiddenField(a)};Sys._Application.prototype._deserializeState=function(a){var e={};a=a||"";var b=a.indexOf("&&");if(b!==-1&&b+2<a.length){e.__s=a.substr(b+2);a=a.substr(0,b)}var g=a.split("&");for(var f=0,j=g.length;f<j;f++){var d=g[f],c=d.indexOf("=");if(c!==-1&&c+1<d.length){var i=d.substr(0,c),h=d.substr(c+1);e[i]=decodeURIComponent(h)}}return e};Sys._Application.prototype._enableHistoryInScriptManager=function(){this._enableHistory=true};Sys._Application.prototype._ensureHistory=function(){if(!this._historyInitialized&&this._enableHistory){if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.documentMode<8){this._historyFrame=document.getElementById("__historyFrame");this._ignoreIFrame=true}this._timerHandler=Function.createDelegate(this,this._onIdle);this._timerCookie=window.setTimeout(this._timerHandler,100);try{this._initialState=this._deserializeState(this.get_stateString())}catch(a){}this._historyInitialized=true}};Sys._Application.prototype._navigate=function(c){this._ensureHistory();var b=this._deserializeState(c);if(this._uniqueId){var d=this._state.__s||"",a=b.__s||"";if(a!==d){this._updateHiddenField(a);__doPostBack(this._uniqueId,a);this._state=b;return}}this._setState(c);this._state=b;this._raiseNavigate()};Sys._Application.prototype._onIdle=function(){delete this._timerCookie;var a=this.get_stateString();if(a!==this._currentEntry){if(!this._ignoreTimer){this._historyPointIsNew=false;this._navigate(a)}}else this._ignoreTimer=false;this._timerCookie=window.setTimeout(this._timerHandler,100)};Sys._Application.prototype._onIFrameLoad=function(a){this._ensureHistory();if(!this._ignoreIFrame){this._historyPointIsNew=false;this._navigate(a)}this._ignoreIFrame=false};Sys._Application.prototype._onPageRequestManagerBeginRequest=function(){this._ignoreTimer=true;this._originalTitle=document.title};Sys._Application.prototype._onPageRequestManagerEndRequest=function(g,f){var d=f.get_dataItems()[this._clientId],c=this._originalTitle;this._originalTitle=null;var b=document.getElementById("__EVENTTARGET");if(b&&b.value===this._uniqueId)b.value="";if(typeof d!=="undefined"){this.setServerState(d);this._historyPointIsNew=true}else this._ignoreTimer=false;var a=this._serializeState(this._state);if(a!==this._currentEntry){this._ignoreTimer=true;if(typeof c==="string"){if(Sys.Browser.agent!==Sys.Browser.InternetExplorer||Sys.Browser.version>7){var e=document.title;document.title=c;this._setState(a);document.title=e}else this._setState(a);this._raiseNavigate()}else{this._setState(a);this._raiseNavigate()}}};Sys._Application.prototype._raiseNavigate=function(){var d=this._historyPointIsNew,c=this.get_events().getHandler("navigate"),b={};for(var a in this._state)if(a!=="__s")b[a]=this._state[a];var e=new Sys.HistoryEventArgs(b);if(c)c(this,e);if(!d){var f;try{if(Sys.Browser.agent===Sys.Browser.Firefox&&window.location.hash&&(!window.frameElement||window.top.location.hash))Sys.Browser.version<3.5?window.history.go(0):(location.hash=this.get_stateString())}catch(g){}}};Sys._Application.prototype._serializeState=function(d){var b=[];for(var a in d){var e=d[a];if(a==="__s")var c=e;else b[b.length]=a+"="+encodeURIComponent(e)}return b.join("&")+(c?"&&"+c:"")};Sys._Application.prototype._setState=function(a,b){if(this._enableHistory){a=a||"";if(a!==this._currentEntry){if(window.theForm){var d=window.theForm.action,e=d.indexOf("#");window.theForm.action=(e!==-1?d.substring(0,e):d)+"#"+a}if(this._historyFrame&&this._historyPointIsNew){this._ignoreIFrame=true;var c=this._historyFrame.contentWindow.document;c.open("javascript:'<html></html>'");c.write("<html><head><title>"+(b||document.title)+"</title><scri"+'pt type="text/javascript">parent.Sys.Application._onIFrameLoad('+Sys.Serialization.JavaScriptSerializer.serialize(a)+");</scri"+"pt></head><body></body></html>");c.close()}this._ignoreTimer=false;this._currentEntry=a;if(this._historyFrame||this._historyPointIsNew){var f=this.get_stateString();if(a!==f){window.location.hash=a;this._currentEntry=this.get_stateString();if(typeof b!=="undefined"&&b!==null)document.title=b}}this._historyPointIsNew=false}}};Sys._Application.prototype._updateHiddenField=function(b){if(this._clientId){var a=document.getElementById(this._clientId);if(a)a.value=b}};if(!window.XMLHttpRequest)window.XMLHttpRequest=function(){var b=["Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP"];for(var a=0,c=b.length;a<c;a++)try{return new ActiveXObject(b[a])}catch(d){}return null};Type.registerNamespace("Sys.Net");Sys.Net.WebRequestExecutor=function(){this._webRequest=null;this._resultObject=null};Sys.Net.WebRequestExecutor.prototype={get_webRequest:function(){return this._webRequest},_set_webRequest:function(a){this._webRequest=a},get_started:function(){throw Error.notImplemented()},get_responseAvailable:function(){throw Error.notImplemented()},get_timedOut:function(){throw Error.notImplemented()},get_aborted:function(){throw Error.notImplemented()},get_responseData:function(){throw Error.notImplemented()},get_statusCode:function(){throw Error.notImplemented()},get_statusText:function(){throw Error.notImplemented()},get_xml:function(){throw Error.notImplemented()},get_object:function(){if(!this._resultObject)this._resultObject=Sys.Serialization.JavaScriptSerializer.deserialize(this.get_responseData());return this._resultObject},executeRequest:function(){throw Error.notImplemented()},abort:function(){throw Error.notImplemented()},getResponseHeader:function(){throw Error.notImplemented()},getAllResponseHeaders:function(){throw Error.notImplemented()}};Sys.Net.WebRequestExecutor.registerClass("Sys.Net.WebRequestExecutor");Sys.Net.XMLDOM=function(d){if(!window.DOMParser){var c=["Msxml2.DOMDocument.3.0","Msxml2.DOMDocument"];for(var b=0,f=c.length;b<f;b++)try{var a=new ActiveXObject(c[b]);a.async=false;a.loadXML(d);a.setProperty("SelectionLanguage","XPath");return a}catch(g){}}else try{var e=new window.DOMParser;return e.parseFromString(d,"text/xml")}catch(g){}return null};Sys.Net.XMLHttpExecutor=function(){Sys.Net.XMLHttpExecutor.initializeBase(this);var a=this;this._xmlHttpRequest=null;this._webRequest=null;this._responseAvailable=false;this._timedOut=false;this._timer=null;this._aborted=false;this._started=false;this._onReadyStateChange=function(){if(a._xmlHttpRequest.readyState===4){try{if(typeof a._xmlHttpRequest.status==="undefined")return}catch(b){return}a._clearTimer();a._responseAvailable=true;try{a._webRequest.completed(Sys.EventArgs.Empty)}finally{if(a._xmlHttpRequest!=null){a._xmlHttpRequest.onreadystatechange=Function.emptyMethod;a._xmlHttpRequest=null}}}};this._clearTimer=function(){if(a._timer!=null){window.clearTimeout(a._timer);a._timer=null}};this._onTimeout=function(){if(!a._responseAvailable){a._clearTimer();a._timedOut=true;a._xmlHttpRequest.onreadystatechange=Function.emptyMethod;a._xmlHttpRequest.abort();a._webRequest.completed(Sys.EventArgs.Empty);a._xmlHttpRequest=null}}};Sys.Net.XMLHttpExecutor.prototype={get_timedOut:function(){return this._timedOut},get_started:function(){return this._started},get_responseAvailable:function(){return this._responseAvailable},get_aborted:function(){return this._aborted},executeRequest:function(){this._webRequest=this.get_webRequest();var c=this._webRequest.get_body(),a=this._webRequest.get_headers();this._xmlHttpRequest=new XMLHttpRequest;this._xmlHttpRequest.onreadystatechange=this._onReadyStateChange;var e=this._webRequest.get_httpVerb();this._xmlHttpRequest.open(e,this._webRequest.getResolvedUrl(),true);this._xmlHttpRequest.setRequestHeader("X-Requested-With","XMLHttpRequest");if(a)for(var b in a){var f=a[b];if(typeof f!=="function")this._xmlHttpRequest.setRequestHeader(b,f)}if(e.toLowerCase()==="post"){if(a===null||!a["Content-Type"])this._xmlHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8");if(!c)c=""}var d=this._webRequest.get_timeout();if(d>0)this._timer=window.setTimeout(Function.createDelegate(this,this._onTimeout),d);this._xmlHttpRequest.send(c);this._started=true},getResponseHeader:function(b){var a;try{a=this._xmlHttpRequest.getResponseHeader(b)}catch(c){}if(!a)a="";return a},getAllResponseHeaders:function(){return this._xmlHttpRequest.getAllResponseHeaders()},get_responseData:function(){return this._xmlHttpRequest.responseText},get_statusCode:function(){var a=0;try{a=this._xmlHttpRequest.status}catch(b){}return a},get_statusText:function(){return this._xmlHttpRequest.statusText},get_xml:function(){var a=this._xmlHttpRequest.responseXML;if(!a||!a.documentElement){a=Sys.Net.XMLDOM(this._xmlHttpRequest.responseText);if(!a||!a.documentElement)return null}else if(navigator.userAgent.indexOf("MSIE")!==-1)a.setProperty("SelectionLanguage","XPath");if(a.documentElement.namespaceURI==="http://www.mozilla.org/newlayout/xml/parsererror.xml"&&a.documentElement.tagName==="parsererror")return null;if(a.documentElement.firstChild&&a.documentElement.firstChild.tagName==="parsererror")return null;return a},abort:function(){if(this._aborted||this._responseAvailable||this._timedOut)return;this._aborted=true;this._clearTimer();if(this._xmlHttpRequest&&!this._responseAvailable){this._xmlHttpRequest.onreadystatechange=Function.emptyMethod;this._xmlHttpRequest.abort();this._xmlHttpRequest=null;this._webRequest.completed(Sys.EventArgs.Empty)}}};Sys.Net.XMLHttpExecutor.registerClass("Sys.Net.XMLHttpExecutor",Sys.Net.WebRequestExecutor);Sys.Net._WebRequestManager=function(){this._defaultTimeout=0;this._defaultExecutorType="Sys.Net.XMLHttpExecutor"};Sys.Net._WebRequestManager.prototype={add_invokingRequest:function(a){this._get_eventHandlerList().addHandler("invokingRequest",a)},remove_invokingRequest:function(a){this._get_eventHandlerList().removeHandler("invokingRequest",a)},add_completedRequest:function(a){this._get_eventHandlerList().addHandler("completedRequest",a)},remove_completedRequest:function(a){this._get_eventHandlerList().removeHandler("completedRequest",a)},_get_eventHandlerList:function(){if(!this._events)this._events=new Sys.EventHandlerList;return this._events},get_defaultTimeout:function(){return this._defaultTimeout},set_defaultTimeout:function(a){this._defaultTimeout=a},get_defaultExecutorType:function(){return this._defaultExecutorType},set_defaultExecutorType:function(a){this._defaultExecutorType=a},executeRequest:function(webRequest){var executor=webRequest.get_executor();if(!executor){var failed=false;try{var executorType=eval(this._defaultExecutorType);executor=new executorType}catch(a){failed=true}webRequest.set_executor(executor)}if(executor.get_aborted())return;var evArgs=new Sys.Net.NetworkRequestEventArgs(webRequest),handler=this._get_eventHandlerList().getHandler("invokingRequest");if(handler)handler(this,evArgs);if(!evArgs.get_cancel())executor.executeRequest()}};Sys.Net._WebRequestManager.registerClass("Sys.Net._WebRequestManager");Sys.Net.WebRequestManager=new Sys.Net._WebRequestManager;Sys.Net.NetworkRequestEventArgs=function(a){Sys.Net.NetworkRequestEventArgs.initializeBase(this);this._webRequest=a};Sys.Net.NetworkRequestEventArgs.prototype={get_webRequest:function(){return this._webRequest}};Sys.Net.NetworkRequestEventArgs.registerClass("Sys.Net.NetworkRequestEventArgs",Sys.CancelEventArgs);Sys.Net.WebRequest=function(){this._url="";this._headers={};this._body=null;this._userContext=null;this._httpVerb=null;this._executor=null;this._invokeCalled=false;this._timeout=0};Sys.Net.WebRequest.prototype={add_completed:function(a){this._get_eventHandlerList().addHandler("completed",a)},remove_completed:function(a){this._get_eventHandlerList().removeHandler("completed",a)},completed:function(b){var a=Sys.Net.WebRequestManager._get_eventHandlerList().getHandler("completedRequest");if(a)a(this._executor,b);a=this._get_eventHandlerList().getHandler("completed");if(a)a(this._executor,b)},_get_eventHandlerList:function(){if(!this._events)this._events=new Sys.EventHandlerList;return this._events},get_url:function(){return this._url},set_url:function(a){this._url=a},get_headers:function(){return this._headers},get_httpVerb:function(){if(this._httpVerb===null){if(this._body===null)return "GET";return "POST"}return this._httpVerb},set_httpVerb:function(a){this._httpVerb=a},get_body:function(){return this._body},set_body:function(a){this._body=a},get_userContext:function(){return this._userContext},set_userContext:function(a){this._userContext=a},get_executor:function(){return this._executor},set_executor:function(a){this._executor=a;this._executor._set_webRequest(this)},get_timeout:function(){if(this._timeout===0)return Sys.Net.WebRequestManager.get_defaultTimeout();return this._timeout},set_timeout:function(a){this._timeout=a},getResolvedUrl:function(){return Sys.Net.WebRequest._resolveUrl(this._url)},invoke:function(){Sys.Net.WebRequestManager.executeRequest(this);this._invokeCalled=true}};Sys.Net.WebRequest._resolveUrl=function(b,a){if(b&&b.indexOf("://")!==-1)return b;if(!a||a.length===0){var d=document.getElementsByTagName("base")[0];if(d&&d.href&&d.href.length>0)a=d.href;else a=document.URL}var c=a.indexOf("?");if(c!==-1)a=a.substr(0,c);c=a.indexOf("#");if(c!==-1)a=a.substr(0,c);a=a.substr(0,a.lastIndexOf("/")+1);if(!b||b.length===0)return a;if(b.charAt(0)==="/"){var e=a.indexOf("://"),g=a.indexOf("/",e+3);return a.substr(0,g)+b}else{var f=a.lastIndexOf("/");return a.substr(0,f+1)+b}};Sys.Net.WebRequest._createQueryString=function(c,b,f){b=b||encodeURIComponent;var h=0,e,g,d,a=new Sys.StringBuilder;if(c)for(d in c){e=c[d];if(typeof e==="function")continue;g=Sys.Serialization.JavaScriptSerializer.serialize(e);if(h++)a.append("&");a.append(d);a.append("=");a.append(b(g))}if(f){if(h)a.append("&");a.append(f)}return a.toString()};Sys.Net.WebRequest._createUrl=function(a,b,c){if(!b&&!c)return a;var d=Sys.Net.WebRequest._createQueryString(b,null,c);return d.length?a+(a&&a.indexOf("?")>=0?"&":"?")+d:a};Sys.Net.WebRequest.registerClass("Sys.Net.WebRequest");Sys._ScriptLoaderTask=function(b,a){this._scriptElement=b;this._completedCallback=a};Sys._ScriptLoaderTask.prototype={get_scriptElement:function(){return this._scriptElement},dispose:function(){if(this._disposed)return;this._disposed=true;this._removeScriptElementHandlers();Sys._ScriptLoaderTask._clearScript(this._scriptElement);this._scriptElement=null},execute:function(){this._addScriptElementHandlers();document.getElementsByTagName("head")[0].appendChild(this._scriptElement)},_addScriptElementHandlers:function(){this._scriptLoadDelegate=Function.createDelegate(this,this._scriptLoadHandler);if(Sys.Browser.agent!==Sys.Browser.InternetExplorer){this._scriptElement.readyState="loaded";$addHandler(this._scriptElement,"load",this._scriptLoadDelegate)}else $addHandler(this._scriptElement,"readystatechange",this._scriptLoadDelegate);if(this._scriptElement.addEventListener){this._scriptErrorDelegate=Function.createDelegate(this,this._scriptErrorHandler);this._scriptElement.addEventListener("error",this._scriptErrorDelegate,false)}},_removeScriptElementHandlers:function(){if(this._scriptLoadDelegate){var a=this.get_scriptElement();if(Sys.Browser.agent!==Sys.Browser.InternetExplorer)$removeHandler(a,"load",this._scriptLoadDelegate);else $removeHandler(a,"readystatechange",this._scriptLoadDelegate);if(this._scriptErrorDelegate){this._scriptElement.removeEventListener("error",this._scriptErrorDelegate,false);this._scriptErrorDelegate=null}this._scriptLoadDelegate=null}},_scriptErrorHandler:function(){if(this._disposed)return;this._completedCallback(this.get_scriptElement(),false)},_scriptLoadHandler:function(){if(this._disposed)return;var a=this.get_scriptElement();if(a.readyState!=="loaded"&&a.readyState!=="complete")return;this._completedCallback(a,true)}};Sys._ScriptLoaderTask.registerClass("Sys._ScriptLoaderTask",null,Sys.IDisposable);Sys._ScriptLoaderTask._clearScript=function(a){if(!Sys.Debug.isDebug)a.parentNode.removeChild(a)};Type.registerNamespace("Sys.Net");Sys.Net.WebServiceProxy=function(){};Sys.Net.WebServiceProxy.prototype={get_timeout:function(){return this._timeout||0},set_timeout:function(a){if(a<0)throw Error.argumentOutOfRange("value",a,Sys.Res.invalidTimeout);this._timeout=a},get_defaultUserContext:function(){return typeof this._userContext==="undefined"?null:this._userContext},set_defaultUserContext:function(a){this._userContext=a},get_defaultSucceededCallback:function(){return this._succeeded||null},set_defaultSucceededCallback:function(a){this._succeeded=a},get_defaultFailedCallback:function(){return this._failed||null},set_defaultFailedCallback:function(a){this._failed=a},get_enableJsonp:function(){return !!this._jsonp},set_enableJsonp:function(a){this._jsonp=a},get_path:function(){return this._path||null},set_path:function(a){this._path=a},get_jsonpCallbackParameter:function(){return this._callbackParameter||"callback"},set_jsonpCallbackParameter:function(a){this._callbackParameter=a},_invoke:function(d,e,g,f,c,b,a){c=c||this.get_defaultSucceededCallback();b=b||this.get_defaultFailedCallback();if(a===null||typeof a==="undefined")a=this.get_defaultUserContext();return Sys.Net.WebServiceProxy.invoke(d,e,g,f,c,b,a,this.get_timeout(),this.get_enableJsonp(),this.get_jsonpCallbackParameter())}};Sys.Net.WebServiceProxy.registerClass("Sys.Net.WebServiceProxy");Sys.Net.WebServiceProxy.invoke=function(q,a,m,l,j,b,g,e,w,p){var i=w!==false?Sys.Net.WebServiceProxy._xdomain.exec(q):null,c,n=i&&i.length===3&&(i[1]!==location.protocol||i[2]!==location.host);m=n||m;if(n){p=p||"callback";c="_jsonp"+Sys._jsonp++}if(!l)l={};var r=l;if(!m||!r)r={};var s,h,f=null,k,o=null,u=Sys.Net.WebRequest._createUrl(a?q+"/"+encodeURIComponent(a):q,r,n?p+"=Sys."+c:null);if(n){s=document.createElement("script");s.src=u;k=new Sys._ScriptLoaderTask(s,function(d,b){if(!b||c)t({Message:String.format(Sys.Res.webServiceFailedNoMsg,a)},-1)});function v(){if(f===null)return;f=null;h=new Sys.Net.WebServiceError(true,String.format(Sys.Res.webServiceTimedOut,a));k.dispose();delete Sys[c];if(b)b(h,g,a)}function t(d,e){if(f!==null){window.clearTimeout(f);f=null}k.dispose();delete Sys[c];c=null;if(typeof e!=="undefined"&&e!==200){if(b){h=new Sys.Net.WebServiceError(false,d.Message||String.format(Sys.Res.webServiceFailedNoMsg,a),d.StackTrace||null,d.ExceptionType||null,d);h._statusCode=e;b(h,g,a)}}else if(j)j(d,g,a)}Sys[c]=t;e=e||Sys.Net.WebRequestManager.get_defaultTimeout();if(e>0)f=window.setTimeout(v,e);k.execute();return null}var d=new Sys.Net.WebRequest;d.set_url(u);d.get_headers()["Content-Type"]="application/json; charset=utf-8";if(!m){o=Sys.Serialization.JavaScriptSerializer.serialize(l);if(o==="{}")o=""}d.set_body(o);d.add_completed(x);if(e&&e>0)d.set_timeout(e);d.invoke();function x(d){if(d.get_responseAvailable()){var f=d.get_statusCode(),c=null;try{var e=d.getResponseHeader("Content-Type");if(e.startsWith("application/json"))c=d.get_object();else if(e.startsWith("text/xml"))c=d.get_xml();else c=d.get_responseData()}catch(m){}var k=d.getResponseHeader("jsonerror"),h=k==="true";if(h){if(c)c=new Sys.Net.WebServiceError(false,c.Message,c.StackTrace,c.ExceptionType,c)}else if(e.startsWith("application/json"))c=!c||typeof c.d==="undefined"?c:c.d;if(f<200||f>=300||h){if(b){if(!c||!h)c=new Sys.Net.WebServiceError(false,String.format(Sys.Res.webServiceFailedNoMsg,a));c._statusCode=f;b(c,g,a)}}else if(j)j(c,g,a)}else{var i;if(d.get_timedOut())i=String.format(Sys.Res.webServiceTimedOut,a);else i=String.format(Sys.Res.webServiceFailedNoMsg,a);if(b)b(new Sys.Net.WebServiceError(d.get_timedOut(),i,"",""),g,a)}}return d};Sys.Net.WebServiceProxy._generateTypedConstructor=function(a){return function(b){if(b)for(var c in b)this[c]=b[c];this.__type=a}};Sys._jsonp=0;Sys.Net.WebServiceProxy._xdomain=/^\s*([a-zA-Z0-9\+\-\.]+\:)\/\/([^?#\/]+)/;Sys.Net.WebServiceError=function(d,e,c,a,b){this._timedOut=d;this._message=e;this._stackTrace=c;this._exceptionType=a;this._errorObject=b;this._statusCode=-1};Sys.Net.WebServiceError.prototype={get_timedOut:function(){return this._timedOut},get_statusCode:function(){return this._statusCode},get_message:function(){return this._message},get_stackTrace:function(){return this._stackTrace||""},get_exceptionType:function(){return this._exceptionType||""},get_errorObject:function(){return this._errorObject||null}};Sys.Net.WebServiceError.registerClass("Sys.Net.WebServiceError");
Type.registerNamespace('Sys');Sys.Res={"argumentInteger":"Value must be an integer.","invokeCalledTwice":"Cannot call invoke more than once.","webServiceFailed":"The server method \u0027{0}\u0027 failed with the following error: {1}","argumentType":"Object cannot be converted to the required type.","argumentNull":"Value cannot be null.","scriptAlreadyLoaded":"The script \u0027{0}\u0027 has been referenced multiple times. If referencing Microsoft AJAX scripts explicitly, set the MicrosoftAjaxMode property of the ScriptManager to Explicit.","scriptDependencyNotFound":"The script \u0027{0}\u0027 failed to load because it is dependent on script \u0027{1}\u0027.","formatBadFormatSpecifier":"Format specifier was invalid.","requiredScriptReferenceNotIncluded":"\u0027{0}\u0027 requires that you have included a script reference to \u0027{1}\u0027.","webServiceFailedNoMsg":"The server method \u0027{0}\u0027 failed.","argumentDomElement":"Value must be a DOM element.","invalidExecutorType":"Could not create a valid Sys.Net.WebRequestExecutor from: {0}.","cannotCallBeforeResponse":"Cannot call {0} when responseAvailable is false.","actualValue":"Actual value was {0}.","enumInvalidValue":"\u0027{0}\u0027 is not a valid value for enum {1}.","scriptLoadFailed":"The script \u0027{0}\u0027 could not be loaded.","parameterCount":"Parameter count mismatch.","cannotDeserializeEmptyString":"Cannot deserialize empty string.","formatInvalidString":"Input string was not in a correct format.","invalidTimeout":"Value must be greater than or equal to zero.","cannotAbortBeforeStart":"Cannot abort when executor has not started.","argument":"Value does not fall within the expected range.","cannotDeserializeInvalidJson":"Cannot deserialize. The data does not correspond to valid JSON.","invalidHttpVerb":"httpVerb cannot be set to an empty or null string.","nullWebRequest":"Cannot call executeRequest with a null webRequest.","eventHandlerInvalid":"Handler was not added through the Sys.UI.DomEvent.addHandler method.","cannotSerializeNonFiniteNumbers":"Cannot serialize non finite numbers.","argumentUndefined":"Value cannot be undefined.","webServiceInvalidReturnType":"The server method \u0027{0}\u0027 returned an invalid type. Expected type: {1}","servicePathNotSet":"The path to the web service has not been set.","argumentTypeWithTypes":"Object of type \u0027{0}\u0027 cannot be converted to type \u0027{1}\u0027.","cannotCallOnceStarted":"Cannot call {0} once started.","badBaseUrl1":"Base URL does not contain ://.","badBaseUrl2":"Base URL does not contain another /.","badBaseUrl3":"Cannot find last / in base URL.","setExecutorAfterActive":"Cannot set executor after it has become active.","paramName":"Parameter name: {0}","nullReferenceInPath":"Null reference while evaluating data path: \u0027{0}\u0027.","cannotCallOutsideHandler":"Cannot call {0} outside of a completed event handler.","cannotSerializeObjectWithCycle":"Cannot serialize object with cyclic reference within child properties.","format":"One of the identified items was in an invalid format.","assertFailedCaller":"Assertion Failed: {0}\r\nat {1}","argumentOutOfRange":"Specified argument was out of the range of valid values.","webServiceTimedOut":"The server method \u0027{0}\u0027 timed out.","notImplemented":"The method or operation is not implemented.","assertFailed":"Assertion Failed: {0}","invalidOperation":"Operation is not valid due to the current state of the object.","breakIntoDebugger":"{0}\r\n\r\nBreak into debugger?"};
}
Type.registerNamespace('Flux.Net');

if (typeof(Flux.Net.FlashExecutor) === 'undefined') {
	Flux.Net.FlashExecutor = function () {
		if (arguments.length !== 0) throw Error.parameterCount();

		Flux.Net.FlashExecutor.initializeBase(this);

		var _this = this;
		this.webRequest = null;
		this.responseAvailable = false;
		this.timedOut = false;
		this.timer = null;
		this.aborted = false;
		this.started = false;
		
		this.responseData = null;

		this.clearTimer = function () {
			if (_this.timer != null) {
				window.clearTimeout(_this.timer);
				_this.timer = null;
			}
		}

		this.onTimeout = function () {
			if (!_this.responseAvailable) {
				_this.clearTimer();
				_this.timedOut = true;
				_this.webRequest.completed(Sys.EventArgs.Empty);
			}
		}
	}

	Flux.Net.FlashExecutor.prototype = {
		get_timedOut: function() {
			return this.timedOut;
		},
		
		get_started: function() {
			return this.started;
		},
		
		get_responseAvailable: function() {
			return this.responseAvailable;
		},
		
		get_aborted: function() {
			return this.aborted;
		},
		
		executeRequest: function() {

			this.webRequest = this.get_webRequest();

			var timeout = this.webRequest.get_timeout();
			if (timeout > 0) {
				this.timer = window.setTimeout(Function.createDelegate(this, this.onTimeout), timeout);
			}
			
			Flux.Core.executePostRequest(this.webRequest.getResolvedUrl(), this.webRequest.get_body(),
				Function.createDelegate(this, this.requestCompleteCallback), true);
				
			this.started = true;
		},
		
		requestCompleteCallback: function(result) {
			this.clearTimer();

			if (result) {
				this.responseData = result;
				this.responseAvailable = true;
			} else {
				this.responseAvailable = false;
			}

			this.webRequest.completed(Sys.EventArgs.Empty);
		},
		
		getResponseHeader: function(header) {
			if (header == 'Content-Type') {
				return 'application/json';
			}
			
			return '';
		},
		
		getAllResponseHeaders: function() {
			return null;
		},
		
		get_responseData: function() {
			return this.responseData;
		},

		get_statusCode: function() {
			return 200;
		},

		get_statusText: function() {
			return '';
		},

		abort: function() {
			if (this.aborted || this.responseAvailable || this.timedOut)	{
				return;
			}

			this.aborted = true;
			this.clearTimer();

			if (this.responseAvailable) {
				var handler = this.webRequest._get_eventHandlerList().getHandler("completed");
				if (handler) {
					handler(this, Sys.EventArgs.Empty);
				}
			}
		}
	}

	Flux.Net.FlashExecutor.registerClass('Flux.Net.FlashExecutor', Sys.Net.WebRequestExecutor);
}
if (typeof(Flux.API) === 'undefined') {
Type.registerNamespace('Flux.API.Services');
Flux.API.Services.Authentication=function() {
Flux.API.Services.Authentication.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.Authentication.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.Authentication._staticInstance.get_path();},
Login:function(info,login,password,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Login',false,{info:info,login:login,password:password},succeededCallback,failedCallback,userContext); },
Authenticate:function(info,login,password,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Authenticate',false,{info:info,login:login,password:password},succeededCallback,failedCallback,userContext); },
Logout:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Logout',false,{info:info},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.Authentication.registerClass('Flux.API.Services.Authentication',Sys.Net.WebServiceProxy);
Flux.API.Services.Authentication._staticInstance = new Flux.API.Services.Authentication();
Flux.API.Services.Authentication.set_path = function(value) { Flux.API.Services.Authentication._staticInstance.set_path(value); }
Flux.API.Services.Authentication.get_path = function() { return Flux.API.Services.Authentication._staticInstance.get_path(); }
Flux.API.Services.Authentication.set_timeout = function(value) { Flux.API.Services.Authentication._staticInstance.set_timeout(value); }
Flux.API.Services.Authentication.get_timeout = function() { return Flux.API.Services.Authentication._staticInstance.get_timeout(); }
Flux.API.Services.Authentication.set_defaultUserContext = function(value) { Flux.API.Services.Authentication._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.Authentication.get_defaultUserContext = function() { return Flux.API.Services.Authentication._staticInstance.get_defaultUserContext(); }
Flux.API.Services.Authentication.set_defaultSucceededCallback = function(value) { Flux.API.Services.Authentication._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.Authentication.get_defaultSucceededCallback = function() { return Flux.API.Services.Authentication._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.Authentication.set_defaultFailedCallback = function(value) { Flux.API.Services.Authentication._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.Authentication.get_defaultFailedCallback = function() { return Flux.API.Services.Authentication._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.Authentication.set_enableJsonp = function(value) { Flux.API.Services.Authentication._staticInstance.set_enableJsonp(value); }
Flux.API.Services.Authentication.get_enableJsonp = function() { return Flux.API.Services.Authentication._staticInstance.get_enableJsonp(); }
Flux.API.Services.Authentication.set_jsonpCallbackParameter = function(value) { Flux.API.Services.Authentication._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.Authentication.get_jsonpCallbackParameter = function() { return Flux.API.Services.Authentication._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.Authentication.set_path("/Authentication.asmx");
Flux.API.Services.Authentication.Login= function(info,login,password,onSuccess,onFailed,userContext) {Flux.API.Services.Authentication._staticInstance.Login(info,login,password,onSuccess,onFailed,userContext); }
Flux.API.Services.Authentication.Authenticate= function(info,login,password,onSuccess,onFailed,userContext) {Flux.API.Services.Authentication._staticInstance.Authenticate(info,login,password,onSuccess,onFailed,userContext); }
Flux.API.Services.Authentication.Logout= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.Authentication._staticInstance.Logout(info,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo) === 'undefined') {
Flux.API.RequestInfo=gtc("Flux.API.RequestInfo");
Flux.API.RequestInfo.registerClass('Flux.API.RequestInfo');
}
if (typeof(Flux.API.UserInfoResult) === 'undefined') {
Flux.API.UserInfoResult=gtc("Flux.API.UserInfoResult");
Flux.API.UserInfoResult.registerClass('Flux.API.UserInfoResult');
}
if (typeof(Flux.API.InvokeResult) === 'undefined') {
Flux.API.InvokeResult=gtc("Flux.API.InvokeResult");
Flux.API.InvokeResult.registerClass('Flux.API.InvokeResult');
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}


Flux.API.Services.Authentication.set_path('http://widgets.flux.com/Authentication.asmx');

Flux.API.Services.Authentication.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in Authentication service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.Commenting=function() {
Flux.API.Services.Commenting.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.Commenting.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.Commenting._staticInstance.get_path();},
GetCommentCount:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCommentCount',false,{info:info},succeededCallback,failedCallback,userContext); },
GetComments:function(info,request,viewMode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetComments',false,{info:info,request:request,viewMode:viewMode},succeededCallback,failedCallback,userContext); },
GetCommentReplies:function(info,commentId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCommentReplies',false,{info:info,commentId:commentId},succeededCallback,failedCallback,userContext); },
PostComment:function(info,parentCommentId,text,captchaUserCode,captchaCryptoCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PostComment',false,{info:info,parentCommentId:parentCommentId,text:text,captchaUserCode:captchaUserCode,captchaCryptoCode:captchaCryptoCode},succeededCallback,failedCallback,userContext); },
UpdateComment:function(info,commentId,text,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateComment',false,{info:info,commentId:commentId,text:text},succeededCallback,failedCallback,userContext); },
DeleteComment:function(info,commentId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteComment',false,{info:info,commentId:commentId},succeededCallback,failedCallback,userContext); },
GenerateCaptcha:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GenerateCaptcha',false,{info:info},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.Commenting.registerClass('Flux.API.Services.Commenting',Sys.Net.WebServiceProxy);
Flux.API.Services.Commenting._staticInstance = new Flux.API.Services.Commenting();
Flux.API.Services.Commenting.set_path = function(value) { Flux.API.Services.Commenting._staticInstance.set_path(value); }
Flux.API.Services.Commenting.get_path = function() { return Flux.API.Services.Commenting._staticInstance.get_path(); }
Flux.API.Services.Commenting.set_timeout = function(value) { Flux.API.Services.Commenting._staticInstance.set_timeout(value); }
Flux.API.Services.Commenting.get_timeout = function() { return Flux.API.Services.Commenting._staticInstance.get_timeout(); }
Flux.API.Services.Commenting.set_defaultUserContext = function(value) { Flux.API.Services.Commenting._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.Commenting.get_defaultUserContext = function() { return Flux.API.Services.Commenting._staticInstance.get_defaultUserContext(); }
Flux.API.Services.Commenting.set_defaultSucceededCallback = function(value) { Flux.API.Services.Commenting._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.Commenting.get_defaultSucceededCallback = function() { return Flux.API.Services.Commenting._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.Commenting.set_defaultFailedCallback = function(value) { Flux.API.Services.Commenting._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.Commenting.get_defaultFailedCallback = function() { return Flux.API.Services.Commenting._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.Commenting.set_enableJsonp = function(value) { Flux.API.Services.Commenting._staticInstance.set_enableJsonp(value); }
Flux.API.Services.Commenting.get_enableJsonp = function() { return Flux.API.Services.Commenting._staticInstance.get_enableJsonp(); }
Flux.API.Services.Commenting.set_jsonpCallbackParameter = function(value) { Flux.API.Services.Commenting._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.Commenting.get_jsonpCallbackParameter = function() { return Flux.API.Services.Commenting._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.Commenting.set_path("/Commenting.asmx");
Flux.API.Services.Commenting.GetCommentCount= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.Commenting._staticInstance.GetCommentCount(info,onSuccess,onFailed,userContext); }
Flux.API.Services.Commenting.GetComments= function(info,request,viewMode,onSuccess,onFailed,userContext) {Flux.API.Services.Commenting._staticInstance.GetComments(info,request,viewMode,onSuccess,onFailed,userContext); }
Flux.API.Services.Commenting.GetCommentReplies= function(info,commentId,onSuccess,onFailed,userContext) {Flux.API.Services.Commenting._staticInstance.GetCommentReplies(info,commentId,onSuccess,onFailed,userContext); }
Flux.API.Services.Commenting.PostComment= function(info,parentCommentId,text,captchaUserCode,captchaCryptoCode,onSuccess,onFailed,userContext) {Flux.API.Services.Commenting._staticInstance.PostComment(info,parentCommentId,text,captchaUserCode,captchaCryptoCode,onSuccess,onFailed,userContext); }
Flux.API.Services.Commenting.UpdateComment= function(info,commentId,text,onSuccess,onFailed,userContext) {Flux.API.Services.Commenting._staticInstance.UpdateComment(info,commentId,text,onSuccess,onFailed,userContext); }
Flux.API.Services.Commenting.DeleteComment= function(info,commentId,onSuccess,onFailed,userContext) {Flux.API.Services.Commenting._staticInstance.DeleteComment(info,commentId,onSuccess,onFailed,userContext); }
Flux.API.Services.Commenting.GenerateCaptcha= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.Commenting._staticInstance.GenerateCaptcha(info,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo) === 'undefined') {
Flux.API.RequestInfo=gtc("Flux.API.RequestInfo");
Flux.API.RequestInfo.registerClass('Flux.API.RequestInfo');
}
if (typeof(Flux.API.CommentCountResult) === 'undefined') {
Flux.API.CommentCountResult=gtc("Flux.API.CommentCountResult");
Flux.API.CommentCountResult.registerClass('Flux.API.CommentCountResult');
}
if (typeof(Flux.API.ListRequest) === 'undefined') {
Flux.API.ListRequest=gtc("Flux.API.ListRequest");
Flux.API.ListRequest.registerClass('Flux.API.ListRequest');
}
if (typeof(Flux.API.CommentListResult) === 'undefined') {
Flux.API.CommentListResult=gtc("Flux.API.CommentListResult");
Flux.API.CommentListResult.registerClass('Flux.API.CommentListResult');
}
if (typeof(Flux.API.CommentResult) === 'undefined') {
Flux.API.CommentResult=gtc("Flux.API.CommentResult");
Flux.API.CommentResult.registerClass('Flux.API.CommentResult');
}
if (typeof(Flux.API.InvokeResult) === 'undefined') {
Flux.API.InvokeResult=gtc("Flux.API.InvokeResult");
Flux.API.InvokeResult.registerClass('Flux.API.InvokeResult');
}
if (typeof(Flux.API.CaptchaResult) === 'undefined') {
Flux.API.CaptchaResult=gtc("Flux.API.CaptchaResult");
Flux.API.CaptchaResult.registerClass('Flux.API.CaptchaResult');
}
if (typeof(Flux.API.EntryScope) === 'undefined') {
Flux.API.EntryScope = function() { throw Error.invalidOperation(); }
Flux.API.EntryScope.prototype = {Private: 1,Friends: 2,Restricted: 3,Public: 4}
Flux.API.EntryScope.registerEnum('Flux.API.EntryScope', true);
}
if (typeof(Flux.API.CommentViewMode) === 'undefined') {
Flux.API.CommentViewMode = function() { throw Error.invalidOperation(); }
Flux.API.CommentViewMode.prototype = {Expanded: 0,LatestFirst: 1,Collapsed: 2}
Flux.API.CommentViewMode.registerEnum('Flux.API.CommentViewMode', true);
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}


Flux.API.Services.Commenting.set_path('http://widgets.flux.com/Commenting.asmx');

Flux.API.Services.Commenting.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in Commenting service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.Commenting2=function() {
Flux.API.Services.Commenting2.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.Commenting2.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.Commenting2._staticInstance.get_path();},
PostComment2:function(info,parentCommentId,text,captchaUserCode,captchaCryptoCode,guestName,guestEmail,guestWebUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PostComment2',false,{info:info,parentCommentId:parentCommentId,text:text,captchaUserCode:captchaUserCode,captchaCryptoCode:captchaCryptoCode,guestName:guestName,guestEmail:guestEmail,guestWebUrl:guestWebUrl},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.Commenting2.registerClass('Flux.API.Services.Commenting2',Sys.Net.WebServiceProxy);
Flux.API.Services.Commenting2._staticInstance = new Flux.API.Services.Commenting2();
Flux.API.Services.Commenting2.set_path = function(value) { Flux.API.Services.Commenting2._staticInstance.set_path(value); }
Flux.API.Services.Commenting2.get_path = function() { return Flux.API.Services.Commenting2._staticInstance.get_path(); }
Flux.API.Services.Commenting2.set_timeout = function(value) { Flux.API.Services.Commenting2._staticInstance.set_timeout(value); }
Flux.API.Services.Commenting2.get_timeout = function() { return Flux.API.Services.Commenting2._staticInstance.get_timeout(); }
Flux.API.Services.Commenting2.set_defaultUserContext = function(value) { Flux.API.Services.Commenting2._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.Commenting2.get_defaultUserContext = function() { return Flux.API.Services.Commenting2._staticInstance.get_defaultUserContext(); }
Flux.API.Services.Commenting2.set_defaultSucceededCallback = function(value) { Flux.API.Services.Commenting2._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.Commenting2.get_defaultSucceededCallback = function() { return Flux.API.Services.Commenting2._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.Commenting2.set_defaultFailedCallback = function(value) { Flux.API.Services.Commenting2._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.Commenting2.get_defaultFailedCallback = function() { return Flux.API.Services.Commenting2._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.Commenting2.set_enableJsonp = function(value) { Flux.API.Services.Commenting2._staticInstance.set_enableJsonp(value); }
Flux.API.Services.Commenting2.get_enableJsonp = function() { return Flux.API.Services.Commenting2._staticInstance.get_enableJsonp(); }
Flux.API.Services.Commenting2.set_jsonpCallbackParameter = function(value) { Flux.API.Services.Commenting2._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.Commenting2.get_jsonpCallbackParameter = function() { return Flux.API.Services.Commenting2._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.Commenting2.set_path("/Commenting2.asmx");
Flux.API.Services.Commenting2.PostComment2= function(info,parentCommentId,text,captchaUserCode,captchaCryptoCode,guestName,guestEmail,guestWebUrl,onSuccess,onFailed,userContext) {Flux.API.Services.Commenting2._staticInstance.PostComment2(info,parentCommentId,text,captchaUserCode,captchaCryptoCode,guestName,guestEmail,guestWebUrl,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo) === 'undefined') {
Flux.API.RequestInfo=gtc("Flux.API.RequestInfo");
Flux.API.RequestInfo.registerClass('Flux.API.RequestInfo');
}
if (typeof(Flux.API.CommentResult) === 'undefined') {
Flux.API.CommentResult=gtc("Flux.API.CommentResult");
Flux.API.CommentResult.registerClass('Flux.API.CommentResult');
}
if (typeof(Flux.API.EntryScope) === 'undefined') {
Flux.API.EntryScope = function() { throw Error.invalidOperation(); }
Flux.API.EntryScope.prototype = {Private: 1,Friends: 2,Restricted: 3,Public: 4}
Flux.API.EntryScope.registerEnum('Flux.API.EntryScope', true);
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}
if (typeof(Flux.API.CommentViewMode) === 'undefined') {
Flux.API.CommentViewMode = function() { throw Error.invalidOperation(); }
Flux.API.CommentViewMode.prototype = {Expanded: 0,LatestFirst: 1,Collapsed: 2}
Flux.API.CommentViewMode.registerEnum('Flux.API.CommentViewMode', true);
}


Flux.API.Services.Commenting2.set_path('http://widgets.flux.com/Commenting2.asmx');

Flux.API.Services.Commenting2.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in Commenting2 service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.Content=function() {
Flux.API.Services.Content.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.Content.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.Content._staticInstance.get_path();},
SetContentThumbnail:function(info,imageBytes,contentType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetContentThumbnail',false,{info:info,imageBytes:imageBytes,contentType:contentType},succeededCallback,failedCallback,userContext); },
SetContentFlag:function(info,flagType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetContentFlag',false,{info:info,flagType:flagType},succeededCallback,failedCallback,userContext); },
SetCommentFlag:function(info,commentId,flagType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetCommentFlag',false,{info:info,commentId:commentId,flagType:flagType},succeededCallback,failedCallback,userContext); },
IsUserCanFlagContent:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsUserCanFlagContent',false,{info:info},succeededCallback,failedCallback,userContext); },
InvalidateContentUriBatch:function(info,contentUris,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'InvalidateContentUriBatch',false,{info:info,contentUris:contentUris},succeededCallback,failedCallback,userContext); },
CreateEmbeddedMedia:function(info,title,description,data,dataMimeType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateEmbeddedMedia',false,{info:info,title:title,description:description,data:data,dataMimeType:dataMimeType},succeededCallback,failedCallback,userContext); },
GetEmbeddedMedia:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetEmbeddedMedia',false,{info:info},succeededCallback,failedCallback,userContext); },
UpdateEmbeddedMedia:function(info,title,description,data,dataMimeType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateEmbeddedMedia',false,{info:info,title:title,description:description,data:data,dataMimeType:dataMimeType},succeededCallback,failedCallback,userContext); },
DeleteContent:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteContent',false,{info:info},succeededCallback,failedCallback,userContext); },
UpdateContent:function(info,entry,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateContent',false,{info:info,entry:entry},succeededCallback,failedCallback,userContext); },
GetContent:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetContent',false,{info:info},succeededCallback,failedCallback,userContext); },
GetContentList:function(info,request,contentType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetContentList',false,{info:info,request:request,contentType:contentType},succeededCallback,failedCallback,userContext); },
UploadVideo:function(info,title,description,data,dataMimeType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UploadVideo',false,{info:info,title:title,description:description,data:data,dataMimeType:dataMimeType},succeededCallback,failedCallback,userContext); },
UploadPhoto:function(info,title,description,data,dataMimeType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UploadPhoto',false,{info:info,title:title,description:description,data:data,dataMimeType:dataMimeType},succeededCallback,failedCallback,userContext); },
UploadAudio:function(info,title,description,data,dataMimeType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UploadAudio',false,{info:info,title:title,description:description,data:data,dataMimeType:dataMimeType},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.Content.registerClass('Flux.API.Services.Content',Sys.Net.WebServiceProxy);
Flux.API.Services.Content._staticInstance = new Flux.API.Services.Content();
Flux.API.Services.Content.set_path = function(value) { Flux.API.Services.Content._staticInstance.set_path(value); }
Flux.API.Services.Content.get_path = function() { return Flux.API.Services.Content._staticInstance.get_path(); }
Flux.API.Services.Content.set_timeout = function(value) { Flux.API.Services.Content._staticInstance.set_timeout(value); }
Flux.API.Services.Content.get_timeout = function() { return Flux.API.Services.Content._staticInstance.get_timeout(); }
Flux.API.Services.Content.set_defaultUserContext = function(value) { Flux.API.Services.Content._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.Content.get_defaultUserContext = function() { return Flux.API.Services.Content._staticInstance.get_defaultUserContext(); }
Flux.API.Services.Content.set_defaultSucceededCallback = function(value) { Flux.API.Services.Content._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.Content.get_defaultSucceededCallback = function() { return Flux.API.Services.Content._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.Content.set_defaultFailedCallback = function(value) { Flux.API.Services.Content._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.Content.get_defaultFailedCallback = function() { return Flux.API.Services.Content._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.Content.set_enableJsonp = function(value) { Flux.API.Services.Content._staticInstance.set_enableJsonp(value); }
Flux.API.Services.Content.get_enableJsonp = function() { return Flux.API.Services.Content._staticInstance.get_enableJsonp(); }
Flux.API.Services.Content.set_jsonpCallbackParameter = function(value) { Flux.API.Services.Content._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.Content.get_jsonpCallbackParameter = function() { return Flux.API.Services.Content._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.Content.set_path("/Content.asmx");
Flux.API.Services.Content.SetContentThumbnail= function(info,imageBytes,contentType,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.SetContentThumbnail(info,imageBytes,contentType,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.SetContentFlag= function(info,flagType,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.SetContentFlag(info,flagType,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.SetCommentFlag= function(info,commentId,flagType,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.SetCommentFlag(info,commentId,flagType,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.IsUserCanFlagContent= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.IsUserCanFlagContent(info,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.InvalidateContentUriBatch= function(info,contentUris,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.InvalidateContentUriBatch(info,contentUris,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.CreateEmbeddedMedia= function(info,title,description,data,dataMimeType,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.CreateEmbeddedMedia(info,title,description,data,dataMimeType,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.GetEmbeddedMedia= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.GetEmbeddedMedia(info,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.UpdateEmbeddedMedia= function(info,title,description,data,dataMimeType,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.UpdateEmbeddedMedia(info,title,description,data,dataMimeType,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.DeleteContent= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.DeleteContent(info,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.UpdateContent= function(info,entry,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.UpdateContent(info,entry,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.GetContent= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.GetContent(info,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.GetContentList= function(info,request,contentType,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.GetContentList(info,request,contentType,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.UploadVideo= function(info,title,description,data,dataMimeType,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.UploadVideo(info,title,description,data,dataMimeType,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.UploadPhoto= function(info,title,description,data,dataMimeType,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.UploadPhoto(info,title,description,data,dataMimeType,onSuccess,onFailed,userContext); }
Flux.API.Services.Content.UploadAudio= function(info,title,description,data,dataMimeType,onSuccess,onFailed,userContext) {Flux.API.Services.Content._staticInstance.UploadAudio(info,title,description,data,dataMimeType,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo) === 'undefined') {
Flux.API.RequestInfo=gtc("Flux.API.RequestInfo");
Flux.API.RequestInfo.registerClass('Flux.API.RequestInfo');
}
if (typeof(Flux.API.InvokeResult) === 'undefined') {
Flux.API.InvokeResult=gtc("Flux.API.InvokeResult");
Flux.API.InvokeResult.registerClass('Flux.API.InvokeResult');
}
if (typeof(Flux.API.EmbeddedMediaEntryResult) === 'undefined') {
Flux.API.EmbeddedMediaEntryResult=gtc("Flux.API.EmbeddedMediaEntryResult");
Flux.API.EmbeddedMediaEntryResult.registerClass('Flux.API.EmbeddedMediaEntryResult');
}
if (typeof(Flux.API.ContentEntry) === 'undefined') {
Flux.API.ContentEntry=gtc("Flux.API.ContentEntry");
Flux.API.ContentEntry.registerClass('Flux.API.ContentEntry');
}
if (typeof(Flux.API.ContentEntryResult) === 'undefined') {
Flux.API.ContentEntryResult=gtc("Flux.API.ContentEntryResult");
Flux.API.ContentEntryResult.registerClass('Flux.API.ContentEntryResult');
}
if (typeof(Flux.API.ListRequest) === 'undefined') {
Flux.API.ListRequest=gtc("Flux.API.ListRequest");
Flux.API.ListRequest.registerClass('Flux.API.ListRequest');
}
if (typeof(Flux.API.ContentFlagType) === 'undefined') {
Flux.API.ContentFlagType = function() { throw Error.invalidOperation(); }
Flux.API.ContentFlagType.prototype = {Adult: 1,Hate: 2,Spam: 3,Other: 4}
Flux.API.ContentFlagType.registerEnum('Flux.API.ContentFlagType', true);
}
if (typeof(Flux.API.ContentEntryType) === 'undefined') {
Flux.API.ContentEntryType = function() { throw Error.invalidOperation(); }
Flux.API.ContentEntryType.prototype = {Audio: 1,Video: 2,Photo: 4,Link: 8,List: 16,Feed: 32,User: 64,Topic: 256,Group: 512,News: 1024}
Flux.API.ContentEntryType.registerEnum('Flux.API.ContentEntryType', true);
}


Flux.API.Services.Content.set_path('http://widgets.flux.com/Content.asmx');

Flux.API.Services.Content.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in Content service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.Content2=function() {
Flux.API.Services.Content2.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.Content2.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.Content2._staticInstance.get_path();},
GetContentUsage:function(info,commentRequest,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetContentUsage',false,{info:info,commentRequest:commentRequest},succeededCallback,failedCallback,userContext); },
GetCategories:function(info,contentType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCategories',false,{info:info,contentType:contentType},succeededCallback,failedCallback,userContext); },
SearchContent:function(info,request,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchContent',false,{info:info,request:request},succeededCallback,failedCallback,userContext); },
UploadPhoto2:function(info,title,description,data,dataMimeType,categories,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UploadPhoto2',false,{info:info,title:title,description:description,data:data,dataMimeType:dataMimeType,categories:categories},succeededCallback,failedCallback,userContext); },
UploadAudio2:function(info,title,description,data,dataMimeType,categories,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UploadAudio2',false,{info:info,title:title,description:description,data:data,dataMimeType:dataMimeType,categories:categories},succeededCallback,failedCallback,userContext); },
UploadVideo2:function(info,title,description,data,dataMimeType,categories,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UploadVideo2',false,{info:info,title:title,description:description,data:data,dataMimeType:dataMimeType,categories:categories},succeededCallback,failedCallback,userContext); },
GetContentList:function(info,contentRequest,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetContentList',false,{info:info,contentRequest:contentRequest},succeededCallback,failedCallback,userContext); },
SetRedirectPermalink:function(info,redirectPermalink,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetRedirectPermalink',false,{info:info,redirectPermalink:redirectPermalink},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.Content2.registerClass('Flux.API.Services.Content2',Sys.Net.WebServiceProxy);
Flux.API.Services.Content2._staticInstance = new Flux.API.Services.Content2();
Flux.API.Services.Content2.set_path = function(value) { Flux.API.Services.Content2._staticInstance.set_path(value); }
Flux.API.Services.Content2.get_path = function() { return Flux.API.Services.Content2._staticInstance.get_path(); }
Flux.API.Services.Content2.set_timeout = function(value) { Flux.API.Services.Content2._staticInstance.set_timeout(value); }
Flux.API.Services.Content2.get_timeout = function() { return Flux.API.Services.Content2._staticInstance.get_timeout(); }
Flux.API.Services.Content2.set_defaultUserContext = function(value) { Flux.API.Services.Content2._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.Content2.get_defaultUserContext = function() { return Flux.API.Services.Content2._staticInstance.get_defaultUserContext(); }
Flux.API.Services.Content2.set_defaultSucceededCallback = function(value) { Flux.API.Services.Content2._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.Content2.get_defaultSucceededCallback = function() { return Flux.API.Services.Content2._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.Content2.set_defaultFailedCallback = function(value) { Flux.API.Services.Content2._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.Content2.get_defaultFailedCallback = function() { return Flux.API.Services.Content2._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.Content2.set_enableJsonp = function(value) { Flux.API.Services.Content2._staticInstance.set_enableJsonp(value); }
Flux.API.Services.Content2.get_enableJsonp = function() { return Flux.API.Services.Content2._staticInstance.get_enableJsonp(); }
Flux.API.Services.Content2.set_jsonpCallbackParameter = function(value) { Flux.API.Services.Content2._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.Content2.get_jsonpCallbackParameter = function() { return Flux.API.Services.Content2._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.Content2.set_path("/Content2.asmx");
Flux.API.Services.Content2.GetContentUsage= function(info,commentRequest,onSuccess,onFailed,userContext) {Flux.API.Services.Content2._staticInstance.GetContentUsage(info,commentRequest,onSuccess,onFailed,userContext); }
Flux.API.Services.Content2.GetCategories= function(info,contentType,onSuccess,onFailed,userContext) {Flux.API.Services.Content2._staticInstance.GetCategories(info,contentType,onSuccess,onFailed,userContext); }
Flux.API.Services.Content2.SearchContent= function(info,request,onSuccess,onFailed,userContext) {Flux.API.Services.Content2._staticInstance.SearchContent(info,request,onSuccess,onFailed,userContext); }
Flux.API.Services.Content2.UploadPhoto2= function(info,title,description,data,dataMimeType,categories,onSuccess,onFailed,userContext) {Flux.API.Services.Content2._staticInstance.UploadPhoto2(info,title,description,data,dataMimeType,categories,onSuccess,onFailed,userContext); }
Flux.API.Services.Content2.UploadAudio2= function(info,title,description,data,dataMimeType,categories,onSuccess,onFailed,userContext) {Flux.API.Services.Content2._staticInstance.UploadAudio2(info,title,description,data,dataMimeType,categories,onSuccess,onFailed,userContext); }
Flux.API.Services.Content2.UploadVideo2= function(info,title,description,data,dataMimeType,categories,onSuccess,onFailed,userContext) {Flux.API.Services.Content2._staticInstance.UploadVideo2(info,title,description,data,dataMimeType,categories,onSuccess,onFailed,userContext); }
Flux.API.Services.Content2.GetContentList= function(info,contentRequest,onSuccess,onFailed,userContext) {Flux.API.Services.Content2._staticInstance.GetContentList(info,contentRequest,onSuccess,onFailed,userContext); }
Flux.API.Services.Content2.SetRedirectPermalink= function(info,redirectPermalink,onSuccess,onFailed,userContext) {Flux.API.Services.Content2._staticInstance.SetRedirectPermalink(info,redirectPermalink,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo) === 'undefined') {
Flux.API.RequestInfo=gtc("Flux.API.RequestInfo");
Flux.API.RequestInfo.registerClass('Flux.API.RequestInfo');
}
if (typeof(Flux.API.ListRequest) === 'undefined') {
Flux.API.ListRequest=gtc("Flux.API.ListRequest");
Flux.API.ListRequest.registerClass('Flux.API.ListRequest');
}
if (typeof(Flux.API.CumulativeContentInfoResult) === 'undefined') {
Flux.API.CumulativeContentInfoResult=gtc("Flux.API.CumulativeContentInfoResult");
Flux.API.CumulativeContentInfoResult.registerClass('Flux.API.CumulativeContentInfoResult');
}
if (typeof(Flux.API.CategoryEntry) === 'undefined') {
Flux.API.CategoryEntry=gtc("Flux.API.CategoryEntry");
Flux.API.CategoryEntry.registerClass('Flux.API.CategoryEntry');
}
if (typeof(Flux.API.RequestInfo2) === 'undefined') {
Flux.API.RequestInfo2=gtc("Flux.API.RequestInfo2");
Flux.API.RequestInfo2.registerClass('Flux.API.RequestInfo2');
}
if (typeof(Flux.API.ContentSearchRequest) === 'undefined') {
Flux.API.ContentSearchRequest=gtc("Flux.API.ContentSearchRequest");
Flux.API.ContentSearchRequest.registerClass('Flux.API.ContentSearchRequest');
}
if (typeof(Flux.API.ContentEntry) === 'undefined') {
Flux.API.ContentEntry=gtc("Flux.API.ContentEntry");
Flux.API.ContentEntry.registerClass('Flux.API.ContentEntry');
}
if (typeof(Flux.API.ContentEntryResult) === 'undefined') {
Flux.API.ContentEntryResult=gtc("Flux.API.ContentEntryResult");
Flux.API.ContentEntryResult.registerClass('Flux.API.ContentEntryResult');
}
if (typeof(Flux.API.ContentListRequest) === 'undefined') {
Flux.API.ContentListRequest=gtc("Flux.API.ContentListRequest");
Flux.API.ContentListRequest.registerClass('Flux.API.ContentListRequest');
}
if (typeof(Flux.API.InvokeResult) === 'undefined') {
Flux.API.InvokeResult=gtc("Flux.API.InvokeResult");
Flux.API.InvokeResult.registerClass('Flux.API.InvokeResult');
}
if (typeof(Flux.API.ContentFilterType) === 'undefined') {
Flux.API.ContentFilterType = function() { throw Error.invalidOperation(); }
Flux.API.ContentFilterType.prototype = {MostPopularPhotos: 0,MostPopularVideos: 1}
Flux.API.ContentFilterType.registerEnum('Flux.API.ContentFilterType', true);
}
if (typeof(Flux.API.ContentEntryType) === 'undefined') {
Flux.API.ContentEntryType = function() { throw Error.invalidOperation(); }
Flux.API.ContentEntryType.prototype = {Audio: 1,Video: 2,Photo: 4,Link: 8,List: 16,Feed: 32,User: 64,Topic: 256,Group: 512,News: 1024}
Flux.API.ContentEntryType.registerEnum('Flux.API.ContentEntryType', true);
}


Flux.API.Services.Content2.set_path('http://widgets.flux.com/Content2.asmx');

Flux.API.Services.Content2.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in Content2 service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.ProfileManagement=function() {
Flux.API.Services.ProfileManagement.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.ProfileManagement.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.ProfileManagement._staticInstance.get_path();},
GetAccount:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAccount',false,{info:info},succeededCallback,failedCallback,userContext); },
UpdateAccount:function(info,account,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateAccount',false,{info:info,account:account},succeededCallback,failedCallback,userContext); },
UpdatePassword:function(info,currentPassword,newPassword,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdatePassword',false,{info:info,currentPassword:currentPassword,newPassword:newPassword},succeededCallback,failedCallback,userContext); },
SetUserPicture:function(info,data,contentType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetUserPicture',false,{info:info,data:data,contentType:contentType},succeededCallback,failedCallback,userContext); },
GetProfileData:function(info,attributeKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetProfileData',false,{info:info,attributeKey:attributeKey},succeededCallback,failedCallback,userContext); },
SetProfileData:function(info,data,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetProfileData',false,{info:info,data:data},succeededCallback,failedCallback,userContext); },
IsCommunityMember:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsCommunityMember',false,{info:info},succeededCallback,failedCallback,userContext); },
SendValidationEmail:function(info,userEmail,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendValidationEmail',false,{info:info,userEmail:userEmail},succeededCallback,failedCallback,userContext); },
Deactivate:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Deactivate',false,{info:info},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.ProfileManagement.registerClass('Flux.API.Services.ProfileManagement',Sys.Net.WebServiceProxy);
Flux.API.Services.ProfileManagement._staticInstance = new Flux.API.Services.ProfileManagement();
Flux.API.Services.ProfileManagement.set_path = function(value) { Flux.API.Services.ProfileManagement._staticInstance.set_path(value); }
Flux.API.Services.ProfileManagement.get_path = function() { return Flux.API.Services.ProfileManagement._staticInstance.get_path(); }
Flux.API.Services.ProfileManagement.set_timeout = function(value) { Flux.API.Services.ProfileManagement._staticInstance.set_timeout(value); }
Flux.API.Services.ProfileManagement.get_timeout = function() { return Flux.API.Services.ProfileManagement._staticInstance.get_timeout(); }
Flux.API.Services.ProfileManagement.set_defaultUserContext = function(value) { Flux.API.Services.ProfileManagement._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.ProfileManagement.get_defaultUserContext = function() { return Flux.API.Services.ProfileManagement._staticInstance.get_defaultUserContext(); }
Flux.API.Services.ProfileManagement.set_defaultSucceededCallback = function(value) { Flux.API.Services.ProfileManagement._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.ProfileManagement.get_defaultSucceededCallback = function() { return Flux.API.Services.ProfileManagement._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.ProfileManagement.set_defaultFailedCallback = function(value) { Flux.API.Services.ProfileManagement._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.ProfileManagement.get_defaultFailedCallback = function() { return Flux.API.Services.ProfileManagement._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.ProfileManagement.set_enableJsonp = function(value) { Flux.API.Services.ProfileManagement._staticInstance.set_enableJsonp(value); }
Flux.API.Services.ProfileManagement.get_enableJsonp = function() { return Flux.API.Services.ProfileManagement._staticInstance.get_enableJsonp(); }
Flux.API.Services.ProfileManagement.set_jsonpCallbackParameter = function(value) { Flux.API.Services.ProfileManagement._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.ProfileManagement.get_jsonpCallbackParameter = function() { return Flux.API.Services.ProfileManagement._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.ProfileManagement.set_path("/ProfileManagement.asmx");
Flux.API.Services.ProfileManagement.GetAccount= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement._staticInstance.GetAccount(info,onSuccess,onFailed,userContext); }
Flux.API.Services.ProfileManagement.UpdateAccount= function(info,account,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement._staticInstance.UpdateAccount(info,account,onSuccess,onFailed,userContext); }
Flux.API.Services.ProfileManagement.UpdatePassword= function(info,currentPassword,newPassword,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement._staticInstance.UpdatePassword(info,currentPassword,newPassword,onSuccess,onFailed,userContext); }
Flux.API.Services.ProfileManagement.SetUserPicture= function(info,data,contentType,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement._staticInstance.SetUserPicture(info,data,contentType,onSuccess,onFailed,userContext); }
Flux.API.Services.ProfileManagement.GetProfileData= function(info,attributeKey,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement._staticInstance.GetProfileData(info,attributeKey,onSuccess,onFailed,userContext); }
Flux.API.Services.ProfileManagement.SetProfileData= function(info,data,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement._staticInstance.SetProfileData(info,data,onSuccess,onFailed,userContext); }
Flux.API.Services.ProfileManagement.IsCommunityMember= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement._staticInstance.IsCommunityMember(info,onSuccess,onFailed,userContext); }
Flux.API.Services.ProfileManagement.SendValidationEmail= function(info,userEmail,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement._staticInstance.SendValidationEmail(info,userEmail,onSuccess,onFailed,userContext); }
Flux.API.Services.ProfileManagement.Deactivate= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement._staticInstance.Deactivate(info,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo) === 'undefined') {
Flux.API.RequestInfo=gtc("Flux.API.RequestInfo");
Flux.API.RequestInfo.registerClass('Flux.API.RequestInfo');
}
if (typeof(Flux.API.UserInfoResult) === 'undefined') {
Flux.API.UserInfoResult=gtc("Flux.API.UserInfoResult");
Flux.API.UserInfoResult.registerClass('Flux.API.UserInfoResult');
}
if (typeof(Flux.API.UserInfo) === 'undefined') {
Flux.API.UserInfo=gtc("Flux.API.UserInfo");
Flux.API.UserInfo.registerClass('Flux.API.UserInfo');
}
if (typeof(Flux.API.InvokeResult) === 'undefined') {
Flux.API.InvokeResult=gtc("Flux.API.InvokeResult");
Flux.API.InvokeResult.registerClass('Flux.API.InvokeResult');
}
if (typeof(Flux.API.ProfileDataResult) === 'undefined') {
Flux.API.ProfileDataResult=gtc("Flux.API.ProfileDataResult");
Flux.API.ProfileDataResult.registerClass('Flux.API.ProfileDataResult');
}
if (typeof(Flux.API.ProfileEntry) === 'undefined') {
Flux.API.ProfileEntry=gtc("Flux.API.ProfileEntry");
Flux.API.ProfileEntry.registerClass('Flux.API.ProfileEntry');
}
if (typeof(Flux.API.EntryScope) === 'undefined') {
Flux.API.EntryScope = function() { throw Error.invalidOperation(); }
Flux.API.EntryScope.prototype = {Private: 1,Friends: 2,Restricted: 3,Public: 4}
Flux.API.EntryScope.registerEnum('Flux.API.EntryScope', true);
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}


Flux.API.Services.ProfileManagement.set_path('http://widgets.flux.com/ProfileManagement.asmx');

Flux.API.Services.ProfileManagement.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in ProfileManagement service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.Rating=function() {
Flux.API.Services.Rating.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.Rating.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.Rating._staticInstance.get_path();},
GetContentRating:function(info,mode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetContentRating',false,{info:info,mode:mode},succeededCallback,failedCallback,userContext); },
SetContentRating:function(info,value,mode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetContentRating',false,{info:info,value:value,mode:mode},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.Rating.registerClass('Flux.API.Services.Rating',Sys.Net.WebServiceProxy);
Flux.API.Services.Rating._staticInstance = new Flux.API.Services.Rating();
Flux.API.Services.Rating.set_path = function(value) { Flux.API.Services.Rating._staticInstance.set_path(value); }
Flux.API.Services.Rating.get_path = function() { return Flux.API.Services.Rating._staticInstance.get_path(); }
Flux.API.Services.Rating.set_timeout = function(value) { Flux.API.Services.Rating._staticInstance.set_timeout(value); }
Flux.API.Services.Rating.get_timeout = function() { return Flux.API.Services.Rating._staticInstance.get_timeout(); }
Flux.API.Services.Rating.set_defaultUserContext = function(value) { Flux.API.Services.Rating._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.Rating.get_defaultUserContext = function() { return Flux.API.Services.Rating._staticInstance.get_defaultUserContext(); }
Flux.API.Services.Rating.set_defaultSucceededCallback = function(value) { Flux.API.Services.Rating._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.Rating.get_defaultSucceededCallback = function() { return Flux.API.Services.Rating._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.Rating.set_defaultFailedCallback = function(value) { Flux.API.Services.Rating._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.Rating.get_defaultFailedCallback = function() { return Flux.API.Services.Rating._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.Rating.set_enableJsonp = function(value) { Flux.API.Services.Rating._staticInstance.set_enableJsonp(value); }
Flux.API.Services.Rating.get_enableJsonp = function() { return Flux.API.Services.Rating._staticInstance.get_enableJsonp(); }
Flux.API.Services.Rating.set_jsonpCallbackParameter = function(value) { Flux.API.Services.Rating._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.Rating.get_jsonpCallbackParameter = function() { return Flux.API.Services.Rating._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.Rating.set_path("/Rating.asmx");
Flux.API.Services.Rating.GetContentRating= function(info,mode,onSuccess,onFailed,userContext) {Flux.API.Services.Rating._staticInstance.GetContentRating(info,mode,onSuccess,onFailed,userContext); }
Flux.API.Services.Rating.SetContentRating= function(info,value,mode,onSuccess,onFailed,userContext) {Flux.API.Services.Rating._staticInstance.SetContentRating(info,value,mode,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo) === 'undefined') {
Flux.API.RequestInfo=gtc("Flux.API.RequestInfo");
Flux.API.RequestInfo.registerClass('Flux.API.RequestInfo');
}
if (typeof(Flux.API.RatingResult) === 'undefined') {
Flux.API.RatingResult=gtc("Flux.API.RatingResult");
Flux.API.RatingResult.registerClass('Flux.API.RatingResult');
}
if (typeof(Flux.API.EntryScope) === 'undefined') {
Flux.API.EntryScope = function() { throw Error.invalidOperation(); }
Flux.API.EntryScope.prototype = {Private: 1,Friends: 2,Restricted: 3,Public: 4}
Flux.API.EntryScope.registerEnum('Flux.API.EntryScope', true);
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}
if (typeof(Flux.API.RatingMode) === 'undefined') {
Flux.API.RatingMode = function() { throw Error.invalidOperation(); }
Flux.API.RatingMode.prototype = {FiveStar: 1,Gain: 2,Thumb: 3}
Flux.API.RatingMode.registerEnum('Flux.API.RatingMode', true);
}


Flux.API.Services.Rating.set_path('http://widgets.flux.com/Rating.asmx');

Flux.API.Services.Rating.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in Rating service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.Registration=function() {
Flux.API.Services.Registration.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.Registration.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.Registration._staticInstance.get_path();},
CreateAccount:function(info,password,account,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateAccount',false,{info:info,password:password,account:account},succeededCallback,failedCallback,userContext); },
JoinCurrentCommunity:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'JoinCurrentCommunity',false,{info:info},succeededCallback,failedCallback,userContext); },
UnjoinCurrentCommunity:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UnjoinCurrentCommunity',false,{info:info},succeededCallback,failedCallback,userContext); },
IsUserNameAvailable:function(info,userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsUserNameAvailable',false,{info:info,userName:userName},succeededCallback,failedCallback,userContext); },
IsUserEmailAvailable:function(info,userEmail,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsUserEmailAvailable',false,{info:info,userEmail:userEmail},succeededCallback,failedCallback,userContext); },
SuggestUserNames:function(info,userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SuggestUserNames',false,{info:info,userName:userName},succeededCallback,failedCallback,userContext); },
SendForgotPasswordEmail:function(info,userEmail,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendForgotPasswordEmail',false,{info:info,userEmail:userEmail},succeededCallback,failedCallback,userContext); },
ValidateEmailAddress:function(info,token,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ValidateEmailAddress',false,{info:info,token:token},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.Registration.registerClass('Flux.API.Services.Registration',Sys.Net.WebServiceProxy);
Flux.API.Services.Registration._staticInstance = new Flux.API.Services.Registration();
Flux.API.Services.Registration.set_path = function(value) { Flux.API.Services.Registration._staticInstance.set_path(value); }
Flux.API.Services.Registration.get_path = function() { return Flux.API.Services.Registration._staticInstance.get_path(); }
Flux.API.Services.Registration.set_timeout = function(value) { Flux.API.Services.Registration._staticInstance.set_timeout(value); }
Flux.API.Services.Registration.get_timeout = function() { return Flux.API.Services.Registration._staticInstance.get_timeout(); }
Flux.API.Services.Registration.set_defaultUserContext = function(value) { Flux.API.Services.Registration._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.Registration.get_defaultUserContext = function() { return Flux.API.Services.Registration._staticInstance.get_defaultUserContext(); }
Flux.API.Services.Registration.set_defaultSucceededCallback = function(value) { Flux.API.Services.Registration._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.Registration.get_defaultSucceededCallback = function() { return Flux.API.Services.Registration._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.Registration.set_defaultFailedCallback = function(value) { Flux.API.Services.Registration._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.Registration.get_defaultFailedCallback = function() { return Flux.API.Services.Registration._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.Registration.set_enableJsonp = function(value) { Flux.API.Services.Registration._staticInstance.set_enableJsonp(value); }
Flux.API.Services.Registration.get_enableJsonp = function() { return Flux.API.Services.Registration._staticInstance.get_enableJsonp(); }
Flux.API.Services.Registration.set_jsonpCallbackParameter = function(value) { Flux.API.Services.Registration._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.Registration.get_jsonpCallbackParameter = function() { return Flux.API.Services.Registration._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.Registration.set_path("/Registration.asmx");
Flux.API.Services.Registration.CreateAccount= function(info,password,account,onSuccess,onFailed,userContext) {Flux.API.Services.Registration._staticInstance.CreateAccount(info,password,account,onSuccess,onFailed,userContext); }
Flux.API.Services.Registration.JoinCurrentCommunity= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.Registration._staticInstance.JoinCurrentCommunity(info,onSuccess,onFailed,userContext); }
Flux.API.Services.Registration.UnjoinCurrentCommunity= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.Registration._staticInstance.UnjoinCurrentCommunity(info,onSuccess,onFailed,userContext); }
Flux.API.Services.Registration.IsUserNameAvailable= function(info,userName,onSuccess,onFailed,userContext) {Flux.API.Services.Registration._staticInstance.IsUserNameAvailable(info,userName,onSuccess,onFailed,userContext); }
Flux.API.Services.Registration.IsUserEmailAvailable= function(info,userEmail,onSuccess,onFailed,userContext) {Flux.API.Services.Registration._staticInstance.IsUserEmailAvailable(info,userEmail,onSuccess,onFailed,userContext); }
Flux.API.Services.Registration.SuggestUserNames= function(info,userName,onSuccess,onFailed,userContext) {Flux.API.Services.Registration._staticInstance.SuggestUserNames(info,userName,onSuccess,onFailed,userContext); }
Flux.API.Services.Registration.SendForgotPasswordEmail= function(info,userEmail,onSuccess,onFailed,userContext) {Flux.API.Services.Registration._staticInstance.SendForgotPasswordEmail(info,userEmail,onSuccess,onFailed,userContext); }
Flux.API.Services.Registration.ValidateEmailAddress= function(info,token,onSuccess,onFailed,userContext) {Flux.API.Services.Registration._staticInstance.ValidateEmailAddress(info,token,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo) === 'undefined') {
Flux.API.RequestInfo=gtc("Flux.API.RequestInfo");
Flux.API.RequestInfo.registerClass('Flux.API.RequestInfo');
}
if (typeof(Flux.API.UserInfo) === 'undefined') {
Flux.API.UserInfo=gtc("Flux.API.UserInfo");
Flux.API.UserInfo.registerClass('Flux.API.UserInfo');
}
if (typeof(Flux.API.UserInfoResult) === 'undefined') {
Flux.API.UserInfoResult=gtc("Flux.API.UserInfoResult");
Flux.API.UserInfoResult.registerClass('Flux.API.UserInfoResult');
}
if (typeof(Flux.API.InvokeResult) === 'undefined') {
Flux.API.InvokeResult=gtc("Flux.API.InvokeResult");
Flux.API.InvokeResult.registerClass('Flux.API.InvokeResult');
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}


Flux.API.Services.Registration.set_path('http://widgets.flux.com/Registration.asmx');

Flux.API.Services.Registration.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in Registration service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.Registration2=function() {
Flux.API.Services.Registration2.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.Registration2.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.Registration2._staticInstance.get_path();},
CreateAccount2:function(info,password,account,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateAccount2',false,{info:info,password:password,account:account},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.Registration2.registerClass('Flux.API.Services.Registration2',Sys.Net.WebServiceProxy);
Flux.API.Services.Registration2._staticInstance = new Flux.API.Services.Registration2();
Flux.API.Services.Registration2.set_path = function(value) { Flux.API.Services.Registration2._staticInstance.set_path(value); }
Flux.API.Services.Registration2.get_path = function() { return Flux.API.Services.Registration2._staticInstance.get_path(); }
Flux.API.Services.Registration2.set_timeout = function(value) { Flux.API.Services.Registration2._staticInstance.set_timeout(value); }
Flux.API.Services.Registration2.get_timeout = function() { return Flux.API.Services.Registration2._staticInstance.get_timeout(); }
Flux.API.Services.Registration2.set_defaultUserContext = function(value) { Flux.API.Services.Registration2._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.Registration2.get_defaultUserContext = function() { return Flux.API.Services.Registration2._staticInstance.get_defaultUserContext(); }
Flux.API.Services.Registration2.set_defaultSucceededCallback = function(value) { Flux.API.Services.Registration2._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.Registration2.get_defaultSucceededCallback = function() { return Flux.API.Services.Registration2._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.Registration2.set_defaultFailedCallback = function(value) { Flux.API.Services.Registration2._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.Registration2.get_defaultFailedCallback = function() { return Flux.API.Services.Registration2._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.Registration2.set_enableJsonp = function(value) { Flux.API.Services.Registration2._staticInstance.set_enableJsonp(value); }
Flux.API.Services.Registration2.get_enableJsonp = function() { return Flux.API.Services.Registration2._staticInstance.get_enableJsonp(); }
Flux.API.Services.Registration2.set_jsonpCallbackParameter = function(value) { Flux.API.Services.Registration2._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.Registration2.get_jsonpCallbackParameter = function() { return Flux.API.Services.Registration2._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.Registration2.set_path("/Registration2.asmx");
Flux.API.Services.Registration2.CreateAccount2= function(info,password,account,onSuccess,onFailed,userContext) {Flux.API.Services.Registration2._staticInstance.CreateAccount2(info,password,account,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo2) === 'undefined') {
Flux.API.RequestInfo2=gtc("Flux.API.RequestInfo2");
Flux.API.RequestInfo2.registerClass('Flux.API.RequestInfo2');
}
if (typeof(Flux.API.UserInfo2) === 'undefined') {
Flux.API.UserInfo2=gtc("Flux.API.UserInfo2");
Flux.API.UserInfo2.registerClass('Flux.API.UserInfo2');
}
if (typeof(Flux.API.UserInfo2Result) === 'undefined') {
Flux.API.UserInfo2Result=gtc("Flux.API.UserInfo2Result");
Flux.API.UserInfo2Result.registerClass('Flux.API.UserInfo2Result');
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}


Flux.API.Services.Registration2.set_path('http://widgets.flux.com/Registration2.asmx');

Flux.API.Services.Registration2.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in Registration2 service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.Reporting=function() {
Flux.API.Services.Reporting.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.Reporting.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.Reporting._staticInstance.get_path();},
GetVisitors:function(info,maxViewers,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetVisitors',false,{info:info,maxViewers:maxViewers},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.Reporting.registerClass('Flux.API.Services.Reporting',Sys.Net.WebServiceProxy);
Flux.API.Services.Reporting._staticInstance = new Flux.API.Services.Reporting();
Flux.API.Services.Reporting.set_path = function(value) { Flux.API.Services.Reporting._staticInstance.set_path(value); }
Flux.API.Services.Reporting.get_path = function() { return Flux.API.Services.Reporting._staticInstance.get_path(); }
Flux.API.Services.Reporting.set_timeout = function(value) { Flux.API.Services.Reporting._staticInstance.set_timeout(value); }
Flux.API.Services.Reporting.get_timeout = function() { return Flux.API.Services.Reporting._staticInstance.get_timeout(); }
Flux.API.Services.Reporting.set_defaultUserContext = function(value) { Flux.API.Services.Reporting._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.Reporting.get_defaultUserContext = function() { return Flux.API.Services.Reporting._staticInstance.get_defaultUserContext(); }
Flux.API.Services.Reporting.set_defaultSucceededCallback = function(value) { Flux.API.Services.Reporting._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.Reporting.get_defaultSucceededCallback = function() { return Flux.API.Services.Reporting._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.Reporting.set_defaultFailedCallback = function(value) { Flux.API.Services.Reporting._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.Reporting.get_defaultFailedCallback = function() { return Flux.API.Services.Reporting._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.Reporting.set_enableJsonp = function(value) { Flux.API.Services.Reporting._staticInstance.set_enableJsonp(value); }
Flux.API.Services.Reporting.get_enableJsonp = function() { return Flux.API.Services.Reporting._staticInstance.get_enableJsonp(); }
Flux.API.Services.Reporting.set_jsonpCallbackParameter = function(value) { Flux.API.Services.Reporting._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.Reporting.get_jsonpCallbackParameter = function() { return Flux.API.Services.Reporting._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.Reporting.set_path("/Reporting.asmx");
Flux.API.Services.Reporting.GetVisitors= function(info,maxViewers,onSuccess,onFailed,userContext) {Flux.API.Services.Reporting._staticInstance.GetVisitors(info,maxViewers,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo) === 'undefined') {
Flux.API.RequestInfo=gtc("Flux.API.RequestInfo");
Flux.API.RequestInfo.registerClass('Flux.API.RequestInfo');
}
if (typeof(Flux.API.UserActionInfo) === 'undefined') {
Flux.API.UserActionInfo=gtc("Flux.API.UserActionInfo");
Flux.API.UserActionInfo.registerClass('Flux.API.UserActionInfo');
}
if (typeof(Flux.API.EntryScope) === 'undefined') {
Flux.API.EntryScope = function() { throw Error.invalidOperation(); }
Flux.API.EntryScope.prototype = {Private: 1,Friends: 2,Restricted: 3,Public: 4}
Flux.API.EntryScope.registerEnum('Flux.API.EntryScope', true);
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}


Flux.API.Services.Reporting.set_path('http://widgets.flux.com/Reporting.asmx');

Flux.API.Services.Reporting.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in Reporting service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.UserFeed=function() {
Flux.API.Services.UserFeed.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.UserFeed.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.UserFeed._staticInstance.get_path();},
GetUserFeedList:function(info,request,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserFeedList',false,{info:info,request:request},succeededCallback,failedCallback,userContext); },
GetFullUserFeedList:function(info,request,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetFullUserFeedList',false,{info:info,request:request},succeededCallback,failedCallback,userContext); },
CreateUserFeed:function(info,title,description,isDefault,uriList,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateUserFeed',false,{info:info,title:title,description:description,isDefault:isDefault,uriList:uriList},succeededCallback,failedCallback,userContext); },
DeleteUserFeed:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteUserFeed',false,{info:info},succeededCallback,failedCallback,userContext); },
AddContentToUserFeed:function(info,uriList,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddContentToUserFeed',false,{info:info,uriList:uriList},succeededCallback,failedCallback,userContext); },
UpdateUserFeed:function(info,feedEntry,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateUserFeed',false,{info:info,feedEntry:feedEntry},succeededCallback,failedCallback,userContext); },
GetUserFeed:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserFeed',false,{info:info},succeededCallback,failedCallback,userContext); },
GetUserFeedContentItems:function(info,request,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserFeedContentItems',false,{info:info,request:request},succeededCallback,failedCallback,userContext); },
ReorderUserFeedItems:function(info,contentUri,newPosition,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ReorderUserFeedItems',false,{info:info,contentUri:contentUri,newPosition:newPosition},succeededCallback,failedCallback,userContext); },
RemoveContentFromUserFeed:function(info,uriList,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveContentFromUserFeed',false,{info:info,uriList:uriList},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.UserFeed.registerClass('Flux.API.Services.UserFeed',Sys.Net.WebServiceProxy);
Flux.API.Services.UserFeed._staticInstance = new Flux.API.Services.UserFeed();
Flux.API.Services.UserFeed.set_path = function(value) { Flux.API.Services.UserFeed._staticInstance.set_path(value); }
Flux.API.Services.UserFeed.get_path = function() { return Flux.API.Services.UserFeed._staticInstance.get_path(); }
Flux.API.Services.UserFeed.set_timeout = function(value) { Flux.API.Services.UserFeed._staticInstance.set_timeout(value); }
Flux.API.Services.UserFeed.get_timeout = function() { return Flux.API.Services.UserFeed._staticInstance.get_timeout(); }
Flux.API.Services.UserFeed.set_defaultUserContext = function(value) { Flux.API.Services.UserFeed._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.UserFeed.get_defaultUserContext = function() { return Flux.API.Services.UserFeed._staticInstance.get_defaultUserContext(); }
Flux.API.Services.UserFeed.set_defaultSucceededCallback = function(value) { Flux.API.Services.UserFeed._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.UserFeed.get_defaultSucceededCallback = function() { return Flux.API.Services.UserFeed._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.UserFeed.set_defaultFailedCallback = function(value) { Flux.API.Services.UserFeed._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.UserFeed.get_defaultFailedCallback = function() { return Flux.API.Services.UserFeed._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.UserFeed.set_enableJsonp = function(value) { Flux.API.Services.UserFeed._staticInstance.set_enableJsonp(value); }
Flux.API.Services.UserFeed.get_enableJsonp = function() { return Flux.API.Services.UserFeed._staticInstance.get_enableJsonp(); }
Flux.API.Services.UserFeed.set_jsonpCallbackParameter = function(value) { Flux.API.Services.UserFeed._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.UserFeed.get_jsonpCallbackParameter = function() { return Flux.API.Services.UserFeed._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.UserFeed.set_path("/UserFeed.asmx");
Flux.API.Services.UserFeed.GetUserFeedList= function(info,request,onSuccess,onFailed,userContext) {Flux.API.Services.UserFeed._staticInstance.GetUserFeedList(info,request,onSuccess,onFailed,userContext); }
Flux.API.Services.UserFeed.GetFullUserFeedList= function(info,request,onSuccess,onFailed,userContext) {Flux.API.Services.UserFeed._staticInstance.GetFullUserFeedList(info,request,onSuccess,onFailed,userContext); }
Flux.API.Services.UserFeed.CreateUserFeed= function(info,title,description,isDefault,uriList,onSuccess,onFailed,userContext) {Flux.API.Services.UserFeed._staticInstance.CreateUserFeed(info,title,description,isDefault,uriList,onSuccess,onFailed,userContext); }
Flux.API.Services.UserFeed.DeleteUserFeed= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.UserFeed._staticInstance.DeleteUserFeed(info,onSuccess,onFailed,userContext); }
Flux.API.Services.UserFeed.AddContentToUserFeed= function(info,uriList,onSuccess,onFailed,userContext) {Flux.API.Services.UserFeed._staticInstance.AddContentToUserFeed(info,uriList,onSuccess,onFailed,userContext); }
Flux.API.Services.UserFeed.UpdateUserFeed= function(info,feedEntry,onSuccess,onFailed,userContext) {Flux.API.Services.UserFeed._staticInstance.UpdateUserFeed(info,feedEntry,onSuccess,onFailed,userContext); }
Flux.API.Services.UserFeed.GetUserFeed= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.UserFeed._staticInstance.GetUserFeed(info,onSuccess,onFailed,userContext); }
Flux.API.Services.UserFeed.GetUserFeedContentItems= function(info,request,onSuccess,onFailed,userContext) {Flux.API.Services.UserFeed._staticInstance.GetUserFeedContentItems(info,request,onSuccess,onFailed,userContext); }
Flux.API.Services.UserFeed.ReorderUserFeedItems= function(info,contentUri,newPosition,onSuccess,onFailed,userContext) {Flux.API.Services.UserFeed._staticInstance.ReorderUserFeedItems(info,contentUri,newPosition,onSuccess,onFailed,userContext); }
Flux.API.Services.UserFeed.RemoveContentFromUserFeed= function(info,uriList,onSuccess,onFailed,userContext) {Flux.API.Services.UserFeed._staticInstance.RemoveContentFromUserFeed(info,uriList,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo) === 'undefined') {
Flux.API.RequestInfo=gtc("Flux.API.RequestInfo");
Flux.API.RequestInfo.registerClass('Flux.API.RequestInfo');
}
if (typeof(Flux.API.ListRequest) === 'undefined') {
Flux.API.ListRequest=gtc("Flux.API.ListRequest");
Flux.API.ListRequest.registerClass('Flux.API.ListRequest');
}
if (typeof(Flux.API.UserFeedEntry) === 'undefined') {
Flux.API.UserFeedEntry=gtc("Flux.API.UserFeedEntry");
Flux.API.UserFeedEntry.registerClass('Flux.API.UserFeedEntry');
}
if (typeof(Flux.API.FeedListRequest) === 'undefined') {
Flux.API.FeedListRequest=gtc("Flux.API.FeedListRequest");
Flux.API.FeedListRequest.registerClass('Flux.API.FeedListRequest');
}
if (typeof(Flux.API.FullUserFeedEntry) === 'undefined') {
Flux.API.FullUserFeedEntry=gtc("Flux.API.FullUserFeedEntry");
Flux.API.FullUserFeedEntry.registerClass('Flux.API.FullUserFeedEntry');
}
if (typeof(Flux.API.UserFeedEntryResult) === 'undefined') {
Flux.API.UserFeedEntryResult=gtc("Flux.API.UserFeedEntryResult");
Flux.API.UserFeedEntryResult.registerClass('Flux.API.UserFeedEntryResult');
}
if (typeof(Flux.API.InvokeResult) === 'undefined') {
Flux.API.InvokeResult=gtc("Flux.API.InvokeResult");
Flux.API.InvokeResult.registerClass('Flux.API.InvokeResult');
}
if (typeof(Flux.API.ContentEntry) === 'undefined') {
Flux.API.ContentEntry=gtc("Flux.API.ContentEntry");
Flux.API.ContentEntry.registerClass('Flux.API.ContentEntry');
}
if (typeof(Flux.API.EntryScope) === 'undefined') {
Flux.API.EntryScope = function() { throw Error.invalidOperation(); }
Flux.API.EntryScope.prototype = {Private: 1,Friends: 2,Restricted: 3,Public: 4}
Flux.API.EntryScope.registerEnum('Flux.API.EntryScope', true);
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}


Flux.API.Services.UserFeed.set_path('http://widgets.flux.com/UserFeed.asmx');

Flux.API.Services.UserFeed.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in UserFeed service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.WidgetHelper=function() {
Flux.API.Services.WidgetHelper.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.WidgetHelper.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.WidgetHelper._staticInstance.get_path();},
GetQuickMenuData:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetQuickMenuData',false,{info:info},succeededCallback,failedCallback,userContext); },
UploadContentByPermalink:function(info,permalinks,uploadToCommunity,contentType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UploadContentByPermalink',false,{info:info,permalinks:permalinks,uploadToCommunity:uploadToCommunity,contentType:contentType},succeededCallback,failedCallback,userContext); },
UploadContentByPermalink2:function(info,permalinks,uploadToCommunity,contentType,share,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UploadContentByPermalink2',false,{info:info,permalinks:permalinks,uploadToCommunity:uploadToCommunity,contentType:contentType,share:share},succeededCallback,failedCallback,userContext); },
IsUploadComplete:function(info,ucidList,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsUploadComplete',false,{info:info,ucidList:ucidList},succeededCallback,failedCallback,userContext); },
GetVideoSearchData:function(info,providerId,searchTerm,pageNumber,pageSize,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetVideoSearchData',false,{info:info,providerId:providerId,searchTerm:searchTerm,pageNumber:pageNumber,pageSize:pageSize},succeededCallback,failedCallback,userContext); },
GetPictureSearchData:function(info,providerId,searchTerm,pageNumber,pageSize,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPictureSearchData',false,{info:info,providerId:providerId,searchTerm:searchTerm,pageNumber:pageNumber,pageSize:pageSize},succeededCallback,failedCallback,userContext); },
GetFavoritedContent:function(info,pageNumber,pageSize,contentEntryType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetFavoritedContent',false,{info:info,pageNumber:pageNumber,pageSize:pageSize,contentEntryType:contentEntryType},succeededCallback,failedCallback,userContext); },
GetUploadedContent:function(info,pageNumber,pageSize,contentEntryType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUploadedContent',false,{info:info,pageNumber:pageNumber,pageSize:pageSize,contentEntryType:contentEntryType},succeededCallback,failedCallback,userContext); },
GetContentByUcid:function(info,ucid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetContentByUcid',false,{info:info,ucid:ucid},succeededCallback,failedCallback,userContext); },
GetUploadFilteredCommunityCategories:function(info,contentEntryType,excludeBasicUploadOnly,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUploadFilteredCommunityCategories',false,{info:info,contentEntryType:contentEntryType,excludeBasicUploadOnly:excludeBasicUploadOnly},succeededCallback,failedCallback,userContext); },
UpdateContentDetail:function(info,entry,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateContentDetail',false,{info:info,entry:entry},succeededCallback,failedCallback,userContext); },
SendReportAbuse:function(info,captchaUserCode,captchaCryptoCode,userName,userEmail,abuseType,description,referringUrl,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendReportAbuse',false,{info:info,captchaUserCode:captchaUserCode,captchaCryptoCode:captchaCryptoCode,userName:userName,userEmail:userEmail,abuseType:abuseType,description:description,referringUrl:referringUrl},succeededCallback,failedCallback,userContext); },
IsPermalinkDiscovered:function(info,isCommunityOwnerShip,url,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsPermalinkDiscovered',false,{info:info,isCommunityOwnerShip:isCommunityOwnerShip,url:url},succeededCallback,failedCallback,userContext); },
IsPermalinkDiscovered2:function(info,isCommunityOwnerShip,permalinks,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsPermalinkDiscovered2',false,{info:info,isCommunityOwnerShip:isCommunityOwnerShip,permalinks:permalinks},succeededCallback,failedCallback,userContext); },
IsPermalinkDiscoveredGlobal:function(info,url,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsPermalinkDiscoveredGlobal',false,{info:info,url:url},succeededCallback,failedCallback,userContext); },
IsPermalinkDiscoveredGlobal2:function(info,permalinks,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsPermalinkDiscoveredGlobal2',false,{info:info,permalinks:permalinks},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.WidgetHelper.registerClass('Flux.API.Services.WidgetHelper',Sys.Net.WebServiceProxy);
Flux.API.Services.WidgetHelper._staticInstance = new Flux.API.Services.WidgetHelper();
Flux.API.Services.WidgetHelper.set_path = function(value) { Flux.API.Services.WidgetHelper._staticInstance.set_path(value); }
Flux.API.Services.WidgetHelper.get_path = function() { return Flux.API.Services.WidgetHelper._staticInstance.get_path(); }
Flux.API.Services.WidgetHelper.set_timeout = function(value) { Flux.API.Services.WidgetHelper._staticInstance.set_timeout(value); }
Flux.API.Services.WidgetHelper.get_timeout = function() { return Flux.API.Services.WidgetHelper._staticInstance.get_timeout(); }
Flux.API.Services.WidgetHelper.set_defaultUserContext = function(value) { Flux.API.Services.WidgetHelper._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.WidgetHelper.get_defaultUserContext = function() { return Flux.API.Services.WidgetHelper._staticInstance.get_defaultUserContext(); }
Flux.API.Services.WidgetHelper.set_defaultSucceededCallback = function(value) { Flux.API.Services.WidgetHelper._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.WidgetHelper.get_defaultSucceededCallback = function() { return Flux.API.Services.WidgetHelper._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.WidgetHelper.set_defaultFailedCallback = function(value) { Flux.API.Services.WidgetHelper._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.WidgetHelper.get_defaultFailedCallback = function() { return Flux.API.Services.WidgetHelper._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.WidgetHelper.set_enableJsonp = function(value) { Flux.API.Services.WidgetHelper._staticInstance.set_enableJsonp(value); }
Flux.API.Services.WidgetHelper.get_enableJsonp = function() { return Flux.API.Services.WidgetHelper._staticInstance.get_enableJsonp(); }
Flux.API.Services.WidgetHelper.set_jsonpCallbackParameter = function(value) { Flux.API.Services.WidgetHelper._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.WidgetHelper.get_jsonpCallbackParameter = function() { return Flux.API.Services.WidgetHelper._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.WidgetHelper.set_path("/WidgetHelper.asmx");
Flux.API.Services.WidgetHelper.GetQuickMenuData= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.GetQuickMenuData(info,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.UploadContentByPermalink= function(info,permalinks,uploadToCommunity,contentType,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.UploadContentByPermalink(info,permalinks,uploadToCommunity,contentType,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.UploadContentByPermalink2= function(info,permalinks,uploadToCommunity,contentType,share,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.UploadContentByPermalink2(info,permalinks,uploadToCommunity,contentType,share,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.IsUploadComplete= function(info,ucidList,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.IsUploadComplete(info,ucidList,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.GetVideoSearchData= function(info,providerId,searchTerm,pageNumber,pageSize,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.GetVideoSearchData(info,providerId,searchTerm,pageNumber,pageSize,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.GetPictureSearchData= function(info,providerId,searchTerm,pageNumber,pageSize,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.GetPictureSearchData(info,providerId,searchTerm,pageNumber,pageSize,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.GetFavoritedContent= function(info,pageNumber,pageSize,contentEntryType,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.GetFavoritedContent(info,pageNumber,pageSize,contentEntryType,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.GetUploadedContent= function(info,pageNumber,pageSize,contentEntryType,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.GetUploadedContent(info,pageNumber,pageSize,contentEntryType,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.GetContentByUcid= function(info,ucid,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.GetContentByUcid(info,ucid,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.GetUploadFilteredCommunityCategories= function(info,contentEntryType,excludeBasicUploadOnly,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.GetUploadFilteredCommunityCategories(info,contentEntryType,excludeBasicUploadOnly,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.UpdateContentDetail= function(info,entry,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.UpdateContentDetail(info,entry,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.SendReportAbuse= function(info,captchaUserCode,captchaCryptoCode,userName,userEmail,abuseType,description,referringUrl,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.SendReportAbuse(info,captchaUserCode,captchaCryptoCode,userName,userEmail,abuseType,description,referringUrl,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.IsPermalinkDiscovered= function(info,isCommunityOwnerShip,url,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.IsPermalinkDiscovered(info,isCommunityOwnerShip,url,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.IsPermalinkDiscovered2= function(info,isCommunityOwnerShip,permalinks,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.IsPermalinkDiscovered2(info,isCommunityOwnerShip,permalinks,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.IsPermalinkDiscoveredGlobal= function(info,url,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.IsPermalinkDiscoveredGlobal(info,url,onSuccess,onFailed,userContext); }
Flux.API.Services.WidgetHelper.IsPermalinkDiscoveredGlobal2= function(info,permalinks,onSuccess,onFailed,userContext) {Flux.API.Services.WidgetHelper._staticInstance.IsPermalinkDiscoveredGlobal2(info,permalinks,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo) === 'undefined') {
Flux.API.RequestInfo=gtc("Flux.API.RequestInfo");
Flux.API.RequestInfo.registerClass('Flux.API.RequestInfo');
}
if (typeof(Flux.API.QuickMenuResult) === 'undefined') {
Flux.API.QuickMenuResult=gtc("Flux.API.QuickMenuResult");
Flux.API.QuickMenuResult.registerClass('Flux.API.QuickMenuResult');
}
if (typeof(Flux.API.ContentEntry) === 'undefined') {
Flux.API.ContentEntry=gtc("Flux.API.ContentEntry");
Flux.API.ContentEntry.registerClass('Flux.API.ContentEntry');
}
if (typeof(Flux.API.ContentEntry2) === 'undefined') {
Flux.API.ContentEntry2=gtc("Flux.API.ContentEntry2");
Flux.API.ContentEntry2.registerClass('Flux.API.ContentEntry2');
}
if (typeof(Flux.API.CategoryEntry) === 'undefined') {
Flux.API.CategoryEntry=gtc("Flux.API.CategoryEntry");
Flux.API.CategoryEntry.registerClass('Flux.API.CategoryEntry');
}
if (typeof(Flux.API.InvokeResult) === 'undefined') {
Flux.API.InvokeResult=gtc("Flux.API.InvokeResult");
Flux.API.InvokeResult.registerClass('Flux.API.InvokeResult');
}
if (typeof(Flux.API.ContentEntry3) === 'undefined') {
Flux.API.ContentEntry3=gtc("Flux.API.ContentEntry3");
Flux.API.ContentEntry3.registerClass('Flux.API.ContentEntry3');
}
Type.registerNamespace('Flux.Widgets');
if (typeof(Flux.Widgets.GuestEntryVisibility) === 'undefined') {
Flux.Widgets.GuestEntryVisibility = function() { throw Error.invalidOperation(); }
Flux.Widgets.GuestEntryVisibility.prototype = {Optional: 0,Requred: 1,DoNotShow: 2}
Flux.Widgets.GuestEntryVisibility.registerEnum('Flux.Widgets.GuestEntryVisibility', true);
}
if (typeof(Flux.API.ContentEntryType) === 'undefined') {
Flux.API.ContentEntryType = function() { throw Error.invalidOperation(); }
Flux.API.ContentEntryType.prototype = {Audio: 1,Video: 2,Photo: 4,Link: 8,List: 16,Feed: 32,User: 64,Topic: 256,Group: 512,News: 1024}
Flux.API.ContentEntryType.registerEnum('Flux.API.ContentEntryType', true);
}


Flux.API.Services.WidgetHelper.set_path('http://widgets.flux.com/WidgetHelper.asmx');

Flux.API.Services.WidgetHelper.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in WidgetHelper service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.UserManagement=function() {
Flux.API.Services.UserManagement.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.UserManagement.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.UserManagement._staticInstance.get_path();},
SearchUser:function(info,request,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchUser',false,{info:info,request:request},succeededCallback,failedCallback,userContext); },
GetPeopleList:function(info,request,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPeopleList',false,{info:info,request:request},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.UserManagement.registerClass('Flux.API.Services.UserManagement',Sys.Net.WebServiceProxy);
Flux.API.Services.UserManagement._staticInstance = new Flux.API.Services.UserManagement();
Flux.API.Services.UserManagement.set_path = function(value) { Flux.API.Services.UserManagement._staticInstance.set_path(value); }
Flux.API.Services.UserManagement.get_path = function() { return Flux.API.Services.UserManagement._staticInstance.get_path(); }
Flux.API.Services.UserManagement.set_timeout = function(value) { Flux.API.Services.UserManagement._staticInstance.set_timeout(value); }
Flux.API.Services.UserManagement.get_timeout = function() { return Flux.API.Services.UserManagement._staticInstance.get_timeout(); }
Flux.API.Services.UserManagement.set_defaultUserContext = function(value) { Flux.API.Services.UserManagement._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.UserManagement.get_defaultUserContext = function() { return Flux.API.Services.UserManagement._staticInstance.get_defaultUserContext(); }
Flux.API.Services.UserManagement.set_defaultSucceededCallback = function(value) { Flux.API.Services.UserManagement._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.UserManagement.get_defaultSucceededCallback = function() { return Flux.API.Services.UserManagement._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.UserManagement.set_defaultFailedCallback = function(value) { Flux.API.Services.UserManagement._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.UserManagement.get_defaultFailedCallback = function() { return Flux.API.Services.UserManagement._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.UserManagement.set_enableJsonp = function(value) { Flux.API.Services.UserManagement._staticInstance.set_enableJsonp(value); }
Flux.API.Services.UserManagement.get_enableJsonp = function() { return Flux.API.Services.UserManagement._staticInstance.get_enableJsonp(); }
Flux.API.Services.UserManagement.set_jsonpCallbackParameter = function(value) { Flux.API.Services.UserManagement._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.UserManagement.get_jsonpCallbackParameter = function() { return Flux.API.Services.UserManagement._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.UserManagement.set_path("/UserManagement.asmx");
Flux.API.Services.UserManagement.SearchUser= function(info,request,onSuccess,onFailed,userContext) {Flux.API.Services.UserManagement._staticInstance.SearchUser(info,request,onSuccess,onFailed,userContext); }
Flux.API.Services.UserManagement.GetPeopleList= function(info,request,onSuccess,onFailed,userContext) {Flux.API.Services.UserManagement._staticInstance.GetPeopleList(info,request,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo2) === 'undefined') {
Flux.API.RequestInfo2=gtc("Flux.API.RequestInfo2");
Flux.API.RequestInfo2.registerClass('Flux.API.RequestInfo2');
}
if (typeof(Flux.API.UserSearchRequest) === 'undefined') {
Flux.API.UserSearchRequest=gtc("Flux.API.UserSearchRequest");
Flux.API.UserSearchRequest.registerClass('Flux.API.UserSearchRequest');
}
if (typeof(Flux.API.SearchUserInfo) === 'undefined') {
Flux.API.SearchUserInfo=gtc("Flux.API.SearchUserInfo");
Flux.API.SearchUserInfo.registerClass('Flux.API.SearchUserInfo');
}
if (typeof(Flux.API.PeopleListRequest) === 'undefined') {
Flux.API.PeopleListRequest=gtc("Flux.API.PeopleListRequest");
Flux.API.PeopleListRequest.registerClass('Flux.API.PeopleListRequest');
}
if (typeof(Flux.API.UserInfo2) === 'undefined') {
Flux.API.UserInfo2=gtc("Flux.API.UserInfo2");
Flux.API.UserInfo2.registerClass('Flux.API.UserInfo2');
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}
if (typeof(Flux.API.PeopleCategory) === 'undefined') {
Flux.API.PeopleCategory = function() { throw Error.invalidOperation(); }
Flux.API.PeopleCategory.prototype = {OnlineMembers: 0}
Flux.API.PeopleCategory.registerEnum('Flux.API.PeopleCategory', true);
}
if (typeof(Flux.API.GenderInfo) === 'undefined') {
Flux.API.GenderInfo = function() { throw Error.invalidOperation(); }
Flux.API.GenderInfo.prototype = {Unspecified: 0,Male: 1,Female: 2,Other: 3}
Flux.API.GenderInfo.registerEnum('Flux.API.GenderInfo', true);
}
if (typeof(Flux.API.ImageSize) === 'undefined') {
Flux.API.ImageSize = function() { throw Error.invalidOperation(); }
Flux.API.ImageSize.prototype = {VerySmall: 1,Small: 3,Medium: 5,Large: 6,VeryLarge: 7}
Flux.API.ImageSize.registerEnum('Flux.API.ImageSize', true);
}


Flux.API.Services.UserManagement.set_path('http://widgets.flux.com/UserManagement.asmx');

Flux.API.Services.UserManagement.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in UserManagement service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.RelationshipManagement=function() {
Flux.API.Services.RelationshipManagement.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.RelationshipManagement.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.RelationshipManagement._staticInstance.get_path();},
GetRelationshipPermissions:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetRelationshipPermissions',false,{info:info},succeededCallback,failedCallback,userContext); },
SendFriendRequest:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendFriendRequest',false,{info:info},succeededCallback,failedCallback,userContext); },
BecomeFan:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'BecomeFan',false,{info:info},succeededCallback,failedCallback,userContext); },
RemoveRelationship:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveRelationship',false,{info:info},succeededCallback,failedCallback,userContext); },
GetRelations2:function(info,request,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetRelations2',false,{info:info,request:request},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.RelationshipManagement.registerClass('Flux.API.Services.RelationshipManagement',Sys.Net.WebServiceProxy);
Flux.API.Services.RelationshipManagement._staticInstance = new Flux.API.Services.RelationshipManagement();
Flux.API.Services.RelationshipManagement.set_path = function(value) { Flux.API.Services.RelationshipManagement._staticInstance.set_path(value); }
Flux.API.Services.RelationshipManagement.get_path = function() { return Flux.API.Services.RelationshipManagement._staticInstance.get_path(); }
Flux.API.Services.RelationshipManagement.set_timeout = function(value) { Flux.API.Services.RelationshipManagement._staticInstance.set_timeout(value); }
Flux.API.Services.RelationshipManagement.get_timeout = function() { return Flux.API.Services.RelationshipManagement._staticInstance.get_timeout(); }
Flux.API.Services.RelationshipManagement.set_defaultUserContext = function(value) { Flux.API.Services.RelationshipManagement._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.RelationshipManagement.get_defaultUserContext = function() { return Flux.API.Services.RelationshipManagement._staticInstance.get_defaultUserContext(); }
Flux.API.Services.RelationshipManagement.set_defaultSucceededCallback = function(value) { Flux.API.Services.RelationshipManagement._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.RelationshipManagement.get_defaultSucceededCallback = function() { return Flux.API.Services.RelationshipManagement._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.RelationshipManagement.set_defaultFailedCallback = function(value) { Flux.API.Services.RelationshipManagement._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.RelationshipManagement.get_defaultFailedCallback = function() { return Flux.API.Services.RelationshipManagement._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.RelationshipManagement.set_enableJsonp = function(value) { Flux.API.Services.RelationshipManagement._staticInstance.set_enableJsonp(value); }
Flux.API.Services.RelationshipManagement.get_enableJsonp = function() { return Flux.API.Services.RelationshipManagement._staticInstance.get_enableJsonp(); }
Flux.API.Services.RelationshipManagement.set_jsonpCallbackParameter = function(value) { Flux.API.Services.RelationshipManagement._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.RelationshipManagement.get_jsonpCallbackParameter = function() { return Flux.API.Services.RelationshipManagement._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.RelationshipManagement.set_path("/RelationshipManagement.asmx");
Flux.API.Services.RelationshipManagement.GetRelationshipPermissions= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.RelationshipManagement._staticInstance.GetRelationshipPermissions(info,onSuccess,onFailed,userContext); }
Flux.API.Services.RelationshipManagement.SendFriendRequest= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.RelationshipManagement._staticInstance.SendFriendRequest(info,onSuccess,onFailed,userContext); }
Flux.API.Services.RelationshipManagement.BecomeFan= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.RelationshipManagement._staticInstance.BecomeFan(info,onSuccess,onFailed,userContext); }
Flux.API.Services.RelationshipManagement.RemoveRelationship= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.RelationshipManagement._staticInstance.RemoveRelationship(info,onSuccess,onFailed,userContext); }
Flux.API.Services.RelationshipManagement.GetRelations2= function(info,request,onSuccess,onFailed,userContext) {Flux.API.Services.RelationshipManagement._staticInstance.GetRelations2(info,request,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo2) === 'undefined') {
Flux.API.RequestInfo2=gtc("Flux.API.RequestInfo2");
Flux.API.RequestInfo2.registerClass('Flux.API.RequestInfo2');
}
if (typeof(Flux.API.RelationshipPermissionsResult) === 'undefined') {
Flux.API.RelationshipPermissionsResult=gtc("Flux.API.RelationshipPermissionsResult");
Flux.API.RelationshipPermissionsResult.registerClass('Flux.API.RelationshipPermissionsResult');
}
if (typeof(Flux.API.InvokeResult) === 'undefined') {
Flux.API.InvokeResult=gtc("Flux.API.InvokeResult");
Flux.API.InvokeResult.registerClass('Flux.API.InvokeResult');
}
if (typeof(Flux.API.RelationListRequest2) === 'undefined') {
Flux.API.RelationListRequest2=gtc("Flux.API.RelationListRequest2");
Flux.API.RelationListRequest2.registerClass('Flux.API.RelationListRequest2');
}
if (typeof(Flux.API.UserRelation2) === 'undefined') {
Flux.API.UserRelation2=gtc("Flux.API.UserRelation2");
Flux.API.UserRelation2.registerClass('Flux.API.UserRelation2');
}
if (typeof(Flux.API.RelationStatus) === 'undefined') {
Flux.API.RelationStatus = function() { throw Error.invalidOperation(); }
Flux.API.RelationStatus.prototype = {Accepted: 1,RequestSent: 2,Pending: 3,Declined: 4,Banned: 5,BeingFollowed: 6,IsFollowing: 7,FollowingRequestSent: 8}
Flux.API.RelationStatus.registerEnum('Flux.API.RelationStatus', true);
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}


Flux.API.Services.RelationshipManagement.set_path('http://widgets.flux.com/RelationshipManagement.asmx');

Flux.API.Services.RelationshipManagement.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in RelationshipManagement service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.ProfileManagement2=function() {
Flux.API.Services.ProfileManagement2.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.ProfileManagement2.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.ProfileManagement2._staticInstance.get_path();},
GetUserTypes:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserTypes',false,{info:info},succeededCallback,failedCallback,userContext); },
GetAccount2:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAccount2',false,{info:info},succeededCallback,failedCallback,userContext); },
AssignUserType:function(info,userTypeId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AssignUserType',false,{info:info,userTypeId:userTypeId},succeededCallback,failedCallback,userContext); },
RemoveUserType:function(info,userTypeId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveUserType',false,{info:info,userTypeId:userTypeId},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.ProfileManagement2.registerClass('Flux.API.Services.ProfileManagement2',Sys.Net.WebServiceProxy);
Flux.API.Services.ProfileManagement2._staticInstance = new Flux.API.Services.ProfileManagement2();
Flux.API.Services.ProfileManagement2.set_path = function(value) { Flux.API.Services.ProfileManagement2._staticInstance.set_path(value); }
Flux.API.Services.ProfileManagement2.get_path = function() { return Flux.API.Services.ProfileManagement2._staticInstance.get_path(); }
Flux.API.Services.ProfileManagement2.set_timeout = function(value) { Flux.API.Services.ProfileManagement2._staticInstance.set_timeout(value); }
Flux.API.Services.ProfileManagement2.get_timeout = function() { return Flux.API.Services.ProfileManagement2._staticInstance.get_timeout(); }
Flux.API.Services.ProfileManagement2.set_defaultUserContext = function(value) { Flux.API.Services.ProfileManagement2._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.ProfileManagement2.get_defaultUserContext = function() { return Flux.API.Services.ProfileManagement2._staticInstance.get_defaultUserContext(); }
Flux.API.Services.ProfileManagement2.set_defaultSucceededCallback = function(value) { Flux.API.Services.ProfileManagement2._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.ProfileManagement2.get_defaultSucceededCallback = function() { return Flux.API.Services.ProfileManagement2._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.ProfileManagement2.set_defaultFailedCallback = function(value) { Flux.API.Services.ProfileManagement2._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.ProfileManagement2.get_defaultFailedCallback = function() { return Flux.API.Services.ProfileManagement2._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.ProfileManagement2.set_enableJsonp = function(value) { Flux.API.Services.ProfileManagement2._staticInstance.set_enableJsonp(value); }
Flux.API.Services.ProfileManagement2.get_enableJsonp = function() { return Flux.API.Services.ProfileManagement2._staticInstance.get_enableJsonp(); }
Flux.API.Services.ProfileManagement2.set_jsonpCallbackParameter = function(value) { Flux.API.Services.ProfileManagement2._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.ProfileManagement2.get_jsonpCallbackParameter = function() { return Flux.API.Services.ProfileManagement2._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.ProfileManagement2.set_path("/ProfileManagement2.asmx");
Flux.API.Services.ProfileManagement2.GetUserTypes= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement2._staticInstance.GetUserTypes(info,onSuccess,onFailed,userContext); }
Flux.API.Services.ProfileManagement2.GetAccount2= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement2._staticInstance.GetAccount2(info,onSuccess,onFailed,userContext); }
Flux.API.Services.ProfileManagement2.AssignUserType= function(info,userTypeId,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement2._staticInstance.AssignUserType(info,userTypeId,onSuccess,onFailed,userContext); }
Flux.API.Services.ProfileManagement2.RemoveUserType= function(info,userTypeId,onSuccess,onFailed,userContext) {Flux.API.Services.ProfileManagement2._staticInstance.RemoveUserType(info,userTypeId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo2) === 'undefined') {
Flux.API.RequestInfo2=gtc("Flux.API.RequestInfo2");
Flux.API.RequestInfo2.registerClass('Flux.API.RequestInfo2');
}
if (typeof(Flux.API.UserTypeInfo) === 'undefined') {
Flux.API.UserTypeInfo=gtc("Flux.API.UserTypeInfo");
Flux.API.UserTypeInfo.registerClass('Flux.API.UserTypeInfo');
}
if (typeof(Flux.API.UserInfo2Result) === 'undefined') {
Flux.API.UserInfo2Result=gtc("Flux.API.UserInfo2Result");
Flux.API.UserInfo2Result.registerClass('Flux.API.UserInfo2Result');
}
if (typeof(Flux.API.InvokeResult) === 'undefined') {
Flux.API.InvokeResult=gtc("Flux.API.InvokeResult");
Flux.API.InvokeResult.registerClass('Flux.API.InvokeResult');
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}


Flux.API.Services.ProfileManagement2.set_path('http://widgets.flux.com/ProfileManagement2.asmx');

Flux.API.Services.ProfileManagement2.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in ProfileManagement2 service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.UserFeed2=function() {
Flux.API.Services.UserFeed2.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.UserFeed2.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.UserFeed2._staticInstance.get_path();},
GetUserFeedList2:function(info,request,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserFeedList2',false,{info:info,request:request},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.UserFeed2.registerClass('Flux.API.Services.UserFeed2',Sys.Net.WebServiceProxy);
Flux.API.Services.UserFeed2._staticInstance = new Flux.API.Services.UserFeed2();
Flux.API.Services.UserFeed2.set_path = function(value) { Flux.API.Services.UserFeed2._staticInstance.set_path(value); }
Flux.API.Services.UserFeed2.get_path = function() { return Flux.API.Services.UserFeed2._staticInstance.get_path(); }
Flux.API.Services.UserFeed2.set_timeout = function(value) { Flux.API.Services.UserFeed2._staticInstance.set_timeout(value); }
Flux.API.Services.UserFeed2.get_timeout = function() { return Flux.API.Services.UserFeed2._staticInstance.get_timeout(); }
Flux.API.Services.UserFeed2.set_defaultUserContext = function(value) { Flux.API.Services.UserFeed2._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.UserFeed2.get_defaultUserContext = function() { return Flux.API.Services.UserFeed2._staticInstance.get_defaultUserContext(); }
Flux.API.Services.UserFeed2.set_defaultSucceededCallback = function(value) { Flux.API.Services.UserFeed2._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.UserFeed2.get_defaultSucceededCallback = function() { return Flux.API.Services.UserFeed2._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.UserFeed2.set_defaultFailedCallback = function(value) { Flux.API.Services.UserFeed2._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.UserFeed2.get_defaultFailedCallback = function() { return Flux.API.Services.UserFeed2._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.UserFeed2.set_enableJsonp = function(value) { Flux.API.Services.UserFeed2._staticInstance.set_enableJsonp(value); }
Flux.API.Services.UserFeed2.get_enableJsonp = function() { return Flux.API.Services.UserFeed2._staticInstance.get_enableJsonp(); }
Flux.API.Services.UserFeed2.set_jsonpCallbackParameter = function(value) { Flux.API.Services.UserFeed2._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.UserFeed2.get_jsonpCallbackParameter = function() { return Flux.API.Services.UserFeed2._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.UserFeed2.set_path("/UserFeed2.asmx");
Flux.API.Services.UserFeed2.GetUserFeedList2= function(info,request,onSuccess,onFailed,userContext) {Flux.API.Services.UserFeed2._staticInstance.GetUserFeedList2(info,request,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo2) === 'undefined') {
Flux.API.RequestInfo2=gtc("Flux.API.RequestInfo2");
Flux.API.RequestInfo2.registerClass('Flux.API.RequestInfo2');
}
if (typeof(Flux.API.UserFeedListRequest) === 'undefined') {
Flux.API.UserFeedListRequest=gtc("Flux.API.UserFeedListRequest");
Flux.API.UserFeedListRequest.registerClass('Flux.API.UserFeedListRequest');
}
if (typeof(Flux.API.UserFeedEntry) === 'undefined') {
Flux.API.UserFeedEntry=gtc("Flux.API.UserFeedEntry");
Flux.API.UserFeedEntry.registerClass('Flux.API.UserFeedEntry');
}
if (typeof(Flux.API.EntryScope) === 'undefined') {
Flux.API.EntryScope = function() { throw Error.invalidOperation(); }
Flux.API.EntryScope.prototype = {Private: 1,Friends: 2,Restricted: 3,Public: 4}
Flux.API.EntryScope.registerEnum('Flux.API.EntryScope', true);
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}


Flux.API.Services.UserFeed2.set_path('http://widgets.flux.com/UserFeed2.asmx');

Flux.API.Services.UserFeed2.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in UserFeed2 service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.ShareHelper=function() {
Flux.API.Services.ShareHelper.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.ShareHelper.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.ShareHelper._staticInstance.get_path();},
ShareContent:function(info,textComment,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ShareContent',false,{info:info,textComment:textComment},succeededCallback,failedCallback,userContext); },
SendExternalShareMessage:function(info,recipients,message,captchaUserCode,captchaCryptoCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendExternalShareMessage',false,{info:info,recipients:recipients,message:message,captchaUserCode:captchaUserCode,captchaCryptoCode:captchaCryptoCode},succeededCallback,failedCallback,userContext); },
PostContentToExternalCommunity:function(info,communitySystemName,sectionSystemName,login,password,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'PostContentToExternalCommunity',false,{info:info,communitySystemName:communitySystemName,sectionSystemName:sectionSystemName,login:login,password:password},succeededCallback,failedCallback,userContext); },
GetExternalCommunitySections:function(info,communitySystemName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetExternalCommunitySections',false,{info:info,communitySystemName:communitySystemName},succeededCallback,failedCallback,userContext); },
GetMostSharedContentUrl:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetMostSharedContentUrl',false,{info:info},succeededCallback,failedCallback,userContext); },
GetMySpacePostBody:function(info,communitySystemName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetMySpacePostBody',false,{info:info,communitySystemName:communitySystemName},succeededCallback,failedCallback,userContext); },
CheckPublishingState:function(info,postId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CheckPublishingState',false,{info:info,postId:postId},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.ShareHelper.registerClass('Flux.API.Services.ShareHelper',Sys.Net.WebServiceProxy);
Flux.API.Services.ShareHelper._staticInstance = new Flux.API.Services.ShareHelper();
Flux.API.Services.ShareHelper.set_path = function(value) { Flux.API.Services.ShareHelper._staticInstance.set_path(value); }
Flux.API.Services.ShareHelper.get_path = function() { return Flux.API.Services.ShareHelper._staticInstance.get_path(); }
Flux.API.Services.ShareHelper.set_timeout = function(value) { Flux.API.Services.ShareHelper._staticInstance.set_timeout(value); }
Flux.API.Services.ShareHelper.get_timeout = function() { return Flux.API.Services.ShareHelper._staticInstance.get_timeout(); }
Flux.API.Services.ShareHelper.set_defaultUserContext = function(value) { Flux.API.Services.ShareHelper._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.ShareHelper.get_defaultUserContext = function() { return Flux.API.Services.ShareHelper._staticInstance.get_defaultUserContext(); }
Flux.API.Services.ShareHelper.set_defaultSucceededCallback = function(value) { Flux.API.Services.ShareHelper._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.ShareHelper.get_defaultSucceededCallback = function() { return Flux.API.Services.ShareHelper._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.ShareHelper.set_defaultFailedCallback = function(value) { Flux.API.Services.ShareHelper._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.ShareHelper.get_defaultFailedCallback = function() { return Flux.API.Services.ShareHelper._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.ShareHelper.set_enableJsonp = function(value) { Flux.API.Services.ShareHelper._staticInstance.set_enableJsonp(value); }
Flux.API.Services.ShareHelper.get_enableJsonp = function() { return Flux.API.Services.ShareHelper._staticInstance.get_enableJsonp(); }
Flux.API.Services.ShareHelper.set_jsonpCallbackParameter = function(value) { Flux.API.Services.ShareHelper._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.ShareHelper.get_jsonpCallbackParameter = function() { return Flux.API.Services.ShareHelper._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.ShareHelper.set_path("/ShareHelper.asmx");
Flux.API.Services.ShareHelper.ShareContent= function(info,textComment,onSuccess,onFailed,userContext) {Flux.API.Services.ShareHelper._staticInstance.ShareContent(info,textComment,onSuccess,onFailed,userContext); }
Flux.API.Services.ShareHelper.SendExternalShareMessage= function(info,recipients,message,captchaUserCode,captchaCryptoCode,onSuccess,onFailed,userContext) {Flux.API.Services.ShareHelper._staticInstance.SendExternalShareMessage(info,recipients,message,captchaUserCode,captchaCryptoCode,onSuccess,onFailed,userContext); }
Flux.API.Services.ShareHelper.PostContentToExternalCommunity= function(info,communitySystemName,sectionSystemName,login,password,onSuccess,onFailed,userContext) {Flux.API.Services.ShareHelper._staticInstance.PostContentToExternalCommunity(info,communitySystemName,sectionSystemName,login,password,onSuccess,onFailed,userContext); }
Flux.API.Services.ShareHelper.GetExternalCommunitySections= function(info,communitySystemName,onSuccess,onFailed,userContext) {Flux.API.Services.ShareHelper._staticInstance.GetExternalCommunitySections(info,communitySystemName,onSuccess,onFailed,userContext); }
Flux.API.Services.ShareHelper.GetMostSharedContentUrl= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.ShareHelper._staticInstance.GetMostSharedContentUrl(info,onSuccess,onFailed,userContext); }
Flux.API.Services.ShareHelper.GetMySpacePostBody= function(info,communitySystemName,onSuccess,onFailed,userContext) {Flux.API.Services.ShareHelper._staticInstance.GetMySpacePostBody(info,communitySystemName,onSuccess,onFailed,userContext); }
Flux.API.Services.ShareHelper.CheckPublishingState= function(info,postId,onSuccess,onFailed,userContext) {Flux.API.Services.ShareHelper._staticInstance.CheckPublishingState(info,postId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo) === 'undefined') {
Flux.API.RequestInfo=gtc("Flux.API.RequestInfo");
Flux.API.RequestInfo.registerClass('Flux.API.RequestInfo');
}
if (typeof(Flux.API.InvokeResult) === 'undefined') {
Flux.API.InvokeResult=gtc("Flux.API.InvokeResult");
Flux.API.InvokeResult.registerClass('Flux.API.InvokeResult');
}
if (typeof(Flux.API.ExternalCommunitySectionsResult) === 'undefined') {
Flux.API.ExternalCommunitySectionsResult=gtc("Flux.API.ExternalCommunitySectionsResult");
Flux.API.ExternalCommunitySectionsResult.registerClass('Flux.API.ExternalCommunitySectionsResult');
}


Flux.API.Services.ShareHelper.set_path('http://widgets.flux.com/ShareHelper.asmx');

Flux.API.Services.ShareHelper.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in ShareHelper service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.Discovery=function() {
Flux.API.Services.Discovery.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.Discovery.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.Discovery._staticInstance.get_path();},
Discover:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Discover',false,{info:info},succeededCallback,failedCallback,userContext); },
MakeExternal:function(info,newContentUri,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'MakeExternal',false,{info:info,newContentUri:newContentUri},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.Discovery.registerClass('Flux.API.Services.Discovery',Sys.Net.WebServiceProxy);
Flux.API.Services.Discovery._staticInstance = new Flux.API.Services.Discovery();
Flux.API.Services.Discovery.set_path = function(value) { Flux.API.Services.Discovery._staticInstance.set_path(value); }
Flux.API.Services.Discovery.get_path = function() { return Flux.API.Services.Discovery._staticInstance.get_path(); }
Flux.API.Services.Discovery.set_timeout = function(value) { Flux.API.Services.Discovery._staticInstance.set_timeout(value); }
Flux.API.Services.Discovery.get_timeout = function() { return Flux.API.Services.Discovery._staticInstance.get_timeout(); }
Flux.API.Services.Discovery.set_defaultUserContext = function(value) { Flux.API.Services.Discovery._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.Discovery.get_defaultUserContext = function() { return Flux.API.Services.Discovery._staticInstance.get_defaultUserContext(); }
Flux.API.Services.Discovery.set_defaultSucceededCallback = function(value) { Flux.API.Services.Discovery._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.Discovery.get_defaultSucceededCallback = function() { return Flux.API.Services.Discovery._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.Discovery.set_defaultFailedCallback = function(value) { Flux.API.Services.Discovery._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.Discovery.get_defaultFailedCallback = function() { return Flux.API.Services.Discovery._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.Discovery.set_enableJsonp = function(value) { Flux.API.Services.Discovery._staticInstance.set_enableJsonp(value); }
Flux.API.Services.Discovery.get_enableJsonp = function() { return Flux.API.Services.Discovery._staticInstance.get_enableJsonp(); }
Flux.API.Services.Discovery.set_jsonpCallbackParameter = function(value) { Flux.API.Services.Discovery._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.Discovery.get_jsonpCallbackParameter = function() { return Flux.API.Services.Discovery._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.Discovery.set_path("/Discovery.asmx");
Flux.API.Services.Discovery.Discover= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.Discovery._staticInstance.Discover(info,onSuccess,onFailed,userContext); }
Flux.API.Services.Discovery.MakeExternal= function(info,newContentUri,onSuccess,onFailed,userContext) {Flux.API.Services.Discovery._staticInstance.MakeExternal(info,newContentUri,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo2) === 'undefined') {
Flux.API.RequestInfo2=gtc("Flux.API.RequestInfo2");
Flux.API.RequestInfo2.registerClass('Flux.API.RequestInfo2');
}
if (typeof(Flux.API.ContentEntryResult) === 'undefined') {
Flux.API.ContentEntryResult=gtc("Flux.API.ContentEntryResult");
Flux.API.ContentEntryResult.registerClass('Flux.API.ContentEntryResult');
}
if (typeof(Flux.API.InvokeResult) === 'undefined') {
Flux.API.InvokeResult=gtc("Flux.API.InvokeResult");
Flux.API.InvokeResult.registerClass('Flux.API.InvokeResult');
}
if (typeof(Flux.API.ImageSize) === 'undefined') {
Flux.API.ImageSize = function() { throw Error.invalidOperation(); }
Flux.API.ImageSize.prototype = {VerySmall: 1,Small: 3,Medium: 5,Large: 6,VeryLarge: 7}
Flux.API.ImageSize.registerEnum('Flux.API.ImageSize', true);
}
if (typeof(Flux.API.StatusCode) === 'undefined') {
Flux.API.StatusCode = function() { throw Error.invalidOperation(); }
Flux.API.StatusCode.prototype = {Ok: 0,InvalidParameters: 1,SystemError: 2,InvalidLocation: 3,InvalidPassword: 4,IncorrectPassword: 5,InvalidUserName: 6,UserNameTaken: 7,InvalidEmail: 8,InvalidGender: 9,InvalidBirthDate: 10,InvalidUserType: 11,AccountNotFound: 12,MessageTemplateNotFound: 13,BadMessageTemplate: 14,AccountClosed: 15,AccountBanned: 16,Forbidden: 17,ContentNotFound: 18,ContentQuotaExceeded: 19,ContentFileInvalidFormat: 20,ContentFileTooLarge: 21,ContentImageUrlInvalid: 22,NotFound: 23,NotLoggedIn: 24,RatingUnsupportedSystem: 25,RatingIllegal: 26,RatingIllegalSystem: 27,NotRated: 28,EmailTaken: 29,InvalidLogin: 30,InvalidZipCode: 31,AlreadyFlagged: 32,InvalidCountry: 33,InvalidPostalCode: 34,InvalidDisplayName: 35,CommunityBannedUser: 36,SystemBannedUser: 37,EulaNotAccepted: 38,IncorrectCaptcha: 39,NotMember: 40,InvalidToken: 41,InvalidFileType: 42,DeactivatedUser: 43,IneligibleAge: 44,DangerousText: 45,InvalidAccessKey: 46,InvalidCity: 47,NotSupported: 48,PermalinkTaken: 49,InvalidYearOfFormation: 50,ContentBanned: 51,DeletedContent: 52,ReadOnlyMode: 53}
Flux.API.StatusCode.registerEnum('Flux.API.StatusCode', true);
}


Flux.API.Services.Discovery.set_path('http://widgets.flux.com/Discovery.asmx');

Flux.API.Services.Discovery.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in Discovery service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.Content3=function() {
Flux.API.Services.Content3.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.Content3.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.Content3._staticInstance.get_path();},
CreateAudio:function(info,uploadEntry,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateAudio',false,{info:info,uploadEntry:uploadEntry},succeededCallback,failedCallback,userContext); },
CreateVideo:function(info,uploadEntry,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateVideo',false,{info:info,uploadEntry:uploadEntry},succeededCallback,failedCallback,userContext); },
CreatePicture:function(info,uploadEntry,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreatePicture',false,{info:info,uploadEntry:uploadEntry},succeededCallback,failedCallback,userContext); },
CreatePost:function(info,title,message,tags,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreatePost',false,{info:info,title:title,message:message,tags:tags},succeededCallback,failedCallback,userContext); },
CreateEvent:function(info,eventEntry,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateEvent',false,{info:info,eventEntry:eventEntry},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.Content3.registerClass('Flux.API.Services.Content3',Sys.Net.WebServiceProxy);
Flux.API.Services.Content3._staticInstance = new Flux.API.Services.Content3();
Flux.API.Services.Content3.set_path = function(value) { Flux.API.Services.Content3._staticInstance.set_path(value); }
Flux.API.Services.Content3.get_path = function() { return Flux.API.Services.Content3._staticInstance.get_path(); }
Flux.API.Services.Content3.set_timeout = function(value) { Flux.API.Services.Content3._staticInstance.set_timeout(value); }
Flux.API.Services.Content3.get_timeout = function() { return Flux.API.Services.Content3._staticInstance.get_timeout(); }
Flux.API.Services.Content3.set_defaultUserContext = function(value) { Flux.API.Services.Content3._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.Content3.get_defaultUserContext = function() { return Flux.API.Services.Content3._staticInstance.get_defaultUserContext(); }
Flux.API.Services.Content3.set_defaultSucceededCallback = function(value) { Flux.API.Services.Content3._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.Content3.get_defaultSucceededCallback = function() { return Flux.API.Services.Content3._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.Content3.set_defaultFailedCallback = function(value) { Flux.API.Services.Content3._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.Content3.get_defaultFailedCallback = function() { return Flux.API.Services.Content3._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.Content3.set_enableJsonp = function(value) { Flux.API.Services.Content3._staticInstance.set_enableJsonp(value); }
Flux.API.Services.Content3.get_enableJsonp = function() { return Flux.API.Services.Content3._staticInstance.get_enableJsonp(); }
Flux.API.Services.Content3.set_jsonpCallbackParameter = function(value) { Flux.API.Services.Content3._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.Content3.get_jsonpCallbackParameter = function() { return Flux.API.Services.Content3._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.Content3.set_path("/Content3.asmx");
Flux.API.Services.Content3.CreateAudio= function(info,uploadEntry,onSuccess,onFailed,userContext) {Flux.API.Services.Content3._staticInstance.CreateAudio(info,uploadEntry,onSuccess,onFailed,userContext); }
Flux.API.Services.Content3.CreateVideo= function(info,uploadEntry,onSuccess,onFailed,userContext) {Flux.API.Services.Content3._staticInstance.CreateVideo(info,uploadEntry,onSuccess,onFailed,userContext); }
Flux.API.Services.Content3.CreatePicture= function(info,uploadEntry,onSuccess,onFailed,userContext) {Flux.API.Services.Content3._staticInstance.CreatePicture(info,uploadEntry,onSuccess,onFailed,userContext); }
Flux.API.Services.Content3.CreatePost= function(info,title,message,tags,onSuccess,onFailed,userContext) {Flux.API.Services.Content3._staticInstance.CreatePost(info,title,message,tags,onSuccess,onFailed,userContext); }
Flux.API.Services.Content3.CreateEvent= function(info,eventEntry,onSuccess,onFailed,userContext) {Flux.API.Services.Content3._staticInstance.CreateEvent(info,eventEntry,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.RequestInfo2) === 'undefined') {
Flux.API.RequestInfo2=gtc("Flux.API.RequestInfo2");
Flux.API.RequestInfo2.registerClass('Flux.API.RequestInfo2');
}
if (typeof(Flux.API.UploadAudioEntry) === 'undefined') {
Flux.API.UploadAudioEntry=gtc("Flux.API.UploadAudioEntry");
Flux.API.UploadAudioEntry.registerClass('Flux.API.UploadAudioEntry');
}
if (typeof(Flux.API.ContentEntryResult) === 'undefined') {
Flux.API.ContentEntryResult=gtc("Flux.API.ContentEntryResult");
Flux.API.ContentEntryResult.registerClass('Flux.API.ContentEntryResult');
}
if (typeof(Flux.API.UploadContentEntry) === 'undefined') {
Flux.API.UploadContentEntry=gtc("Flux.API.UploadContentEntry");
Flux.API.UploadContentEntry.registerClass('Flux.API.UploadContentEntry');
}
if (typeof(Flux.API.EventEntry) === 'undefined') {
Flux.API.EventEntry=gtc("Flux.API.EventEntry");
Flux.API.EventEntry.registerClass('Flux.API.EventEntry');
}


Flux.API.Services.Content3.set_path('http://widgets.flux.com/Content3.asmx');

Flux.API.Services.Content3.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in Content3 service: {0}', error.get_message()));
});

Type.registerNamespace('Flux.API.Services');
Flux.API.Services.ArtistRegistration=function() {
Flux.API.Services.ArtistRegistration.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Flux.API.Services.ArtistRegistration.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Flux.API.Services.ArtistRegistration._staticInstance.get_path();},
CreateArtist:function(info,password,artist,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateArtist',false,{info:info,password:password,artist:artist},succeededCallback,failedCallback,userContext); },
UpdateArtist:function(info,artist,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateArtist',false,{info:info,artist:artist},succeededCallback,failedCallback,userContext); },
GetAccount:function(info,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAccount',false,{info:info},succeededCallback,failedCallback,userContext); }}
Flux.API.Services.ArtistRegistration.registerClass('Flux.API.Services.ArtistRegistration',Sys.Net.WebServiceProxy);
Flux.API.Services.ArtistRegistration._staticInstance = new Flux.API.Services.ArtistRegistration();
Flux.API.Services.ArtistRegistration.set_path = function(value) { Flux.API.Services.ArtistRegistration._staticInstance.set_path(value); }
Flux.API.Services.ArtistRegistration.get_path = function() { return Flux.API.Services.ArtistRegistration._staticInstance.get_path(); }
Flux.API.Services.ArtistRegistration.set_timeout = function(value) { Flux.API.Services.ArtistRegistration._staticInstance.set_timeout(value); }
Flux.API.Services.ArtistRegistration.get_timeout = function() { return Flux.API.Services.ArtistRegistration._staticInstance.get_timeout(); }
Flux.API.Services.ArtistRegistration.set_defaultUserContext = function(value) { Flux.API.Services.ArtistRegistration._staticInstance.set_defaultUserContext(value); }
Flux.API.Services.ArtistRegistration.get_defaultUserContext = function() { return Flux.API.Services.ArtistRegistration._staticInstance.get_defaultUserContext(); }
Flux.API.Services.ArtistRegistration.set_defaultSucceededCallback = function(value) { Flux.API.Services.ArtistRegistration._staticInstance.set_defaultSucceededCallback(value); }
Flux.API.Services.ArtistRegistration.get_defaultSucceededCallback = function() { return Flux.API.Services.ArtistRegistration._staticInstance.get_defaultSucceededCallback(); }
Flux.API.Services.ArtistRegistration.set_defaultFailedCallback = function(value) { Flux.API.Services.ArtistRegistration._staticInstance.set_defaultFailedCallback(value); }
Flux.API.Services.ArtistRegistration.get_defaultFailedCallback = function() { return Flux.API.Services.ArtistRegistration._staticInstance.get_defaultFailedCallback(); }
Flux.API.Services.ArtistRegistration.set_enableJsonp = function(value) { Flux.API.Services.ArtistRegistration._staticInstance.set_enableJsonp(value); }
Flux.API.Services.ArtistRegistration.get_enableJsonp = function() { return Flux.API.Services.ArtistRegistration._staticInstance.get_enableJsonp(); }
Flux.API.Services.ArtistRegistration.set_jsonpCallbackParameter = function(value) { Flux.API.Services.ArtistRegistration._staticInstance.set_jsonpCallbackParameter(value); }
Flux.API.Services.ArtistRegistration.get_jsonpCallbackParameter = function() { return Flux.API.Services.ArtistRegistration._staticInstance.get_jsonpCallbackParameter(); }
Flux.API.Services.ArtistRegistration.set_path("/ArtistRegistration.asmx");
Flux.API.Services.ArtistRegistration.CreateArtist= function(info,password,artist,onSuccess,onFailed,userContext) {Flux.API.Services.ArtistRegistration._staticInstance.CreateArtist(info,password,artist,onSuccess,onFailed,userContext); }
Flux.API.Services.ArtistRegistration.UpdateArtist= function(info,artist,onSuccess,onFailed,userContext) {Flux.API.Services.ArtistRegistration._staticInstance.UpdateArtist(info,artist,onSuccess,onFailed,userContext); }
Flux.API.Services.ArtistRegistration.GetAccount= function(info,onSuccess,onFailed,userContext) {Flux.API.Services.ArtistRegistration._staticInstance.GetAccount(info,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Flux.API');
if (typeof(Flux.API.BandLabel) === 'undefined') {
Flux.API.BandLabel=gtc("Flux.API.BandLabel");
Flux.API.BandLabel.registerClass('Flux.API.BandLabel');
}
if (typeof(Flux.API.BandMember) === 'undefined') {
Flux.API.BandMember=gtc("Flux.API.BandMember");
Flux.API.BandMember.registerClass('Flux.API.BandMember');
}
if (typeof(Flux.API.Website) === 'undefined') {
Flux.API.Website=gtc("Flux.API.Website");
Flux.API.Website.registerClass('Flux.API.Website');
}
if (typeof(Flux.API.RequestInfo2) === 'undefined') {
Flux.API.RequestInfo2=gtc("Flux.API.RequestInfo2");
Flux.API.RequestInfo2.registerClass('Flux.API.RequestInfo2');
}
if (typeof(Flux.API.ArtistInfo) === 'undefined') {
Flux.API.ArtistInfo=gtc("Flux.API.ArtistInfo");
Flux.API.ArtistInfo.registerClass('Flux.API.ArtistInfo');
}
if (typeof(Flux.API.UserInfoResult) === 'undefined') {
Flux.API.UserInfoResult=gtc("Flux.API.UserInfoResult");
Flux.API.UserInfoResult.registerClass('Flux.API.UserInfoResult');
}
if (typeof(Flux.API.ArtistInfoResult) === 'undefined') {
Flux.API.ArtistInfoResult=gtc("Flux.API.ArtistInfoResult");
Flux.API.ArtistInfoResult.registerClass('Flux.API.ArtistInfoResult');
}
if (typeof(Flux.API.LabelType) === 'undefined') {
Flux.API.LabelType = function() { throw Error.invalidOperation(); }
Flux.API.LabelType.prototype = {None: 0,Independent: 1,Major: 2,Unsigned: 3}
Flux.API.LabelType.registerEnum('Flux.API.LabelType', true);
}


Flux.API.Services.ArtistRegistration.set_path('http://widgets.flux.com/ArtistRegistration.asmx');

Flux.API.Services.ArtistRegistration.set_defaultFailedCallback(function(error) {
	Sys.Debug.trace(String.format('Error in ArtistRegistration service: {0}', error.get_message()));
});

}
Type.registerNamespace('Flux');

if (typeof(Flux.Context) == 'undefined') {
	Flux.Context = {
		_checkInitialize: function() {
			if (!this.isInitialized()) {
				throw 'Flux.Context was not initialized';
			}
		},
		
		isUserAuthenticated: function() {
			return !!this._loggedUserUcid;
		},
		
		getCommunityUcid: function() {
			this._checkInitialize();
			return this._communityUcid;
		},
		
		logout: function() {
			this._checkInitialize();
			Flux.API.Services.Authentication.Logout(
				new Flux.API.RequestInfo({communityUcid: this._communityUcid, contentUri: window.location.href}),
				this._logoutHandler);
		},
		
		_logoutHandler: function(result, instance, methodName) {
			if (result.StatusCode == Flux.API.StatusCode.Ok) {
				window.location.reload();
			} else {
				Flux.Debug.traceServiceError('Authentication', methodName, result);
			}
		},

		isCommunityMember: function() {
			this._checkInitialize();
			return this._isCommunityMember;
		},

		isCommunityAdmin: function() {
			this._checkInitialize();
			return this._isCommunityAdmin;
		},

		isEmailVerified: function() {
			this._checkInitialize();
			return this._isEmailVerified;
		},
		
		redirectToSignInPage: function() {
			this._checkInitialize();
			window.location.href = this.getSignInUrl();
		},
		
		getNameEntryVisibility: function() {
			this._checkInitialize();
			return this._commentSettings.GuestNameVisibility;
		},
		
		getEmailEntryVisibility: function() {
			this._checkInitialize();
			return this._commentSettings.GuestEmailVisibility;
		},
		
		getAskForWebsiteUrl: function() {
			this._checkInitialize();
			return this._commentSettings.AskForWebsiteUrl;
		},
		
		getPostCommentMode: function() {
			this._checkInitialize();
			return this._commentSettings.CommentMode;
		},
		
		getDisplayGenericUserImageForGuests: function() {
			this._checkInitialize();
			return this._commentSettings.DisplayImageForGuests;
		},
		
		getRequireCaptchaForAnonymousComments: function() {
			this._checkInitialize();
			return this._commentSettings.RequireCaptchaForAnonymousComments;
		},
		
		getCommunityName: function() {
			this._checkInitialize();
			return this._communityName;
		},
		
		getSignInUrl: function() {
			this._checkInitialize();
			return String.format('{0}?returnPath={1}&communityUcid={2}', this._signInUrl,
				encodeURIComponent(window.location.href), this._communityUcid);
		},
		
		setSignInUrl: function(url) {
			this._checkInitialize();
			this._signInUrl = url;
		},
		
		getLoggedUserUcid: function() {
			this._checkInitialize();
			return this._loggedUserUcid;
		},
		
		getJoinOrSignUpUrl: function() {
			this._checkInitialize();
			
			var url;
			if (this.isUserAuthenticated()) {
				url = this._joinUrl;
			} else {
				url =  this._signUpUrl;
			}
			
			return String.format('{0}?returnPath={1}&communityUcid={2}', url,
				encodeURIComponent(window.location.href), this._communityUcid);
		},
		
		getMenuLayoutType: function() {
			this._checkInitialize();
			return this._menuLayoutType;
		},
		
		getMembersListUrl: function() {
			this._checkInitialize();
			return this._membersListUrl;
		},
		
		getCurrentUserSettings: function() {
			this._checkInitialize();
			return this._currentUserSettings;
		},
		
		isInitialized: function() {
			return this._initialized;
		},
		
		getCommunityLandingPage: function() {
			this._checkInitialize();
			return this._communityLandingPage;
		},
				
		getCommonCssList: function() {
			return this._commonCssList;
		},
		
		getContextScriptUrl: function() {
			this._checkInitialize();
			return this._contextScriptUrl;
		},
		
		getAmazonBucket: function() {
			this._checkInitialize();
			return this._amazonBucket;
		},
		
		getCommunityVoteType: function() {
			this._checkInitialize();
			return this._voteType;
		},
		
		getMaintenancePageUrl: function() {
			this._checkInitialize();
			return this._maintenancePageUrl;
		},
		
		initialize: function(isCommunityMember, isEmailVerified, cssList, communityUcid, signInUrl,
			communityName, isCommunityAdmin, loggedUserUcid, commentSettings, joinUrl, signUpUrl, menuLayoutType, membersListUrl, 
			currentUserSettings, communityLandingPage, contextScriptUrl, amazonBucket, voteType, maintenancePageUrl) {
			this._isCommunityMember = isCommunityMember;
			this._isEmailVerified = isEmailVerified;
			this._isCommunityAdmin = isCommunityAdmin;
			this._loggedUserUcid = loggedUserUcid;
			this._commentSettings = commentSettings;
			this._menuLayoutType = menuLayoutType;
			this._currentUserSettings = currentUserSettings;
			this._communityLandingPage = communityLandingPage;
			
			if (!this._initialized) {
				this._communityUcid = communityUcid;
				this._signInUrl = signInUrl;
				this._communityName = communityName;
				this._joinUrl = joinUrl;
				this._signUpUrl = signUpUrl;
				this._membersListUrl = membersListUrl;
				
				this._commonCssList = cssList;
				this._contextScriptUrl = contextScriptUrl;
				this._amazonBucket = amazonBucket;
				this._voteType = voteType;
				
				this._maintenancePageUrl = maintenancePageUrl;
				
				this._initialized = true;

				Flux.Tracking.trackPage();
			} else {
				Flux.EventManager.contextScriptLoadNotification();
			}
		}
	}
}


Type.registerNamespace('Flux');

if (typeof(Flux.Debug) === 'undefined') {
	Flux.Debug = {
		traceServiceError: function(serviceName, methodName, result) {
			Sys.Debug.trace(String.format('Error {0} in {1}.{2}: {3}',
				result.StatusCode, serviceName, methodName, result.ErrorText));
		}	
	}
}

Type.registerNamespace('Flux.Controls');

if (typeof(Flux.Controls.DropDownMenu) == 'undefined') {
	Flux.Controls.DropDownMenu = function(buttonHolderId, buttonId, popupId, autoExpand) {
		var popup = $get(popupId);
		var button = $get(buttonId);
		var holder = $get(buttonHolderId);
		var active = false;
		var hideTimer = null;
		var keepOpen = false;

		if (!popup) {
			return;
		}

		popup.style.position = 'absolute';

		var frameLayer = null;
		if (Sys.Browser.agent === Sys.Browser.InternetExplorer && Sys.Browser.version == 6) {
			frameLayer = document.createElement('iframe');
			frameLayer.frameBorder = 0;
			frameLayer.style.position = 'absolute';
			frameLayer.style.display = 'none';
			frameLayer.setAttribute('scrolling', 'no');
			popup.parentNode.insertBefore(frameLayer, popup);
		}

		function startHideTimer() {
			keepOpen = false;
			hideTimer = window.setTimeout(hide, 500);
		};

		function stopHideTimer() {
			keepOpen = true;
		};

		function show() {
			if (!active) {
				popup.parentNode.style.position = 'relative';
				with (popup.style) {
					display = '';
					if (!(Sys.Browser.agent == Sys.Browser.Firefox && Sys.Browser.version >= 3) && (Sys.Browser.agent != Sys.Browser.Safari)) {
						left = document.all ? '0px' : holder.offsetLeft + 'px';
						top = (holder.offsetTop + holder.offsetHeight) + 'px';
					}
				}

				if (frameLayer) {
					with (frameLayer.style) {
						display = '';
						left = popup.style.left;
						top = popup.style.top;
						width = popup.offsetWidth + 'px';
						height = popup.offsetHeight + 'px';
					}
				}

				callOnShowHandlers();

				active = true;
				
			}
			keepOpen = true;
			return false;
		};

		function hide() {
			if (keepOpen)
				return;

			if (frameLayer) {
				frameLayer.style.display = 'none';
			}

			popup.style.display = 'none';

			popup.parentNode.style.position = '';

			callOnCloseHandlers();

			active = false;
		};

		var onShowHandlers = [];
		this.addOnShowHandler = function(handler) {
			onShowHandlers.push(handler);
		};
		function callOnShowHandlers() {
			for (var i = 0; i < onShowHandlers.length; i++) {
				onShowHandlers[i]();
			}
		};

		var onCloseHandlers = [];
		this.addOnCloseHandler = function(handler) {
			onCloseHandlers.push(handler);
		};
		function callOnCloseHandlers() {
			for (var i = 0; i < onCloseHandlers.length; i++) {
				onCloseHandlers[i]();
			}
		};

		if (autoExpand) {
			$addHandler(button, 'mouseover', show);
		} else {
			$addHandler(button, 'click', show);
		}

		$addHandler(button, 'mouseout', startHideTimer);
		//$addHandler(holder, 'mouseover', stopHideTimer);
		//$addHandler(holder, 'mouseout', startHideTimer);

		$addHandler(popup, 'mouseover', stopHideTimer);
		$addHandler(popup, 'mouseout', startHideTimer);
	}
}

Type.registerNamespace('Flux');

if (typeof(Flux.WidgetEntry) == 'undefined') {
	Flux.WidgetEntry = function(instance, contentId) {
		this._instance = instance;
		this._contentId = contentId;
	}
	
	Flux.WidgetEntry.prototype = {
		getContentId: function() {
			return this._contentId;
		},
		
		callDataBind: function(reason) {
			if (typeof(this._instance.dataBind) == 'function') {
				this._instance.dataBind(reason);
			}
		},
		
		getInstance: function() {
			return this._instance;
		}
	}
}


if (typeof(Flux.EventManager) == 'undefined') {
	Flux.EventManager = {
		_widgets: {},
		
		registerWidget: function(instance, contentId) {
			var widget = new Flux.WidgetEntry(instance, contentId);
			this._addWidget(widget);

			instance.setBeforeActionHandler(Function.createDelegate(this, this._beforeActionHandler));
			instance.setAfterActionHandler(Function.createDelegate({'instance': this, 'source': widget},
				this._afterActionHandler));
		},
		
		_addWidget: function(widget) {
			var name = widget.getInstance().getBaseClassName();
			if (!this._widgets[name]) {
				this._widgets[name] = [];
			}
			this._widgets[name].push(widget);
		},
		
		_beforeActionHandler: function() {
			if (!Flux.Context.isUserAuthenticated()) {
				return this._callFluxWidgetError('notLoggedIn');
			}

			if (!Flux.Context.isCommunityMember()) {
				return this._callFluxWidgetError('notJoined');
			}

			if (!Flux.Context.isEmailVerified()) {
				return this._callFluxWidgetError('notVerified');
			}
			
			return true;
		},
		
		_callFluxWidgetError: function(errorCode) {
			if (typeof(fluxWidgetError) == 'function') {
				return fluxWidgetError(errorCode);
			} else {
				return true;
			}
		},
		
		_afterActionHandler: function() {
			this.instance._updateWidgets(this.source);
		},
		
		_updateWidgets: function(source) {
			for (var name in this._widgets) {
				var widgets = this._widgets[name];
				if (widgets instanceof(Array)) {
					for (var i = 0; i < widgets.length; i++) {
						var widgetEntry = widgets[i];
						
						if (source instanceof(Flux.WidgetEntry)) {
							if (widgetEntry.getContentId() == source.getContentId()) {
								widgetEntry.callDataBind(source.getInstance().getBaseClassName());
							}
						}
						
						if (typeof(source) == 'string') {
							widgetEntry.callDataBind(source);
						}
					}
				}
			}
		},
		
		update: function() {
			var script = document.createElement('script');
			script.setAttribute('src', Flux.Context.getContextScriptUrl());
			document.getElementsByTagName('head')[0].appendChild(script);
			
			this._waitForContextLoad = true;
		},
		
		contextScriptLoadNotification: function() {
			if (this._waitForContextLoad) {
				this._updateWidgets('login');
			
				this._waitForContextLoad = false;
			}
		}
	}
}
if (typeof(Flux.UrlBuilder) == 'undefined') {
	Flux.UrlBuilder = {
		_externalCommunityList: [{"actionType":3,"height":null,"largeThumbnailUrl":null,"screenshotUrl":null,"shareActionType":"flux","shareUrlTemplate":null,"systemName":"flux","thumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/f_circle17x17.gif","title":"Flux communities","width":null},{"actionType":2,"height":745,"largeThumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_MySpace_medium.gif","screenshotUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_MySpace_screenshot.png","shareActionType":"url","shareUrlTemplate":"http:\/\/www.myspace.com\/Modules\/PostTo\/Pages\/?t=(title)&c=(previewEmbedCode)&u=(link)&l=3","systemName":"MySpace","thumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_MySpace_small.gif","title":"MySpace","width":855},{"actionType":2,"height":650,"largeThumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Twitter_medium.gif","screenshotUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Twitter_screenshot.png","shareActionType":"url","shareUrlTemplate":"http:\/\/twitter.com\/home?status=(title) (short_link)","systemName":"Twitter","thumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Twitter_small.gif","title":"Twitter","width":830},{"actionType":2,"height":600,"largeThumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Facebook_medium.gif","screenshotUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Facebook_screenshot.png","shareActionType":"url","shareUrlTemplate":"http:\/\/www.facebook.com\/share.php?u=(link)","systemName":"Facebook","thumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Facebook_small.gif","title":"Facebook","width":1005},{"actionType":2,"height":535,"largeThumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Stumbleupon_medium.gif","screenshotUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Stumbleupon_screenshot.png","shareActionType":"url","shareUrlTemplate":"http:\/\/www.stumbleupon.com\/submit?url=(link)","systemName":"Stumbleupon","thumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Stumbleupon_small.gif","title":"StumbleUpon","width":785},{"actionType":2,"height":545,"largeThumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Blogger_medium.gif","screenshotUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Blogger_screenshot.png","shareActionType":"url","shareUrlTemplate":"http:\/\/www.blogger.com\/blog_this.pyra?t=(description)&u=(link)&n=(title)","systemName":"Blogger","thumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Blogger_small.gif","title":"Blogger","width":600},{"actionType":2,"height":980,"largeThumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Digg_medium.gif","screenshotUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Digg_screenshot.png","shareActionType":"url","shareUrlTemplate":"http:\/\/digg.com\/submit?url=(link)&title=(title)&bodytext=(description)","systemName":"Digg","thumbnailUrl":"http:\/\/static0.fluxstatic.com\/-\/Clients\/Common\/Img\/ExternalCommunityThumbnails\/ExtCommunity_Digg_small.gif","title":"Digg","width":960}],
		
		_checkInitialize: function() {
			if (!this._initialized) {
				throw 'Flux.UrlBuilder was not initialized';
			}
		},

		_getFluxPageUrl: function(name) {
			return this._fluxPageUrlList[name];
		},

		initialize: function(fluxPageUrlList) {
			this._fluxPageUrlList = fluxPageUrlList;
			
			this._initialized = true;
		},

		buildBrowseUsersUrl: function() {
			this._checkInitialize();
			
			return this._getFluxPageUrl('browseUsers');
		},
		
		getExternalCommunityList: function() {
			this._checkInitialize();
		
			return this._externalCommunityList;
		},
		
		buildUploadHandlerUrl: function() {
			this._checkInitialize();
			
			return String.format('{0}?communityUcid={1}', this._getFluxPageUrl('uploadHandler'),
				Flux.Context.getCommunityUcid());
		},
		
		buildPicturesUrl: function(showCommunityTab) {
			this._checkInitialize();
			
			if (!Flux.Context.isUserAuthenticated()) {
				return null;
			}

			var url = this._getFluxPageUrl('pictures');
			
			if (showCommunityTab) {
				url += '?tab=community';
			}
			
			return url;
		},

		buildVideosUrl: function(showCommunityTab) {
			this._checkInitialize();

			if (!Flux.Context.isUserAuthenticated()) {
				return null;
			}

			var url = this._getFluxPageUrl('videos');
			
			if (showCommunityTab) {
				url += '?tab=community';
			}
			
			return url;
		},
		
		buildAmazonBaseUrl: function() {
			this._checkInitialize();
			
			return String.format('http://s3.amazonaws.com/{0}', Flux.Context.getAmazonBucket());
		},
		
		buildAmazonWrapperUrl: function(params) {
			this._checkInitialize();
			
			var wrapperUrl = String.format('{0}/wrapper.html', this.buildAmazonBaseUrl());
			if (params) {
				wrapperUrl = String.format('{0}#{1}', wrapperUrl, params);
			}
			
			return wrapperUrl;
		},

		buildAmazonUploadUrl: function() {
			this._checkInitialize();
			
			return String.format('{0}/upload.html', this.buildAmazonBaseUrl());
		},

		buildAmazonSuccessUrl: function() {
			this._checkInitialize();
			
			return String.format('{0}/success.html', this.buildAmazonBaseUrl());
		},
		
		buildAmazonBeginUploadHandlerUrl: function(fileType) {
			this._checkInitialize();
			
			return String.format('{0}?communityUcid={1}&fileType={2}',
				this._getFluxPageUrl('amazonBeginUploadHandler'), Flux.Context.getCommunityUcid(), fileType);
		},

		buildAmazonEndUploadHandlerUrl: function(contentUcid) {
			this._checkInitialize();
			
			return String.format('{0}?communityUcid={1}&contentUcid={2}',
				this._getFluxPageUrl('amazonEndUploadHandler'), Flux.Context.getCommunityUcid(), contentUcid);
		}
	}
}

/*	SWFObject v2.0 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var Z="undefined",P="object",B="Shockwave Flash",h="ShockwaveFlash.ShockwaveFlash",W="application/x-shockwave-flash",K="SWFObjectExprInst",G=window,g=document,N=navigator,f=[],H=[],Q=null,L=null,T=null,S=false,C=false;var a=function(){var l=typeof g.getElementById!=Z&&typeof g.getElementsByTagName!=Z&&typeof g.createElement!=Z&&typeof g.appendChild!=Z&&typeof g.replaceChild!=Z&&typeof g.removeChild!=Z&&typeof g.cloneNode!=Z,t=[0,0,0],n=null;if(typeof N.plugins!=Z&&typeof N.plugins[B]==P){n=N.plugins[B].description;if(n){n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1");t[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10);t[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10);t[2]=/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof G.ActiveXObject!=Z){var o=null,s=false;try{o=new ActiveXObject(h+".7")}catch(k){try{o=new ActiveXObject(h+".6");t=[6,0,21];o.AllowScriptAccess="always"}catch(k){if(t[0]==6){s=true}}if(!s){try{o=new ActiveXObject(h)}catch(k){}}}if(!s&&o){try{n=o.GetVariable("$version");if(n){n=n.split(" ")[1].split(",");t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]}}catch(k){}}}}var v=N.userAgent.toLowerCase(),j=N.platform.toLowerCase(),r=/webkit/.test(v)?parseFloat(v.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=false,q=j?/win/.test(j):/win/.test(v),m=j?/mac/.test(j):/mac/.test(v);/*@cc_on i=true;@if(@_win32)q=true;@elif(@_mac)m=true;@end@*/return{w3cdom:l,pv:t,webkit:r,ie:i,win:q,mac:m}}();var e=function(){if(!a.w3cdom){return }J(I);if(a.ie&&a.win){try{g.write("<script id=__ie_ondomload defer=true src=//:><\/script>");var i=c("__ie_ondomload");if(i){i.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);V()}}}}catch(j){}}if(a.webkit&&typeof g.readyState!=Z){Q=setInterval(function(){if(/loaded|complete/.test(g.readyState)){V()}},10)}if(typeof g.addEventListener!=Z){g.addEventListener("DOMContentLoaded",V,null)}M(V)}();function V(){if(S){return }if(a.ie&&a.win){var m=Y("span");try{var l=g.getElementsByTagName("body")[0].appendChild(m);l.parentNode.removeChild(l)}catch(n){return }}S=true;if(Q){clearInterval(Q);Q=null}var j=f.length;for(var k=0;k<j;k++){f[k]()}}function J(i){if(S){i()}else{f[f.length]=i}}function M(j){if(typeof G.addEventListener!=Z){G.addEventListener("load",j,false)}else{if(typeof g.addEventListener!=Z){g.addEventListener("load",j,false)}else{if(typeof G.attachEvent!=Z){G.attachEvent("onload",j)}else{if(typeof G.onload=="function"){var i=G.onload;G.onload=function(){i();j()}}else{G.onload=j}}}}}function I(){var l=H.length;for(var j=0;j<l;j++){var m=H[j].id;if(a.pv[0]>0){var k=c(m);if(k){H[j].width=k.getAttribute("width")?k.getAttribute("width"):"0";H[j].height=k.getAttribute("height")?k.getAttribute("height"):"0";if(O(H[j].swfVersion)){if(a.webkit&&a.webkit<312){U(k)}X(m,true)}else{if(H[j].expressInstall&&!C&&O("6.0.65")&&(a.win||a.mac)){D(H[j])}else{d(k)}}}}else{X(m,true)}}}function U(m){var k=m.getElementsByTagName(P)[0];if(k){var p=Y("embed"),r=k.attributes;if(r){var o=r.length;for(var n=0;n<o;n++){if(r[n].nodeName.toLowerCase()=="data"){p.setAttribute("src",r[n].nodeValue)}else{p.setAttribute(r[n].nodeName,r[n].nodeValue)}}}var q=k.childNodes;if(q){var s=q.length;for(var l=0;l<s;l++){if(q[l].nodeType==1&&q[l].nodeName.toLowerCase()=="param"){p.setAttribute(q[l].getAttribute("name"),q[l].getAttribute("value"))}}}m.parentNode.replaceChild(p,m)}}function F(i){if(a.ie&&a.win&&O("8.0.0")){G.attachEvent("onunload",function(){var k=c(i);if(k){for(var j in k){if(typeof k[j]=="function"){k[j]=function(){}}}k.parentNode.removeChild(k)}})}}function D(j){C=true;var o=c(j.id);if(o){if(j.altContentId){var l=c(j.altContentId);if(l){L=l;T=j.altContentId}}else{L=b(o)}if(!(/%$/.test(j.width))&&parseInt(j.width,10)<310){j.width="310"}if(!(/%$/.test(j.height))&&parseInt(j.height,10)<137){j.height="137"}g.title=g.title.slice(0,47)+" - Flash Player Installation";var n=a.ie&&a.win?"ActiveX":"PlugIn",k=g.title,m="MMredirectURL="+G.location+"&MMplayerType="+n+"&MMdoctitle="+k,p=j.id;if(a.ie&&a.win&&o.readyState!=4){var i=Y("div");p+="SWFObjectNew";i.setAttribute("id",p);o.parentNode.insertBefore(i,o);o.style.display="none";G.attachEvent("onload",function(){o.parentNode.removeChild(o)})}R({data:j.expressInstall,id:K,width:j.width,height:j.height},{flashvars:m},p)}}function d(j){if(a.ie&&a.win&&j.readyState!=4){var i=Y("div");j.parentNode.insertBefore(i,j);i.parentNode.replaceChild(b(j),i);j.style.display="none";G.attachEvent("onload",function(){j.parentNode.removeChild(j)})}else{j.parentNode.replaceChild(b(j),j)}}function b(n){var m=Y("div");if(a.win&&a.ie){m.innerHTML=n.innerHTML}else{var k=n.getElementsByTagName(P)[0];if(k){var o=k.childNodes;if(o){var j=o.length;for(var l=0;l<j;l++){if(!(o[l].nodeType==1&&o[l].nodeName.toLowerCase()=="param")&&!(o[l].nodeType==8)){m.appendChild(o[l].cloneNode(true))}}}}}return m}function R(AE,AC,q){var p,t=c(q);if(typeof AE.id==Z){AE.id=q}if(a.ie&&a.win){var AD="";for(var z in AE){if(AE[z]!=Object.prototype[z]){if(z=="data"){AC.movie=AE[z]}else{if(z.toLowerCase()=="styleclass"){AD+=' class="'+AE[z]+'"'}else{if(z!="classid"){AD+=" "+z+'="'+AE[z]+'"'}}}}}var AB="";for(var y in AC){if(AC[y]!=Object.prototype[y]){AB+='<param name="'+y+'" value="'+AC[y]+'" />'}}t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AD+">"+AB+"</object>";F(AE.id);p=c(AE.id)}else{if(a.webkit&&a.webkit<312){var AA=Y("embed");AA.setAttribute("type",W);for(var x in AE){if(AE[x]!=Object.prototype[x]){if(x=="data"){AA.setAttribute("src",AE[x])}else{if(x.toLowerCase()=="styleclass"){AA.setAttribute("class",AE[x])}else{if(x!="classid"){AA.setAttribute(x,AE[x])}}}}}for(var w in AC){if(AC[w]!=Object.prototype[w]){if(w!="movie"){AA.setAttribute(w,AC[w])}}}t.parentNode.replaceChild(AA,t);p=AA}else{var s=Y(P);s.setAttribute("type",W);for(var v in AE){if(AE[v]!=Object.prototype[v]){if(v.toLowerCase()=="styleclass"){s.setAttribute("class",AE[v])}else{if(v!="classid"){s.setAttribute(v,AE[v])}}}}for(var u in AC){if(AC[u]!=Object.prototype[u]&&u!="movie"){E(s,u,AC[u])}}t.parentNode.replaceChild(s,t);p=s}}return p}function E(k,i,j){var l=Y("param");l.setAttribute("name",i);l.setAttribute("value",j);k.appendChild(l)}function c(i){return g.getElementById(i)}function Y(i){return g.createElement(i)}function O(k){var j=a.pv,i=k.split(".");i[0]=parseInt(i[0],10);i[1]=parseInt(i[1],10);i[2]=parseInt(i[2],10);return(j[0]>i[0]||(j[0]==i[0]&&j[1]>i[1])||(j[0]==i[0]&&j[1]==i[1]&&j[2]>=i[2]))?true:false}function A(m,j){if(a.ie&&a.mac){return }var l=g.getElementsByTagName("head")[0],k=Y("style");k.setAttribute("type","text/css");k.setAttribute("media","screen");if(!(a.ie&&a.win)&&typeof g.createTextNode!=Z){k.appendChild(g.createTextNode(m+" {"+j+"}"))}l.appendChild(k);if(a.ie&&a.win&&typeof g.styleSheets!=Z&&g.styleSheets.length>0){var i=g.styleSheets[g.styleSheets.length-1];if(typeof i.addRule==P){i.addRule(m,j)}}}function X(k,i){var j=i?"visible":"hidden";if(S){c(k).style.visibility=j}else{A("#"+k,"visibility:"+j)}}return{registerObject:function(l,i,k){if(!a.w3cdom||!l||!i){return }var j={};j.id=l;j.swfVersion=i;j.expressInstall=k?k:false;H[H.length]=j;X(l,false)},getObjectById:function(l){var i=null;if(a.w3cdom&&S){var j=c(l);if(j){var k=j.getElementsByTagName(P)[0];if(!k||(k&&typeof j.SetVariable!=Z)){i=j}else{if(typeof k.SetVariable!=Z){i=k}}}}return i},embedSWF:function(n,u,r,t,j,m,k,p,s){if(!a.w3cdom||!n||!u||!r||!t||!j){return }r+="";t+="";if(O(j)){X(u,false);var q=(typeof s==P)?s:{};q.data=n;q.width=r;q.height=t;var o=(typeof p==P)?p:{};if(typeof k==P){for(var l in k){if(k[l]!=Object.prototype[l]){if(typeof o.flashvars!=Z){o.flashvars+="&"+l+"="+k[l]}else{o.flashvars=l+"="+k[l]}}}}J(function(){R(q,o,u);if(q.id==u){X(u,true)}})}else{if(m&&!C&&O("6.0.65")&&(a.win||a.mac)){X(u,false);J(function(){var i={};i.id=i.altContentId=u;i.width=r;i.height=t;i.expressInstall=m;D(i)})}}},getFlashPlayerVersion:function(){return{major:a.pv[0],minor:a.pv[1],release:a.pv[2]}},hasFlashPlayerVersion:O,createSWF:function(k,j,i){if(a.w3cdom&&S){return R(k,j,i)}else{return undefined}},createCSS:function(j,i){if(a.w3cdom){A(j,i)}},addDomLoadEvent:J,addLoadEvent:M,getQueryParamValue:function(m){var l=g.location.search||g.location.hash;if(m==null){return l}if(l){var k=l.substring(1).split("&");for(var j=0;j<k.length;j++){if(k[j].substring(0,k[j].indexOf("="))==m){return k[j].substring((k[j].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(C&&L){var i=c(K);if(i){i.parentNode.replaceChild(L,i);if(T){X(T,true);if(a.ie&&a.win){L.style.display="block"}}L=null;T=null;C=false}}}}}();
if (typeof(Flux.Core) == 'undefined') {
	Flux.Core = {
		_flashObjectId: 'FluxHelper',
		_widgetList: {},
		_frameCount: 0,
		_callbackIndex: 0,
		externalResourceCache: {},
		copyCallbackIndex: 0,

		_getFlashObject: function() {
			return $get(this._flashObjectId);
		},

		initialize: function(url) {
			if (swfobject.getFlashPlayerVersion().major >= 9) {
				var container = document.createElement('div');
				container.setAttribute('id', this._flashObjectId);
				var body = document.getElementsByTagName('body')[0];
				body.insertBefore(container, body.firstChild);

				if (Sys.Browser.agent == Sys.Browser.InternetExplorer) {
					swfobject.embedSWF(url, this._flashObjectId,
						'1', '1', '9.0.0', null, null,
						{ allowscriptaccess: 'always', wmode: 'transparent' },
						{ id: this._flashObjectId });
				} else {
					swfobject.embedSWF(url, this._flashObjectId,
						'0', '0', '9.0.0', null, null,
						{ allowscriptaccess: 'always' },
						{ id: this._flashObjectId });
				}
			}
		},

		getWindowId: function() {
			return this._getFlashObject().getWindowId();
		},

		setClipboard: function(text) {
			this._getFlashObject().setClipboard(text);
		},

		generateFrameId: function() {
			return String.format('fluxFrame_{0}', this._frameCount++);
		},

		_createFlashCallback: function(externalCallback) {
			var internalCallbackName = String.format('flashCallback_{0}', this._callbackIndex++);

			this[internalCallbackName] = function(data) {
				externalCallback(eval(String.format("'{0}'", data.replace(/\|/g, '\\u'))));
				delete Flux.Core[internalCallbackName];
			}

			return String.format('Flux.Core.{0}', internalCallbackName);
		},

		loadXml: function(url, callback) {
			this.executeGetRequest(url, function(result) {
				try {
					var doc = new ActiveXObject('Microsoft.XMLDOM');
					doc.async = 'false';
					doc.loadXML(result);
					callback(doc);
				} catch (e) {
					try {
						parser = new DOMParser();
						callback(parser.parseFromString(result, 'text/xml'));
					} catch (e) { }
				}
				callback(null);
			}, false);
		},

		executePostRequest: function(url, data, callback, includeFluxReferrer) {
			this._executeWebRequest('POST', url, data, callback, includeFluxReferrer);
		},

		executeGetRequest: function(url, callback, includeFluxReferrer) {
			this._executeWebRequest('GET', url, null, callback, includeFluxReferrer);
		},

		_executeWebRequest: function(method, url, postData, callback, includeFluxReferrer) {
			this._getFlashObject().executeWebRequest(method, url, postData,
				this._createFlashCallback(callback), includeFluxReferrer);
		},

		flashLoadedHandler: function() {
			var object = this._getFlashObject();
			if (Sys.Browser.agent == Sys.Browser.InternetExplorer) {
				object.style.position = 'absolute';
			}
			
			// read-only mode fix
			
			function isReadOnlyModeResponse(data) {
				var obj = eval('(' + data + ')');
				return obj.d && obj.d.ErrorDescription == 'ReadOnly' && obj.d.StatusCode == 5;
			}
			
			function redirectToMaintenancePage() {
				window.location.href = Flux.Context.getMaintenancePageUrl();
			}
			
			var oldXMLHttpExecutorMethod = Sys.Net.XMLHttpExecutor.prototype.get_responseData;
			Sys.Net.XMLHttpExecutor.prototype.get_responseData = function() {
				var request = this.get_webRequest();
				var url = request.get_url();
				var data = oldXMLHttpExecutorMethod.call(this);
				if (url.indexOf('.asmx') != -1) {
					if (isReadOnlyModeResponse(data)) {
						redirectToMaintenancePage();
					} else {
						return data;
					}
				} else {
					return data;
				}
			};

			var oldFlashExecutorMethod = Flux.Net.FlashExecutor.prototype.get_responseData;
			Flux.Net.FlashExecutor.prototype.get_responseData = function() {
				var data = oldFlashExecutorMethod.call(this);
				if (isReadOnlyModeResponse(data)) {
					redirectToMaintenancePage();
				} else {
					return data;
				}
			};
			
			// flash transport

			Sys.Net.WebRequestManager.executeRequest = function(webRequest) {
				var executor = webRequest.get_executor();
				if (!executor) {
					var failed = false;
					try {
						var executorType;
						if (webRequest.get_url().indexOf('.asmx') != -1 &&
							(webRequest.get_url().indexOf('flux') != -1 ||
							webRequest.get_url().indexOf('ContentActionService') != -1)) {
							executorType = eval('Flux.Net.FlashExecutor');
						} else {
							executorType = eval(this._defaultExecutorType);
						}
						executor = new executorType();
					} catch (a) {
						failed = true
					}
	
					webRequest.set_executor(executor)
				}

				if (executor.get_aborted()) {
					return;
				}

				var evArgs = new Sys.Net.NetworkRequestEventArgs(webRequest);
				var handler = this._get_eventHandlerList().getHandler("invokingRequest");

				if (handler) {
					handler(this, evArgs);
				}

				if (!evArgs.get_cancel()) {
					executor.executeRequest();
				}
			};

			Flux.Utils.WidgetsLoader.processQueue();
		},

		registerWidget: function(widget) {
			var className = widget.getBaseClassName();

			if (!this._widgetList[className]) {
				this._widgetList[className] = [];
			}

			this._widgetList[className].push(widget);
		},

		getWidgetInstances: function(className) {
			if (this._widgetList[className]) {
				return this._widgetList[className].slice(0);
			} else {
				return [];
			}
		},

		isDemoMode: function() {
			try {
				if (window.parent && window.parent.widgetDemoMode == true) {
					return true;
				}
			} catch (e) { }

			return false;
		},

		argumentsToArray: function(argumentsObject) {
			var result = [];

			for (var i = 0; i < argumentsObject.length; i++) {
				result.push(argumentsObject[i]);
			}

			return result;
		},

		loadExternalResource: function(url, callback) {
			var resourceEntry = this.externalResourceCache[url];

			if (!resourceEntry) {
				resourceEntry = {
					'callbackQueue': [],
					'data': null,
					'loaded': false
				}
				this.externalResourceCache[url] = resourceEntry;

				this.executeGetRequest(url, function(data) {
					for (var i = 0; i < resourceEntry.callbackQueue.length; i++) {
						resourceEntry.callbackQueue[i](data);
					}

					resourceEntry.callbackQueue = null;
					resourceEntry.data = data;
					resourceEntry.loaded = true;
				});
			}

			if (resourceEntry.loaded) {
				callback(resourceEntry.data);
			} else {
				resourceEntry.callbackQueue.push(callback);
			}
		},

		checkStyleSheetExists: function() {
			var now = new Date();
			var idText = ([
				"style",
				now.getFullYear(),
				("00" + now.getMonth()).slice(-2),
				("00" + now.getDate()).slice(-2),
				("00" + now.getHours()).slice(-2),
				("00" + now.getMinutes()).slice(-2),
				("00" + now.getSeconds()).slice(-2),
				("0000" + now.getMilliseconds()).slice(-4)
			]).join("");
			return idText;
		},

		addStyleSheet: function(styleSheet) {
			var styleId = this.checkStyleSheetExists();
			if (Sys.Browser.agent == Sys.Browser.InternetExplorer) {
				var el = document.createElement('div');
				var body = document.getElementsByTagName('body')[0];
				el.id = styleId;
				body.insertBefore(el, body.firstChild);
				el.style.display = 'none';
				el.innerHTML = String.format('<br><style>{0}</style>', styleSheet);
			} else {
				var style = document.createElement('style');
				style.id = styleId;
				style.setAttribute('type', 'text/css');
				document.getElementsByTagName('head')[0].appendChild(style);
				style.textContent = styleSheet;
			}
			return styleId;
		},

		loadCommonCss: function() {
			if (!this.commonCssLoaded) {
				var cssList = Flux.Context.getCommonCssList();

				/* This will prevent duplications in CSS includes */
				var link_items = document.getElementsByTagName('link');
				var links = {};
				for (var i = 0, l = link_items.length; i < l; i++) {
					if (link_items[i]["href"])
						links[link_items[i].href] = true;
				}

				var head = document.getElementsByTagName('head')[0];
				for (var i = 0; i < cssList.length; i++) {
					if (links[cssList[i]])
						continue;
					var link = document.createElement('link');
					link.setAttribute('href', cssList[i]);
					link.setAttribute('type', 'text/css');
					link.setAttribute('rel', 'stylesheet');
					head.appendChild(link);
					links[cssList[i]] = true;
				}

				this.commonCssLoaded = true;
			}
		},

		embedClipboardFlash: function(containerId, callback) {
			var callbackMethodName = '_copyCallback_' + this.copyCallbackIndex;
			this.copyCallbackIndex++;

			Flux.Core[callbackMethodName] = function() {
				return callback();
			};

			swfobject.embedSWF('http://widgetsak.flux.com/ClientRuntime/Flash/Clipboard.swf?ver=1', containerId,
				'52px', '22px', '9.0.0', null, {
					buttonSpriteUrl: encodeURIComponent('http://static0.fluxstatic.com/-/Clients/Common/Img/btns/Copy/copy_en.png'),
					copyCallbackName: 'Flux.Core.' + callbackMethodName
				}, {
					allowscriptaccess: 'always',
					wmode: 'transparent',
					scale: 'noscale',
					salign: 'lt',
					menu: 'false'
				}, { id: containerId });
		},
		
		roadBlockUser: function(checkFRDOnly, disableRedirect) {
			var redirectUrl;
			if (checkFRDOnly) {
				if (Flux.Context.getCurrentUserSettings().IsFRDNotComplete) {
					redirectUrl = Flux.Context.getCurrentUserSettings().RoadBlockUrl;
				}
			} else {
				redirectUrl = Flux.Context.getCurrentUserSettings().RoadBlockUrl;
			}
			
			if (redirectUrl) {
				redirectUrl = redirectUrl.replace('(returnPath)', encodeURIComponent(window.location.href));
			}
			
			if (disableRedirect) {
				return redirectUrl;
			} else {
				if (redirectUrl) {
					window.location.href = redirectUrl;
					return true;
				}
			}
			
			return false;
		}
	}
	
	Flux.Core.initialize('http://widgetsak.flux.com/ClientRuntime/Flash/FluxHelper.swf?ver=7');
}
Type.registerNamespace('Flux.Widgets');

if (typeof(Flux.Widgets.BaseWidget) === 'undefined') {
	Flux.Widgets.BaseWidget = function(containerId) {
		this._containerId = containerId;
	}
	
	Flux.Widgets.BaseWidget.prototype = {
		getContainerId: function() {
			return this._containerId;
		},
		
		getTemplateItem: function(name) {
			return this.template.namedParts[name];
		},

		getTemplateItem2: function(name, externalData) {
			var template = this.template.namedParts[name];
			if (template) {
				var handler;
				if (typeof(externalData) == 'function') {
					handler = function() {
						return externalData(arguments[1]);
					}
				} else if (typeof(externalData) == 'object') {
					handler = function() {
						return externalData[arguments[1]];
					}
				} else {
					handler = Function.createDelegate(this, this.__replaceFromSettingsHandler);
				}
				
				return template.replace(new RegExp('\\\{(.*?)\\\}', 'gm'), handler);
			} else {
				return null;
			}
		},

		render2: function() {
			var htmlBuffer = this.template.basePart;
			
			if (typeof(this._preRender) == 'function') {
				htmlBuffer = this._preRender(htmlBuffer);
			}
			
			$get(this._containerId).innerHTML = htmlBuffer;
		},
		
		render3: function(externalData) {
			var handler;
			if (typeof(externalData) == 'function') {
				handler = function() {
					return externalData(arguments[1]);
				}
			} else if (typeof(externalData) == 'object') {
				handler = function() {
					return externalData[arguments[1]];
				}
			} else {
				handler = Function.createDelegate(this, this.__replaceFromSettingsHandler);
			}

			$get(this._containerId).innerHTML = this.template.basePart.replace(new RegExp('\\\{(.*?)\\\}', 'gm'), handler);
		},

		$get: function() {
			var result = new Sys.StringBuilder(this._containerId);
			for (var i = 0; i < arguments.length; i++) {
				result.append(String.format('_{0}', arguments[i]));
			}
			return $get(result.toString());
		},
		
		createRequestInfo: function(params) {
			var communityUcid = Flux.Context.getCommunityUcid();
			
			if (params) {
				return new Flux.API.RequestInfo({communityUcid: communityUcid, userUcid: params.userUcid,
					contentUri: params.contentUri, contentUcid: params.contentUcid});
			} else {
				return new Flux.API.RequestInfo({communityUcid: communityUcid, contentUri: location.href});
			}
		},
		
		setBeforeActionHandler: function(handler) {
			this._beforeActionHandler = handler;
		},
		
		setAfterActionHandler: function(handler) {
			this._afterActionHandler = handler;
		},
		
		onBeforeAction: function() {
			if (typeof(this._beforeActionHandler) == 'function') {
				return this._beforeActionHandler();
			} else {
				return true;
			}
		},

		onAfterAction: function() {
			if (typeof(this._afterActionHandler) == 'function') {
				return this._afterActionHandler();
			} else {
				return true;
			}
		},
		
		getElementsByClassName: function(cl) {
			var retnode = [];
			var myclass = new RegExp('\\b'+cl+'\\b');
			var elem = document.getElementsByTagName('*');
			for (var i = 0; i < elem.length; i++) {
				var classes = elem[i].className;
				if (myclass.test(classes)) {
					retnode.push(elem[i]);
				}
			}
			return retnode;
		},
		
		getJsonData: function(url, callback) {
			Flux.Core.executeGetRequest(this.__applyDataAccessUrlFix(url), function(response) {
				callback(Sys.Serialization.JavaScriptSerializer.deserialize(response));
			}, true);
		},

		_stylesId: [],

		removeExistingStyles: function(){
			for( var i=0,l=this._stylesId.length; i<l; i++ ){
				var currStyle = document.getElementById(this._stylesId[i]);
				if (currStyle)
					currStyle.parentNode.removeChild(currStyle);
			}
			this._stylesId = [];
		},
		
		applyStyle: function(replacements) {
			this.removeExistingStyles(this._stylesId);
			for (var i = 0; i < this.styleSheets.length; i++) {
				var styleSheet = this.styleSheets[i];
				for (var key in replacements) {
					if (typeof(replacements[key]) == 'string') {
						var replaceReg = new RegExp(String.format('\\\[{0}\\\]', key), 'gm');
						styleSheet = styleSheet.replace(replaceReg, replacements[key]);
					}
				}

				this._stylesId.push( Flux.Core.addStyleSheet(styleSheet) );
			}
		},
		
		applyStyle2: function(replacements) {
			this.removeExistingStyles(this._stylesId);
			for (var i = 0; i < this.styleSheets.length; i++) {
				var styleSheet = this.styleSheets[i].replace(new RegExp('\\\[(.*?)\\\]', 'gm'),
					Function.createDelegate(this, this.__replaceFromSettingsHandler));
					
				this._stylesId.push( Flux.Core.addStyleSheet(styleSheet) );
			}
		},
		
		__incorrentUriList: ["CONTENT URI"],
		
		__isCorrectUri: function(uri) {
			for (var i = 0; i < this.__incorrentUriList.length; i++) {
				if (uri == this.__incorrentUriList[i]) {
					return false;
				}
			}
			return true; 
		},
		
		checkUri: function(uri) {
			if (!this.__isCorrectUri(uri)) {
				$get(this._containerId).innerHTML = 'Invalid URI parameter';
				return false;
			}
			
			return true;
		},
		
		loadCommonCss: function() {
			Flux.Core.loadCommonCss();
		},
		
		__addHandler: function(element, event, handler, context) {
			if(!element || !event) {
				return;
			}
			
			if (typeof(element) == 'string') {
				element = this.$get(element);
			}
			
			if(Flux.Core.isDemoMode()) {
				handler = function(e) { e.preventDefault(); };
			}
			
			if (context == undefined) {
				context = this;
			}
			
			$addHandler(element, event, Function.createDelegate(context, handler));
		},
		
		addClickHandler: function(element, handler, context) {
			this.__addHandler(element, 'click', handler, context);
		},
		
		addFocusHandler: function(element, handler, context) {
			this.__addHandler(element, 'focus', handler, context);
		},

		addBlurHandler: function(element, handler, context) {
			this.__addHandler(element, 'blur', handler, context);
		},

		addMouseOverHandler: function(element, handler, context) {
			this.__addHandler(element, 'mouseover', handler, context);
		},
		
		addMouseOutHandler: function(element, handler, context) {
			this.__addHandler(element, 'mouseout', handler, context);
		},
		
		__setBaseClassName: function(baseClassName) {
			this.__baseClassName = baseClassName;
		},
		
		getBaseClassName: function() {
			return this.__baseClassName;
		},
		
		__setDataAccessUrlFix: function(value) {
			this.__dataAccessUrlFix = value;
		},
		
		__applyDataAccessUrlFix: function(url) {
			if (this.__dataAccessUrlFix) {
				var originalPart = url.substr(url.indexOf(Flux.Context.getCommunityUcid()) + 28,
					url.indexOf('?') - (url.indexOf(Flux.Context.getCommunityUcid()) + 28));
				return url.replace(originalPart, this.__dataAccessUrlFix);
			} else {
				return url;
			}
		},
		
		__copySettings: function(settings) {
			data = {};
			
			for (var key in settings) {
				var value = settings[key];
				if (typeof(value) == 'string' || typeof(value) == 'number' || typeof(value) == 'boolean') {
					data[key] = value;
				}
			}
			
			return data;
		},
		
		__loadSettings: function(settings) {
			this.__settings = this.__copySettings(settings);
			this.__defaultSettings = {};
		},
		
		setDefaultSettings: function(settings) {
			this.__defaultSettings = this.__copySettings(settings);
		},
		
		getSetting: function(name, defaultValue) {
			var value = this.__settings[name];
			if (value == undefined) {
				value = this.__defaultSettings[name];
				if (value == undefined) {
					value = null;
				}
			}
			
			return value;
		},
		
		__upperCaseToCamel: function(s) {
			var result = '';
			var useUpperCase = false;
			for (var i = 0; i < s.length; i++) {
				var char = s.charAt(i);
				if (char == '_') {
					useUpperCase = true;
					continue;
				}
				
				if (!useUpperCase) {
					char = char.toLowerCase();
				} else {
					useUpperCase = false;
				}
				
				result += char;
			}
			return result;
		},

		__replaceFromSettingsHandler: function() {
			var value = this.getSetting(this.__upperCaseToCamel(arguments[1]));
			if (!value) {
				value = '';
			}
			
			return value;
		},
		
		__setTemplate: function(template) {
			this.template = template;
		},
		
		__setStyleSheets: function(styleSheets) {
			this.styleSheets = styleSheets;
		}
	}

	Flux.Widgets.BaseWidget.registerClass('Flux.Widgets.BaseWidget');
}

Type.registerNamespace('Flux.Utils');

if (typeof(Flux.Utils.WaitForAllCallbackHelper) == 'undefined') {
	Flux.Utils.WaitForAllCallbackHelper = function(masterCallback) {
		this.callbackCount = 0;
		this.masterCallback = masterCallback;
	}

	Flux.Utils.WaitForAllCallbackHelper.prototype = {
		registerCallback: function(callback) {
			this.callbackCount++;

			return Function.createDelegate(this, function(data) {
				callback(data);

				this.callbackCount--;

				if (this.callbackCount == 0) {
					this.masterCallback();
				}
			});
		}
	}
}

if (typeof(Flux.Utils.WidgetsLoader) == 'undefined') {
    Flux.Utils.WidgetsLoader = {
        widgetQueue: [],
        callbackHelpers: [],
        instanceCounter: 0,

        _widgetUrlTemplate: {
            classic: 'http://widgets.flux.com/ClientRuntime/JS/Widgets/{0}.js?communityUcid={1}',
            pbt: 'http://widgets.flux.com/Widget.js?moduleId={0}&communityUcid={1}'
        },

        processQueue: function() {
            for (var i = 0; i < this.widgetQueue.length; i++) {
                this.prepareWidget(this.widgetQueue[i]);
            }

            this.widgetQueue = null;
        },

        tryInitializeContext: function(settings) {
            if (settings.communityUcid && !Flux.Context.isInitialized()) {
                Flux.Context.initialize(false, false, false, [], settings.communityUcid, null, null, false, null, {});
                delete settings.communityUcid;
            }
        },

        trackWidget: function(className, settings) {
            if (className.toLowerCase() != 'usage') {
                Flux.Tracking.trackWidget(className, settings.uri || settings.contentUri);
            }
        },

        createWidget: function(className, settings) {
            if (Sys.Browser.agent == Sys.Browser.Opera) {
                return;
            }

            settings = settings || {};
            this.tryInitializeContext(settings);

            if (!Flux.Context.isInitialized()) {
                return;
            }

            if (className == 'FShare2') {
                className = 'ContentAction2';
                settings = {
                    'uri': settings.contentUri,
                    'ucid': settings.ucid,
                    'customize': settings.customize,
                    'customCss': settings.customCss,
                    'showAddToMyProfileButton': false,
                    'showCommentCount': false,
                    'showFlagging': false,
                    'showRating': false,
                    'showPermalink': false,
                    'showShareButton': true,
                    'anchorElement': settings.anchorElement,
                    'errorReadOnlyMessage': settings.errorReadOnlyMessage
                }
            }

            var defaultScriptUrl;
            if (className.match(new RegExp('^[a-f0-9]{32}$', 'i'))) {
                defaultScriptUrl = String.format(
					this._widgetUrlTemplate.pbt, className, Flux.Context.getCommunityUcid());
                className = String.format('Pbt_{0}', className);
            } else {
                defaultScriptUrl = String.format(
					this._widgetUrlTemplate.classic, className, Flux.Context.getCommunityUcid());
            }

            this.trackWidget(className, settings);
            this.queueWidget(className, settings, defaultScriptUrl);
        },

        queueWidget: function(className, settings, defaultScriptUrl) {
            var uniqueClassName = String.format('{0}_{1}', className, this.instanceCounter++);
            var containerId = String.format('FW_{0}', uniqueClassName);

            var customize = {};
            if (typeof (settings.customize) != 'undefined') {
                customize = settings.customize || {};
                delete settings.customize;
            }

            var customCss = false;
            if (typeof (settings.customCss) != 'undefined') {
                customCss = settings.customCss;
                delete settings.customCss;
            }

            var useSpanContainer = false;
            if (typeof (settings.useSpanContainer) != 'undefined') {
                useSpanContainer = settings.useSpanContainer;
                delete settings.useSpanContainer;
            }

            var anchorElement = null;
            if (typeof (settings.anchorElement) != 'undefined') {
                anchorElement = settings.anchorElement;
                delete settings.anchorElement;
            }

            var containerTagName;
            if (useSpanContainer) {
                containerTagName = 'span';
            } else {
                containerTagName = 'div';
            }

            var containerHtml;
            if (customCss) {
                containerHtml = String.format('<{1} class="FluxWidget"><{1} id="{0}" class="{2}"></{1}></{1}>',
					containerId, containerTagName, uniqueClassName);
            } else {
                containerHtml = String.format(
					'<{1} class="Flux"><{1} class="FluxWidget"><{1} id="{0}" class="{2} {3}"></{1}></{1}></{1}>',
					containerId, containerTagName, this.camelize(className), uniqueClassName);
            }

            if (anchorElement) {
                var topContainer = document.createElement(containerTagName);
                anchorElement.parentNode.insertBefore(topContainer, anchorElement);
                topContainer.innerHTML = containerHtml;
            } else {
                document.write(containerHtml);
            }

            var dataAccessUrlFix = null;
            if (typeof (settings.dataAccessUrlFix) != 'undefined') {
                dataAccessUrlFix = settings.dataAccessUrlFix;
                delete settings.dataAccessUrlFix;
            }

            setTimeout(Function.createDelegate({
                'instance': this,
                'widget': {
                    'baseClassName': className,
                    'uniqueClassName': uniqueClassName,
                    'containerId': containerId,
                    'settings': settings,
                    'defaultScriptUrl': defaultScriptUrl,
                    'customize': customize,
                    'dataAccessUrlFix': dataAccessUrlFix
                }
            }, this.delayLoadHandler), 30);
        },

        delayLoadHandler: function() {
            if (this.instance.widgetQueue) {
                this.instance.widgetQueue.push(this.widget);
            } else {
                this.instance.prepareWidget(this.widget);
            }
        },

        createCallbackHelper: function(masterCallback) {
            var helper = new Flux.Utils.WaitForAllCallbackHelper(masterCallback);
            this.callbackHelpers.push(helper);
            return helper;
        },

        prepareWidget: function(widget) {
            var callbackHelper = this.createCallbackHelper(
				Function.createDelegate({
				    'instance': this,
				    'widget': widget
				}, function() {
				    this.instance.injectWidget(this.widget);
				}));

            var customScriptCallback;
            if (widget.customize.scriptUrl) {
                customScriptCallback = callbackHelper.registerCallback(
					Function.createDelegate(widget, function(data) {
					    this.customize.script = data;
					}));
            }

            var customMarkupCallback;
            if (widget.customize.markupUrl) {
                customMarkupCallback = callbackHelper.registerCallback(
					Function.createDelegate(widget, function(data) {
					    var oldStyleMarkupExpr = new RegExp("Flux.Utils.WidgetsLoader.setCustomMarkup\\('" +
							this.baseClassName + "',\\s?unescape\\(.(.*).\\)\\)", "g");
					    var match = oldStyleMarkupExpr.exec(data);
					    if (match) {
					        data = unescape(match[1]);
					    }

					    this.customize.markup = data;
					}));
            }

            var customStyleCallback;
            if (widget.customize.cssUrl) {
                customStyleCallback = callbackHelper.registerCallback(
					Function.createDelegate(widget, function(data) {
					    this.customize.styleSheets = [data];
					}));

            }

            var defaultScriptCallback = callbackHelper.registerCallback(
				Function.createDelegate(widget, function(data) {
				    var match = new RegExp('([^\\0]*?)\nTEMPLATE\n([^\\0]*)', 'g').exec(data);

				    if (match) {
				        this.defaultScript = match[1];
				        this.defaultMarkup = match[2];
				    }
				}));

            if (customScriptCallback) {
                Flux.Core.loadExternalResource(widget.customize.scriptUrl, customScriptCallback);
            }

            if (customMarkupCallback) {
                Flux.Core.loadExternalResource(widget.customize.markupUrl, customMarkupCallback);
            }

            if (customStyleCallback) {
                Flux.Core.loadExternalResource(widget.customize.cssUrl, customStyleCallback);
            }

            Flux.Core.loadExternalResource(widget.defaultScriptUrl, defaultScriptCallback);
        },

        parseMarkup: function(markup) {
            var namedParts = {};
            markup = markup.replace(new RegExp('\{(\\D.*?)\}([^\\0]*){/\\1}', 'g'), function() {
                namedParts[arguments[1]] = arguments[2];
                return '';
            });

            var styleSheets = [];
            markup = markup.replace(new RegExp('<style.*?>([^\\0]*?)</style>', 'g'), function() {
                styleSheets.push(arguments[1]);
                return '';
            });

            return {
                'template': {
                    'basePart': markup,
                    'namedParts': namedParts
                },
                'styleSheets': styleSheets
            }
        },

        replaceElementId: function(html, id) {
            return html.replace(new RegExp('id=\"(.*?)\"', 'g'),
				String.format('id="{0}_$1"', id));
        },

        bindTemplate: function(widget, template) {
            var namedParts = {};
            for (var partName in template.namedParts) {
                namedParts[partName] =
					this.replaceElementId(template.namedParts[partName], widget.containerId);
            }

            return {
                'basePart': this.replaceElementId(template.basePart, widget.containerId),
                'namedParts': namedParts
            };
        },

        camelize: function(s) {
            return String.format('{0}{1}', s.charAt(0).toLowerCase(), s.substr(1));
        },

        bindStyleSheets: function(widget, styleSheets) {
            var result = [];
            for (var i = 0; i < styleSheets.length; i++) {
                var styleSheet = styleSheets[i];

                if (widget.baseClassName == 'Comments3') {
                    styleSheet = this.fixComments3StyleBug(styleSheet);
                }

                styleSheet = styleSheet.replace(new RegExp(String.format('.Flux .{0}',
					this.camelize(widget.baseClassName)), 'g'),
					String.format('.FluxWidget .{0}', widget.uniqueClassName));

                result.push(styleSheet);
            }
            return result;
        },

        fixComments3StyleBug: function(styleSheet) {
            styleSheet = styleSheet.replace('.Flux div.popup', '.Flux .comments3 div.popup');
            styleSheet = styleSheet.replace('.Flux div.open', '.Flux .comments3 div.open');
            return styleSheet;
        },

        injectWidget: function(widget) {
            var fullBaseClassName = String.format('Flux.Widgets.{0}', widget.baseClassName);
            var fullUniqueClassName = String.format('Flux.Widgets.{0}', widget.uniqueClassName);

            var classSearch = new RegExp(fullBaseClassName, 'g');
            eval(widget.defaultScript.replace(classSearch, fullUniqueClassName));

            if (widget.customize.script) {
                eval(widget.customize.script.replace(classSearch, fullUniqueClassName));
            }

            eval(String.format('var widgetInstance = new {0}("{1}")',
				fullUniqueClassName, widget.containerId));

            var markup = widget.customize.markup || widget.defaultMarkup;
            var markupData = this.parseMarkup(markup);
            widgetInstance.__setTemplate(this.bindTemplate(widget, markupData.template));

            var styleSheets = markupData.styleSheets;
            if (widget.customize.styleSheets) {
                for (var i = 0; i < widget.customize.styleSheets.length; i++) {
                    styleSheets.push(widget.customize.styleSheets[i]);
                }
            }
            widgetInstance.__setStyleSheets(this.bindStyleSheets(widget, styleSheets));

            widgetInstance.__loadSettings(widget.settings);

            widgetInstance.__setBaseClassName(widget.baseClassName);
            widgetInstance.__setDataAccessUrlFix(widget.dataAccessUrlFix);

            if (widgetInstance._initialize) {
                widgetInstance._initialize(widget.settings);
            }

            Flux.Core.registerWidget(widgetInstance);
        }
    }
}
Type.registerNamespace('Flux.DataAccess');

if (typeof(Flux.DataAccess.CookieHelper) == 'undefined') {
	Flux.DataAccess.CookieHelper = {
		getNonCachedContentList: function() {
			var cookieValue = this.get('preventCache');
			if (cookieValue) {
				return Sys.Serialization.JavaScriptSerializer.deserialize(cookieValue);
			} else {
				return [];
			}
		},
		
		addNonCachedContent: function(uri) {
			var nonCachedList = this.getNonCachedContentList();
			
			nonCachedList.unshift(uri);
			
			this.set('preventCache', Sys.Serialization.JavaScriptSerializer.serialize(nonCachedList), 15);
		},
		
		isNonCachedContent: function(uri) {
			var nonCachedList = this.getNonCachedContentList();
			
			for (var i = 0; i < nonCachedList.length; i++) {
				if (uri == nonCachedList[i]) {
					return true;
				}
			}
			
			return false;
		},
		
		set: function(name, value, minutes) {
			if (minutes) {
				var date = new Date();
				date.setTime(date.getTime() + (minutes*60*1000));
				var expires = '; expires=' + date.toGMTString();
			} else {
				var expires = '';
			}
			document.cookie = name + '=' + value + expires + '; path=/';
		},
		
		get: function(name) {
			name += '=';
			var s = document.cookie.split('; ');
			for(var i = 0; i < s.length; i++) {
				var c = s[i];
				if (c.indexOf(name) == 0) {
					return unescape(c.substring(name.length, c.length));
				}
			}
			return null;
		}
	}
};

if (typeof(Flux.DataAccess.UrlBuilder) == 'undefined') {
	Flux.DataAccess.UrlBuilder = {
		_checkInitialize: function() {
			if (!this._initialized) {
				throw 'Flux.DataAccess.UrlBuilder was not initialized';
			}
		},
		
		appendCacheBuster: function(url) {
			var delimiter;
			if (url.indexOf('?') == -1) {
				delimiter = '?';
			} else {
				delimiter = '&';
			}
			return String.format('{0}{1}{2}', url, delimiter, new Date().getTime());
		},

		_getUrlTemplate: function(name, uri) {
			if (Flux.DataAccess.CookieHelper.isNonCachedContent(uri)) {
				return this.appendCacheBuster(this._urlList[name]);
			} else {
				return (this._cacheUrlList || this._urlList)[name];
			}
		},

		_fillTemplate: function(template, replacements) {
			var keys = [];
			for (var key in replacements) {
				if (typeof (replacements[key]) == 'string' || typeof (replacements[key]) == 'number') {
					keys.push(key);
				}
			}

			return template.replace(new RegExp(String.format('(\\(({0})\\))', keys.join('|')), 'gi'),
				function($1, $2, $3) {
					return replacements[$3];
				});
		},

		initialize: function(urlList) {
			if (this._initialized) {
				this._cacheUrlList = urlList;
			} else {
				this._urlList = urlList;
				this._initialized = true;
			}
		},

		buildContentUsageUrl: function(permalink) {
			this._checkInitialize();

			return this._fillTemplate(this._getUrlTemplate('contentUsage', permalink), {
				'permalink': encodeURIComponent(permalink)
			});
		},

		buildMenuUrl: function() {
			this._checkInitialize();

			return this._getUrlTemplate('menu')
		},

		buildQuickMenuUrl: function() {
			this._checkInitialize();

			return this._fillTemplate(this._getUrlTemplate('quickMenu'), {
				'UserUcid': Flux.Context.getLoggedUserUcid()
			});
		},

		buildSimplePhotoUrl: function(maxResults) {
			this._checkInitialize();

			return this._fillTemplate(this._getUrlTemplate('simplePhoto'), {
				'maxresults': maxResults
			});
		},

		buildSimpleVideoUrl: function(maxResults) {
			this._checkInitialize();

			return this._fillTemplate(this._getUrlTemplate('simpleVideo'), {
				'maxresults': maxResults
			});
		},

		buildCommunityMembersUrl: function(maxResults) {
			this._checkInitialize();

			return this._fillTemplate(this._getUrlTemplate('communityMembers'), {
				'maxresults': maxResults
			});
		},

		buildContentRatingUrl: function(permalink) {
			this._checkInitialize();

			return this._fillTemplate(this._getUrlTemplate('contentRating', permalink), {
				'permalink': encodeURIComponent(permalink)
			});
		},

		buildCommentsUrlByPermalink: function(permalink, viewType, startIndex, maxResults) {
			this._checkInitialize();

			return this._fillTemplate(this._getUrlTemplate('commentsByPermalink', permalink), {
				'permalink': encodeURIComponent(permalink),
				'viewtype': viewType,
				'startindex': startIndex,
				'maxresults': maxResults
			});
		},

		buildCommentsUrlByUcid: function(ucid, viewType, startIndex, maxResults) {
			this._checkInitialize();

			return this._fillTemplate(this._getUrlTemplate('commentsByUcid', ucid), {
				'ucid': ucid,
				'viewtype': viewType,
				'startindex': startIndex,
				'maxresults': maxResults
			});
		},

		buildCategoriesUrl: function(contentType, startIndex, maxResults) {
			this._checkInitialize();

			return this._fillTemplate(this._getUrlTemplate('categories'), {
				'contenttype': contentType.toLowerCase(),
				'startindex': startIndex,
				'maxresults': maxResults
			});
		}
	}
}

if(!window.FluxT)
	var FluxT = {
		_checkInitialize: function() {
			if (!this._initialized) {
				this.FluxTG = Math.random();
				this.FluxTUrl = "http://t.flux.com/tracking.gif";
				this._initialized = true;
			}
		},
		initialize: function() {
				this._checkInitialize();
			try {
				var img = new Image();
				img.onError = function(){}
				img.onAbort  = function(){}
				img.src = this._toString();
			} catch(e){}
		},
		
		trackPage: function() {
			if (!this.pageTracked) {
				this.initialize();

				this.pageTracked = true;
			}
		},
		
		_toString: function(){
			this._checkInitialize();
			return [this.FluxTUrl, "?",
					"CMU=",		(this.CommunityUcid)	? encodeURIComponent(this.CommunityUcid)	: '',
					"&CU=",		(this.ContentUcid)		? encodeURIComponent(this.ContentUcid)		: '',
					"&UU=",		(this.UserUcid)			? encodeURIComponent(this.UserUcid)			: '',
					"&PT=",		(this.PageTypeId)		? encodeURIComponent(this.PageTypeId)		: '17',
					"&CUR=",	(this.ContentUri)		? encodeURIComponent(this.ContentUri)		: '',
					"&AU=",		(this.AbsoluteUri)		? encodeURIComponent(this.AbsoluteUri)		: '',
					"&WN=",		(this.WidgetName)		? encodeURIComponent(this.WidgetName)		: '',
					"&FTG=",	encodeURIComponent(this.FluxTG),
					"&rnd=",	encodeURIComponent(Math.random()),
					'&REF=',	(function(){
									if(this.ServerRefferer)
										return encodeURIComponent(this.ServerRefferer);
									if(document.referrer)
										return encodeURIComponent(document.referrer);
									return '';
								})()
							 ].join('');		
		}
	}
Type.registerNamespace('Flux');

if (typeof(Flux.Tracking) === 'undefined') {
	Flux.Tracking = {
		trackPage: function() {
			FluxT.CommunityUcid = Flux.Context.getCommunityUcid();
			
			FluxT.trackPage();
		},
		
		trackWidget: function(widgetName, contentUri) {
			FluxT.CommunityUcid = Flux.Context.getCommunityUcid();
			FluxT.WidgetName = widgetName;
			FluxT.ContentUri = contentUri;
			
			FluxT.initialize();
		}	
	}
}


