Type.registerNamespace("MySpace.Utils.Media");MySpace.Utils.Media.loadStaticContent=function() {var O= _proxy_jslib_handle(document, 'getElementsByTagName', '', 1, 0)("img");for(var E=0;E<O.length;E++){if( _proxy_jslib_handle(O, (E), 0, 0).getAttribute("source")){ _proxy_jslib_assign('',  _proxy_jslib_handle(O, (E), 0, 0), 'src', '=', ( _proxy_jslib_handle(O, (E), 0, 0).getAttribute("source")))}}var P= _proxy_jslib_handle(document, 'getElementsByTagName', '', 1, 0)("object");if(P){for(var E=0;E<P.length;E++){if( _proxy_jslib_handle(P, (E), 0, 0).getAttribute("movie")){var B= _proxy_jslib_handle(P, (E), 0, 0).getAttribute("movie");try{ _proxy_jslib_handle( _proxy_jslib_handle(P, (E), 0, 0), 'LoadMovie', '', 1, 0)(0,B);var N= _proxy_jslib_handle(P, (E), 0, 0).getAttribute("disableAutoPlay");if(N==undefined||N==""){ _proxy_jslib_handle(P, (E), 0, 0).Play()}continue}catch(G){}var M= _proxy_jslib_handle(P, (E), 0, 0).getAttribute("height");var C= _proxy_jslib_handle(P, (E), 0, 0).getAttribute("width");var J="";var I= _proxy_jslib_handle( _proxy_jslib_handle(P, (E), 0, 0), 'getElementsByTagName', '', 1, 0)("param");for(var K=0;K<I.length;K++){try{if( _proxy_jslib_handle(I, (K), 0, 0).getAttribute("name").toLowerCase()==="flashvars"){J= _proxy_jslib_handle(I, (K), 0, 0).getAttribute("value");break}}catch(G){}}var D=new (SWFObject)(B,"obj"+Math.random(),C,M,"8","#FFFFFF");if(J){var F=J.split(/\&/);for(var L=0;L<F.length;L++){var H= _proxy_jslib_handle(F, (L), 0, 0).split("=");if(H.length==2){D.addVariable(H[0],H[1])}}}var A=document.createElement("div"); _proxy_jslib_handle(P, (E), 0, 0).parentNode.insertBefore(A, _proxy_jslib_handle(P, (E), 0, 0)); _proxy_jslib_handle(D, 'write', '', 1, 0)(A); _proxy_jslib_handle(P, (E), 0, 0).parentNode.removeChild( _proxy_jslib_handle(P, (E), 0, 0))}}}};try{if(!MySpace.Application.keyDisabled("JS_ProfilePageStaticMediaPreloader")){MySpace.Utils.Media.loadStaticContent()}}catch(e){}Type.registerNamespace("MySpace.UI");Date.prototype.addMilliseconds=function(A) {this.setTime(this.getTime()+A);return this};Date.prototype.addSeconds=function(A) {this.addMilliseconds(A*1000);return this};Date.prototype.addMinutes=function(A) {this.addMilliseconds(A*60000);return this};Date.prototype.addHours=function(A) {this.addMilliseconds(A*3600000);return this};Date.prototype.addDays=function(A) {this.setDate(this.getDate()+A);return this};Date.prototype.addMonths=function(A) {this.setMonth(this.getMonth()+A);return this};Date.prototype.addYears=function(A) {this.setFullYear(this.getFullYear()+A);return this};MySpace.UI.hideElements=function(B,A) {for(var C=0;C<B.length;C++){var E= _proxy_jslib_handle(document, 'getElementsByTagName', '', 1, 0)( _proxy_jslib_handle(B, (C), 0, 0));for(var D=0;D<E.length;D++){ _proxy_jslib_handle(E, (D), 0, 0).style.visibility=A?"hidden":""}}};MySpace.UI._Overlay=function(A) { _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(A);MySpace.UI._Overlay.initializeBase(this,[A])};MySpace.UI._Overlay.prototype={_interval:null,_fadeIn:false,_opacity:0,_max:60,_fadeDelegate:null,_resizeHandler:null,_step:20,show:function() {MySpace.UI.hideElements(["iframe","object","embed","select"],true);this._fade(true)},hide:function() {MySpace.UI.hideElements(["iframe","object","embed","select"],false);this._fade(false)},add_fadeComplete:function(A) {this.get_events().addHandler("fadeComplete",A)},remove_fadeComplete:function(A) {this.get_events().removeHandler("fadeComplete",A)},initialize:function() {var A=this.get_element();A.id="window_overlay";A.style.zIndex="100000";A.style.width="100%";this.set_opacity(0);Sys.UI.DomElement.setLocation(A,0,0);this._setHeight();this._resizeHandler=Function.createDelegate(this,this._setHeight);$addHandler(window,"resize",this._resizeHandler)},_setHeight:function() {var B= _proxy_jslib_handle(document, 'body', '', 0, 0).scrollHeight;var A=document.documentElement.clientHeight;var C=document.documentElement.scrollHeight;B=((B>C)?B:C);this.get_element().style.height=((B>A)?B:A)+"px"},_fade:function(A) {this._fadeIn=A;if(A){this._element.style.visibility="visible";this._element.style.display=""}else{this._element.style.visibility="hidden";this._element.style.display="none"}if(!this._fadeDelegate){this._fadeDelegate=Function.createDelegate(this,this._tick)}this._interval= _proxy_jslib_handle(window, 'setInterval', '', 1, 0)(this._fadeDelegate,100)},_tick:function() {if(!this._interval){return}var C=this._step;if(!this._fadeIn){C*=-1}var A=this._opacity+C;if(A<0){A=0}else{if(A>this._max){A=this._max}}this.set_opacity(A);if(A<=0||A>=this._max){window.clearInterval(this._interval);var B=this.get_events().getHandler("fadeComplete");if(B){B(this,Sys.EventArgs.Empty)}}},get_opacity:function() {return this._opacity},set_opacity:function(B) {this._opacity=B;var A=this.get_element().style;A.opacity=B*0.01;A.filter="alpha(opacity="+B+")";if(B===0){this.set_visible(false)}},dispose:function() {$removeHandler(window,"resize",this._resizeHandler);this._fadeDelegate=null;MySpace.UI._Overlay.callBaseMethod(this,"dispose")}};MySpace.UI._Overlay.registerClass("MySpace.UI._Overlay",Sys.UI.Control);window.get_overlay=function() {if(!window._overlay){window._overlay=$create(MySpace.UI._Overlay,null,null,null,document.createElement("div"))}return window._overlay};MySpace.UI._Popup=function(A) {this._box=A.firstChild;MySpace.UI._Popup.initializeBase(this,[A])};MySpace.UI._Popup.prototype={_box:null,_state:null,_defaultButton:null,_callback:null,_globalCss:null,_top:null,_left:null,get_top:function() {return this._top},set_top:function(A) {this._top=A},get_left:function() {return this._left},set_left:function(A) {this._left=A},get_state:function() {return this._state},set_state:function(A) {this._state=A},get_title:function() {return  _proxy_jslib_handle(this._box.childNodes[1], 'innerHTML', '', 0, 0)},set_title:function(A) { _proxy_jslib_assign('', this._box.childNodes[1], 'innerHTML', '=', (A))},get_content:function() {return  _proxy_jslib_handle(this._box.childNodes[2], 'innerHTML', '', 0, 0)},set_content:function(A) {if(typeof(A)==="object"){this._box.childNodes[2].appendChild(A)}else{ _proxy_jslib_assign('', this._box.childNodes[2], 'innerHTML', '=', (A))}},get_callback:function() {return this._callback},set_callback:function(A) {this._callback=A},add_button:function(C,B) {var A=document.createElement("input");A.type="button"; _proxy_jslib_assign('', A, 'value', '=', (C));if(B){this._defaultButton=A}$addHandlers(A,{click:this._buttonClick},this);this._box.lastChild.appendChild(A);return A},show:function(C) {if(MySpace.UI._Popup._activePopup){throw"A Popup is already active."}if(C){this._callback=C}window.get_overlay().show();if(this._top!==null&&this._left!==null){ _proxy_jslib_assign('', this._element.style, 'top', '=', (this._top+"px"));this._element.style.left=this._left+"px"}this._element.style.display="";this._element.style.visibility="visible";var A=MySpace.Utils.Selector.query("iframe,object,embed,select",this._element);for(var B=0;B<A.length;B++){ _proxy_jslib_handle(A, (B), 0, 0).style.visibility=""}if(this._defaultButton){this._defaultButton.focus()}MySpace.UI._Popup._activePopup=this;if(this._globalCss!==null){this._top=(this._top==null?this._element.offsetTop:this._top);this._globalCss.addRule(".popup_wrapper","top:expression( (ignoreMe = document.body.scrollTop + "+this._top+') + "px" )')}},_hide:function() {window.get_overlay().hide();this._element.style.display="none";MySpace.UI._Popup._activePopup=null;if(this._globalCss!==null){this._globalCss.removeRule(this._globalCss.rules.length-1)}},_buttonClick:function(B) {this._hide();var A=this._callback;if(A){A(this,B)}},initialize:function() {var B=this.get_element();B.parentNode.removeChild(B); _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(B);this._box.firstChild.isCancel=true;$addHandlers(this._box.firstChild,{click:this._buttonClick},this);MySpace.UI._Popup.callBaseMethod(this,"initialize");if(typeof(window.pageXOffset)==="undefined"){for(var A=0;A<document.styleSheets.length;A++){if(/global(\d)*(\.debug)*\.css/.test( _proxy_jslib_handle( _proxy_jslib_handle(document.styleSheets, (A), 0, 0), 'href', '', 0, 0))){this._globalCss= _proxy_jslib_handle(document.styleSheets, (A), 0, 0)}}}},dispose:function() {var B=this._box.lastChild.childNodes;for(var A=0;A<B.length;A++){$clearHandlers( _proxy_jslib_handle(B, (A), 0, 0))}MySpace.UI._Popup.callBaseMethod(this,"dispose")}};MySpace.UI._Popup.registerClass("MySpace.UI._Popup",Sys.UI.Control);MySpace.UI._Popup._activePopup=null;MySpace.UI.Popup=function() {throw"Cannot instantiate static class."};MySpace.UI.Popup.create=function(B,C,D) {var A=document.createElement("div"); _proxy_jslib_assign('', A, 'innerHTML', '=', ("<div class='popup_wrapper' style='z-index:1000001;left:0px;width:100%;display:none;visibility:hidden;'><div class='popup_box'><a class='popup_x'></a><div class='popup_title'></div><div class='popup_content'></div><div class='popup_buttons'></div></div></div>"));return $create(MySpace.UI._Popup,{title:C,content:B,callback:D},null,null,A.firstChild)};MySpace.UI.Popup.generic=function(C,B,E) {var A=document.createElement("div");var D=MySpace.UI.Popup.create(C,MySpaceRes.Common.Attention);D.add_button(B); _proxy_jslib_assign('', A, 'innerHTML', '=', (C));D.show(E);return D};MySpace.UI.Popup.alert=function(A,B) {new (MySpace.UI.Popup.generic)(A,MySpaceRes.Common.Ok,B)};MySpace.UI.Popup.confirm=function(A,C) {var B=new (MySpace.UI.Popup.generic)(A,MySpaceRes.Common.Yes,C);B.add_button(MySpaceRes.Common.No)};MySpace.UI.Popup.registerClass("MySpace.UI.Popup");MySpace.WebRequest=function() {throw"Cannot instantiate static class."};MySpace.WebRequest.invoke=function(J,I,C,G,A,F,H) {if(!C){C={}}var D=new (Sys.Net.WebRequest)();if(!I){if(typeof C==="string"){var E=(typeof C!=="string")?Sys.Serialization.JavaScriptSerializer.serialize(C):C}if(E==="{}"){E=""}D.set_body(E)}D.set_url(Sys.Net.WebRequest._createUrl(J,(I)?C:{}));D.add_completed(B);if(H&&H>0){D.set_timeout(H)}D.invoke();function B(M,L) {if(M.get_responseAvailable()){var P=M.get_statusCode();var K=null;try{var R=M.getResponseHeader("Content-Type");if(R.startsWith("application/json")){K=M.get_object()}else{if(R.startsWith("text/xml")){K=M.get_xml()}else{K=M.get_responseData()}}}catch(O){}if((P<200)||(P>=300)){if(A){if(!K){K=new (Sys.Net.WebServiceError)(false,"WebRequest failed for an unknown reason.","","")}K._statusCode=P;A(K,F)}else{var N;if(K){N=K.get_exceptionType()+"-- "+K.get_message()}else{N=M.get_responseData()}window.alert("WebRequest Failed: "+N)}}else{if(G){G(K,F)}}}else{var Q;if(M.get_timedOut()){Q="WebRequest timed out."}else{Q="WebRequest failed for an unknown reason."}if(A){A(new (Sys.Net.WebServiceError)(M.get_timedOut(),Q,"",""),F)}else{alert(Q)}}}return D};MySpace.WebRequest.registerClass("MySpace.WebRequest");MySpace.CMS=function() {throw"Cannot instantiate static class."};MySpace.CMS.cache={};MySpace.CMS.getContent=function(D,E,C) {var A= _proxy_jslib_handle(MySpace.CMS.cache, (D), 0, 0);if(A&&new (Date)()<A.expire){E(A.response);return null}MySpace.WebRequest.invoke("/Modules/Common/HttpHandlers/CMS.ashx",false,"placementId="+D,B,null,C,0);function B(H,G) {var F=new (Date)();F.setTime(F.getTime()+120000); _proxy_jslib_assign('', MySpace.CMS.cache, (D), '=', ({response:H,expire:F}));if(E){E(H,G)}}return null};MySpace.CMS.track=function(A) {MySpace.WebRequest.invoke("/Modules/Common/HttpHandlers/CMSClick.ashx?_i="+A,true,null,null,Function.emptyFunction,null,0)};MySpace.CMS.registerClass("MySpace.CMS");if(!MySpace.Util){MySpace.Util=function() {throw"Cannot instantiate static class."}}MySpace.Util.get_profileId=function() {var B="i";var G= _proxy_jslib_handle(document, 'URL', '', 0, 0);G= _proxy_jslib_handle(G, 'replace', '', 1, 0)(/'/g,"");var D="friendID";var C=new (RegExp)("\\?[\\w\\W]*"+D+"=([^\\&\\?#]*)",B);var A=C.exec(G);if(!A){elg="groupID";var F=new (RegExp)("\\?[\\w\\W]*"+elg+"=([^\\&\\?#]*)",B);A=F.exec(G)}if(A&&A.length>1){return A[1]}else{var E=/\/([\w]*)$/i;A=E.exec(G);if(A&&A.length>1){return A[1].toLowerCase()}else{return""}}};MySpace.Util.registerClass("MySpace.Util");if(typeof MySpace.Cookies.MSCulture!=="undefined"){var d=new (Date)();MySpace.Cookies.MSCulture.get_values().timeZone=(d.getTimezoneOffset()/-60);MySpace.Cookies.save(MySpace.Cookies.MSCulture,".myspace.com",new (Date)().addDays(7))}MySpace.CultureSwitchPrompt=function() {throw"Cannot instantiate static class."};MySpace.CultureSwitchPrompt.getContent=function(A,D,C) {MySpace.WebRequest.invoke("/Modules/Common/HttpHandlers/CultureSwitch.ashx",false,"culture="+A+"&userid="+MySpace.ClientContext.UserId,B,null,C,0);function B(F,E) {if(D){D(F,E)}}return null};MySpace.CultureSwitchPrompt.registerClass("MySpace.CultureSwitchPrompt");MySpace.UI.Header=function() {throw"Cannot instantiate static class."};MySpace.UI.Header.languageLinkClick=function(A,E,B) {MySpace.CultureSwitchPrompt.getContent(A,C);function C(G) {var I=Sys.Serialization.JavaScriptSerializer.deserialize(G);var H=MySpace.UI.Popup.create("",""); _proxy_jslib_assign('', H._element, 'innerHTML', '=', ("<div class='popup_box2'><a class='popup_ex'></a><div class='popup_title'></div><div class='popup_content2'></div><div class='popup_buttons'></div></div>"));H._box=H._element.firstChild;H.set_content( _proxy_jslib_handle(I, 'content', '', 0, 0));H.set_title(I.header);H.add_button(I.continuebtn);H.add_button(I.cancelbtn,true).isCancel=true;H.set_state({culture:A,domain:E});H.addCssClass("popupChangeLanguage");H.show(F)}function F(H,G) {var I=H.get_state();if(G.target.isCancel){MySpace.Cookies.MSCulture.get_values().PreferredCulturePending= _proxy_jslib_handle(A, 'replace', '', 1, 0)("-","*");MySpace.Cookies.save(MySpace.Cookies.MSCulture,".myspace.com",new (Date)().addDays(7));if(E.length==0){ _proxy_jslib_handle(window, 'location', '', 0, 0).reload(false)}return}MySpace.Cookies.MSCulture.get_values().PreferredCulturePending=A;MySpace.Cookies.MSCulture.get_values().PreferredCulture=A;MySpace.Cookies.save(MySpace.Cookies.MSCulture,".myspace.com",new (Date)().addDays(7));var J= _proxy_jslib_handle(H._box.childNodes[2], 'getElementsByTagName', '', 1, 0)("input");if(J[1]!=null&&J[1].checked){Sys.Net.WebServiceProxy.invoke("/Services/GeoLocation.asmx","SavePreferredCulture",false,{culture:I.culture},D,D,null,0);return}D()}function D() {if(E.length>0){ _proxy_jslib_assign('', window, 'location', '=', ("http://"+E))}else{ _proxy_jslib_handle(window, 'location', '', 0, 0).reload(true)}}};MySpace.UI.Header.gamesLinkClick=function(B) {var A=MySpace.UI.Popup.create("",""); _proxy_jslib_assign('', A._element, 'innerHTML', '=', ("<div class='popup_box2'><a class='popup_ex'></a><div class='popup_title'></div><div class='popup_content2' style='padding:20px'></div><div class='popup_buttons'></div></div>"));A._box=A._element.firstChild;A.set_content(MySpaceRes.CultureSpecific.GamesPromptEnglish+"<div style='color:#039'>"+MySpaceRes.International.GamesPromptLocal+"</div>");A.set_title(MySpaceRes.International.GamesPromptTitle);A.add_button(MySpaceRes.Header.Continue);A.add_button(MySpaceRes.Header.Cancel,true).isCancel=true;A.addCssClass("popupChangeLanguage");A.show(C);function C(E,D) {if(D.target.isCancel){return} _proxy_jslib_assign('', window, 'location', '=', (B))}};MySpace.UI.Header.registerClass("MySpace.UI.Header");MySpace.IM=function() {throw"Cannot instantiate static class."};MySpace.IM.get_info=function() {switch(Sys.Browser.agent){case Sys.Browser.InternetExplorer:var A=new (ActiveXObject)("MySpaceIMX.MySpaceIMPlugin.1");if(typeof A==="undefined"){return{ver:null,hasSkype:null}}else{var C=100;if(A.GetMSIMVersion()){C=A.GetMSIMVersion();var B=C.split(".");C=parseInt(B[2],10)}return{ver:C,hasSkype:(parseFloat(C)>0)}}case Sys.Browser.Firefox:if(navigator.mimeTypes||navigator.mimeTypes.length){var D= _proxy_jslib_handle(navigator.mimeTypes, ("application/myspaceim.1"), 0, 0);if(D){return{ver:719,hasSkype:true}}D= _proxy_jslib_handle(navigator.mimeTypes, ("application/myspaceim"), 0, 0);if(myType){return{ver:100,hasSkype:false}}}case Sys.Browser.Safari:case Sys.Browser.Opera:if( _proxy_jslib_handle(document, 'cookie', '', 0, 0)&& _proxy_jslib_handle(document, 'cookie', '', 0, 0).indexOf("imyspaceim")!=-1){return{ver:100,hasSkype:null}}else{return{ver:-1,hasSkype:null}}default:return{ver:null,hasSkype:null}}};MySpace.IM.openGetIM=function(D,C) {var B="http://www.myspace.com/Modules/IM/Pages/GetIM.aspx";var E=(screen.availwidth-C)/2;var A=(screen.availheight-D)/2; _proxy_jslib_handle(window, 'open', '', 1, 0)(B,null,"height="+D+",width="+C+",left="+E+",top="+A+",status=no,toolbar=no,menubar=no,location=no")};MySpace.IM.openIMById=function(B) {var A=MySpace.IM.get_info().ver;if(typeof A!=="undefined"&&A!=null){ _proxy_jslib_assign('',  _proxy_jslib_handle(window, 'location', '', 0, 0), 'href', '=', ("myim:sendIM?uID=0&cID="+B))}else{MySpace.IM.openGetIM(475,600)}};MySpace.IM.openIM=function() {MySpace.IM.openIMById(MySpace.Util.get_profileId())};MySpace.UI.Tooltip=function(A) {this._tipDiv=document.createElement("div"); _proxy_jslib_assign('', this._tipDiv, 'innerHTML', '=', ('<div class="innerwrapper origin_tl arrow_lt"><div class="closeButton"></div><div class="arrow"></div><div class="corner"></div><div class="top"></div><div class="content"></div></div>'));this._tipDiv.className="tooltip";MySpace.UI.Tooltip.initializeBase(this,[A])};MySpace.UI.Tooltip.prototype={_tipDiv:null,get_classes:function() {return this._tipDiv.firstChild.className},set_classes:function(A) {this._tipDiv.firstChild.className=A},get_content:function() {return  _proxy_jslib_handle(this._tipDiv.firstChild.lastChild, 'innerHTML', '', 0, 0)},set_content:function(A) {if(typeof(A)==="object"){this._tipDiv.firstChild.lastChild.appendChild(A)}else{ _proxy_jslib_assign('', this._tipDiv.firstChild.lastChild, 'innerHTML', '=', (A))}},get_tipDiv:function() {return this._tipDiv},set_tipDiv:function(A) {this._tipDiv=A},initialize:function() {this._element.appendChild(this._tipDiv);$addHandler(this._tipDiv.firstChild.firstChild,"click",Function.createDelegate(this,this.hide))},dispose:function() {$clearHandlers(this._element);MySpace.UI.Tooltip.callBaseMethod(this,"dispose")},show:function() {this._tipDiv.style.display="block";var B=this.get_events().getHandler("visibilityChanged");if(B){var A=new (Sys.EventArgs)();B(this,A)}},hide:function() {this._tipDiv.style.display="none";var B=this.get_events().getHandler("tooltipClosed");if(B){var A=new (Sys.EventArgs)();B(this,A)}},add_tooltipClosed:function(A) {this.get_events().addHandler("tooltipClosed",A)},remove_tooltipClosed:function(A) {this.get_events().removeHandler("tooltipClosed",A)},add_visibilityChanged:function(A) {this.get_events().addHandler("visibilityChanged",A)},remove_visibilityChanged:function(A) {this.get_events().removeHandler("visibilityChanged",A)}};MySpace.UI.Tooltip.registerClass("MySpace.UI.Tooltip",Sys.UI.Control);Type.registerNamespace("MySpace.UI.TooltipBehavior");MySpace.UI.TooltipBehavior.Hover=function(A) {MySpace.UI.TooltipBehavior.Hover.initializeBase(this,[A])};MySpace.UI.TooltipBehavior.Hover.prototype={_hideDelay:500,_showDelay:0,_timerID:0,get_hideDelay:function() {return this._hideDelay},set_hideDelay:function(A) {this._hideDelay=A},get_showDelay:function() {return this._showDelay},set_showDelay:function(A) {this._showDelay=A},initialize:function() {MySpace.UI.TooltipBehavior.Hover.callBaseMethod(this,"initialize");var A=this.get_element();$addHandler(A.lastChild,"mouseout",Function.createDelegate(this,this._delayedHide));$addHandler(A,"mouseover",Function.createDelegate(this,this._delayedShow));$addHandler(A,"mouseout",Function.createDelegate(this,this._delayedHide))},dispose:function() {$clearHandlers(this.get_element().lastChild);$clearHandlers(this.get_element());MySpace.UI.TooltipBehavior.Hover.callBaseMethod(this,"dispose")},_clearTimerID:function() {if(this._timerID){clearTimeout(this._timerID);this._timerID=0}},_hide:function(A) {this.get_element().control.hide()},_delayedShow:function(A) {this._clearTimerID();this._timerID= _proxy_jslib_handle(window, 'setTimeout', '', 1, 0)(Function.createDelegate(this,this._show),this._showDelay)},_show:function(A) {this.get_element().control.show()},_delayedHide:function(A) {this._clearTimerID();this._timerID= _proxy_jslib_handle(window, 'setTimeout', '', 1, 0)(Function.createDelegate(this,this._hide),this._hideDelay)}};MySpace.UI.TooltipBehavior.Hover.registerClass("MySpace.UI.TooltipBehavior.Hover",Sys.UI.Behavior);MySpace.UI.TooltipBehavior.AutoPos=function(A) {MySpace.UI.TooltipBehavior.AutoPos.initializeBase(this,[A])};MySpace.UI.TooltipBehavior.AutoPos.prototype={_tipDiv:Function.emptyFunction,_quadrants:["origin_br arrow_rb","origin_bl arrow_lb","origin_tr arrow_rt","origin_tl arrow_lt"],get_quadrants:function() {return this._quadrants},set_quadrants:function(A) {this._quadrants=A},initialize:function() {MySpace.UI.TooltipBehavior.AutoPos.callBaseMethod(this,"initialize");var A=this.get_element();this._setTipDivWH(A.lastChild);A.control.add_visibilityChanged(Function.createDelegate(this,this._setPos))},dispose:function() {MySpace.UI.TooltipBehavior.AutoPos.callBaseMethod(this,"dispose")},_setTipDivWH:function(B) {var A=B.style;A.visibility="hidden";A.display="block";this._tipDiv.height=B.firstChild.clientHeight;this._tipDiv.width=B.firstChild.clientWidth;A.display="none";A.visibility="visible"},_setPos:function(I) {var C=this.get_element();var H=C.lastChild;if(C.Hover){C.Hover._clearTimerID()}var G=(typeof(window.pageXOffset)!=="undefined")?window.pageXOffset:document.documentElement.scrollLeft;var E=(typeof(window.pageYOffset)!=="undefined")?window.pageYOffset:document.documentElement.scrollTop;var B=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth);var A=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight);var F=3;F=(C.offsetLeft-this._tipDiv.width>G?(C.offsetTop-E+this._tipDiv.height>A&&C.offsetTop-(this._tipDiv.height)>E?1:3):(C.offsetTop-E+this._tipDiv.height>A?2:4));var D= _proxy_jslib_handle(this._quadrants, (F-1), 0, 0);H.firstChild.className="innerwrapper "+D;H.style.display="block"}};MySpace.UI.TooltipBehavior.AutoPos.registerClass("MySpace.UI.TooltipBehavior.AutoPos",Sys.UI.Behavior);MySpace.UI.getElementsByClassName=function(F,E) {E=E||document;F=" "+F+" ";var A=E.all|| _proxy_jslib_handle(E, 'getElementsByTagName', '', 1, 0)("*");var B=A.length,D=[],C;for(C=0;C<B;C++){if((" "+ _proxy_jslib_handle(A, (C), 0, 0).className+" ").indexOf(F)!==-1){ _proxy_jslib_assign('', D, (D.length), '=', ( _proxy_jslib_handle(A, (C), 0, 0)))}}return D};MySpace.UI.getComputedStyle=function(C) {switch(Sys.Browser.agent){case Sys.Browser.Safari:var B;if(C instanceof HTMLElement){var A=C.ownerDocument.defaultView;B=A.getComputedStyle(C,null);if(!B&&C.style){C.style.display="";B=A.getComputedStyle(C,null)}}return B||{};case Sys.Browser.InternetExplorer:return C.nodeType==1?C.currentStyle:{};default:return C instanceof HTMLElement?C.ownerDocument.defaultView.getComputedStyle(C,null):{}}};MySpace.UI.getContentBox=function(D) {var B=MySpace.UI.getComputedStyle(D);var A={h:parseFloat(B.paddingTop)+parseFloat(B.paddingBottom),w:parseFloat(B.paddingLeft)+parseFloat(B.paddingRight)};var C={h:(B.borderTopStyle!="none"?parseFloat(B.borderTopWidth):0)+(B.borderBottomStyle!="none"?parseFloat(B.borderBottomWidth):0),w:(B.borderLeftStyle!="none"?parseFloat(B.borderLeftWidth):0)+(B.borderRightStyle!="none"?parseFloat(B.borderRightWidth):0)};return{h:D.clientHeight-A.h-C.h,w:D.clientWidth-A.w-C.w}};MySpace.UI.addStyles=function(C,A) {var D;if(document.createStyleSheet){D=document.createStyleSheet(null,A?0:null)}else{D=document.createElement("style");var B= _proxy_jslib_handle(document, 'getElementsByTagName', '', 1, 0)("head")[0];if(A){B.insertBefore(D,B.childNodes[0])}else{B.appendChild(D)}}if(Sys.Browser.agent==Sys.Browser.InternetExplorer){ _proxy_jslib_assign('', D, 'cssText', '=', (C))}else{if(Sys.Browser.agent==Sys.Browser.Safari){D.innerText=C}else{ _proxy_jslib_assign('', D, 'innerHTML', '=', (C))}}};MySpace.UI._DragDropManager=function() {};MySpace.UI._DragDropManager.prototype={_instance:null,_events:null,add_dragStart:function(A) {this.get_events().addHandler("dragStart",A)},remove_dragStart:function(A) {this.get_events().removeHandler("dragStart",A)},get_events:function() {if(!this._events){this._events=new (Sys.EventHandlerList)}return this._events},add_dragStop:function(A) {this.get_events().addHandler("dragStop",A)},remove_dragStop:function(A) {this.get_events().removeHandler("dragStop",A)},_getInstance:function() {if(!this._instance){this._instance=new (MySpace.UI.GenericDragDropManager);this._instance.initialize();this._instance.add_dragStart(Function.createDelegate(this,this._raiseDragStart));this._instance.add_dragStop(Function.createDelegate(this,this._raiseDragStop))}return this._instance},startDragDrop:function(A,C,B) {this._getInstance().startDragDrop(A,C,B)},registerDropTarget:function(A) {this._getInstance().registerDropTarget(A)},unregisterDropTarget:function(A) {this._getInstance().unregisterDropTarget(A)},dispose:function() { _proxy_jslib_assign('delete', (this), ('_events'), '');Sys.Application.unregisterDisposableObject(this);Sys.Application.removeComponent(this)},_raiseDragStart:function(B,A) {var C=this.get_events().getHandler("dragStart");if(C){C(this,A)}},_raiseDragStop:function(B,A) {var C=this.get_events().getHandler("dragStop");if(C){C(this,A)}}};MySpace.UI._DragDropManager.registerClass("MySpace.UI._DragDropManager");MySpace.UI.DragDropManager=new (MySpace.UI._DragDropManager);MySpace.UI.DragDropEventArgs=function(C,A,B) {this._dragMode=C;this._dataType=A;this._data=B};MySpace.UI.DragDropEventArgs.prototype={get_dragMode:function() {return this._dragMode||null},get_dragDataType:function() {return this._dataType||null},get_dragData:function() {return this._data||null}};MySpace.UI.DragDropEventArgs.registerClass("MySpace.UI.DragDropEventArgs");MySpace.UI.IDragSource=function() {};MySpace.UI.IDragSource.prototype={get_dragDataType:function() {throw Error.notImplemented()},getDragData:function() {throw Error.notImplemented()},get_dragMode:function() {throw Error.notImplemented()},onDragStart:function() {throw Error.notImplemented()},onDrag:function() {throw Error.notImplemented()},onDragEnd:function() {throw Error.notImplemented()}};MySpace.UI.IDragSource.registerInterface("MySpace.UI.IDragSource");MySpace.UI.IDropTarget=function() {};MySpace.UI.IDropTarget.prototype={get_dropTargetElement:function() {throw Error.notImplemented()},canDrop:function() {throw Error.notImplemented()},drop:function() {throw Error.notImplemented()},onDragEnterTarget:function() {throw Error.notImplemented()},onDragLeaveTarget:function() {throw Error.notImplemented()},onDragInTarget:function() {throw Error.notImplemented()}};MySpace.UI.IDropTarget.registerInterface("MySpace.UI.IDropTarget");MySpace.UI.DragMode=function() {throw Error.invalidOperation()};MySpace.UI.DragMode.prototype={Copy:0,Move:1};MySpace.UI.DragMode.registerEnum("MySpace.UI.DragMode");MySpace.UI.GenericDragDropManager=function() {MySpace.UI.GenericDragDropManager.initializeBase(this)};MySpace.UI.GenericDragDropManager.prototype={_dropTargets:null,_radius:10,_activeDragVisual:null,_activeContext:null,_activeDragSource:null,_underlyingTarget:null,_oldOffset:null,_potentialTarget:null,_isDragging:false,_mouseUpHandler:null,_mouseMoveHandler:null,_scrollEdgeConst:40,_scrollByConst:10,_scroller:null,_scrollDeltaX:null,_scrollDeltaY:null,_keyPressHandler:null,add_dragStart:function(A) {this.get_events().addHandler("dragStart",A)},remove_dragStart:function(A) {this.get_events().removeHandler("dragStart",A)},add_dragStop:function(A) {this.get_events().addHandler("dragStop",A)},remove_dragStop:function(A) {this.get_events().removeHandler("dragStop",A)},initialize:function() {MySpace.UI.GenericDragDropManager.callBaseMethod(this,"initialize");this._mouseUpHandler=Function.createDelegate(this,this.mouseUpHandler);this._mouseMoveHandler=Function.createDelegate(this,this.mouseMoveHandler);this._keyPressHandler=Function.createDelegate(this,this.keyPressHandler);if(Sys.Browser.agent===Sys.Browser.Safari){MySpace.UI.GenericDragDropManager.__loadSafariCompatLayer(this)}this._scroller=new (MySpace.Timer);this._scroller.set_interval(10);this._scroller.add_tick(Function.createDelegate(this,this.scrollerTickHandler))},dispose:function() {if(this._dropTargets){for(var A=0;A<this._dropTargets;A++){this.unregisterDropTarget( _proxy_jslib_handle(this._dropTargets, (A), 0, 0))}this._dropTargets=null}MySpace.UI.GenericDragDropManager.callBaseMethod(this,"dispose")},startDragDrop:function(C,A,B) {this._activeDragSource=C;this._activeDragVisual=A;this._activeContext=B;var F=window._event;if(this._isDragging){return}this._underlyingTarget=null;var H={x:F.clientX,y:F.clientY};A.originalPosition=A.style.position;A.style.position="absolute";document._lastPosition=H;A.startingPoint=H;var E=this.getScrollOffset(A,true);A.startingPoint=this.addPoints(A.startingPoint,E);if(A.style.position=="absolute"){A.startingPoint=this.subtractPoints(A.startingPoint,Sys.UI.DomElement.getLocation(A))}else{var J=parseInt(A.style.left),I=parseInt( _proxy_jslib_handle(A.style, 'top', '', 0, 0));if(isNaN(J)){J="0"}if(isNaN(I)){I="0"}A.startingPoint=this.subtractPoints(A.startingPoint,{x:J,y:I})}this._prepareForDomChanges();C.onDragStart();var D=new (MySpace.UI.DragDropEventArgs)(C.get_dragMode(),C.get_dragDataType(),C.getDragData(B)),G=this.get_events().getHandler("dragStart");if(G){G(this,D)}this._recoverFromDomChanges();this._wireEvents();this._drag(true)},_stopDragDrop:function(B) {this._scroller.set_enabled(false);var C=window._event;if(this._activeDragSource){this._unwireEvents();if(!B){B=this._underlyingTarget==null}if(!B&&this._underlyingTarget){this._underlyingTarget.drop(this._activeDragSource.get_dragMode(),this._activeDragSource.get_dragDataType(),this._activeDragSource.getDragData(this._activeContext))}this._activeDragSource.onDragEnd(B);var A=this.get_events().getHandler("dragStop");if(A){A(this,Sys.EventArgs.Empty)}this._activeDragVisual.style.position=this._activeDragVisual.originalPosition;this._activeDragSource=null;this._activeContext=null;this._activeDragVisual=null;this._isDragging=false;this._potentialTarget=null;C.preventDefault()}},_drag:function(C) {var F=window._event,G={x:F.clientX,y:F.clientY};document._lastPosition=G;var E=this.getScrollOffset(this._activeDragVisual,true),B=this.addPoints(this.subtractPoints(G,this._activeDragVisual.startingPoint),E);var D=Sys.UI.DomElement.getBounds(this._activeDragVisual);if(B.x<0){B.x=0}else{if(B.x+D.width> _proxy_jslib_handle(document, 'body', '', 0, 0).offsetWidth){B.x= _proxy_jslib_handle(document, 'body', '', 0, 0).offsetWidth-D.width}}if(B.y<0){B.y=0}if(!C&&parseInt(this._activeDragVisual.style.left)==B.x&&parseInt( _proxy_jslib_handle(this._activeDragVisual.style, 'top', '', 0, 0))==B.y){return}Sys.UI.DomElement.setLocation(this._activeDragVisual,B.x,B.y);this._prepareForDomChanges();this._activeDragSource.onDrag();this._recoverFromDomChanges();this._potentialTarget=this._findPotentialTarget(this._activeDragSource,this._activeDragVisual);var A=this._potentialTarget!=this._underlyingTarget||this._potentialTarget==null;if(A&&this._underlyingTarget!=null){this._leaveTarget(this._activeDragSource,this._underlyingTarget)}if(this._potentialTarget!=null){if(A){this._underlyingTarget=this._potentialTarget;this._enterTarget(this._activeDragSource,this._underlyingTarget)}else{this._moveInTarget(this._activeDragSource,this._underlyingTarget)}}else{this._underlyingTarget=null}this._autoScroll()},_wireEvents:function() {Sys.UI.DomEvent.addHandler(document,"mouseup",this._mouseUpHandler);Sys.UI.DomEvent.addHandler(document,"mousemove",this._mouseMoveHandler);Sys.UI.DomEvent.addHandler(document,"keypress",this._keyPressHandler)},_unwireEvents:function() {Sys.UI.DomEvent.removeHandler(document,"keypress",this._keyPressHandler);Sys.UI.DomEvent.removeHandler(document,"mousemove",this._mouseMoveHandler);Sys.UI.DomEvent.removeHandler(document,"mouseup",this._mouseUpHandler)},registerDropTarget:function(A) {if(!this._dropTargets){this._dropTargets=[]}Array.add(this._dropTargets,A)},unregisterDropTarget:function(A) {if(this._dropTargets){Array.remove(this._dropTargets,A)}},mouseUpHandler:function(A) {window._event=A;this._stopDragDrop(false)},mouseMoveHandler:function(A) {window._event=A;this._drag()},keyPressHandler:function(B) {window._event=B;var A=B.keyCode?B.keyCode:B.rawEvent.keyCode;if(A==27){this._stopDragDrop(true)}},_autoScroll:function() {var A=window._event,B=this.getBrowserRectangle();if(B.width>0){this._scrollDeltaX=this._scrollDeltaY=0;if(A.clientX<B.x+this._scrollEdgeConst){this._scrollDeltaX=-this._scrollByConst}else{if(A.clientX>B.width-this._scrollEdgeConst){this._scrollDeltaX=this._scrollByConst}}if(A.clientY<B.y+this._scrollEdgeConst){this._scrollDeltaY=-this._scrollByConst}else{if(A.clientY>B.height-this._scrollEdgeConst){this._scrollDeltaY=this._scrollByConst}}if(this._scrollDeltaX!=0||this._scrollDeltaY!=0){this._scroller.set_enabled(true)}else{this._scroller.set_enabled(false)}}},scrollerTickHandler:function() {var D= _proxy_jslib_handle(document, 'body', '', 0, 0).scrollLeft,B= _proxy_jslib_handle(document, 'body', '', 0, 0).scrollTop;var A=this.getBrowserRectangle();var H=(document.documentElement.scrollTop+A.height+this._scrollEdgeConst)< _proxy_jslib_handle(document, 'body', '', 0, 0).offsetHeight;var I=(document.documentElement.scrollLeft+A.width+this._scrollEdgeConst)< _proxy_jslib_handle(document, 'body', '', 0, 0).offsetWidth;window.scrollBy(I?this._scrollDeltaX:0,H?this._scrollDeltaY:0);var E= _proxy_jslib_handle(document, 'body', '', 0, 0).scrollLeft,C= _proxy_jslib_handle(document, 'body', '', 0, 0).scrollTop,G=this._activeDragVisual,F={x:parseInt(G.style.left)+(E-D),y:parseInt( _proxy_jslib_handle(G.style, 'top', '', 0, 0))+(C-B)};Sys.UI.DomElement.setLocation(G,F.x,F.y)},_getDropTarget:function(A) {while(A){if(A._dropTarget!=null){return A._dropTarget}A=A.parentNode}return null},_dragDrop:function() {if(this._isDragging){return}this._isDragging=true;this._activeDragVisual.dragDrop();document.selection.empty()},_moveInTarget:function(A,B) {this._prepareForDomChanges();B.onDragInTarget(A.get_dragMode(),A.get_dragDataType(),A.getDragData(this._activeContext));this._recoverFromDomChanges()},_enterTarget:function(A,B) {this._prepareForDomChanges();B.onDragEnterTarget(A.get_dragMode(),A.get_dragDataType(),A.getDragData(this._activeContext));this._recoverFromDomChanges()},_leaveTarget:function(A,B) {this._prepareForDomChanges();B.onDragLeaveTarget(A.get_dragMode(),A.get_dragDataType(),A.getDragData(this._activeContext));this._recoverFromDomChanges()},_findPotentialTarget:function(A) {var K=window._event;if(!this._dropTargets){return null}var D=A.get_dragDataType(),E=A.get_dragMode(),F=A.getDragData(this._activeContext),M=this.getScrollOffset( _proxy_jslib_handle(document, 'body', '', 0, 0),true),C=K.clientX+M.x,B=K.clientY+M.y,J={x:C-this._radius,y:B-this._radius,width:this._radius*2,height:this._radius*2};for(var N=0;N<this._dropTargets.length;N++){var O= _proxy_jslib_handle(this._dropTargets, (N), 0, 0),G=O.canDrop(E,D,F);if(!G){continue}var L=O.get_dropTargetElement(),I=Sys.UI.DomElement.getBounds(L),H=Sys.UI.Control.overlaps(J,I);if(H||L=== _proxy_jslib_handle(document, 'body', '', 0, 0)){return O}}return null},_prepareForDomChanges:function() {this._oldOffset=Sys.UI.DomElement.getLocation(this._activeDragVisual)},_recoverFromDomChanges:function() {var B=Sys.UI.DomElement.getLocation(this._activeDragVisual);if(this._oldOffset.x!=B.x||this._oldOffset.y!=B.y){this._activeDragVisual.startingPoint=this.subtractPoints(this._activeDragVisual.startingPoint,this.subtractPoints(this._oldOffset,B));scrollOffset=this.getScrollOffset(this._activeDragVisual,true);var A=this.addPoints(this.subtractPoints(document._lastPosition,this._activeDragVisual.startingPoint),scrollOffset);Sys.UI.DomElement.setLocation(this._activeDragVisual,A.x,A.y)}},addPoints:function(B,A) {return{x:B.x+A.x,y:B.y+A.y}},subtractPoints:function(B,A) {return{x:B.x-A.x,y:B.y-A.y}},getScrollOffset:function(C,B) {var E=C.scrollLeft,D=C.scrollTop;if(B){var A=C.parentNode;while(A!=null&&A.scrollLeft!=null){E+=A.scrollLeft;D+=A.scrollTop;if(A== _proxy_jslib_handle(document, 'body', '', 0, 0)&&(E!=0&&D!=0)){break}A=A.parentNode}}return{x:E,y:D}},getBrowserRectangle:function() {return{x:0,y:0,width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},getNextSibling:function(A) {for(A=A.nextSibling;A!=null;A=A.nextSibling){if( _proxy_jslib_handle(A, 'innerHTML', '', 0, 0)!=null){return A}}return null},hasParent:function(A) {return A.parentNode!=null&&A.parentNode.tagName!=null}};MySpace.UI.GenericDragDropManager.registerClass("MySpace.UI.GenericDragDropManager",Sys.Component);if(Sys.Browser.agent===Sys.Browser.Safari){MySpace.UI.GenericDragDropManager.__loadSafariCompatLayer=function(A) {A._getScrollOffset=A.getScrollOffset;A.getScrollOffset=function() {return{x:0,y:0}};A._getBrowserRectangle=A.getBrowserRectangle;A.getBrowserRectangle=function() {var B=A._getBrowserRectangle(),C=A._getScrollOffset( _proxy_jslib_handle(document, 'body', '', 0, 0),true);return{x:B.x+C.x,y:B.y+C.y,width:B.width+C.x,height:B.height+C.y}}}}MySpace.UI.RepeatDirection=function() {throw Error.invalidOperation()};MySpace.UI.RepeatDirection.prototype={Horizontal:0,Vertical:1};MySpace.UI.RepeatDirection.registerEnum("MySpace.UI.RepeatDirection");MySpace.UI.DragDropList=function(A) {MySpace.UI.DragDropList.initializeBase(this,[A]);this._acceptedDataTypes=[];this._allowedItemIds=[]};MySpace.UI.DragDropList.prototype={_isDragging:null,_dataType:null,_dragMode:null,_dragVisual:null,_direction:MySpace.UI.RepeatDirection.Vertical,_emptyTemplate:null,_emptyTemplateInstance:null,_dropCueTemplate:null,_dropCueTemplateInstance:null,_floatContainerInstance:null,_originalParent:null,_originalNextSibling:null,_originalZIndex:null,_currentContext:null,_data:null,get_currentContext:function() {return this._currentContext},get_data:function() {return this._data},set_data:function(A) {this._data=A},initialize:function() {MySpace.UI.DragDropList.callBaseMethod(this,"initialize");this.get_element().__dragDropList=this;MySpace.UI.DragDropManager.registerDropTarget(this)},startDragDrop:function(B,A,C) {if(!this._isDragging){this._isDragging=true;this._currentContext=A;if(!C){C=this.createDragVisual(B)}else{this._dragVisual=C}MySpace.UI.DragDropManager.startDragDrop(this,C,A)}},createDragVisual:function(A) {if(this._dragMode===MySpace.UI.DragMode.Copy){this._dragVisual=A.cloneNode(true)}else{this._dragVisual=A}var E=MySpace.UI.DragDropManager._getInstance().getScrollOffset(A,true);this._originalSize={w:this._dragVisual.style.width,h:this._dragVisual.style.height};this._originalLocation=Sys.UI.DomElement.getLocation(A);this._dragVisual.style.width=A.offsetWidth+"px";this._dragVisual.style.height=A.offsetHeight+"px";this._dragVisual.style.opacity="0.4";this._dragVisual.style.filter="progid:DXImageTransform.Microsoft.BasicImage(opacity=0.4);";this._originalZIndex=this._dragVisual.style.zIndex;this._dragVisual.style.zIndex=99999;this._originalParent=this._dragVisual.parentNode;this._originalNextSibling=MySpace.UI.DragDropManager._getInstance().getNextSibling(this._dragVisual);var D=MySpace.UI.DragDropManager._getInstance(),G=Sys.UI.DomElement.getLocation(A),I=this._getFloatContainer();Sys.UI.DomElement.setLocation(I,G.x,G.y);if(MySpace.UI.DragDropManager._getInstance().hasParent(this._dragVisual)){var H=this._getDropCueTemplateInstance(this._dragVisual);this._dragVisual.parentNode.replaceChild(H,this._dragVisual)}I.appendChild(this._dragVisual);var F=D.getScrollOffset(A,true);if(E.x!==F.x||E.y!==F.y){var B=D.subtractPoints(E,F),C=D.subtractPoints(G,B);Sys.UI.DomElement.setLocation(I,C.x,C.y)}return I},get_emptyTemplate:function() {return this._emptyTemplate},set_emptyTemplate:function(A) {this._emptyTemplate=A},get_dragDataType:function() {return this._dataType},set_dragDataType:function(A) {this._dataType=A},getDragData:function(A) {return A},get_dragMode:function() {return this._dragMode},set_dragMode:function(A) {this._dragMode=A},dispose:function() {this.get_element().__dragDropList=null;MySpace.UI.DragDropList.callBaseMethod(this,"dispose")},onDragStart:function() {this._validate()},onDrag:function() {},onDragEnd:function(B) {if(B&&this._floatContainerInstance){var F=document.createElement("div");if(this._originalNextSibling){this._originalParent.insertBefore(F,this._originalNextSibling)}else{this._originalParent.appendChild(F)}var E=Sys.UI.DomElement.getLocation(this._floatContainerInstance);var C=$create(MySpace.UI.Effects.LengthAnimation,{target:F,property:"style",propertyKey:"height",startValue:0,endValue:this._floatContainerInstance.offsetHeight});var G=$create(MySpace.UI.Effects.LengthAnimation,{target:this._floatContainerInstance,property:"style",propertyKey:"left",startValue:E.x,endValue:this._originalLocation.x});var A=$create(MySpace.UI.Effects.LengthAnimation,{target:this._floatContainerInstance,property:"style",propertyKey:"top",startValue:E.y,endValue:this._originalLocation.y});var D=$create(MySpace.UI.Effects.CompositeAnimation,{animations:[C,G,A],duration:0.3,fps:12},{ended:Function.createDelegate(this,function() {F.parentNode.removeChild(F);this._onDragEnd(B)})});D.play()}else{this._onDragEnd(B)}},_onDragEnd:function(A) {if(this._floatContainerInstance){if(this._dragMode===MySpace.UI.DragMode.Copy){this._floatContainerInstance.removeChild(this._dragVisual)}else{this._dragVisual.style.opacity="0.999";this._dragVisual.style.filter="";this._dragVisual.style.zIndex=this._originalZIndex?this._originalZIndex:0;if(this._originalSize){this._dragVisual.style.width=this._originalSize.w;this._dragVisual.style.height=this._originalSize.h}if(A){this._dragVisual.parentNode.removeChild(this._dragVisual);if(this._originalNextSibling!=null){this._originalParent.insertBefore(this._dragVisual,this._originalNextSibling)}else{this._originalParent.appendChild(this._dragVisual)}}else{if(this._dragVisual.parentNode===this._floatContainerInstance){this._dragVisual.parentNode.removeChild(this._dragVisual)}}} _proxy_jslib_handle(document, 'body', '', 0, 0).removeChild(this._floatContainerInstance)}else{this._dragVisual.parentNode.removeChild(this._dragVisual)}if(!A&&this._data&&this._dragMode===MySpace.UI.DragMode.Move){var B=this.getDragData(this._currentContext);if(this._data&&B){if(this._data instanceof Array){if(typeof this._data.remove==="function"){this._data.remove(B)}else{Array.remove(this._data,B)}}}}if(!A){var C=this.get_events().getHandler("dragSuccessful");if(C){C(this,null)}}this._isDragging=false;this._validate()},get_direction:function() {return this._direction},set_direction:function(A) {this._direction=A},get_acceptedDataTypes:function() {return this._acceptedDataTypes},set_acceptedDataTypes:function(A) {this._acceptedDataTypes=A},get_allowedItemIds:function() {return this._allowedItemIds},set_allowedItemIds:function(A) {this._allowedItemIds=A},get_dropCueTemplate:function() {return this._dropCueTemplate},set_dropCueTemplate:function(A) {this._dropCueTemplate=A},get_dropTargetElement:function() {return this.get_element()},canDrop:function(C,A,B) {if(!Array.contains(this._acceptedDataTypes,A)){return false}if(this._allowedItemIds.length>0&&!Array.contains(this._allowedItemIds,B.id)){return false}if(B.DraggableListItem.get_allowedListIds().length>0&&!Array.contains(B.DraggableListItem.get_allowedListIds(),this._element.id)){return false}return true},drop:function(F,B,C) {if(B==="HTML"&&F===MySpace.UI.DragMode.Move){var E=C;var D=this._findPotentialNextSibling(E);this._setDropCueVisible(false,E);E.parentNode.removeChild(E);if(D){this.get_element().insertBefore(E,D)}else{this.get_element().appendChild(E)}}else{this._setDropCueVisible(false)}if(this._data&&C){var A=C;if(this._data instanceof Array){if(typeof this._data.add==="function"){this._data.add(A)}else{Array.add(this._data,A)}}}},onDragEnterTarget:function(C,A,B) {if(A==="HTML"){this._setDropCueVisible(true,B);this._validate()}},onDragLeaveTarget:function(B,A) {if(A==="HTML"){this._setDropCueVisible(false);this._validate()}},onDragInTarget:function(C,A,B) {if(A==="HTML"){this._setDropCueVisible(true,B)}},add_dragSuccessful:function(A) {this.get_events().addHandler("dragSuccessful",A)},remove_dragSuccessful:function(A) {this.get_events().removeHandler("dragSuccessful",A)},_setDropCueVisible:function(C,D) {if(this._dropCueTemplate){var A=this._getDropCueTemplateInstance(D);if(C){var B=this._findPotentialNextSibling(D);this._dropCueTemplateInstance.style.width=D.offsetWidth+"px";this._dropCueTemplateInstance.style.height=D.offsetHeight+"px";if(!MySpace.UI.DragDropManager._getInstance().hasParent(A)){if(B){this.get_element().insertBefore(A,B)}else{this.get_element().appendChild(A)}}else{if(MySpace.UI.DragDropManager._getInstance().getNextSibling(A)!==B){this.get_element().removeChild(A);if(B){this.get_element().insertBefore(A,B)}else{this.get_element().appendChild(A)}}}}else{if(A&&MySpace.UI.DragDropManager._getInstance().hasParent(A)){this.get_element().removeChild(A)}}}},_getDropCueTemplateInstance:function(A) {if(!this._dropCueTemplateInstance){this._dropCueTemplateInstance=this._dropCueTemplate.cloneNode(true)}return this._dropCueTemplateInstance},_findPotentialNextSibling:function(E) {var B=Sys.UI.DomElement.getBounds(E);var D=this._direction===MySpace.UI.RepeatDirection.Vertical;var A;for(var C=this.get_element().firstChild;C!==null;C=C.nextSibling){if( _proxy_jslib_handle(C, 'innerHTML', '', 0, 0)&&C!==this._dropCueTemplateInstance&&C!==this._emptyTemplateInstance){A=Sys.UI.DomElement.getBounds(C);if(!D&&B.x<=A.x||D&&(B.y<=A.y)){return C}}}return null},_validate:function() {var A=this._dropCueTemplateInstance==null||!MySpace.UI.DragDropManager._getInstance().hasParent(this._dropCueTemplateInstance),C=0;for(var B=this.get_element().firstChild;B!==null;B=B.nextSibling){if( _proxy_jslib_handle(B, 'innerHTML', '', 0, 0)&&B!==this._emptyTemplateInstance&&B!==this._dropCueTemplateInstance){C++}}if(C>0){A=false}this._setEmptyTemplateVisible(A)},_setEmptyTemplateVisible:function(A) {if(this._emptyTemplate){if(A){if(!this._emptyTemplateInstance){this._emptyTemplateInstance=this._emptyTemplate.cloneNode(true)}else{if(!MySpace.UI.DragDropManager._getInstance().hasParent(this._emptyTemplateInstance)){this.get_element().appendChild(this._emptyTemplateInstance)}}}else{if(this._emptyTemplateInstance&&MySpace.UI.DragDropManager._getInstance().hasParent(this._emptyTemplateInstance)){this.get_element().removeChild(this._emptyTemplateInstance)}}}},_getFloatContainer:function() {if(!this._floatContainerInstance){this._floatContainerInstance=document.createElement(this.get_element().tagName);var A="0px 0px 0px 0px";this._floatContainerInstance.style.position="absolute";this._floatContainerInstance.style.padding=A;this._floatContainerInstance.style.margin=A; _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(this._floatContainerInstance)}else{if(!MySpace.UI.DragDropManager._getInstance().hasParent(this._floatContainerInstance)){ _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(this._floatContainerInstance)}}return this._floatContainerInstance}};MySpace.UI.DragDropList.registerClass("MySpace.UI.DragDropList",Sys.UI.Behavior,MySpace.UI.IDragSource,MySpace.UI.IDropTarget,Sys.IDisposable);MySpace.UI.DraggableListItem=function(C) {MySpace.UI.DraggableListItem.initializeBase(this,[C]);var E,B,F,A,D=[];this.get_data=function() {if(E==null){var G=this._findDragSource();if(G!=null&&G.get_dragDataType()=="HTML"){return this.get_element()}}return E};this.set_data=function(G) {E=G};this.get_handle=function() {return B};this.set_handle=function(G) {if(B!=null){Sys.UI.DomEvent.removeHandler(B,"mousedown",this._handleMouseDown);B.__draggableBehavior=null}if(G.element){G=G.element}B=G;B.__draggableBehavior=this;Sys.UI.DomEvent.addHandler(B,"mousedown",this._handleMouseDown);B.__draggableBehavior=this;B.style.zoom=1};this.get_dragVisualTemplate=function() {return F};this.set_dragVisualTemplate=function(G) {F=G};this.get_allowedListIds=function() {return D};this.set_allowedListIds=function(G) {D=G};this._handleMouseDown=function(G) {window._event=G;B.__draggableBehavior._handleMouseDownInternal()};this._handleMouseDownInternal=function() {var G=window._event;if(G.button<=1){var H=this._findDragSource();if(H!=null){var I=this._createDragVisual();H.startDragDrop(this.get_element(),this.get_data(),I);G.preventDefault()}}};this._createDragVisual=function() {var H=window._event;if(F!=null){if(A==null){A=F.createInstance(this.get_element()).instanceElement}else{if(!MySpace.UI.DragDropManager._getInstance().hasParent(A)){this.get_element().appendChild(A)}}var G={x:H.clientX,y:H.clientY};G=MySpace.UI.DragDropManager._getInstance().addPoints(G,MySpace.UI.DragDropManager._getInstance().getScrollOffset( _proxy_jslib_handle(document, 'body', '', 0, 0),true));Sys.UI.DomElement.setLocation(A,G.x,G.y)}return A};this._findDragSource=function() {var G=this.get_element();while(G!=null){if(G.__dragDropList!=null){return G.__dragDropList}G=G.parentNode}return null}};MySpace.UI.DraggableListItem.registerClass("MySpace.UI.DraggableListItem",Sys.UI.Behavior);Sys.UI.Control.overlaps=function(D,B) {var H=(D.x>=B.x&&D.x<=(B.x+B.width));var C=((D.x+D.width)>=B.x&&(D.x+D.width)<=B.x+B.width);var G=((D.x<B.x)&&((D.x+D.height)>(B.x+B.height)));var E=(D.y>=B.y&&D.y<=(B.y+B.height));var A=((D.y+D.height)>=B.y&&(D.y+D.height)<=B.y+B.height);var F=((D.y<B.y)&&((D.y+D.height)>(B.y+B.height)));if((H||C||G)&&(E||A||F)){return true}return false};Type.registerNamespace("MySpace.UI.Effects");MySpace.UI.Effects.Glitz=function() {throw Error.invalidOperation()};MySpace.UI.Effects.Glitz.interpolate=function(C,B,A,D) {if(D){A=100*D(A/100)}return C+(B-C)*(A/100)};MySpace.UI.Effects.Glitz.setElementOpacity=function(B,A) {if(B.filters){if(A==1){ _proxy_jslib_assign('', B.style, 'cssText', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(B.style, 'cssText', '', 0, 0), 'replace', '', 1, 0)(/FILTER:[^;]*;?/i,"")))}else{B.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+A*100+")"}}else{B.style.opacity=A}};MySpace.UI.Effects.Easing={linear:function(A) {return A},quadIn:function(A) {return A*A},quadOut:function(A) {return A*(A-2)*-1},quadInOut:function(A) {A=A*2;if(A<1){return Math.pow(A,2)/2}return -1*(((A= _proxy_jslib_assign_rval('--', 'A', '', '', A)))*(A-2)-1)/2},quartIn:function(A) {return Math.pow(A,4)},quartOut:function(A) {return -1*(Math.pow(A-1,4)-1)},quartInOut:function(A) {A=A*2;if(A<1){return Math.pow(A,4)/2}A-=2;return -1/2*(Math.pow(A,4)-2)},circIn:function(A) {return -1*(Math.sqrt(1-Math.pow(A,2))-1)},circOut:function(A) {A=A-1;return Math.sqrt(1-Math.pow(A,2))},circInOut:function(A) {A=A*2;if(A<1){return -1/2*(Math.sqrt(1-Math.pow(A,2))-1)}A-=2;return 1/2*(Math.sqrt(1-Math.pow(A,2))+1)},backIn:function(B) {var A=1.70158;return Math.pow(B,2)*((A+1)*B-A)},backOut:function(B) {B=B-1;var A=1.70158;return Math.pow(B,2)*((A+1)*B+A)+1},backInOut:function(B) {var A=1.70158*1.525;B=B*2;if(B<1){return(Math.pow(B,2)*((A+1)*B-A))/2}B-=2;return(Math.pow(B,2)*((A+1)*B+A)+2)/2},elasticIn:function(C) {if(C==0){return 0}if(C==1){return 1}var B=0.3;var A=B/4;C=C-1;return -1*Math.pow(2,10*C)*Math.sin((C-A)*(2*Math.PI)/B)},elasticOut:function(C) {if(C==0){return 0}if(C==1){return 1}var B=0.3;var A=B/4;return Math.pow(2,-10*C)*Math.sin((C-A)*(2*Math.PI)/B)+1},elasticInOut:function(C) {if(C==0){return 0}C=C*2;if(C==2){return 1}var B=0.3*1.5;var A=B/4;if(C<1){C-=1;return -0.5*(Math.pow(2,10*C)*Math.sin((C-A)*(2*Math.PI)/B))}C-=1;return 0.5*(Math.pow(2,-10*C)*Math.sin((C-A)*(2*Math.PI)/B))+1},bounceIn:function(A) {return(1-MySpace.UI.Effects.Easing.bounceOut(1-A))},bounceOut:function(D) {var B=7.5625;var C=2.75;var A;if(D<(1/C)){A=B*Math.pow(D,2)}else{if(D<(2/C)){D-=(1.5/C);A=B*Math.pow(D,2)+0.75}else{if(D<(2.5/C)){D-=(2.25/C);A=B*Math.pow(D,2)+0.9375}else{D-=(2.625/C);A=B*Math.pow(D,2)+0.984375}}}return A},bounceInOut:function(A) {if(A<0.5){return MySpace.UI.Effects.Easing.bounceIn(A*2)/2}return(MySpace.UI.Effects.Easing.bounceOut(A*2-1)/2)+0.5}};MySpace.UI.Effects.Animation=function() {MySpace.UI.Effects.Animation.initializeBase(this)};MySpace.UI.Effects.Animation.prototype={_duration:1,_fps:25,_target:null,_tickHandler:null,_timer:null,_percentComplete:0,_percentDelta:null,_parentAnimation:null,get_duration:function() {return this._duration},set_duration:function(A) {this._duration=A},get_fps:function() {return this._fps},set_fps:function(A) {this._fps=A},get_isActive:function() {return this._timer!==null},get_isPlaying:function() {return this._timer!==null&&this._timer.get_enabled()},get_percentComplete:function() {return this._percentComplete},get_target:function() {return this._target},set_target:function(A) {this._target=A},add_ended:function(A) {this.get_events().addHandler("ended",A)},remove_ended:function(A) {this.get_events().removeHandler("ended",A)},add_started:function(A) {this.get_events().addHandler("started",A)},remove_started:function(A) {this.get_events().removeHandler("started",A)},dispose:function() {if(this._timer){this._timer.dispose();this._timer=null}this._tickHandler=null;this._target=null;MySpace.UI.Effects.Animation.callBaseMethod(this,"dispose")},getAnimatedValue:function() {throw Error.notImplemented()},onEnd:function() {},onStart:function() {},onStep:function(A) {this.setValue(this.getAnimatedValue(A))},pause:function() {if(!this._parentAnimation){if(this._timer){this._timer.set_enabled(false);this.raisePropertyChanged("isPlaying")}}},play:function() {if(!this._parentAnimation){var A=true;if(!this._timer){A=false;if(!this._tickHandler){this._tickHandler=Function.createDelegate(this,this._onTimerTick)}this._timer=new (MySpace.Timer);this._timer.set_interval(1000/this._fps);this._timer.add_tick(this._tickHandler);this._percentDelta=100/(this._duration*this._fps);this.onStart();this._updatePercentComplete(0,true)}this._timer.set_enabled(true);this.raisePropertyChanged("isPlaying");if(!A){this.raisePropertyChanged("isActive")}}},setOwner:function(A) {this._parentAnimation=A},setValue:function() {throw Error.notImplemented()},stop:function() {if(!this._parentAnimation){var A=this._timer;this._timer=null;if(A){A.dispose();this._updatePercentComplete(100);this.onEnd();var B=this.get_events().getHandler("ended");if(B){B(this,null)}this.raisePropertyChanged("isPlaying");this.raisePropertyChanged("isActive")}}},_onTimerTick:function() {this._updatePercentComplete(this._percentComplete+this._percentDelta,true)},_updatePercentComplete:function(B,A) {if(B>100){B=100}this._percentComplete=B;this.raisePropertyChanged("percentComplete");if(A){this.onStep(B)}if(B===100){this.stop()}}};MySpace.UI.Effects.Animation.registerClass("MySpace.UI.Effects.Animation",Sys.Component);MySpace.UI.Effects.PropertyAnimation=function() {MySpace.UI.Effects.PropertyAnimation.initializeBase(this)};MySpace.UI.Effects.PropertyAnimation.prototype={_property:null,_propertyKey:null,get_property:function() {return this._property},set_property:function(A) {this._property=A},get_propertyKey:function() {return this._propertyKey},set_propertyKey:function(A) {this._propertyKey=A},add_ended:function(A) {this.get_events().addHandler("ended",A)},remove_ended:function(A) {this.get_events().removeHandler("ended",A)},add_started:function(A) {this.get_events().addHandler("started",A)},remove_started:function(A) {this.get_events().removeHandler("started",A)},setValue:function(A) {if(this._propertyKey){ _proxy_jslib_assign('',  _proxy_jslib_handle(this.get_target(), (this._property), 0, 0), (this._propertyKey), '=', (A))}else{ _proxy_jslib_assign('', this.get_target(), (this._property), '=', (A))}}};MySpace.UI.Effects.PropertyAnimation.registerClass("MySpace.UI.Effects.PropertyAnimation",MySpace.UI.Effects.Animation);MySpace.UI.Effects.InterpolatedAnimation=function() {MySpace.UI.Effects.InterpolatedAnimation.initializeBase(this)};MySpace.UI.Effects.InterpolatedAnimation.prototype={_startValue:null,_endValue:null,_easingFunction:null,get_endValue:function() {return this._endValue},set_endValue:function(A) {this._endValue=A},get_startValue:function() {return this._startValue},set_startValue:function(A) {this._startValue=A},get_easingFunction:function() {return this._easingFunction},set_easingFunction:function(A) {this._easingFunction=A}};MySpace.UI.Effects.InterpolatedAnimation.registerClass("MySpace.UI.Effects.InterpolatedAnimation",MySpace.UI.Effects.PropertyAnimation);MySpace.UI.Effects.DiscreteAnimation=function() {MySpace.UI.Effects.DiscreteAnimation.initializeBase(this);this._values=[]};MySpace.UI.Effects.DiscreteAnimation.prototype={get_values:function() {return this._values},set_values:function(A) {this._values=A},getAnimatedValue:function(B) {var A=Math.round(B/100*(this._values.length-1));return  _proxy_jslib_handle(this._values, (A), 0, 0)}};MySpace.UI.Effects.DiscreteAnimation.registerClass("MySpace.UI.Effects.DiscreteAnimation",MySpace.UI.Effects.PropertyAnimation);MySpace.UI.Effects.NumberAnimation=function() {MySpace.UI.Effects.NumberAnimation.initializeBase(this)};MySpace.UI.Effects.NumberAnimation.prototype={_integralValues:false,get_integralValues:function() {return this._integralValues},set_integralValues:function(A) {this._integralValues=A},getAnimatedValue:function(B) {var A=MySpace.UI.Effects.Glitz.interpolate(this.get_startValue(),this.get_endValue(),B,this.get_easingFunction());if(this._integralValues){A=Math.round(A)}return A}};MySpace.UI.Effects.NumberAnimation.registerClass("MySpace.UI.Effects.NumberAnimation",MySpace.UI.Effects.InterpolatedAnimation);MySpace.UI.Effects.LengthAnimation=function() {MySpace.UI.Effects.LengthAnimation.initializeBase(this)};MySpace.UI.Effects.LengthAnimation.prototype={_unit:"px",get_unit:function() {return this._unit},set_unit:function(A) {this._unit=A},getAnimatedValue:function(B) {var A=MySpace.UI.Effects.Glitz.interpolate(this.get_startValue(),this.get_endValue(),B,this.get_easingFunction());return Math.round(A)+this._unit}};MySpace.UI.Effects.LengthAnimation.registerClass("MySpace.UI.Effects.LengthAnimation",MySpace.UI.Effects.InterpolatedAnimation);MySpace.UI.Effects.CompositeAnimation=function() {MySpace.UI.Effects.CompositeAnimation.initializeBase(this);this._animations=[]};MySpace.UI.Effects.CompositeAnimation.prototype={get_animations:function() {return this._animations},add_animation:function(A) {this._animations.push(A)},getAnimatedValue:function() {throw Error.invalidOperation()},dispose:function() {for(var A=0;A<this._animations.length;A++){ _proxy_jslib_handle(this._animations, (A), 0, 0).dispose()}this._animations=null;MySpace.UI.Effects.CompositeAnimation.callBaseMethod(this,"dispose")},onEnd:function() {for(var A=0;A<this._animations.length;A++){ _proxy_jslib_handle(this._animations, (A), 0, 0).onEnd()}},onStart:function() {for(var A=0;A<this._animations.length;A++){ _proxy_jslib_handle(this._animations, (A), 0, 0).onStart()}},onStep:function(A) {for(var B=0;B<this._animations.length;B++){ _proxy_jslib_handle(this._animations, (B), 0, 0).onStep(A)}}};MySpace.UI.Effects.CompositeAnimation.registerClass("MySpace.UI.Effects.CompositeAnimation",MySpace.UI.Effects.Animation);MySpace.UI.Effects.ColorAnimation=function(G,F,E,D,C,B,A) {MySpace.UI.Effects.ColorAnimation.initializeBase(this,[G,F,E,D,C,B,A]);this._start=null;this._end=null;this._interpolateRed=false;this._interpolateGreen=false;this._interpolateBlue=false};MySpace.UI.Effects.ColorAnimation.prototype={onStart:function() {MySpace.UI.Effects.ColorAnimation.callBaseMethod(this,"onStart");this._start=MySpace.UI.Effects.ColorAnimation.getRGB(this.get_startValue());this._end=MySpace.UI.Effects.ColorAnimation.getRGB(this.get_endValue());this._interpolateRed=(this._start.Red!=this._end.Red);this._interpolateGreen=(this._start.Green!=this._end.Green);this._interpolateBlue=(this._start.Blue!=this._end.Blue)},getAnimatedValue:function(B) {var D=this._start.Red;var C=this._start.Green;var A=this._start.Blue;if(this._interpolateRed){D=Math.round(MySpace.UI.Effects.Glitz.interpolate(D,this._end.Red,B,this.get_easingFunction()))}if(this._interpolateGreen){C=Math.round(MySpace.UI.Effects.Glitz.interpolate(C,this._end.Green,B,this.get_easingFunction()))}if(this._interpolateBlue){A=Math.round(MySpace.UI.Effects.Glitz.interpolate(A,this._end.Blue,B,this.get_easingFunction()))}return MySpace.UI.Effects.ColorAnimation.toColor(D,C,A)},set_startValue:function(A) {if(this._startValue!=A){this._startValue=A;this.raisePropertyChanged("startValue")}},set_endValue:function(A) {if(this._endValue!=A){this._endValue=A;this.raisePropertyChanged("endValue")}}};MySpace.UI.Effects.ColorAnimation.getRGB=function(A) {if(!A||A.length!=7){throw String.format(AjaxControlToolkit.Resources.Animation_InvalidColor,A)}return{Red:parseInt(A.substr(1,2),16),Green:parseInt(A.substr(3,2),16),Blue:parseInt(A.substr(5,2),16)}};MySpace.UI.Effects.ColorAnimation.toColor=function(F,E,B) {var D= _proxy_jslib_handle(F, 'toString', '', 1, 0)(16);var C= _proxy_jslib_handle(E, 'toString', '', 1, 0)(16);var A= _proxy_jslib_handle(B, 'toString', '', 1, 0)(16);if(D.length==1){D="0"+D}if(C.length==1){C="0"+C}if(A.length==1){A="0"+A}return"#"+D+C+A};MySpace.UI.Effects.ColorAnimation.registerClass("MySpace.UI.Effects.ColorAnimation",MySpace.UI.Effects.InterpolatedAnimation);MySpace.UI.Effects.FadeEffect=function() {throw Error.invalidOperation()};MySpace.UI.Effects.FadeEffect.prototype={FadeIn:0,FadeOut:1};MySpace.UI.Effects.FadeEffect.registerEnum("MySpace.UI.Effects.FadeEffect");MySpace.UI.Effects.FadeAnimation=function() {MySpace.UI.Effects.FadeAnimation.initializeBase(this)};MySpace.UI.Effects.FadeAnimation.prototype={_effect:MySpace.UI.Effects.FadeEffect.FadeIn,get_effect:function() {return this._effect},set_effect:function(A) {this._effect=A},getAnimatedValue:function(C) {var B=0,A=1;if(this._effect===MySpace.UI.Effects.FadeEffect.FadeOut){B=1;A=0}return MySpace.UI.Effects.Glitz.interpolate(B,A,C)},onStart:function() {var A=0;if(this._effect===MySpace.UI.Effects.FadeEffect.FadeOut){A=1}this.setValue(A);if(A==0){this.get_target().style.visibility="visible"}},onEnd:function() {var A=1;if(this._effect===MySpace.UI.Effects.FadeEffect.FadeOut){A=0}this.setValue(A);if(A==0){this.get_target().style.visibility="hidden"}},setValue:function(A) {MySpace.UI.Effects.Glitz.setElementOpacity(this.get_target(),A)}};MySpace.UI.Effects.FadeAnimation.registerClass("MySpace.UI.Effects.FadeAnimation",MySpace.UI.Effects.Animation);MySpace.UI.Effects.SlideEffect=function() {throw Error.invalidOperation()};MySpace.UI.Effects.SlideEffect.prototype={SlideIn:0,SlideOut:1};MySpace.UI.Effects.SlideEffect.registerEnum("MySpace.UI.Effects.SlideEffect");MySpace.UI.Effects.SlidingAnimation=function() {MySpace.UI.Effects.SlidingAnimation.initializeBase(this)};MySpace.UI.Effects.SlidingAnimation.prototype={_effect:MySpace.UI.Effects.SlideEffect.SlideIn,get_effect:function() {return this._effect},set_effect:function(A) {this._effect=A},initialize:function() {this.get_target().style.overflow="hidden";var A=this.get_target().style.display;this.get_target().style.display="block";this.set_property("style");this.set_propertyKey("height");if(this._effect===MySpace.UI.Effects.SlideEffect.SlideIn){this.set_startValue(MySpace.UI.getContentBox(this.get_target()).h);this.set_endValue(0)}else{this.set_startValue(0);this.set_endValue(MySpace.UI.getContentBox(this.get_target()).h)}this.get_target().style.display=A},onStart:function() {if(this._effect===MySpace.UI.Effects.SlideEffect.SlideOut){this.get_target().style.display="block"}},onEnd:function() {if(this._effect===MySpace.UI.Effects.SlideEffect.SlideIn){this.get_target().style.display="none"}}};MySpace.UI.Effects.SlidingAnimation.registerClass("MySpace.UI.Effects.SlidingAnimation",MySpace.UI.Effects.LengthAnimation);MySpace.UI.DragDropModuleManager=function() {MySpace.UI.DragDropModuleManager.initializeBase(this)};MySpace.UI.DragDropModuleManager.prototype={zoneClass:"dropZone",moduleClass:"module",handleClass:"handle",dropCueClass:"dropCue",initialize:function() {MySpace.UI.DragDropModuleManager.callBaseMethod(this,"initialize");var J=document.createElement("div");J.className=this.dropCueClass;var C=MySpace.UI.getElementsByClassName(this.zoneClass);for(var E=0;E<C.length;E++){var B= _proxy_jslib_handle(C, (E), 0, 0).getAttribute("allowedModules")||"";var G=B?B.split(","):[];$create(MySpace.UI.DragDropList,{acceptedDataTypes:["HTML"],dragDataType:"HTML",dragMode:MySpace.UI.DragMode.Move,dropCueTemplate:J,allowedItemIds:G},{dragSuccessful:Function.createDelegate(this,this.onDragSuccessful)},null, _proxy_jslib_handle(C, (E), 0, 0));var H=MySpace.UI.getElementsByClassName(this.moduleClass, _proxy_jslib_handle(C, (E), 0, 0));for(var D=0;D<H.length;D++){var A= _proxy_jslib_handle(H, (D), 0, 0).getAttribute("allowedZones")||"";var I=A?A.split(","):[];var F=MySpace.UI.getElementsByClassName(this.handleClass, _proxy_jslib_handle(H, (D), 0, 0))[0];$create(MySpace.UI.DraggableListItem,{handle:F,allowedListIds:I},null,null, _proxy_jslib_handle(H, (D), 0, 0))}}},add_moduleMoved:function(A) {this.get_events().addHandler("moduleMoved",A)},remove_moduleMoved:function(A) {this.get_events().removeHandler("moduleMoved",A)},onDragSuccessful:function() {var A=this.get_events().getHandler("moduleMoved");if(A){A(this,null)}}};MySpace.UI.DragDropModuleManager.registerClass("MySpace.UI.DragDropModuleManager",Sys.Component);MySpace.UI.CascadingDropDownSelectionChangedEventArgs=function(A,B) {MySpace.UI.CascadingDropDownSelectionChangedEventArgs.initializeBase(this);this._oldValue=A;this._newValue=B};MySpace.UI.CascadingDropDownSelectionChangedEventArgs.prototype={get_oldValue:function() {return this._oldValue},get_newValue:function() {return this._newValue}};MySpace.UI.CascadingDropDownSelectionChangedEventArgs.registerClass("MySpace.UI.CascadingDropDownSelectionChangedEventArgs",Sys.EventArgs);MySpace.UI.CascadingDropDown=function(A) {MySpace.UI.CascadingDropDown.initializeBase(this,[A]);this._parentControlIDs=null;this._parentCategory=null;this._category=null;this._optional=false;this._defaultValue="";this._promptText=null;this._loadingText=null;this._promptValue=null;this._emptyValue=null;this._emptyText=null;this._disableNode=null;this._disableClass="disabled";this._labelNode=null;this._servicePath=null;this._serviceMethod=null;this._serviceExtraParams=null;this._changeHandler=null;this._parentChangeHandler=null;this._lastParentValues=null;this._selectedValue=null};MySpace.UI.CascadingDropDown.prototype={initialize:function() {MySpace.UI.CascadingDropDown.callBaseMethod(this,"initialize");var E=this.get_element();this._clearItems();E.CascadingDropDownCategory=this._category;E.CascadingDropDownOptional=this._optional;E.CascadingDropDownDefaultValue=this._defaultValue;this._changeHandler=Function.createDelegate(this,this._onChange);$addHandler(E,"change",this._changeHandler);if(this._labelNode){this._defaultLabel= _proxy_jslib_handle(this._labelNode, 'innerHTML', '', 0, 0)}this._parentChangeHandlers=[];if(this._parentControlIDs){E.CascadingDropDownParentControlIDs=this._parentControlIDs.join(",");for(var C=0;C<this._parentControlIDs.length;C++){var B= _proxy_jslib_handle(this._parentControlIDs, (C), 0, 0);var A=$get(B);Sys.Debug.assert(A!=null,String.format("Failed to find parent element '{0}'",B));if(A){if(this._parentCategory&&!A.CascadingDropDownCategory){A.CascadingDropDownCategory=this._parentCategory}var D=Function.createDelegate(this,this._onParentChange);this._parentChangeHandlers.push(D);$addHandler(A,"change",D);if(!A.childDropDown){A.childDropDown=[]}A.childDropDown.push(this)}}}this._onParentChange(null,true)},dispose:function() {var C=this.get_element();if(this._changeHandler){$removeHandler(C,"change",this._changeHandler);this._changeHandler=null}for(var A=0;A<this._parentChangeHandlers.length;A++){var B=$get( _proxy_jslib_handle(this._parentControlIDs, (A), 0, 0));if(B){$removeHandler(B,"change", _proxy_jslib_handle(this._parentChangeHandlers, (A), 0, 0))}this._parentChangeHandlers=[]}MySpace.UI.CascadingDropDown.callBaseMethod(this,"dispose")},_clearItems:function() {var A=this.get_element();while(0<A.options.length){A.remove(0)}},_isPopulated:function() {var A=this.get_element().options.length;return this._promptText?(A>1):(A>0)},_setOptions:function(N,M,F) {if(!this.get_isInitialized()){return}if(this._labelNode){if(N&&N._CascadingDropdownLabel){ _proxy_jslib_assign('', this._labelNode, 'innerHTML', '=', (N._CascadingDropdownLabel))}else{ _proxy_jslib_assign('', this._labelNode, 'innerHTML', '=', (this._defaultLabel))}}if(N){ _proxy_jslib_assign('delete', (N), ('_CascadingDropdownLabel'), '')}var I=this.get_element();this._clearItems();var H=0;if(N){for(var L in N){H++}}var E;var J="";if(F&&this._loadingText){E=this._loadingText}else{if(!F&&N&&(H==0)&&this._emptyText){E=this._emptyText;if(this._emptyValue){J=this._emptyValue}}else{if(this._promptText){E=this._promptText;if(this._promptValue){J=this._promptValue}}}}if(E){var B=new (Option)(E,J); _proxy_jslib_assign('', I.options, (I.options.length), '=', (B))}var G=null;if(N){for(var K in N){var D= _proxy_jslib_handle(N, (K), 0, 0);var B=new (Option)(D,K);if(K==this._selectedValue){G=B} _proxy_jslib_assign('', I.options, (I.options.length), '=', (B))}if(G){G.selected=true}}if(G){this.set_selectedValue( _proxy_jslib_handle( _proxy_jslib_handle(I.options, (I.selectedIndex), 0, 0), 'value', '', 0, 0), _proxy_jslib_handle(I.options, (I.selectedIndex), 0, 0).text)}else{if(H==1){var C=this._promptText?1:0; _proxy_jslib_handle(I.options, (C), 0, 0).selected=true;this.set_selectedValue( _proxy_jslib_handle( _proxy_jslib_handle(I.options, (C), 0, 0), 'value', '', 0, 0), _proxy_jslib_handle(I.options, (C), 0, 0).text)}else{if(!M&&!F&&!this._promptText&&(I.options.length>0)){this.set_selectedValue( _proxy_jslib_handle(I.options[0], 'value', '', 0, 0),I.options[0].text)}else{if(!M&&!F){this.set_selectedValue("","")}}}}if(I.childDropDown&&!F){for(i=0;i<I.childDropDown.length;i++){ _proxy_jslib_handle(I.childDropDown, (i), 0, 0)._onParentChange()}}else{if(N&&(Sys.Browser.agent!==Sys.Browser.Safari)&&(Sys.Browser.agent!==Sys.Browser.Opera)){if(document.createEvent){var A=document.createEvent("HTMLEvents");A.initEvent("change",true,false);I.dispatchEvent(A)}else{if(document.createEventObject){I.fireEvent("onchange")}}}}if(this._loadingText||this._promptText||this._emptyText){I.disabled=(H==0);grayOut=!N;if(this._disableNode&&(grayOut!=Sys.UI.DomElement.containsCssClass(this._disableNode,this._disableClass))){Sys.UI.DomElement.toggleCssClass(this._disableNode,this._disableClass)}}this.raisePopulated(Sys.EventArgs.Empty)},_onChange:function() {if(!this._isPopulated()){return}var A=this.get_element();if((-1!=A.selectedIndex)&&!(this._promptText&&(0==A.selectedIndex))){this.set_selectedValue( _proxy_jslib_handle( _proxy_jslib_handle(A.options, (A.selectedIndex), 0, 0), 'value', '', 0, 0), _proxy_jslib_handle(A.options, (A.selectedIndex), 0, 0).text)}else{this.set_selectedValue("","")}},_onParentChange:function(I,L) {var H=this.get_element();var K={};var C=[];if(this._parentControlIDs){for(var F=0;F<this._parentControlIDs.length;F++){C.push( _proxy_jslib_handle(this._parentControlIDs, (F), 0, 0))}}while(C.length){var J=$get(C[0]);C=C.splice(1,C.length-1);if(J&&(-1!=J.selectedIndex)){var G= _proxy_jslib_handle( _proxy_jslib_handle(J.options, (J.selectedIndex), 0, 0), 'value', '', 0, 0);if(G&&G!=""){ _proxy_jslib_assign('', K, (J.CascadingDropDownCategory), '=', (G));var A=J.CascadingDropDownParentControlIDs?J.CascadingDropDownParentControlIDs.split(","):[];for(var F=0;F<A.length;F++){C.push( _proxy_jslib_handle(A, (F), 0, 0))}continue}else{if(J.CascadingDropDownOptional){ _proxy_jslib_assign('', K, (J.CascadingDropDownCategory), '=', (J.CascadingDropDownDefaultValue))}else{K={};break}}}}var E=Sys.Serialization.JavaScriptSerializer.serialize(K);if(E!="{}"&&this._lastParentValues==E){return}this._lastParentValues=E;if(E=="{}"&&this._parentControlIDs){this._setOptions(null,L);return}this._setOptions(null,L,true);if(this._servicePath&&this._serviceMethod){var B=new (Sys.CancelEventArgs)();this.raisePopulating(B);if(B.get_cancel()){return}if(this._serviceExtraParams){for(var D in this._serviceExtraParams){ _proxy_jslib_assign('', K, (D), '=', ( _proxy_jslib_handle(this._serviceExtraParams, (D), 0, 0)))}}Sys.Net.WebServiceProxy.invoke(this._servicePath,this._serviceMethod,false,K,Function.createDelegate(this,this._onMethodComplete),Function.createDelegate(this,this._onMethodError))}},_onMethodComplete:function(A,C,B) {this._setOptions(A)},_onMethodError:function(A,E,B) {var D;if(A.get_timedOut()){D="[Method timeout]"}else{D=String.format("[Method error {0}]",A.get_statusCode())}var C={}; _proxy_jslib_assign('', C, (D), '=', (D));this._setOptions(C)},get_parentControlID:function() {return null},set_parentControlID:function(A) {this._parentControlIDs=[A]},get_parentControlIDs:function(A) {return this._parentControlIDs},set_parentControlIDs:function(A) {this._parentControlIDs=A},get_category:function() {return this._category},set_category:function(A) {this._category=A},get_optional:function() {return this._optional},set_optional:function(A) {this._optional=A},get_defaultValue:function() {return this._defaultValue},set_defaultValue:function(A) {this._defaultValue=A},get_parentCategory:function() {return this._parentCategory},set_parentCategory:function(A) {this._parentCategory=A},get_promptText:function() {return this._promptText},set_promptText:function(A) {this._promptText=A},get_promptValue:function() {return this._promptValue},set_promptValue:function(A) {this._promptValue=A},get_emptyText:function() {return this._emptyText},set_emptyText:function(A) {this._emptyText=A},get_emptyValue:function() {return this._emptyValue},set_emptyValue:function(A) {this._emptyValue=A},get_loadingText:function() {return this._loadingText},set_loadingText:function(A) {this._loadingText=A},get_disableNode:function() {return this._disableNode},set_disableNode:function(A) {this._disableNode=A},get_labelNode:function() {return this._labelNode},set_labelNode:function(A) {this._labelNode=A},get_disableClass:function() {return this._disableClass},set_disableClass:function(A) {this._disableClass=A},get_servicePath:function() {return this._servicePath},set_servicePath:function(A) {this._servicePath=A},get_serviceMethod:function() {return this._serviceMethod},set_serviceMethod:function(A) {this._serviceMethod=A},get_serviceExtraParams:function() {return this._serviceExtraParams},set_serviceExtraParams:function(A) {this._serviceExtraParams=A},get_selectedValue:function() {return this._selectedValue},set_selectedValue:function(B,C) {if(this._selectedValue!=B){var A=this._selectedValue;this._selectedValue=B;this.raiseSelectionChanged(new (MySpace.UI.CascadingDropDownSelectionChangedEventArgs)(A,B))}},add_selectionChanged:function(A) {this.get_events().addHandler("selectionChanged",A)},remove_selectionChanged:function(A) {this.get_events().removeHandler("selectionChanged",A)},raiseSelectionChanged:function(A) {var B=this.get_events().getHandler("selectionChanged");if(B){B(this,A)}},add_populating:function(A) {this.get_events().addHandler("populating",A)},remove_populating:function(A) {this.get_events().removeHandler("populating",A)},raisePopulating:function(A) {var B=this.get_events().getHandler("populating");if(B){B(this,A)}},add_populated:function(A) {this.get_events().addHandler("populated",A)},remove_populated:function(A) {this.get_events().removeHandler("populated",A)},raisePopulated:function(A) {var B=this.get_events().getHandler("populated");if(B){B(this,A)}}};MySpace.UI.CascadingDropDown.registerClass("MySpace.UI.CascadingDropDown",Sys.UI.Behavior);(function() {var S=function() {};var T=/^(?:([-]?\d*)(n){1}|(odd|even)$)*([-+]?\d*)$/;S.prototype={document:window.document,attrAliases:{"for":"htmlFor"},shorthand:{"\\#(-?[_a-z]+[-\\w]*)":"[id=$1]","\\.(-?[_a-z]+[-\\w]*)":"[class~=$1]"},operators:{"=":function(V,W) {return V===W},"!=":function(V,W) {return V!==W},"~=":function(V,X) {var W=" ";return(W+V+W).indexOf((W+X+W))>-1},"|=":function(V,W) {return F("^"+W+"[-]?").test(V)},"^=":function(V,W) {return V.indexOf(W)===0},"$=":function(V,W) {return V.lastIndexOf(W)===V.length-W.length},"*=":function(V,W) {return V.indexOf(W)>-1},"":function(V,W) {return V}},pseudos:{root:function(V) {return V===V.ownerDocument.documentElement},"nth-child":function(V,W) {return Q(V,W)},"nth-last-child":function(V,W) {return Q(V,W,null,true)},"nth-of-type":function(V,W) {return Q(V,W,V.tagName)},"nth-last-of-type":function(V,W) {return Q(V,W,V.tagName,true)},"first-child":function(V) {return E(V.parentNode)[0]===V},"last-child":function(W) {var V=E(W.parentNode);return  _proxy_jslib_handle(V, (V.length-1), 0, 0)===W},"first-of-type":function(V,W) {return E(V.parentNode,V.tagName.toLowerCase())[0]},"last-of-type":function(W,X) {var V=E(W.parentNode,W.tagName.toLowerCase());return  _proxy_jslib_handle(V, (V.length-1), 0, 0)},"only-child":function(W) {var V=E(W.parentNode);return V.length===1&&V[0]===W},"only-of-type":function(V) {return E(V.parentNode,V.tagName.toLowerCase()).length===1},empty:function(V) {return V.childNodes.length===0},not:function(V,W) {return !S.test(V,W)},contains:function(V,X) {var W=V.innerText||V.textContent||"";return W.indexOf(X)>-1},checked:function(V) {return V.checked===true}},test:function(Z,X) {Z= _proxy_jslib_handle(S.document, 'getElementById', '', 1, 0)(Z)||Z;if(!Z){return false}var W=X?X.split(","):[];if(W.length){for(var Y=0,V=W.length;Y<V;(Y= _proxy_jslib_assign_rval('++', 'Y', '', '', Y))){if(U(Z, _proxy_jslib_handle(W, (Y), 0, 0))){return true}}return false}return U(Z,X)},filter:function(Y,X) {Y=Y||[];var a,W=[],b=C(X);if(!Y.item){for(var Z=0,V=Y.length;Z<V;(Z= _proxy_jslib_assign_rval('++', 'Z', '', '', Z))){if(! _proxy_jslib_handle(Y, (Z), 0, 0).tagName){a= _proxy_jslib_handle(S.document, 'getElementById', '', 1, 0)( _proxy_jslib_handle(Y, (Z), 0, 0));if(a){ _proxy_jslib_assign('', Y, (Z), '=', (a))}else{}}}}W=P(Y,C(X)[0]);B();return W},query:function(W,X,Y) {var V=G(W,X,Y);return V}};var G=function(b,j,k,Z) {var m=(k)?null:[];if(!b){return m}var X=b.split(",");if(X.length>1){var l;for(var c=0,f=X.length;c<f;(c= _proxy_jslib_assign_rval('++', 'c', '', '', c))){l=arguments.callee( _proxy_jslib_handle(X, (c), 0, 0),j,k,true);m=k?l:m.concat(l)}H();return m}if(j&&!j.nodeName){j= _proxy_jslib_handle(S.document, 'getElementById', '', 1, 0)(j);if(!j){return m}}j=j||S.document;var h=C(b);var g= _proxy_jslib_handle(h, (N(h)), 0, 0),V=[],Y,W,a=h.pop()||{};if(g){W=O(g.attributes)}if(W){if(W===a.id){V=[ _proxy_jslib_handle(S.document, 'getElementById', '', 1, 0)(W)]||j}else{Y= _proxy_jslib_handle(S.document, 'getElementById', '', 1, 0)(W);if(j===S.document||K(Y,j)){if(Y&&U(Y,null,g)){j=Y}}else{return m}}}if(j&&!V.length){V= _proxy_jslib_handle(j, 'getElementsByTagName', '', 1, 0)(a.tag)}if(V.length){m=P(V,a,k,Z)}B();return m};var K=function() {if(document.documentElement.contains&&!(Sys.Browser.agent===Sys.Browser.Safari&&Sys.Browser.version<3)){return function(W,V) {return V.contains(W)}}else{if(document.documentElement.compareDocumentPosition){return function(W,V) {return !!(V.compareDocumentPosition(W)&16)}}else{return function(X,W) {var V=X.parentNode;while(V){if(X===V){return true}V=V.parentNode}return false}}}}();var P=function(Y,a,b,X) {var W=b?null:[];for(var Z=0,V=Y.length;Z<V;Z++){if(!U( _proxy_jslib_handle(Y, (Z), 0, 0),"",a,X)){continue}if(b){return  _proxy_jslib_handle(Y, (Z), 0, 0)}if(X){if( _proxy_jslib_handle(Y, (Z), 0, 0)._found){continue} _proxy_jslib_handle(Y, (Z), 0, 0)._found=true; _proxy_jslib_assign('', L, (L.length), '=', ( _proxy_jslib_handle(Y, (Z), 0, 0)))} _proxy_jslib_assign('', W, (W.length), '=', ( _proxy_jslib_handle(Y, (Z), 0, 0)))}return W};var U=function(b,W,Z,X) {Z=Z||C(W).pop()||{};if(!b.tagName||(Z.tag!=="*"&&b.tagName.toUpperCase()!==Z.tag)||(X&&b._found)){return false}if(Z.attributes.length){var a;for(var Y=0,V=Z.attributes.length;Y<V;(Y= _proxy_jslib_assign_rval('++', 'Y', '', '', Y))){a=b.getAttribute( _proxy_jslib_handle(Z.attributes, (Y), 0, 0)[0],2);if(a===undefined){return false}if( _proxy_jslib_handle(S.operators, ( _proxy_jslib_handle(Z.attributes, (Y), 0, 0)[1]), 0, 0)&&! _proxy_jslib_handle(S.operators, ( _proxy_jslib_handle(Z.attributes, (Y), 0, 0)[1]), 1, 0)(a, _proxy_jslib_handle(Z.attributes, (Y), 0, 0)[2])){return false}}}if(Z.pseudos.length){for(var Y=0,V=Z.pseudos.length;Y<V;(Y= _proxy_jslib_assign_rval('++', 'Y', '', '', Y))){if( _proxy_jslib_handle(S.pseudos, ( _proxy_jslib_handle(Z.pseudos, (Y), 0, 0)[0]), 0, 0)&&! _proxy_jslib_handle(S.pseudos, ( _proxy_jslib_handle(Z.pseudos, (Y), 0, 0)[0]), 1, 0)(b, _proxy_jslib_handle(Z.pseudos, (Y), 0, 0)[1])){return false}}}return(Z.previous&&Z.previous.combinator!==",")? _proxy_jslib_handle(M, (Z.previous.combinator), 1, 0)(b,Z):true};var L=[];var J=[];var R={};var H=function() {for(var W=0,V=L.length;W<V;(W= _proxy_jslib_assign_rval('++', 'W', '', '', W))){try{ _proxy_jslib_assign('delete', ( _proxy_jslib_handle(L, (W), 0, 0)), ('_found'), '')}catch(X){ _proxy_jslib_handle(L, (W), 0, 0).removeAttribute("_found")}}L=[]};var B=function() {if(!document.documentElement.children){return function() {for(var W=0,V=J.length;W<V;(W= _proxy_jslib_assign_rval('++', 'W', '', '', W))){ _proxy_jslib_assign('delete', ( _proxy_jslib_handle(J, (W), 0, 0)), ('_children'), '')}J=[]}}else{return function() {}}}();var F=function(W,V) {V=V||"";if(! _proxy_jslib_handle(R, (W+V), 0, 0)){ _proxy_jslib_assign('', R, (W+V), '=', (new (RegExp)(W,V)))}return  _proxy_jslib_handle(R, (W+V), 0, 0)};var M={" ":function(W,V) {while(W=W.parentNode){if(U(W,"",V.previous)){return true}}return false},">":function(W,V) {return U(W.parentNode,null,V.previous)},"+":function(X,W) {var V=X.previousSibling;while(V&&V.nodeType!==1){V=V.previousSibling}if(V&&U(V,null,W.previous)){return true}return false},"~":function(X,W) {var V=X.previousSibling;while(V){if(V.nodeType===1&&U(V,null,W.previous)){return true}V=V.previousSibling}return false}};var E=function() {if(document.documentElement.children){return function(W,V) {return(V)?W.children.tags(V):W.children||[]}}else{return function(Z,W) {if(Z._children){return Z._children}var Y=[],a=Z.childNodes;for(var X=0,V=a.length;X<V;(X= _proxy_jslib_assign_rval('++', 'X', '', '', X))){if( _proxy_jslib_handle(a, (X), 0, 0).tagName){if(!W|| _proxy_jslib_handle(a, (X), 0, 0).tagName.toLowerCase()===W){ _proxy_jslib_assign('', Y, (Y.length), '=', ( _proxy_jslib_handle(a, (X), 0, 0)))}}}Z._children=Y; _proxy_jslib_assign('', J, (J.length), '=', (Z));return Y}}}();var Q=function(W,j,l,Z) {if(l){l=l.toLowerCase()}T.test(j);var h=parseInt(RegExp.$1,10),V=RegExp.$2,c=RegExp.$3,f=parseInt(RegExp.$4,10)||0,k=[];var g=E(W.parentNode,l);if(c){h=2;op="+";V="n";f=(c==="odd")?1:0}else{if(isNaN(h)){h=(V)?1:0}}if(h===0){if(Z){f=g.length-f+1}if( _proxy_jslib_handle(g, (f-1), 0, 0)===W){return true}else{return false}}else{if(h<0){Z=!!Z;h=Math.abs(h)}}if(!Z){for(var X=f-1,Y=g.length;X<Y;X+=h){if(X>=0&& _proxy_jslib_handle(g, (X), 0, 0)===W){return true}}}else{for(var X=g.length-f,Y=g.length;X>=0;X-=h){if(X<Y&& _proxy_jslib_handle(g, (X), 0, 0)===W){return true}}}return false};var O=function(W) {for(var X=0,V=W.length;X<V;(X= _proxy_jslib_assign_rval('++', 'X', '', '', X))){if( _proxy_jslib_handle(W, (X), 0, 0)[0]=="id"&& _proxy_jslib_handle(W, (X), 0, 0)[1]==="="){return  _proxy_jslib_handle(W, (X), 0, 0)[2]}}};var N=function(X) {for(var W=0,V=X.length;W<V;(W= _proxy_jslib_assign_rval('++', 'W', '', '', W))){if(O( _proxy_jslib_handle(X, (W), 0, 0).attributes)){return W}}return -1};var D={tag:/^((?:-?[_a-z]+[\w-]*)|\*)/i,attributes:/^\[([a-z]+\w*)+([~\|\^\$\*!=]=?)?['"]?([^'"\]]*)['"]?\]*/i,pseudos:/^:([-\w]+)(?:\(['"]?(.+)['"]?\))*/i,combinator:/^\s*([>+~]|\s)\s*/};var C=function(V) {var X={},a=[],b,Z=false,W;V=A(V);do{Z=false;for(var Y in D){if(!MySpace.Utils.hasOwnProperty(D,Y)){continue}if(Y!="tag"&&Y!="combinator"){ _proxy_jslib_assign('', X, (Y), '=', ( _proxy_jslib_handle(X, (Y), 0, 0)||[]))}if(W= _proxy_jslib_handle(D, (Y), 0, 0).exec(V)){Z=true;if(Y!="tag"&&Y!="combinator"){if(Y==="attributes"&&W[1]==="id"){X.id=W[3]} _proxy_jslib_handle(X, (Y), 0, 0).push(W.slice(1))}else{ _proxy_jslib_assign('', X, (Y), '=', (W[1]))}V= _proxy_jslib_handle(V, 'replace', '', 1, 0)(W[0],"");if(Y==="combinator"||!V.length){X.attributes=I(X.attributes);X.pseudos=X.pseudos||[];X.tag=X.tag?X.tag.toUpperCase():"*";a.push(X);X={previous:X}}}}}while(Z);return a};var I=function(W) {var X=S.attrAliases;W=W||[];for(var Y=0,V=W.length;Y<V;(Y= _proxy_jslib_assign_rval('++', 'Y', '', '', Y))){if( _proxy_jslib_handle(X, ( _proxy_jslib_handle(W, (Y), 0, 0)[0]), 0, 0)){ _proxy_jslib_handle(W, (Y), 0, 0)[0]= _proxy_jslib_handle(X, ( _proxy_jslib_handle(W, (Y), 0, 0)[0]), 0, 0)}if(! _proxy_jslib_handle(W, (Y), 0, 0)[1]){ _proxy_jslib_handle(W, (Y), 0, 0)[1]=""}}return W};var A=function(W) {var X=S.shorthand;var Y=W.match(D.attributes);if(Y){W= _proxy_jslib_handle(W, 'replace', '', 1, 0)(D.attributes,"REPLACED_ATTRIBUTE")}for(var a in X){if(!MySpace.Utils.hasOwnProperty(X,a)){continue}W= _proxy_jslib_handle(W, 'replace', '', 1, 0)(F(a,"gi"), _proxy_jslib_handle(X, (a), 0, 0))}if(Y){for(var Z=0,V=Y.length;Z<V;(Z= _proxy_jslib_assign_rval('++', 'Z', '', '', Z))){W= _proxy_jslib_handle(W, 'replace', '', 1, 0)("REPLACED_ATTRIBUTE", _proxy_jslib_handle(Y, (Z), 0, 0))}}return W};if(Sys.Browser.agent===Sys.Browser.InternetExplorer){ _proxy_jslib_assign('', S.prototype.attrAliases, ("class"), '=', ("className"))}S=new (S)();S.patterns=D;MySpace.Utils.Selector=S})();MySpace.Utils.hasOwnProperty=(Object.prototype.hasOwnProperty)?function(A,B) {return A&&A.hasOwnProperty(B)}:function(A,B) {return !(typeof( _proxy_jslib_handle(A, (B), 0, 0))==="undefined"&& _proxy_jslib_handle(A.constructor.prototype, (B), 0, 0)!== _proxy_jslib_handle(A, (B), 0, 0))};Type.registerNamespace("MySpace.FlashDetection");MySpace.FlashDetection=function() {return this};MySpace.FlashDetection.prototype={getFlashVersion:function(B) {var A=B.match(/[\d]+/g);A.length=3;return A.join(".")},removeFlashVersionPrefix:function(B) {var A=B.split(" ");if(A.length==1){return A}else{if(A.length>1){return A[1]}else{return B}}},hasRequiredFlashVersion:function(C) {var D=( _proxy_jslib_handle(C, 'toString', '', 1, 0)()+".0.0");var E=C;var F=0;var M="0.0.0";var H=(navigator.mimeTypes&& _proxy_jslib_handle(navigator.mimeTypes, ("application/x-shockwave-flash"), 0, 0))? _proxy_jslib_handle(navigator.mimeTypes, ("application/x-shockwave-flash"), 0, 0).enabledPlugin:0;if(H){var J= _proxy_jslib_handle(navigator.plugins, ("Shockwave Flash"), 0, 0).description.split(" ");for(var G=0;G<J.length;(G= _proxy_jslib_assign_rval('++', 'G', '', '', G))){if(isNaN(parseInt( _proxy_jslib_handle(J, (G), 0, 0)))){continue}M= _proxy_jslib_handle(J, (G), 0, 0)}F=M>=E}else{if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.appVersion.indexOf("Win")!=-1)){try{var K=new (ActiveXObject)("ShockwaveFlash.ShockwaveFlash.7");var A=this.removeFlashVersionPrefix(K.GetVariable("$version"));var M=this.getFlashVersion(A)}catch(I){try{var K=new (ActiveXObject)("ShockwaveFlash.ShockwaveFlash.7");A=K.GetVariable("$version");M=this.getFlashVersion(A)}catch(I){try{var K=new (ActiveXObject)("ShockwaveFlash.ShockwaveFlash.6");A=K.GetVariable("$version");M="6.0.21"}catch(I){try{var K=new (ActiveXObject)("ShockwaveFlash.ShockwaveFlash");A=K.GetVariable("$version");M=this.getFlashVersion(A)}catch(I){}}}}var L=M.split(".");var B=D.split(".");B[0]=parseInt(B[0],10);B[1]=parseInt(B[1],10);B[2]=parseInt(B[2],10);L[0]=parseInt(L[0],10);L[1]=parseInt(L[1],10);L[2]=parseInt(L[2],10);F=(L[0]>B[0]||(L[0]==B[0]&&L[1]>B[1])||(L[0]==B[0]&&L[1]==B[1]&&L[2]>=B[2]))?true:false}}return F}};MySpace.UI.HistoryEventArgs=function(A) {MySpace.UI.HistoryEventArgs.initializeBase(this);this._state=A};MySpace.UI.HistoryEventArgs.prototype={get_state:function() {return this._state}};MySpace.UI.HistoryEventArgs.registerClass("MySpace.UI.HistoryEventArgs",Sys.EventArgs);MySpace.UI._History=function() {MySpace.UI._History.initializeBase(this);this._appLoadHandler=null;this._clientId=null;this._currentEntry="";this._emptyPageUrl=null;this._historyFrame=null;this._historyInitialLength=0;this._historyLength=0;this._iframeLoadHandler=null;this._ignoreIFrame=false;this._ignoreTimer=false;this._historyPointIsNew=false;this._state={};this._timerCookie=0;this._timerHandler=null;this._uniqueId=null};MySpace.UI._History.prototype={get_stateString:function() {var A=decodeURIComponent( _proxy_jslib_handle(window, 'location', '', 0, 0).hash||"");if((A.length>0)&&(A.charAt(0)==="#")){A=A.substring(1)}return A},add_navigate:function(A) {this.get_events().addHandler("navigate",A)},remove_navigate:function(A) {this.get_events().removeHandler("navigate",A)},addHistoryPoint:function(E,F) {var A=this._state;for(var B in E){var D= _proxy_jslib_handle(E, (B), 0, 0);if(D===null){if(typeof( _proxy_jslib_handle(A, (B), 0, 0))!=="undefined"){ _proxy_jslib_assign('delete', (A), (B), '')}}else{ _proxy_jslib_assign('', A, (B), '=', (D))}}var C=Sys.Serialization.JavaScriptSerializer.serialize(A);this._ignoreIFrame=true;this._historyPointIsNew=true;this._setState(C,F)},dispose:function() {if(this._appLoadHandler){Sys.Application.remove_load(this._appLoadHandler); _proxy_jslib_assign('delete', (this), ('_appLoadHandler'), '')}if(this._historyFrame){Sys.UI.DomEvent.removeHandler(this._historyFrame,"load",this._iframeLoadHandler); _proxy_jslib_assign('delete', (this), ('_iframeLoadHandler'), ''); _proxy_jslib_assign('delete', (this), ('_historyFrame'), '')}if(this._timerCookie){window.clearTimeout(this._timerCookie); _proxy_jslib_assign('delete', (this), ('_timerCookie'), '')}MySpace.UI._History.callBaseMethod(this,"dispose")},initialize:function() {MySpace.UI._History.callBaseMethod(this,"initialize");this._appLoadHandler=Function.createDelegate(this,this._onApplicationLoaded);Sys.Application.add_load(this._appLoadHandler)},setServerId:function(A,B) {this._clientId=A;this._uniqueId=B},setServerState:function(A) {this._state.__s=A},_navigate:function(B) {var C={};if(B){try{C=Sys.Serialization.JavaScriptSerializer.deserialize(B,true)}catch(D){}}if(this._uniqueId){var A=this._state.__s||"";var E=C.__s||"";if(E!==A){__doPostBack(this._uniqueId,E);this._state=C;return}}this._setState(B);this._state=C;this._raiseNavigate()},_onApplicationLoaded:function(B,A) {Sys.Application.remove_load(this._appLoadHandler); _proxy_jslib_assign('delete', (this), ('_appLoadHandler'), '');if(Sys.Browser.agent===Sys.Browser.InternetExplorer){var C="__historyFrame";var F=$get(C);if(!F){throw Error.invalidOperation("For the history feature to work in IE, the page must have an iframe with id '__historyFrame' and src set to point to a page that sets its title to the 'title' querystring parameter when loaded.")}var E= _proxy_jslib_handle(F, 'src', '', 0, 0);this._emptyPageUrl=E+(E.indexOf("?")===-1?"?":"&")+"_state=";this._historyFrame=F;if(F.readyState==="loading"){this._ignoreIFrame=true}this._iframeLoadHandler=Function.createDelegate(this,this._onIFrameLoad);Sys.UI.DomEvent.addHandler(this._historyFrame,"load",this._iframeLoadHandler)}this._timerHandler=Function.createDelegate(this,this._onIdle);this._timerCookie= _proxy_jslib_handle(window, 'setTimeout', '', 1, 0)(this._timerHandler,100);var D=this.get_stateString();if(D!==this._currentEntry){this._navigate(D)}},_onIdle:function() { _proxy_jslib_assign('delete', (this), ('_timerCookie'), '');var A=this.get_stateString();if(A!==this._currentEntry){if(!this._ignoreTimer){this._historyPointIsNew=false;this._navigate(A);this._historyLength=window.history.length}}else{this._ignoreTimer=false}this._timerCookie= _proxy_jslib_handle(window, 'setTimeout', '', 1, 0)(this._timerHandler,100)},_onIFrameLoad:function() {if(!this._ignoreIFrame){var C= _proxy_jslib_handle( _proxy_jslib_handle(this._historyFrame.contentWindow, 'location', '', 0, 0), 'search', '', 0, 0);var B=C.indexOf("_state=");if((B!==-1)&&(B+7<C.length)){C=C.substring(B+7);var A=C.indexOf("&");if(A!==-1){C=C.substring(0,A)}}else{C=""}this._historyPointIsNew=false;this._navigate(C)}this._ignoreIFrame=false},_onPageRequestManagerBeginRequest:function(B,A) {this._ignoreTimer=true},_onPageRequestManagerEndRequest:function(C,B) {var A= _proxy_jslib_handle(B.get_dataItems(), (this._clientId), 0, 0),F;if(typeof(A)!=="undefined"){var E=A[0];F=A[1];this.setServerState(E);this._historyPointIsNew=true}else{this._ignoreTimer=false}var D=Sys.Serialization.JavaScriptSerializer.serialize(this._state);if(D==="{}"){D=""}if(D!=this._currentEntry){this._ignoreTimer=true;this._setState(D,F);this._raiseNavigate()}},_raiseNavigate:function() {var B=this.get_events().getHandler("navigate");var A=new (MySpace.UI.HistoryEventArgs)(this._state);if(B){B(this,A)}if(window.pageNavigate){window.pageNavigate(this,A)}},_setState:function(C,D) {if(C!==this._currentEntry){if(this._historyFrame&&this._historyPointIsNew){var A=this._emptyPageUrl+C+"&title="+encodeURIComponent(D||document.title);if( _proxy_jslib_handle(this._historyFrame, 'src', '', 0, 0)!=A){this._ignoreIFrame=true; _proxy_jslib_assign('', this._historyFrame, 'src', '=', (A))}this._historyPointIsNew=false}this._ignoreTimer=false;this._currentEntry=C;var B=this.get_stateString();if(B==="{}"){B="";this._currentEntry=null}if(C!==B){ _proxy_jslib_handle(window, 'location', '', 0, 0).hash=C?encodeURIComponent(C):""}if(D){document.title=D}}}};MySpace.UI._History.registerClass("MySpace.UI._History",Sys.Component);MySpace._Application.prototype.get_history=function() {var A=this._history;if(!A){A=this._history=new (MySpace.UI._History)();Sys.Application.registerDisposableObject(A);A.initialize()}return A};MySpace.UI.ColorPicker=function(A) {this._colorPicker=document.createElement("div");this._colorPicker.className="colorpicker";MySpace.UI.ColorPicker.initializeBase(this,[A])};MySpace.UI.ColorPicker.prototype={_colorPicker:null,_crossHairs:null,_defaultHex:"#2256B3",_hex:null,_hideInputBox:false,_hidePreview:false,_hideNoColor:false,_hsv:{h:0,s:0,v:0},_hueDiv:null,_huePos:null,_inputBox:null,_isNone:false,_lastX:0,_lastY:0,_rgb:null,_moveHandler:null,_upHandler:null,_pickerDiv:null,_previewDiv:null,_scrollLeft:0,_scrollTop:0,_selectorDiv:null,set_defaultHex:function(A) {this._defaultHex=A},get_defaultHex:function() {return this._defaultHex},get_hex:function() {return(this._isNone?"":this._hex)},set_hidePreview:function(A) {this._hidePreview=A},get_hidePreview:function() {return this._hidePreview},set_hideInputBox:function(A) {this._hideInputBox=A},get_hideInputBox:function() {return this._hideInputBox},set_hideNoColor:function(A) {this._hideNoColor=A},get_hideNoColor:function() {return this._hideNoColor},initialize:function() {if(!this._getIsFixed()){this._scrollLeft=document.documentElement.scrollLeft;this._scrollTop=document.documentElement.scrollTop}this._upHandler=Function.createDelegate(this,this.upHandler);this._moveHandler=Function.createDelegate(this,this.moveHandler);var A=document.createElement("div");A.className="imgpicker";this._selectorDiv=document.createElement("div");this._selectorDiv.className="selector";this._pickerDiv=document.createElement("div");this._pickerDiv.className="picker";this._pickerDiv.appendChild(A);this._crossHairs=document.createElement("div");this._crossHairs.className="crosshairs";this._pickerDiv.appendChild(this._crossHairs);this._pickerDiv.callback=this._pickerValDragged;$addHandler(this._pickerDiv,"mousedown",Function.createDelegate(this,this._mouseDown));this._pickerDiv.onselectstart=function(E) {return false};this._pickerDiv.ondragstart=function(E) {return false};this._selectorDiv.appendChild(this._pickerDiv);this._hueDiv=document.createElement("div");this._hueDiv.className="hue";var C=document.createElement("div");C.className="hueposition";this._huePos=C;var D=document.createElement("div");D.className="imgselector";this._hueDiv.appendChild(D);this._hueDiv.appendChild(this._huePos);this._hueDiv.callback=this._hueDragged;$addHandler(this._hueDiv,"mousedown",Function.createDelegate(this,this._mouseDown));this._selectorDiv.appendChild(this._hueDiv);this._previewDiv=document.createElement("div");this._previewDiv.className="preview";if(this._hidePreview){this._previewDiv.style.display="none"}this._selectorDiv.appendChild(this._previewDiv);var B=document.createElement("div");B.className="nocolor";$addHandler(B,"click",Function.createDelegate(this,this._noColor));if(this._hideNoColor){B.style.display="none"}this._selectorDiv.appendChild(B);this._inputBox=document.createElement("input");this._inputBox.className="inputbox"; _proxy_jslib_assign('', this._inputBox, 'value', '=', (this._defaultHex));if(this._hideInputBox){this._inputBox.style.display="none"}$addHandler(this._inputBox,"change",Function.createDelegate(this,this._inputBoxChanged));this._selectorDiv.appendChild(this._inputBox);this._colorPicker.appendChild(this._selectorDiv);if(this._element){this._element.appendChild(this._colorPicker)}this._inputBoxChanged();this._notifyColorChanged()},_getIsFixed:function() {var A;var C=this._element.parentNode;while(C!==null){var B=MySpace.UI.getComputedStyle(C);if(B){A=B.position;if(A==="fixed"){return true}}C=C.parentNode}return false},_colorChanged:function() {this._hex=this._rgbToHex(this._rgb.r,this._rgb.g,this._rgb.b);var B=this._hsvToRgb(this._hsv.h,1,1);var A=this._rgbToHex(B.r,B.g,B.b); _proxy_jslib_assign('', this._previewDiv.style, 'background', '=', (this._hex)); _proxy_jslib_assign('', this._inputBox, 'value', '=', (this._hex)); _proxy_jslib_assign('', this._pickerDiv.style, 'background', '=', (A));this._crossHairs.style.left= _proxy_jslib_handle(((this._hsv.v*199)-5), 'toString', '', 1, 0)()+"px"; _proxy_jslib_assign('', this._crossHairs.style, 'top', '=', ( _proxy_jslib_handle((((1-this._hsv.s)*199)-5), 'toString', '', 1, 0)()+"px")); _proxy_jslib_assign('', this._huePos.style, 'top', '=', ( _proxy_jslib_handle(((this._hsv.h*199)-9), 'toString', '', 1, 0)()+"px"));this._isNone=false;this._notifyColorChanging()},_inputBoxChanged:function() {this._rgb=this._hexToRgb( _proxy_jslib_handle(this._inputBox, 'value', '', 0, 0),{r:0,g:0,b:0});this._rgbChanged();this._notifyColorChanged()},_noColor:function() { _proxy_jslib_assign('', this._inputBox, 'value', '=', (""));this._isNone=true;this._notifyColorChanging();this._notifyColorChanged()},_rgbChanged:function() {this._hsv=this._rgbToHsv(this._rgb.r,this._rgb.g,this._rgb.b);this._colorChanged()},_hsvChanged:function() {this._rgb=this._hsvToRgb(this._hsv.h,this._hsv.s,this._hsv.v);this._colorChanged()},_pickerValDragged:function(A,B) {this._hsv.s=1-(B/199);this._hsv.v=(A/199);this._hsvChanged()},_hueDragged:function(A,B) {this._hsv.h=B/199;this._hsvChanged()},_mouseDown:function(B) {var A=this._fixCoords(B);if(B.target.parentNode.callback){B.target.parentNode.callback.call(this,A.x,A.y)}$addHandler(document,"mouseup",this._upHandler);$addHandler(document,"mousemove",this._moveHandler);if(B.preventDefault){B.preventDefault()}},upHandler:function(A) {$removeHandler(document,"mouseup",this._upHandler);$removeHandler(document,"mousemove",this._moveHandler);this._notifyColorChanged()},moveHandler:function(C) {var B=this._fixCoords(C);var A=B.x;var D=B.y;if(A!=this._lastX||D!=this._lastY){this._lastX=A;this._lastY=D;if(C.target.parentNode.callback){C.target.parentNode.callback.call(this,A,D)}}},_notifyColorChanged:function() {var B=this.get_events().getHandler("colorChanged");if(B){var A=new (Sys.EventArgs)();B(this,A)}},_notifyColorChanging:function() {var B=this.get_events().getHandler("colorChanging");if(B){var A=new (Sys.EventArgs)();B(this,A)}},_fixCoords:function(E) {var C=0;var B=0;var D=E.target.parentNode.offsetParent;while(D!=null){C+=D.offsetLeft;B+=D.offsetTop;D=D.offsetParent}var A=E.clientX-(this._pickerDiv.offsetLeft+C)+this._scrollLeft;var F=E.clientY-(this._hueDiv.offsetTop+B)+this._scrollTop;if(E.target.parentNode){if(A>E.target.parentNode.offsetWidth-1){A=E.target.parentNode.offsetWidth-1}if(F>E.target.parentNode.offsetHeight-1){F=E.target.parentNode.offsetHeight-1}}if(A<0){A=0}if(F<0){F=0}return{x:A,y:F}},_hexToRgb:function(B,E) {if(E===undefined){E=null}if(B.substr(0,1)=="#"){B=B.substr(1)}var D,C,A;if(B.length==3){D=B.substr(0,1);D+=D;C=B.substr(1,1);C+=C;A=B.substr(2,1);A+=A}else{if(B.length==6){D=B.substr(0,2);C=B.substr(2,2);A=B.substr(4,2)}else{return E}}D=parseInt(D,16);C=parseInt(C,16);A=parseInt(A,16);if(isNaN(D)||isNaN(C)||isNaN(A)){return E}else{return{r:D/255,g:C/255,b:A/255}}},_rgbToHex:function(C,B,A,D) {C=Math.round(C*255);B=Math.round(B*255);A=Math.round(A*255);if(D===undefined){D=true}C= _proxy_jslib_handle(C, 'toString', '', 1, 0)(16);if(C.length==1){C="0"+C}B= _proxy_jslib_handle(B, 'toString', '', 1, 0)(16);if(B.length==1){B="0"+B}A= _proxy_jslib_handle(A, 'toString', '', 1, 0)(16);if(A.length==1){A="0"+A}return((D?"#":"")+C+B+A).toUpperCase()},_hsvToRgb:function(G,F,I) {var C;var D;var J;if(I==0){C=0;D=0;J=0}else{var E=Math.floor(G*6);var H=(G*6)-E;var B=I*(1-F);var A=I*(1-(F*H));var K=I*(1-(F*(1-H)));switch(E){case 1:C=A;D=I;J=B;break;case 2:C=B;D=I;J=K;break;case 3:C=B;D=A;J=I;break;case 4:C=K;D=B;J=I;break;case 5:C=I;D=B;J=A;break;case 6:case 0:C=I;D=K;J=B;break}}return{r:C,g:D,b:J}},_rgbToHsv:function(A,B,H) {var F=Math.max(Math.max(A,B),H);var C=Math.min(Math.min(A,B),H);var E;var D;var G=F;if(C==F){E=0;D=0}else{var I=(F-C);D=I/F;if(A==F){E=(B-H)/I}else{if(B==F){E=2+((H-A)/I)}else{E=4+((A-B)/I)}}E/=6;if(E<0){E+=1}if(E>1){E-=1}}return{h:E,s:D,v:G}},_pickerClosed:function() {var B=this.get_events().getHandler("pickerClosed");if(B){var A=new (Sys.EventArgs)();B(this,A)}},add_colorChanged:function(A) {this.get_events().addHandler("colorChanged",A)},remove_colorChanged:function(A) {this.get_events().removeHandler("colorChanged",A)},add_colorChanging:function(A) {this.get_events().addHandler("colorChanging",A)},remove_colorChanging:function(A) {this.get_events().removeHandler("colorChanging",A)},add_pickerClosed:function(A) {this.get_events().addHandler("pickerClosed",A)},remove_pickerClosed:function(A) {this.get_events().removeHandler("pickerClosed",A)},show:function() {this._colorPicker.style.display=""},hide:function() {this._colorPicker.style.display="none";this._pickerClosed()}};MySpace.UI.ColorPicker.registerClass("MySpace.UI.ColorPicker",Sys.UI.Control);MySpace.UI.ColorPickerPopup=function(B) {var A=document.createElement("div");MySpace.UI.ColorPickerPopup.initializeBase(this,[A]);this._tooltip=$create(MySpace.UI.Tooltip,{content:A},null,null,B);this._tooltip._tipDiv.firstChild.style.width="294px";this._tooltip.add_tooltipClosed(Function.createDelegate(this,this._pickerClosed));$addHandler(this._tooltip._tipDiv,"mouseover",Function.createDelegate(this,function() {this._active=true}));this._containedHandler=Function.createDelegate(this,this._isContained)};MySpace.UI.ColorPickerPopup.prototype={_active:false,_parent:null,_tooltip:null,_containedHandler:null,hide:function() {this._tooltip.hide();this._active=false;$removeHandler(document,"click",this._containedHandler)},show:function() {this._tooltip.show();$addHandler(document,"click",this._containedHandler)},_isContained:function(C) {if(this._active){var B=false;var A=C.target.parentNode;while(A!==null){B=A===this._tooltip._tipDiv;if(B){break}A=A.parentNode}if(!B){this.hide()}}}};MySpace.UI.ColorPickerPopup.registerClass("MySpace.UI.ColorPickerPopup",MySpace.UI.ColorPicker); ;
_proxy_jslib_flush_write_buffers() ;