(function(a){var g="UndefinedTemplateError",e="TemplateCompilationError",f="TemplateExecutionError";var b="[object Array]",k="[object Object]",o="[object String]",d="[object Function]";var j=1,p="%",l=/^[^<]*(<[\w\W]+>)[^>]*$/,q=Object.prototype.toString;function m(n,r){throw (a.extend(n,r),n)}function c(n){var t=[];if(q.call(n)!==b){return false}for(var r=0,s=n.length;r<s;r++){t[r]=n[r].id}return t.length?t.sort().join(".").replace(/(\b\d+\b)\.(?:\1(\.|$))+/g,"$1$2"):false}function h(w,v){var n,r=[],v=v||p,x=q.call(w);if(x===d){return w.jqote_id?[w]:false}if(x!==b){return[a.jqotec(w,v)]}if(x===b){for(var s=0,u=w.length;s<u;s++){if(n=h(w[s],v)){r.push(n[0])}}}return r.length?r:false}a.fn.extend({jqote:function(n,s){var n=q.call(n)===b?n:[n],r="";this.each(function(u){var t=a.jqotec(this,s);for(var v=0;v<n.length;v++){r+=t.call(n[v],u,v,n,t)}});return r}});a.each({app:"append",pre:"prepend",sub:"html"},function(r,n){a.fn["jqote"+r]=function(u,s,y){var v,w,x=a.jqote(u,s,y);$$=!l.test(x)?function(t){return a(document.createTextNode(t))}:a;if(!!(v=c(h(u)))){w=new RegExp("(^|\\.)"+v.split(".").join("\\.(.*)?")+"(\\.|$)")}return this.each(function(){var t=$$(x);a(this)[n](t);(t[0].nodeType===3?a(this):t).trigger("jqote."+r,[t,w])})}});a.extend({jqote:function(r,n,y){var x="",y=y||p,s=h(r);if(s===false){m(new Error("Empty or undefined template passed to $.jqote"),{type:g})}n=q.call(n)!==b?[n]:n;for(var u=0,w=s.length;u<w;u++){for(var v=0;v<n.length;v++){x+=s[u].call(n[v],u,v,n,s[u])}}return x},jqotec:function(B,A){var r,u,C,A=A||p,D=q.call(B);if(D===o&&l.test(B)){u=C=B;if(r=a.jqotecache[B]){return r}}else{u=D===o||B.nodeType?a(B):B instanceof jQuery?B:null;if(!u[0]||!(C=u[0].innerHTML)){m(new Error("Empty or undefined template passed to $.jqotec"),{type:g})}if(r=a.jqotecache[a.data(u[0],"jqote_id")]){return r}}var z="",w,n=C.replace(/\s*<!\[CDATA\[\s*|\s*\]\]>\s*|[\r\n\t]/g,"").split("<"+A).join(A+">\x1b").split(A+">");for(var y=0,x=n.length;y<x;y++){z+=n[y].charAt(0)!=="\x1b"?"out+='"+n[y].replace(/([^\\])?(["'])/g,"$1\\$2").replace("$1","")+"'":(n[y].charAt(1)==="="?";out+="+n[y].substr(2)+";":";"+n[y].substr(1))}z="try{"+('var out="";'+z+";return out;").split("out+='';").join("").split('var out="";out+=').join("var out=")+"}catch(e){e.type=JQOTE2_TMPL_EXEC_ERROR;e.template=arguments.callee.toString();throw e;}";try{var v=new Function("i, j, data, fn",z)}catch(s){m(s,{type:e})}w=u instanceof jQuery?a.data(u[0],"jqote_id",j):u;return a.jqotecache[w]=(v.jqote_id=j++,v)},jqotefn:function(n){var s=q.call(n),r=s===o&&l.test(n)?n:a.data(a(n)[0],"jqote_id");return a.jqotecache[r]||false},jqotetag:function(n){p=n},jqotecache:{}});a.event.special.jqote={add:function(t){var s,r=t.handler,n=q.call(t.data)!==b?[t.data]:t.data;if(!t.namespace){t.namespace="app.pre.sub"}if(!n.length||!(s=c(h(n)))){return}t.handler=function(v,u,w){return !w||w.test(s)?r.apply(this,[v,u]):null}}}})(jQuery);(function(a,g,f){a.MySpaceAutocomplete=function(l,n){this.options=a.extend({},a.MySpaceAutocomplete.defaultOptions,n);l.data("myspace-autocomplete",this);var q=this;var p=l;var o=false,m="";var h=a("<div />").addClass("myspaceAutocompleteBox").hide().appendTo(p.parent());var j=a.jqotec(this.options.template,"*");this.GetSearchBoxValue=function(){return b(p.val()).trim()};this.SetSearchBoxValue=function(r){p.val(b(r).trim())};this.ClearSearchBoxValue=function(){p.val("")};var k=function(){var r=q.GetSearchBoxValue();if(r.length<2){m=""}if(m!=r&&r.length>1){o=false;m=r;var s=d(q.options,r,q.options.mySpaceSpecialHandler);if(q.options.useMySpaceServiceHandler||q.options.mySpaceSpecialHandler){MySpace.UI.Pages.Data.request(s,this,function(u){if(u.get_statusCode()==200){var t=JSON.parse(u.get_responseData());if(!o){c(h,j,r,t,q.options.mySpaceSpecialHandler)}else{e(h)}}else{e(h)}})}else{a.getJSON(s+"&p=?",function(t){if(!o&&t.results){c(h,j,r,t)}else{e(h)}})}}else{e(h)}};a("*").live("click",function(r){if(r.currentTarget!=p.context){e(h)}});p.bind("keydown",function(s){var t=s.which;switch(t){case 27:s.preventDefault();e(h);break;case 40:var r=h.find("li.active");if(r.length>0){r.removeClass("active").next().addClass("active")}else{r=h.find("li:first").addClass("active")}break;case 38:var r=h.find("li.active");if(r.length>0){r.removeClass("active").prev().addClass("active")}else{r=h.find("li:last").addClass("active")}break;case 9:var r=h.find("li.active");if(r.length>0){var u=r.attr("data-query");q.SetSearchBoxValue(u);e(h)}break;case 13:var r=h.find("li.active");if(r.length>0){var u=r.attr("data-query");q.SetSearchBoxValue(u)}break}}).bind("keyup",function(r){var s=r.which;switch(s){case 13:o=true;if(a.isFunction(q.options.onSearch)){q.options.onSearch(q.GetSearchBoxValue(),null,p)}e(h);return false;case 27:case 40:case 38:case 9:return false;default:k();break}return true}).bind("focus",function(r){r.target.select()}).bind("change",function(){if(a.isFunction(q.options.onTextboxChange)){q.options.onTextboxChange(this.value)}});h.delegate("li","click",function(){var r=a(this).attr("data-query");q.SetSearchBoxValue(r);e(h);q.options.onSearch(r,this,p)})};a.fn.MySpaceAutocomplete=function(h){return this.each(function(){new a.MySpaceAutocomplete(a(this),h)})};a.MySpaceAutocomplete.defaultOptions={onSearch:null,onTextboxChange:null,template:null,serviceUrl:null,searchCriteria:null,useMySpaceServiceHandler:false,mySpaceSpecialHandler:null};var c=function(h,p,m,k,o){var l,j;if(o){if(k.status=="0"){j=k.data;j.query=m;j.specialHandlerType=o;l=a.jqote(p,j);h.html(l).show()}}else{var n=[];a.each(k.results,function(){var q=this.name;var r=0;a.each(this.results,function(){var s=this;s.type=q;s.position=r;n.push(s)})});n=n.sort(function(q,r){return q.position-r.position});j={query:m,results:n}}l=a.jqote(p,j);h.html(l).show()};var e=function(h){h.hide().empty()};var d=function(h,j,l){if(h.serviceUrl){var m;if(l){m=h.serviceUrl+"?q="+j+"&type="+l}else{var k={types:h.searchCriteria,criteria:{filters:[],query:j}};m=h.serviceUrl+"?q="+encodeURIComponent(JSON.stringify(k))}return m}else{throw"jquery.myspace.autocomplete.js - Autocomplete requires serviceUrl."}};var b=function(h){return h?h.replace(/[<>=;#%()\/\\]+/g," "):""}}(jQuery,window));(function(a,o,n){a.MySpaceSearchResults=function(p,t){var s;var C=this;var p=p;this.options=a.extend({},a.MySpaceSearchResults.defaultOptions,t);p.addClass("MySpaceSearchResults").data("myspace-searchresults",this);var B=h(C.options.templateSelectors,C.options.templateTag);var A=a("<div>").addClass("summary");var q=B.facets?a("<div>").addClass("facets"):null;var x=a("<div>").addClass("results");var u=a("<div>").addClass("pager");p.empty().append(A).append(q).append(x).append(u);var y=m(this.options.searchCriteria,this.options.sortSupported,this.options.facetOperations,this.options.ageRestriction);d(p);this.submitQuery=function(E,D){y.clear();y.setQuery(E);if(D){a.each(D,function(F,H){if(a.isArray(H)){var G=F;a.each(H,function(){y.addFacet({id:this,type:G})})}else{y.addFacet({id:H,type:F})}})}z()};this.addFilter=function(E,F){var D={id:F,type:E};y.addFacet(D);z()};this.removeFilter=function(E,F){var D={id:F,type:E};y.removeFacet(D);z()};this.clearFilter=function(D){y.clearFacet(D);z()};this.getFilter=function(D){return y.getFilter(D)};this.setType=function(D){y.setType(D);z()};this.clearType=function(){y.clearType();z()};var z=function(){var D=y.getHashObject();a.bbq.pushState(D,2);if(a.browser.msie&&a.browser.version<8){a(o).trigger("hashchange")}};var w=function(){var D=y.get();var E=C.options.serviceUrl+"?q="+encodeURIComponent(JSON.stringify(D))+MySpace.Search.Common.GetBeaconPageContext();if(E!=s){s=E;A.parent().addClass("loading");if(a.isFunction(C.options.onRequest)){C.options.onRequest(C.options.serviceUrl,D)}if(C.options.useMySpaceServiceHandler){MySpace.UI.Pages.Data.request(E,this,function(G){if(G.get_statusCode()==200){var F=JSON.parse(G.get_responseData());e(F,y,C.options.facetsPosition);v(F)}A.parent().removeClass("loading")})}else{a.getJSON(E+"&p=?",function(F){e(F,y,C.options.facetsPosition);v(F);p.find(".loading").hide()})}}};var v=function(D){MySpace.Search.Common.PageViewBeaconed=false;if(a.isFunction(C.options.onPreRender)){C.options.onPreRender(D)}A.html(a.jqote(B.summary,D));if(q){q.html(a.jqote(B.facets,D))}x.empty();var F=false,E=D.results.length>1;a.each(D.results,function(){if(this.results.length>0){f(this,y);this.isFederated=E;x.jqoteapp(B.results,this);F=true}});if(E){x.addClass("federated")}else{x.removeClass("federated")}if(!F){x.html(a.jqote(B.noresults,D))}u.empty();if(F&&D.results.length==1&&D.results[0].pageSize<D.results[0].totalResults){u.html(a.jqote(B.pager,D.results[0]))}if(a.isFunction(C.options.onResultsRendered)){C.options.onResultsRendered(D)}MySpace.Search.Common.BindBeaconEvents()};p.delegate(".clearQuery","click",function(){y.setQuery("");z();return false});p.delegate(".addFacet, .addFilter","click",function(){var D={id:a(this).attr("data-id"),type:a(this).attr("data-type")};if(D.type=="type"){y.setType(D.id)}else{y.addFacet(D)}z();return false});p.delegate(".removeFacet, .removeFilter","click",function(){var D={id:a(this).attr("data-id"),type:a(this).attr("data-type")};if(D.type=="type"){y.clearType()}else{y.removeFacet(D)}z();return false});p.delegate(".clearFilter","click",function(){var D=a(this).attr("data-type");y.clearFacet(D);z();return false});p.delegate(".findWithin input","keyup",function(D){if(D.which==13){var E=a(this).val();if(E){y.appendQuery(E);z();return false}}});p.delegate(".findWithin button","click",function(){var D=q.find(".findWithin input").val();if(D){y.appendQuery(D);z()}return false});p.delegate(".sortBy","click",function(){var D=a(this).attr("data-sortby");y.setSort(D);z();return false});u.delegate("a","click",function(){if(!a(this).hasClass("disabled")){var D=a(this).attr("data-page");y.changePage(D);z()}return false});a(o).bind("hashchange",function(D){var E=a.bbq.getState();y.readHashObject(E);w()});if(this.options.initialQuery){var r=a.bbq.getState();if(typeof(r.query)!="undefined"&&r.query!=this.options.initialQuery){a(o).trigger("hashchange")}else{y.setQuery(this.options.initialQuery);w()}}else{a(o).trigger("hashchange")}};a.fn.MySpaceSearchResults=function(p){return this.each(function(){new a.MySpaceSearchResults(a(this),p)})};a.MySpaceSearchResults.defaultOptions={facetOperations:{},serviceUrl:"",useMySpaceServiceHandler:false,initialQuery:"",searchCriteria:null,facetsPosition:null,sortSupported:{},ageRestriction:0,templateTag:"*",onRequest:null,onPreRender:null,onResultsRendered:null,templateSelectors:{summary:null,facets:null,results:null,noresults:null,pager:null}};var h=function(q,p){if(typeof a.jqotec!="undefined"){return{summary:a.jqotec(q.summary,p),facets:q.facets?a.jqotec(q.facets,p):null,results:a.jqotec(q.results,p),noresults:a.jqotec(q.noresults,p),pager:a.jqotec(q.pager,p)}}else{throw"jquery.myspace.searchresults.js - jQote2 plugin is required."}};var e=function(p,s,q){p.totalResults=0;a.each(p.results,function(t,u){p.totalResults+=this.totalResults});p.query=s.getQuery();var r=s.getFilters();p.activeFacets=[];a.each(r,function(u,t){if(t.name!="ageRestriction"){a.each(t.values,function(w,x){p.activeFacets.push({id:x,type:t.name})})}});p.hasActiveFacets=!!p.query||p.activeFacets.length>0;if(p.hasActiveFacets){j(p.facets,p.activeFacets)}p.sort=s.getSort();if(q){a.each(p.facets,function(){this.position=q[this.name]||0});p.facets.sort(function(t,u){return t.position-u.position})}};var f=function(p,q){p.query=q.getQuery();p.sort=q.getSort()};var j=function(r,p){var q=p;a.each(r,function(u,t){var s=[];a.each(t.values,function(w,v){if(!b(q,v,t.name)){s.push(v)}});t.values=s})};var b=function(p,q,s){var r=false,q=q,s=s;a.each(p,function(){if(this.type==s&&this.id==q.id){r=true;return false}});return r};var d=function(p){var q="evt",r=p;p.delegate("*[class^="+q+"], *[class*= "+q+"]","click",function(s){var t=this;s.preventDefault();if(a(t).hasClass("beacon")){MySpace.Search.Common.BeaconRequest(t)}a(this.className.split(/\s+/)).each(function(){if(this.substring(0,q.length)==q){topicName=this.substring(q.length);r.trigger(topicName,t)}})})};var m=function(I,H,x,q){var s={},G=H,A=x,r=I,q=q;var z={types:r,criteria:{filters:[],query:"",facet:true}};s.ageRestriction=[q];A.ageRestriction="or";var t=function(J){if(z.types.length==1){z.types[0].page=parseInt(J,10)}};var D=function(){t(1)};var p=function(J){if(!s[J.type]){s[J.type]=[]}if(a.inArray(J.id,s[J.type])==-1){s[J.type].push(J.id)}};var C=function(J){if(s[J.type]){k(J.id,s[J.type]);if(s[J.type].length==0){delete s[J.type]}}};var u=function(J){delete s[J]};var y=function(){var J=[];a.each(s,function(L,M){var K={name:L,values:M};if(A[L]){K.op=A[L]}else{if(A["*"]){K.op=A["*"]}}J.push(K)});return J};var E=function(J){if(J&&G[J]){z.criteria.sort=J;if(z.criteria.sortDir){if(z.criteria.sortDir==G[J][0]&&G[J].length>1){z.criteria.sortDir=G[J][1]}else{z.criteria.sortDir=G[J][0]}}else{z.criteria.sortDir=G[J][0]}}else{v()}};var v=function(){delete z.criteria.sort;delete z.criteria.sortDir};var w=function(){var K={};K.query=z.criteria.query;if(z.types.length==1){K.type=z.types[0].name}var J=[];a.each(s,function(L,N){var M=L+":"+N.join(",");J.push(M)});if(J.length>0){K.filters=J.join(";")}if(z.types.length==1&&z.types[0].page!=1){K.page=z.types[0].page}if(z.criteria.sort){K.sort=z.criteria.sort;K.sortDir=z.criteria.sortDir}return K};var F=function(J){a.each(r,function(K,L){if(L.name==J){z.types=[];z.types.push({name:J,pageSize:10,page:1});return false}})};var B=function(K){z.criteria.query="";if(K.query){z.criteria.query=c(K.query).trim()}z.types=r;if(K.type){F(K.type)}v();if(K.sort){E(K.sort);if(K.sortDir&&a.inArray(K.sortDir,G[z.criteria.sort])){z.criteria.sortDir=K.sortDir}}D();if(K.page){t(K.page)}s={};if(K.filters){var J=K.filters.split(";");a.each(J,function(M,L){var O,P;var N=L.split(":");if(N.length==2){O=c(N[0]).trim();if(O){P=N[1].split(",");a.each(P,function(Q,R){p({type:O,id:c(R).trim()})})}}})}s.ageRestriction=[q]};return{setQuery:function(J){z.criteria.query=c(J).trim();D()},appendQuery:function(J){z.criteria.query+=" "+c(J).trim();D()},getQuery:function(){return z.criteria.query},setType:function(J){F(J)},clearType:function(){z.types=r},setAgeRestriction:function(J){z.criteria.ageRestriction=J},getFilters:function(){return y()},enableFacets:function(){z.criteria.facet=true},disableFacets:function(){z.criteria.facet=false},addFacet:function(J){p(J);D()},removeFacet:function(J){C(J);D()},clearFacet:function(J){u(J);D()},getFilter:function(J){return s[J]||null},clearFacets:function(){s={};D()},setSort:function(K,J){E(K,J);D()},getSort:function(){return z.criteria.sort||""},setAgeRestriction:function(J){q=J},getAgeRestriction:function(){return q},changePage:function(J){t(J)},getHashObject:function(){return w()},readHashObject:function(J){B(J)},clear:function(){this.setQuery("");this.clearFacets();v();D()},get:function(){var J=z;J.criteria.filters=y();return J}}};var c=function(p){return p?p.replace(/[<>=;#%()\/\\]+/g," "):""};var l=function(p){return p?p.replace(/[^a-zA-Z0-9]+/g,""):""};var g=function(){function p(){return(((1+Math.random())*65536)|0).toString(16).substring(1)}return(p()+p()+"-"+p()+"-"+p()+"-"+p()+"-"+p()+p()+p())};var k=function(q,p){for(var r=0;r<p.length;r++){if(p[r]==q){p.splice(r,1)}}};if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s*(\S*(?:\s+\S+)*)\s*$/,"$1")}}}(jQuery,window));namespace("MySpace.Search.Utils");if(typeof(String.prototype.toTitleCase)=="undefined"){String.prototype.toTitleCase=function(){return this.replace(/(\w)(\w*)/g,function(a,b,c){return b.toUpperCase()+(c!=null?c:"")})}}if(typeof(String.prototype.supplant)=="undefined"){String.prototype.supplant=function(a){return this.replace(/{([^{}]*)}/g,function(c,d){var e=a[d];return typeof e==="string"||typeof e==="number"?e:c})}}MySpace.Search.Utils={HighlightTerms:function(f,e){if(f&&e){var a=f.split(" ");var d=e.split(" ");for(var c=0;c<d.length;c++){d[c]="(^"+d[c]+"\\W?$)"}d=d.join("|");var b=new RegExp(d,"gi");for(var c=0;c<a.length;c++){if(b.test(a[c])){a[c]="<strong>"+a[c]+"</strong>"}}return a.join(" ")}return f||""},HighlightCharacters:function(c,b){var a=new RegExp(b,"gi");return c.replace(a,"<strong>"+b+"</strong>")},TranslateSpecialChars:function(a){return a.replace("$","s")},StripHtmlTags:function(a){var b=a.replace(/&(lt|gt);/g,function(d,c){return(c=="lt")?"<":">"});return b.replace(/<\/?[^>]+(>|$)/g,"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},TruncateText:function(c,b,a){return c.substring(0,b)+(a&&c.length>b?"...":"")},NewGuid:function(){function a(){return(((1+Math.random())*65536)|0).toString(16).substring(1)}return(a()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a())},CreateUUID:function(){var c=[];var a="0123456789ABCDEF";for(var b=0;b<32;b++){c[b]=a.substr(Math.floor(Math.random()*16),1)}c[12]="4";c[16]=a.substr((c[16]&3)|8,1);return c.join("")},stripNonNumeric:function(b){var e=b+"";var d=/^\d|\.|-$/;var c="";for(var a=0;a<e.length;a++){if(d.test(e.charAt(a))){if(!((e.charAt(a)=="."&&c.indexOf(".")!=-1)||(e.charAt(a)=="-"&&c.length!=0))){c+=e.charAt(a)}}}return c},FormatResultsNumber:function(k,c){if(!(typeof c=="string")){return""}var d=-1<c.indexOf(","),o=this.stripNonNumeric(c).split("."),p=Number(k);if(1<o.length){p=p.toFixed(o[1].length)}else{if(2<o.length){throw ("NumberFormatException: invalid format, formats should have no more than 1 period: "+c)}else{p=p.toFixed(0)}}var b=p.toString();if(d){o=b.split(".");var a=o[0],l=[],f=a.length,g=Math.floor(f/3),h=a.length%3||3;for(var e=0;e<f;e+=h){if(e!=0){h=3}l[l.length]=a.substr(e,h);g-=1}b=l.join(",");if(o[1]){b+="."+o[1]}}return c.replace(/[\d,?\.?]+/,b)}};window.$=jQuery;var SearchModule={animation:750,lastResult:"",Initialize:function(){var a=$("#searchBox input");$("#searchBox .button").click(function(){SearchModule.searchThis()});a.val(MySpaceRes.MusicHome.SearchBox);a.blur(function(){SearchModule.focusSearch(this,false)});a.focus(function(){SearchModule.focusSearch(this,true)});if($(".myspaceAutocompleteBox").length==0){$("#searchBox").find("input").MySpaceAutocomplete({template:"#AutoCompleteResultsTemplate",useMySpaceServiceHandler:true,mySpaceSpecialHandler:"Music",serviceUrl:"SearchAutoComplete.ashx",sessionInfo:{userId:MySpace.ClientContext.UserId,sessionId:MySpace.Search.SessionId},onSearch:function(b){SearchModule.searchThis()}})}},searchTextBoxEnter:function(a){if(a.which===Sys.UI.Key.enter){SearchModule.searchThis();return false}},searchThis:function(){var a=$("#searchBox input")[0];SearchModule.focusSearch(a,false);var c=a.value;if(c==MySpaceRes.MusicHome.SearchBox){c=""}if(c.trim()!=""){var d;if(searchPageURL.indexOf("?")>0){d=searchPageURL+"&q="+encodeURIComponent(c.trim())}else{d=searchPageURL+"?q="+encodeURIComponent(c.trim())}var b=window.location.protocol+"//"+window.location.host+d;if(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<7){window.open(b)}else{window.open(b)}}return true},focusSearch:function(a,b){if(!a.msm_default){a.msm_default=a.value}if(b==true){if(a.value==a.msm_default){a.value=""}$(a).addClass("focus")}else{if(a.value.trim()==""){a.value=a.msm_default}if(a.value==a.msm_default){$(a).removeClass("focus")}}}};SearchModule.Initialize();if(typeof deconcept=="undefined"){var deconcept={}}if(typeof deconcept.util=="undefined"){deconcept.util={}}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil={}}deconcept.SWFObject=function(k,e,m,d,l,a,g,o,j,b){if(!document.getElementById){return}this.DETECT_KEY=b?b:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];this.addVariable("e",escape(document.location));if(k){this.setAttribute("swf",k)}if(e){this.setAttribute("id",e)}if(m){this.setAttribute("width",m)}if(d){this.setAttribute("height",d)}if(l){this.setAttribute("version",new deconcept.PlayerVersion(l.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(a){this.addParam("bgcolor",a)}var f=g?g:"high";this.addParam("quality",f);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var n=(o)?o:window.location;this.setAttribute("xiRedirectUrl",n);this.setAttribute("redirectUrl","");if(j){this.setAttribute("redirectUrl",j)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]||""},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]||""},getVariables:function(){return this.variables},getVariablePairs:function(){var b=[];var a;var c=this.getVariables();for(a in c){b[b.length]=a+"="+c[a]}return b},getSWFHTML:function(){var d="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}d='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+(this.getAttribute("style")||"")+'"';d+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var c=this.getParams();for(var a in c){d+=[a]+'="'+c[a]+'" '}var b=this.getVariablePairs().join("&");if(b.length>0){d+='flashvars="'+b+'"'}d+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}d='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+(this.getAttribute("style")||"")+'">';d+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var a in c){d+='<param name="'+a+'" value="'+c[a]+'" />'}var b=this.getVariablePairs().join("&");if(b.length>0){d+='<param name="flashvars" value="'+b+'" />'}d+="</object>"}return d},write:function(a){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof a=="string")?document.getElementById(a):a;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!==""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var d=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var f=navigator.plugins["Shockwave Flash"];if(f&&f.description){d=new deconcept.PlayerVersion(f.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var a=1;var b=3;while(a){try{b++;a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b);d=new deconcept.PlayerVersion([b,0,0])}catch(c){a=null}}}else{try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(c){try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");d=new deconcept.PlayerVersion([6,0,21]);a.AllowScriptAccess="always"}catch(c){if(d.major==6){return d}}try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(c){}}if(a!==null){d=new deconcept.PlayerVersion(a.GetVariable("$version").split(" ")[1].split(","))}}}return d};deconcept.PlayerVersion=function(a){this.major=a[0]!==null?parseInt(a[0],10):0;this.minor=a[1]!==null?parseInt(a[1],10):0;this.rev=a[2]!==null?parseInt(a[2],10):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c===null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var a=b.length-1;a>=0;a--){b[a].style.display="none";for(var c in b[a]){if(typeof b[a][c]=="function"){b[a][c]=function(){}}}}};if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;__stPublisher=MySpace.UI.Share?MySpace.UI.Share.config.publisherId:null;try{if(typeof(stLight)=="undefined"&&typeof(SHARETHIS)=="undefined"){stLight=new function(){this.publisher=null;this.sessionID_time=(new Date()).getTime().toString();this.sessionID_rand=Number(Math.random().toPrecision(5).toString().substr(2)).toString();this.sessionID=this.sessionID_time+"."+this.sessionID_rand;this.fpc=null;this.counter=0;this.meta={hostname:document.location.host,location:document.location.pathname}};stLight.onReady=function(){stLight.fpc=stLight._stFpc();stLight.log("pview",null,null)};stLight.log=function(g){if(g=="pview"){var h="http://l.sharethis.com/pview?event="}var e=stLight.dbrInfo();if(e==false){e=""}h+=g;h+="&source=lightLoader";h+="&publisher="+encodeURIComponent(stLight.publisher)+"&hostname="+encodeURIComponent(stLight.meta.hostname)+"&location="+encodeURIComponent(stLight.meta.location)+"&url="+encodeURIComponent(document.location.href)+"&sessionID="+stLight.sessionID+"&fpc="+stLight.fpc+"&ts"+(new Date()).getTime()+"."+stLight.counter+++"&r_sessionID=&hash_flag=&shr=&count="+e;var f=new Image(1,1);f.src=h;f.onload=function(){return};stLight.createSegmentFrame()};stLight._stFpc=function(){if(!document.domain||document.domain.search(/\.gov/)>0){return false}var p=stLight._stGetFpc("__unam");if(p==false){var l=Math.round(Math.random()*2147483647);l=l.toString(16);var q=(new Date()).getTime();q=q.toString(16);var n="";var j=stLight._stGetD();j=j.split(/\./)[1];if(!j){return false}n=stLight._stdHash(j)+"-"+q+"-"+l+"-1";p=n;stLight._stSetFpc(p)}else{var k=p;var o=k.split(/\-/);if(o.length==4){var m=Number(o[3]);m++;k=o[0]+"-"+o[1]+"-"+o[2]+"-"+m;p=k;stLight._stSetFpc(p)}}return p};stLight._stSetFpc=function(p){var j="__unam";var l=new Date;var r=l.getFullYear();var o=l.getMonth()+9;var q=l.getDate();var m=j+"="+escape(p);if(r){var k=new Date(r,o,q);m+="; expires="+k.toGMTString()}var n=stLight._stGetD();m+="; domain="+escape(n)+";path=/";document.cookie=m};stLight._stGetD=function(){var d=document.domain.split(/\./);var c="";if(d.length>1){c="."+d[d.length-2]+"."+d[d.length-1]}return c};stLight._stGetFpc=function(d){var c=document.cookie.match("(^|;) ?"+d+"=([^;]*)(;|$)");if(c){return(unescape(c[2]))}else{return false}};stLight._stdHash=function(f){var k=0,j=0;for(var h=f.length-1;h>=0;h--){var g=parseInt(f.charCodeAt(h));k=((k<<8)&268435455)+g+(g<<12);if((j=k&161119850)!=0){k=(k^(j>>20))}}return k.toString(16)};stLight._thisScript=null;stLight.getShareThisLightScript=function(){var h=document.getElementsByTagName("script");var g=null;for(var f=0;f<h.length;f++){var e=h[f].src;if(e.search(/.*sharethis.*\/button\/light.*/)>=0){g=h[f]}}return g};stLight.dbrInfo=function(){var h=document.referrer;var l=new RegExp(document.domain,"gi");if(l.test(h)==true){return false}if(h&&h.length>0){var k=/(http:\/\/)(.*?)\/.*/i;var j=/(^.*\?)(.*)/ig;var o="";var n=h.replace(k,"$2");if(n.length>0){o+="&refDomain="+n}else{return false}var m=h.replace(j,"$2");if(m.length>0){o+="&refQuery="+encodeURIComponent(m)}return o}else{return false}};stLight.parseScript=function(g){var h=g.src;var f=new RegExp(/.*?(publisher)=(.*?)(&|$)/);var e=h.match(f);if(typeof(stLight[e[1]])!="undefined"){stLight[e[1]]=e[2]}};stLight.odjs=function(c,d){this.head=document.getElementsByTagName("head")[0];this.scriptSrc=c;this.script=document.createElement("script");this.script.setAttribute("type","text/javascript");this.script.setAttribute("src",this.scriptSrc);this.script.onload=d;this.script.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete"){d()}};this.head.appendChild(this.script)};if(window.document.readyState=="completed"){stLight.onReady()}else{if(typeof(window.addEventListener)!="undefined"){window.addEventListener("load",stLight.onReady,false)}else{if(typeof(document.addEventListener)!="undefined"){document.addEventListener("load",stLight.onReady,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",stLight.onReady)}}}}if(typeof(__stPublisher)=="undefined"){_thisScript=stLight.getShareThisLightScript();stLight.parseScript(_thisScript)}else{stLight.publisher=__stPublisher}}stLight.getCount=function(d,c){if(!c){c=document.location.href}stLight.odjs("http://wd.sharethis.com/api/getCount.php?url="+encodeURIComponent(c),function(){if(typeof(__stCount)!="undefined"){d(__stCount)}else{d({total:0})}})};stLight.loadFeature=function(d,c){if(d=="buttons"){if(typeof(c)=="undefined"){c=document.location.href}stLight.getCount(function(){stLight.odjs("http://wd.sharethis.com/button/buttons.js",function(){})},c)}};stLight.createSegmentFrame=function(){try{stLight.segmentframe=document.createElement('<iframe name="stframe" allowTransparency="true" style="body{background:transparent;}" ></iframe>')}catch(e){stLight.segmentframe=document.createElement("iframe")}stLight.segmentframe.id="stSegmentFrame";stLight.segmentframe.name="stSegmentFrame";var f=document.body;var d=(("https:"==document.location.protocol)?"http://wd.":"http://wd.")+"sharethis.com/api/getSegment.php?rnd="+(new Date()).getTime();stLight.segmentframe.src=d;f.appendChild(stLight.segmentframe);stLight.segmentframe.frameBorder="0";stLight.segmentframe.scrolling="no";stLight.segmentframe.width="0px";stLight.segmentframe.height="0px"}}catch(err){}MySpace.UI.LinkPreviewer=function(n){var af=this,W,F,ai,aj,k,j,g,ag,ah,p,an,U,H,K,T,E,L,w,x,f,r=[],S,q,Z,Y,b,o,m,v,k,am,ab,aa,s=[["&","&amp;"],["<","&lt;"],[">","&gt;"]],C=/^\s+/g,u=/^https?:\/\//gi,G=/<\/?[^<>]*\/?>/g,l=true;this.get_videoAutoplay=function(){return am};this.get_readOnlyTitle=function(){return ab};this.get_readOnlyDescription=function(){return aa};this.set_videoAutoplay=function(t){am=t};this.set_readOnlyTitle=function(t){ab=t};this.set_readOnlyDescription=function(t){aa=t};MySpace.UI.LinkPreviewer.initializeBase(this,[n]);this.initialize=function(){MySpace.UI.LinkPreviewer.callBaseMethod(this,"initialize");n.className="msLinkPreviewer clearfix";a();e()};this.previewUrl=function(av,at,t,ap,ao,aq,au){av=av.replace(C,"");if(!av.match(u)){av="http://"+av}V();W=av;Z=at;Y=t;l=true;o=ap;m=ao;v=aq;var ar=au?MySpace.SuperShareScraperURL+"?type="+au:MySpace.SuperShareScraperURL;MySpace.Net.JsonpWebServiceProxy.invoke(ar,{url:av},Q,R,null,null,30000)};this.previewUrlWithData=function(ap,t,ao){l=ao||false;V();W=ap;Q(t)};this.getLinkData=function(){if(S==null){return null}return{url:W,title:ae(aj||ai.innerHTML),domain:S.domain,description:ae(j||k.innerHTML),image:(f==null||K.checked)?null:f.src,favicon:q,mediaType:S.mediaType,mediaUrl:S.mediaUrl,mediaHeight:S.mediaHeight,mediaWidth:S.mediaWidth,contentType:S.contentType,actionText:S.attribution?S.attribution:"",token:S.token}};this.reset=function(){S=null;q=null;Sys.UI.DomElement.removeCssClass(n,"moviePreviewer");Sys.UI.DomElement.removeCssClass(p,"clickable");var t=$q(".player",n,true);if(t){t.parentNode.removeChild(t)}p.style.display="block";ai=$q(".title",n,true);k=$q(".description",n,true);ai.innerHTML=aj=k.innerHTML=j="";k.onmouseover=function(){};k.onmouseout=function(){}};this.enableEdit=function(t){if(t){$addHandler(ai,"click",y);$addHandler(ai,"keyup",P);$addHandler(ai,"paste",P);$addHandler(k,"click",y);$addHandler(k,"keyup",P);$addHandler(k,"paste",P);$addHandler(ag,"click",af.playVideo)}else{$removeHandler(ai,"click",y);$removeHandler(ai,"keyup",P);$removeHandler(ai,"paste",P);$removeHandler(k,"click",y);$removeHandler(k,"keyup",P);$removeHandler(k,"paste",P);$removeHandler(ag,"click",af.playVideo);k.onmouseover=function(){};k.onmouseout=function(){}}};function V(){ag.style.display="none";ai.style.display="none";Sys.UI.DomElement.removeCssClass(p,"multipleImages");k.style.display="none";ah.style.display="none";L.style.display="none";F.style.display="";if(f){f.parentNode.removeChild(f);f=null}g=(MySpace.PostToData&&MySpace.PostToData.Thumb)?[MySpace.PostToData.Thumb]:null;S=null;q=null}function e(){n.innerHTML="<div class='loading MSIcon loadingIconWhiteLight'>"+MySpaceRes.PostTo.LoadingPreview+"</div><div class='extra_wrapper'><div class='thumbnail'>	<div class='loadingImages' style='display:none;'>		<span class='MSIcon loadingIconWhiteLight'></span>		<br />"+MySpaceRes.PostTo.LoadingImages+"	</div>	<span class='wrapper'>		<span class='video MSIcon playCirclePlayerIcon15' style='display:none;'></span>	</span>	<div class='noImage' style='display:none;'>"+MySpaceRes.PostTo.NoImage+"	</div></div>   <div class='picker'>		    <span class='prev'></span>		    <span class='next'></span>	    <input type='checkbox' />"+MySpaceRes.PostTo.NoImage+"   </div></div><div class='title fieldText'></div><div class='description fieldArea'></div>";F=$q(".loading",n,true);ag=$q(".thumbnail",n,true);ah=$q(".wrapper",n,true);p=$q(".extra_wrapper",n,true);an=$q(".video",n,true);E=$q(".loadingImages",n,true);L=$q(".noImage",n,true);ai=$q(".title",n,true);T=$q(".picker",n,true);U=$q(".prev",n,true);H=$q(".next",n,true);K=$q(".picker input",n,true);k=$q(".description",n,true);$addHandler(U,"click",Function.createPartial(this,I,-1));$addHandler(H,"click",Function.createPartial(this,I,1));$addHandler(K,"click",O);af.enableEdit(true)}function Q(t){var ar=Sys.UI.DomElement.getBounds(n).width;var ap=155-(t.mediaType!="Video"&&l?0:44);if(ar){k.style.width=ai.style.width=(ar-ap)+"px"}ag.style.display="";if(!ab){ai.style.display=""}if(!aa){k.style.display=""}F.style.display="none";S=t;ai.innerHTML=ak(ad(Z||t.title),80);if(Y||t.description){k.innerHTML=ak(ad(Y||t.description),280)}else{J(k)}D(g||t.images);an.style.display=(t.mediaType=="Video")?"":"none";if(t.favicon){var ao=document.createElement("img");ao.onload=function(){q=t.favicon};ao.src=t.favicon}if(t.loadFailed&&o){o()}if(t.mediaType=="Video"&&MySpace.UI._InlineVideo){var aq=$q(".movie",n,true);if(!aq){aq=document.createElement("div");aq.className="movie";n.insertBefore(aq,p);aq.appendChild(p);p=aq.firstChild}Sys.UI.DomElement.addCssClass(p,"clickable");if(am){af.playVideo()}}}this.playVideo=function(){if(S.mediaType=="Video"&&MySpace.UI._InlineVideo){var ap=jQuery(n).addClass("moviePreviewer").width();var ao={defWidth:ap,mediaUrl:S.mediaUrl,mediaType:"other",height:250,width:ap,videoId:S.mediaUrl,target:document.createElement("span")};var t=$create(MySpace.UI._InlineVideo,ao,null,null,p);p.style.display="none";t._showVideoHandler()}};function R(){var t=W.split("/"),aq=t.length,at=t[t[aq-1]]==""?t[aq-2]:t[aq-1];var ap=W.indexOf("://"),au=(ap>=0)?W.substring(ap+3):W,ar=au.indexOf("/"),ao=(ar>=0)?au.substring(0,ar):au;Q({title:at,domain:ao,images:[],favicon:"http://"+ao+"/favicon.ico",description:null,mediaType:"BookMark",mediaHeight:0,mediaWidth:0,mediaUrl:null,contentType:null,loadFailed:true,token:""})}function D(ao){E.style.display="";var aq=document.createElement("div");aq.className="msLinkPreviewerLoader";document.body.appendChild(aq);w=ao.length;r=[];b=false;for(var t=0;t<ao.length;t++){var ap=document.createElement("img");ap.src=ao[t];aq.appendChild(ap);if(ap.complete){X(ap)}else{ap.onload=N;ap.onerror=N}}if(w){setTimeout(M,5000)}else{M()}}function N(t){t=t||window.event;var ao=t.target||t.srcElement;X(ao)}function X(t){if(b){return}if(B(t)){t.origHeight=t.offsetHeight;t.origWidth=t.offsetWidth;if(t.offsetHeight<t.offsetWidth){var ao=t.offsetHeight/t.offsetWidth;t.style.width="70px";t.style.height=Math.round(ao*70)+"px"}else{var ao=t.offsetWidth/t.offsetHeight;t.style.height="70px";t.style.width=Math.round(ao*70)+"px"}t.parentNode.removeChild(t);r.push(t)}w--;if(w==0){M()}}function M(){if(b){return}b=true;r.sort(function(ar,at){var ap=ar.origHeight,au=ar.origWidth,aq=at.origHeight,av=at.origWidth;var t=ap*au,ao=aq*av;if(t<ao){return 1}if(t>ao){return -1}return 0});E.style.display="none";x=0;al();if(v){v()}}function O(){P();al()}function P(){if(m){m();m=null}}function y(){var t;if(Sys.UI.DomElement.containsCssClass(this,"fieldText")){t=z(this)}else{if(Sys.UI.DomElement.containsCssClass(this,"fieldArea")){t=A(this)}}this.parentNode.replaceChild(t,this);t.style.width=this.style.width;t.focus();t.select();$addHandler(t,"blur",ac)}function z(t){var ao=c("input",t);ao.maxLength="160";return ao}function A(ap){if(ap.innerHTML==MySpaceRes.PostTo.DescriptionHint){ap.innerHTML=""}var ar=c("textarea",ap);var t=ar.value;var aq=5;var au=15;var at=30;var ao=t.length;var av=Math.ceil(ao/at);ar.style.overflow="auto";ar.spellcheck="false";return ar}function ak(ap,ao){for(var t=0;t<s.length;t++){ap=ap.replace(new RegExp(s[t][0],"g"),s[t][1])}if(ap.length>ao){ap=ap.substring(0,ao)+"...<span>"+ap.substring(ao,ap.length)+"</span>"}return ap}function ae(ap){var ao=new RegExp("...<span[^>]*>(.*?)</span>","i");ap=ap.replace(ao,"$1");for(var t=0;t<s.length;t++){ap=ap.replace(new RegExp(s[t][1],"g"),s[t][0])}return ap}function c(ap,t){var ao=document.createElement(ap);if(t.id){ao.id=t.id}if(t.className){ao.className=t.className}ao.value=ae(t.innerHTML);return ao}function ac(){var ao=null;var t=document.createElement("div");if(this.id){t.id=this.id}if(this.className){t.className=this.className}this.value=ad(this.value);if(Sys.UI.DomElement.containsCssClass(this,"title")){aj=this.value;ao=80;if(this.value.length==0){t.style.height="16px"}else{t.innerHTML=ak(this.value,ao)}}else{if(Sys.UI.DomElement.containsCssClass(this,"description")){j=this.value;ao=280;if(this.value.length==0){J(t)}else{t.innerHTML=ak(this.value,ao)}}}t.style.width=this.style.width;this.parentNode.replaceChild(t,this);$addHandler(t,"click",y)}function J(t){t.onmouseover=function(){h.apply(t)};t.onmouseout=function(){d.apply(t)}}function h(){this.innerHTML=MySpaceRes.PostTo.DescriptionHint}function d(){this.innerHTML=""}function ad(t){return t.replace(G,"")}function B(t){if(t.offsetWidth<50){return false}if(t.offsetHeight<50){return false}if(t.offsetWidth/t.offsetHeight>3){return false}if(t.offsetHeight/t.offsetWidth>3){return false}return true}function I(t){var ao=x+t;if(ao<0||ao>=r.length){return}x=ao;P();al()}function al(){if(r.length==0){L.style.display="";return}if(S.mediaType!="Video"&&l){Sys.UI.DomElement.addCssClass(p,"multipleImages")}var ao=x!=0,t=x!=r.length-1;if(K.checked){ah.style.display="none";L.style.display="";ao=t=false}else{ah.style.display="";L.style.display="none"}if(f){f.parentNode.removeChild(f)}ah.appendChild(r[x]);f=r[x];if(ao){Sys.UI.DomElement.removeCssClass(U,"prevDisabled")}else{Sys.UI.DomElement.addCssClass(U,"prevDisabled")}if(t){Sys.UI.DomElement.removeCssClass(H,"nextDisabled")}else{Sys.UI.DomElement.addCssClass(H,"nextDisabled")}}function a(){MySpace.UI.addStyles(".msLinkPreviewerLoader { position:absolute; top:-100px; left:-100px; width:10px; height:10px; overflow:hidden; }.msLinkPreviewer { font-family:Arial; padding:10px; }.msLinkPreviewer .extra_wrapper{ float:left; padding-top:10px; } .msLinkPreviewer .multipleImages.extra_wrapper { width:115px; }.msLinkPreviewer .loading { text-align:center; padding-top:40px; margin:0 auto; display:block; text-indent:0; height:auto; width:auto;}.msLinkPreviewer .loading,.msLinkPreviewer .loadingImages { color:#999999; font-weight:bold; }.msLinkPreviewer .thumbnail .wrapper { height: 70px; width: 70px; vertical-align:middle; padding:0; position:relative; display:table-cell; }.msLinkPreviewer .thumbnail img { -ms-interpolation-mode:bicubic; display:block; margin:0 auto; }.msLinkPreviewer .thumbnail .video { position:absolute; top:30px; left:30px; float:none; } .ie .msLinkPreviewer .thumbnail .video { left:30px; }.msLinkPreviewer .noImage { font-weight:bold; color:#999999; text-align:center; height: 43px; width: 70px; border: 1px solid #dedede; padding-top:25px; }.msLinkPreviewer .title,.msLinkPreviewer input.title,.msLinkPreviewer .description, .msLinkPreviewer textarea.description { margin: 5px 0 0 0; resize:none; text-align:left;width:280px; }.msLinkPreviewer .title,.msLinkPreviewer .description { float:right; overflow:hidden; padding:5px 0 0 0; }.msLinkPreviewer input.title,.msLinkPreviewer textarea.description { padding:5px; }.msLinkPreviewer .title { font-weight:bold; min-height:25px; color:#000000; }.msLinkPreviewer input.title { min-height:15px; padding:4px; margin-top:10px; }.msLinkPreviewer .description { height:80px; color:#666666;}.msLinkPreviewer textarea.description { height:75px; padding:4px; }.msLinkPreviewer .title:hover, .msLinkPreviewer .description:hover { background-color:#fffff5; }.msLinkPreviewer .title span,.msLinkPreviewer .description span{ display:none; }.msLinkPreviewer .msDefaultTextbox { opacity:0; filter:alpha(opacity=0); color:#898989 }.msLinkPreviewer .msDefaultTextbox:hover { opacity:100; filter:none; }.msLinkPreviewer .picker { position:relative; color:#bdbdbd; font-size:11px; padding:6px 0 0 20px; display:none; }.msLinkPreviewer .prev,.msLinkPreviewer .next { position:absolute; height:25px; width:22px; top: -45px; cursor:pointer; background:url('"+MySpace.StaticContentBase+"/modules/common/static/img/superpost/futuraSuperPostSprite.png') }.msLinkPreviewer .prev { background-position:-7px -182px; left:0; }.msLinkPreviewer .next { background-position:-2px -242px; right:0; }.msLinkPreviewer .prevDisabled { background-position:-7px -152px; cursor:default; }.msLinkPreviewer .nextDisabled { background-position:-2px -213px; cursor:default; }.msLinkPreviewer .thumbnail { position:relative; }.msLinkPreviewer .multipleImages .thumbnail { padding-left:22px; }   .ie7 .msLinkPreviewer .multipleImages .thumbnail{ padding-left:0; } .ie7 .msLinkPreviewer .multipleImages .noImage { margin-left:22px; }.msLinkPreviewer .multipleImages .picker { display:block; }.msLinkPreviewer .clickable { cursor:pointer }.moviePreviewer .title, .moviePreviewer .description { float:none; width:98% !important; }MySpace.UI.LinkPreviewer")}};if(MySpace.UI.LinkPreviewer.registerClass){MySpace.UI.LinkPreviewer.registerClass("MySpace.UI.LinkPreviewer",Sys.UI.Control)}(function(a){var c=0,e=0,f=null,d=null,b=null;a.widget("ms.captcha",{_create:function(){var q=this,l=0,r,k,o,p,g=this.element,h,j;j=a("#captcha_text");h=a("#imgClientCaptcha");q.show=function(x,v){b=x.captchaDefaultText;d=x.imageUrl;e=x.timeout;r=x.useRecaptcha;q.hide();if(!!x.explanation){a("<div>").html(x.explanation).appendTo(g)}var s=a('<div class="container clearfix">').appendTo(g);var t=[];if(x.showEmailVerifyCaptchas){var w=a("#"+v);if(w){w.html(x.emailVerifyLinkText);w.show()}else{t.push('<div class="sysMessage" style="margin:0 0 20px"><p id="lblVerifyEmailLink">'+x.emailVerifyLinkText+" </p></div>")}}t.push('<div id="dvClientCatpchaContainer">');t.push('<div style="float:left">');t.push('<div style="float: left; position: relative;">');t.push('<div style="float: left; margin-right: 10px;">');t.push('<img id="imgClientCaptcha" src="'+x.imageUrl+'"></img>');t.push("</div");t.push('<div style="float: left;">');t.push("<div>");t.push('<a id="clientCaptcha_Refresh" href="#" class="glue utility" style="display: inline-block; height: 13px; margin: 5px 0;"><span class="MSIcon refreshIconDark">Refresh</span>'+x.refreshCaptchaText+"</a>");t.push("</div>");if(x.showSickOfCaptchas&&!x.showEmailVerifyCaptchas){t.push('<div id="divSickOfCaptchas"');t.push("<p>"+x.sickOfCaptchaText+"</p>");var u;var y;if(x.IsFuturaCaptcha){u=x.sickOfCaptchaLink}else{u=String.format("javascript:var temp=window.open('{0}','smsVerificationPopupWindow', 'width=700, height=400, resizeable=no, menubar=0,toolbar=0, titlebar=no, status=no, scroll bars=no, location=no');",x.sickOfCaptchaLink)}t.push('<p><a href="'+u+'">'+x.sickOfCaptchaGetRidOfThem+"</a></p>");t.push("</div>")}t.push("</div>");t.push("</div>");t.push('<div style="clear: both;">');t.push("<p><b>"+x.direction1+"</b></p>");t.push("<p>"+x.direction2+"</p>");t.push("<p>"+x.direction3+"</p>");t.push('<p><input type="text" autocomplete="off" name="captcha_text" id="captcha_text" placeholder = "'+x.captchaDefaultText+'" maxlength="50" style="margin: 10px 0 0;" /></p>');t.push("</div>");t.push("</div>");t.push("</div>");s.html(t.join(""));a("#clientCaptcha_Refresh").click(function(z){q.refresh();z.preventDefault()});o=x.timeout*1000;p=window.setTimeout(q.refresh,o)};q.hide=function(){window.clearTimeout(p);if(r&&window.Recaptcha){Recaptcha.destroy()}g.html("")};q.focus=function(){try{j.focus()}catch(s){}};q.val=function(){return a("#captcha_text").val()};q.refresh=function(){clearTimeout(f);a("#captcha_text").val("");a("#imgClientCaptcha").attr("src",d+"&r="+c);c++;f=setTimeout(q.refresh,e*1000)};function m(s){if(s.keyCode==a.ui.keyCode.ENTER){n(s)}}function n(s){q._trigger("submit");s.preventDefault()}}})})(jQuery);(function(a){a.widget("glue.accordion",{options:{active:0,collapsable:false,pointer:true,callback:null},_create:function(){var c=new b(this.element,this.options);this.active=function(){if(arguments.length==0){return c.getOpenPanel()}c.setOpenPanel(arguments[0])}}});var b=function(d,x){var w=x;var g=d.children("li");var f,e,c,o=false;w.headerHeight=r(a(g[0]))[0].offsetHeight;var h=q(a(g[0]))[w.active].offsetHeight;var y=[];function t(){g.each(function(H){var F=a(this);var G=this.offsetHeight;y[H]=G;var E=r(F);if(w.pointer){E.append('<span class="pointer">▲</span>')}E.click(function(){o=true;u(F,G);if(typeof w.callback==="function"){w.callback(H)}});if(H==w.active){v(F,G)}else{l(F)}});var C=d.parent(".ms-accordion-container");var B=C.find(".xCircleIconDarkWhite");var D=C.find(".minusCircleIconDarkWhite");if(!w.collapsable){D.hide()}B.click(function(){C.hide()});D.click(function(){if(w.collapsable){g.each(function(E){l(a(this))});e=null}})}function u(C,D){if(c!=null||f!=null){return}if(e&&C[0]===e[0]){if(!w.collapsable){return}c=C;k(e,false);q(e).css({visibility:"visible"});e=null}else{var B=e;f=C;c=B;q(f).css({visibility:"visible"});k(f,true)}j(D)}function j(C){var B=A(C);if(!B){setTimeout(function(){j(C)},30)}}function A(B){if(c!=null||f!=null){m(n(B));return false}return true}function n(D){if(!f){return 0}var C=f.height();var B=Math.ceil((D-C)/2);var E=C+B;if(E>=D){B=D-C;f.height(D);e=f;f=null}else{f.height(E)}return B}function m(B){if(!c){return 0}var C=c.height();if(o){c.css({overflow:"hidden",position:"relative"});k(c,false);o=false}if(C>w.headerHeight){if(B==0){B=Math.ceil((C-w.headerHeight)/2)}var D=C-B;if(D<=w.headerHeight){D=w.headerHeight;c.height(D);q(c).css({visibility:"hidden"});c=null}else{c.height(D)}}else{c=null}}function v(B,C){B.height(C).css({overflow:"visible"});e=B;q(B).css({visibility:"visible"});k(B,true)}function l(B){B.height(w.headerHeight).css({overflow:"hidden"});q(B).css({visibility:"hidden"});k(B,false)}function k(C,D){var B=r(C);var E=B.html();B.toggleClass("active",!!D).find(">span.pointer").html(D?"▲":"▼")}function r(B){return a(B).children("h3:first")}function q(B){return a(B).children("div:first")}function p(B){return B[0].offsetHeight-B.height()}function z(D){for(var C=0;C<g.length;C++){var B=a(g[C]);if(C==D){v(B,y[C])}else{l(B)}}}function s(){return e}t();return{setOpenPanel:z,getOpenPanel:s}}}(jQuery));(function(a){var b,d="/Modules/Common/Services/SharePost.ashx";function c(){var e;if(!b&&(MySpace.UI.Share==undefined||MySpace.UI.Share.config==undefined||MySpace.UI.Share.config.enableEmail)){a.ajax({url:d,async:false,data:{captchaconfig:true},success:function(f){e=JSON.parse(f)}})}return e}MySpace.UI.ShareButton=function(p){if(p.attr("data-wired")){return p.data("shareButton")}var k=(p&&p.length)?p.find(".linkCssClass:first").val():"";var o=p,n;o.data("shareButton",this);var f=".shareButtons",g=MySpace.UI.Share.config;function j(){if(!o||o.attr("data-type")=="activity"){return}else{if(o){g.type=o.attr("data-type")}}if(!o.attr("data-wired")){o.attr("data-wired","true")}else{return}var y,w,x,v,r,u,s;var t=o.find(".sharedURL:first");y=t.val()==""?document.location.href:t.val();w=t.val()==""?document.title:o.find(".sharedTitle:first").val();x=o.find(".sharedTweet").val()||w;u=t.val()==""?"":o.find(".sharedResourceUri:first").val();s=t.val()==""?"ShareItem":o.find(".sharedEngagementType:first").val();v={url:y,title:w,tweet:x,resourceUri:u,engagementType:s};o.find(".hasTooltip").tooltip();if(k){k=h(k);r=o.find(k+":first");if(!r.length){r=a(k+":first")}}if(r&&r.length){r.click(function(z){if(!a(this).hasClass("notclickable")){m(v)}z.preventDefault();return false})}n=new MySpace.UI.SharePopup(o,g);e(v)}function h(r){return r.indexOf(".")>=0?r:"."+r}function l(s,r){if(!n){n=new MySpace.UI.SharePopup(o,g)}n.setCallback(r);n.setupPopup(true);n.show(0,s)}function m(t,s){var r=(s=="Email")?1:0;if(!n){n=new MySpace.UI.SharePopup(document,g)}n.setupPopup(false);n.show(r,t)}function e(s){o.find(f+" a").unbind("click");o.find(f+" a").click(function(t){var u=this.className.slice(this.className.lastIndexOf(" ")+1);if(!a(this).hasClass("notclickable")){if(u=="Email"||u=="MySpace"||u=="Total"){m(s,u)}else{MySpace.UI.ShareButton.goToUrl(u,s,g)}}t.preventDefault()});if(g.showOtherNetworks){try{stLight.getCount(function(t){q(t)},s.url)}catch(r){q(null,list)}}}function q(s,r){o.find("a").each(function(){var x=this.className.slice(this.className.lastIndexOf(" ")+1);var u=s!=null?s[x.toLowerCase()]||"0":"0";var t=a(this).find("em");var w=t.html();if(x=="Total"){if(w.trim()=="-"){t.html(u)}else{if(u!="0"){var v=w.split(" ");if(w.trim()!=""){if(isNaN(v[0])){t.html(v[0]+" ("+u+")")}else{t.html(u)}}else{t.html(u)}}}}else{t.html(u)}})}j();this.openPopup=m;this.openActivityPopup=l;this.activate=e};MySpace.UI.ShareButton.getUrl=function(f,g,e){var j=e.url.replace("{0}",f.toLowerCase());j=j.replace("{1}",encodeURIComponent(g.url));var h=(f=="Twitter"&&g.tweet)?g.tweet:g.title;j=j.replace("{2}",encodeURIComponent(h));j=j.replace("{3}",e.publisherId);return j};MySpace.UI.ShareButton.goToUrl=function(f,g,e){window.open(MySpace.UI.ShareButton.getUrl(f,g,e))};MySpace.UI.SharePopup=function(ah,ao){var ag=ah;var o=ao;var af=MySpaceRes.PostTo,an=700;var L=false;var ar=d;var e,aa,N,ab,aq,ax,ay,G,aA,v,x,r,Q,R,aE,w,k,ap,p,t,ac,n,u,q,s,g={},h,ad,j,P,O,z,m,K=false,F;function J(){aa=a(C()).appendTo(document.body);N=aa.find(".loading:first");ab=aa.find(".postToForm:first");O=aa.find(".loginBox:first");aq=aa.find(".shareForm:first");ax=aa.find(".smallLoader:first");ay=aq.find(".smallLoader:first");G=aa.find(".hiddenNode:first");aA=G.find(".successNode:first");v=G.find(".emailSuccessNode:first");x=G.find(".errorNode:first");r=G.find(".emailErrorNode:first");Q=aa.find(".networks:first");R=Q.find(".note:first");aE=ab.find(".warning:first");w=aq.find(".errorNote:first");k=aa.find(".shareCaptcha:first");ap=aa.find(".shareEmailMessage:first");p=aa.find(".shareToEmailAddress:first");t=aa.find(".shareEmailName:first");z=aa.find(".from:first");e=aa.find("ul.accordion:first");ac=$create(MySpace.UI.LinkPreviewer,null,null,null,aa.find(".preview:first")[0]);h=ab.find(".blob:first");ad=ab.find(".previewWrapper:first");m=aa.find(".comment:first").bind("keypress paste",function(){if(this.value.length>=an){this.value=this.value.substr(0,an);aE.show()}else{aE.hide()}window.setTimeout(al,50)});aa.bind("dialogclose",function(aF,aG){l()});ab.find("button.postToBtn:first").bind({click:function(){ax.show();R.hide();az()},keydown:function(aF){if(aF.keyCode==9){aF.preventDefault()}}});if(o.enableEmail&&!K){aq.find("button.shareEmailBtn:first").click(function(aF){if(y.isValidEmailList(p.val())){ay.show();R.hide();ai();w.css("visibility","hidden");p.removeClass("error")}else{w.html(af.InvalidEmail).css("visibility","visible");p.addClass("error")}})}if(o.type=="postto"&&(window.opener||a.browser.msie)){aa.find(".cancelBtn").show().click(function(){window.close()})}x.find("a").add(r.find("a")).click(function(aF){ae();aF.preventDefault()});aA.find("a").attr("href",o.homePage)}function al(){var aF=m.scrollHeight;if(aF>m.innerHeight()){m.attr("style","height:"+aF+"px")}}function C(){var aF='<div class="sharePopup"><span class="MSIcon loadingIconWhiteLight loading"></span> <ul class="accordion">     <li>         <h3>'+af.ShareOnMyspace+'         </h3>         <div class="content">            <div class="loginBox"></div>             <div class="postToForm">                 <textarea class="comment" name="comment" placeholder="'+af.EnterMessage+'"></textarea>                 <div class="sysMessage warning">'+af.ContentExceedsLimit+'                 </div>                 <div class="previewWrapper">                     <div class="preview"></div>                 </div>                 <div class="blob"></div>                 <button class="glue primary postToBtn">'+af.PostButton+'</button>					<a href="javascript:;" class="cancelBtn">'+af.EditWindowCancel+'</a>                 <span class="MSIcon loadingIconWhiteLight smallLoader"></span>            </div>         </div>     </li>';if(o.enableEmail){aF+='         <li class="emailPanel">            <h3>'+af.ShareViaEmail+'             </h3>            <div class="content">                <div class="shareForm">	                <div class="sysMessage error errorNote"></div>	                <p class="from"><label for="shareEmailName">'+af.From+'</label><input id="shareEmailName" class="shareEmailName" maxlength="100" type="text" placeholder="'+af.EnterName+'" /></p>	                <p><label for="shareToEmailAddress">'+af.To+'</label><input id="shareToEmailAddress" class="shareToEmailAddress" maxlength="1000" type="text" placeholder="'+af.EnterMultipleEmailAddresses+'" /></p>	                <p><textarea id="shareEmailMessage" class="shareEmailMessage" placeholder="'+af.EnterMessage+'"></textarea></p>	                <div class="shareCaptcha"></div>	                <p class="sharebtn">					<button class="glue primary shareEmailBtn">'+af.PostButton+'</button>	                <span class="MSIcon loadingIconWhiteLight smallLoader"></span>					<a href="javascript:;" class="cancelBtn">'+af.EditWindowCancel+"</a></p>	            </div>            </div>        </li>"}aF+=" </ul>";if(o.showOtherNetworks){aF+='<div class="networks"><div class="note sysMessage warning"><p>'+af.ShareOtherNetworksDescription+'	  </p></div>    <p class="otherNetworks">'+af.ShareOtherNetworks+'    </p>   <ul class="shareButtons">'+A("Facebook",af.ShareToFacebook)+A("Twitter",af.ShareToTwitter)+A("Digg",af.ShareToDigg)+"     </ul> </div>"}aF+='  <div class="hiddenNode">     <div class="successNode">         <p>'+af.AllDone+"          <br />";if(!o.showOtherNetworks){aF+='<a href="'+o.homePage+'">'+af.GoCheckOut+"</a>"}aF+='			</p>      </div>      <div class="errorNode">          <span class="errorImg"></span>          <p>'+af.TryAgainMessage+"          </p>      </div>";if(o.enableEmail){aF+='       <div class="emailSuccessNode">           <p>'+af.AllDone+'           </p>       </div>       <div class="emailErrorNode">           <p>'+af.TryAgainMessage+"           </p>       </div>"}aF+="</div></div>";return aF}function A(aG,aF){return'<li><button class="MSIcon share'+aG+"Icon shareNet dark "+aG+'" title="'+aF+'"></button></li>'}function l(){k.captcha("hide");ae();R.hide()}function ae(){if(ab.is(":hidden")){I(ab);ab.show()}if(aq.is(":hidden")){I(aq);aq.show()}aE.hide();w.html("").css("visibility","hidden");ax.hide();ay.hide()}function M(){return MySpace.ClientContext.IsLoggedIn}function az(){if(!g.isInternalLink){var aF=ac.getLinkData();aF.comment=E(m);aF.sharepost="true";aF.hash=o.sharehash;aF.resourceUri=g.resourceUri||"";aF.engagementType=g.engagementType||"ShareItem";a.ajax({url:ar,type:"post",data:aC(aF),success:function(aG){X(aG,aF.url,aF.title,aF.mediaType)},error:function(){Y(ab)}})}else{var aF={};aF.comment=E(m);aF.activitypost=JSON.stringify(g);aF.hash=o.sharehash;a.ajax({url:ar,type:"post",data:aC(aF),success:X,error:function(){Y(ab)}})}}function H(){aa.dialog("close");Q.hide()}function Z(){if(o.type=="postto"){aa.appendTo(document.body).show()}else{if(!aa.data("dialog")){aa.dialog({dialogClass:"nopadding",minHeight:F})}else{aa.dialog("open").dialog({minHeight:F})}}}function D(aF,aG){var aH=MySpace.UI.ShareButton.getUrl(aF,aG,o);aH=aH+"&pixel=true";return aH}function aw(){L=true;N.css({marginTop:F/2+"px"}).show();Q.css("visibility","hidden");e.hide()}function f(aG){if(!M()){e.find(".emailPanel:first").height(370)}else{if(P){e.find(".emailPanel:first").height(390)}}!o.enableEmail||K||(a("body").hasClass("ie7"))?e.accordion({pointer:false}):e.accordion();e.accordion("active",aG);if(K){e.find(".emailPanel:first").hide();Q.hide()}else{e.find(".emailPanel:first").show();Q.show()}var aF=MySpace.UI.DefaultTextboxBehavior;aF(aa.find(".comment:first"));aF(aa.find(".shareEmailName:first"));aF(aa.find(".shareToEmailAddress:first"));aF(aa.find(".shareEmailMessage:first"));aF(a("#captcha_text"));aa.find(".shareNet").tooltip()}function au(){L=false;N.hide();ax.hide();ay.hide();Q.css("visibility","visible");if(!M()){ab.hide();O.show().html(MySpace.UI.LoginPrompt.getLoginContent())}e.show()}function X(aH,aK,aJ,aG){ax.hide();if(L){au()}if(aH=="true"){if(!g.isInternalLink){var aI={url:aK,title:aJ};var aK=D("2myspace",aI);aj(aK);if(o.type=="postto"){var aF=window.location.href;a.comm.send("location.href",aF+(aF.indexOf("?")!=-1?"&":"?")+"confirm=true#pm_cmp=Futura_Ext_Share_"+aG);return}}aB(ab,aA);if(typeof j==="function"){j()}return}aB(ab,x)}function Y(aF){ax.hide();aB(aF,x);if(L){au()}}function aC(aF){var aH=[];for(var aG in aF){aH.push(aG+"="+encodeURIComponent(aF[aG]))}return aH.join("&")}function aB(aG,aF){aG.parent().append(aF);aG.hide()}function V(){setTimeout(function(){au();x.find("a").unbind("click");x.find("a").click(function(aF){aa.dialog("close");aF.preventDefault()});Y(ab);f(0)},250)}function W(aH,aF,aG){setTimeout(function(){au();f(aG)},250)}function ai(){var aF=ac.getLinkData();aF.emailpost="true";aF.sendername=E(t);aF.emails=E(p);aF.message=E(ap);aF.hash=o.sharehash;if(!M()||P){aF.captcha=k.captcha("val");if(aF.captcha==""){ay.hide();av();return}}a.ajax({url:ar,type:"post",data:aC(aF),success:function(aG){T(aG,aF.url,aF.title)},error:function(){Y(aq)}})}function T(aK,aN,aM){ay.hide();if(L){au()}try{var aJ=JSON.parse(aK);if(aJ==true){aB(aq,v);var aG=p.val().split(",").length;var aH=[];for(var aI=0;aI<aG;aI++){aH.push("email")}var aL=D(aH.join(","),encodeURIComponent(aN),encodeURIComponent(aM));aj(aL);return}else{if(aJ.error=="captcha"){av();return}}}catch(aF){}aB(aq,r)}function av(){k.captcha("refresh");w.html(af.InvalidSecurityCode).css("visibility","visible").show();aa.find("#captcha_text").addClass("error")}function U(aG,aF){ay.hide();aB(aq,r);if(L){au()}}function aj(aF){document.createElement("img").src=aF}function I(aG){var aF=aG.next();if(aF.length){G.append(aF)}}function S(aG,aF){if(aG){h.html(aG);h.find("a").attr("href","javascript:;");h.show();ad.hide();setTimeout(function(){au();f(aF)},250)}else{V()}}function aD(){if(!M()){return true}if(!o.enableEmail){return false}var aF;a.ajax({url:d,async:false,data:{needcaptcha:true,hash:o.sharehash},success:function(aG){aF=aG}});return aF=="true"?true:false}function at(aG,aH){aw();Z();Q.find("button").unbind("click").click(function(aI){var aJ=this.className.slice(this.className.lastIndexOf(" ")+1);R.html(af.ShareOtherNetworksDescription.replace("{0}",aJ)).show();MySpace.UI.ShareButton.goToUrl(aJ,aH,o);aI.preventDefault()});P=aD();if(P){b=b?b:c()}if(aH.isInternalLink!=undefined||!M()){ac.enableEdit(false)}if(!aH.isInternalLink){g={isInternalLink:aH.isInternalLink,url:aH.url,title:aH.title,description:aH.description,resourceUri:aH.resourceUri,engagementType:aH.engagementType};h.hide();ad.show();ac.previewUrl(g.url,g.title,g.description,null,null,function(aJ,aI){W(aJ,aI,aG)},"share")}else{var aF={};g={};g=aH;aF.activityid=JSON.stringify(aH);aF.hash=o.sharehash;a.ajax({url:ar,type:"post",data:aC(aF),success:function(aI){S(aI,aG)},error:V})}m.val("");if(o.enableEmail){t.val("");p.val("");if(!M()){z.show();ap.hide();k.captcha();k.captcha("show",b)}else{z.hide();ap.show();ap.val("");if(P){ap.height(50);k.captcha();k.captcha("show",b)}else{ap.height(100);k.captcha("hide")}}}}function B(){return aa}function ak(aF){j=aF}function am(aF){K=aF;F=!o.enableEmail||K?360:395;F=!o.showOtherNetworks||K?F-80:F}var y={isValidEmailList:function(aF){aF=aF.replace(";",",");var aG=aF.split(",");for(var aH=0;aH<aG.length;aH++){if(!this.validEmail(a.trim(aG[aH]))){return false}}return true},validEmail:function(aG){try{var aH=/^([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})$/;if(!aH.test(aG)){return false}}catch(aF){return false}return true}};function E(aF){return aF.val()==aF.attr("placeholder")?"":aF.val()}J();return{show:at,getPopupBase:B,setCallback:ak,setupPopup:am}};a(".shareButtonControl").each(function(){new MySpace.UI.ShareButton(a(this))})})(jQuery);MySpace.UI.PopupV2=function(b){var m=this,j,k,n,d,f,c,e;function h(){k=a("msPopupV2Overlay",document.body);n=a("msPopupV2Wrapper",document.body);d=a("msPopupV2Box",n);f=a("msPopupV2Content",d);c=a("msPopupV2Border",d);e=a("msPopupV2Close",d);$addHandler(e,"click",m.hide);$addHandler(window,"resize",l);m.set(b||{});MySpace.UI.addStyles(".msPopupV2Overlay { position:absolute;top:0;left:0;display:none;z-index:1000200;width:100%;opacity:0.6;filter:alpha(opacity=60);background:#000; }.msPopupV2Wrapper { position:absolute;left:0;display:none;width:100%;z-index:1000201 }.msPopupV2Box { margin:0 auto;padding:10px;position:relative; }.msPopupV2Border { position:absolute;top:0;left:0;background:#000;height:100%;width:100%;opacity:0.33;filter:alpha(opacity=33);-moz-border-radius:10px;-webkit-border-radius:10px;z-index:-1; }.msPopupV2Close { position:absolute;top:-5px;right:-7px;height:15px;width:15px;background:url("+MySpace.StaticContentBase+"/modules/common/static/img/closepopup.png);cursor:pointer; }.msPopupV2Content { height:100%;width:100%;overflow:auto;background:#444; }",false,"MySpace.UI.PopupV2")}function l(){k.style.height=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)+"px"}function a(o,q){var p=document.createElement("div");p.className=o;q.appendChild(p);return p}function g(p){if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)<=6){var r="iframe,select,embed,object",q=$q(r),o=$q(r,n);Array.forEach(q,function(s){if(Array.indexOf(o,s)==-1){if(p){s.setAttribute("origvis",s.style.visibility)}s.style.visibility=p?"hidden":(s.getAttribute("origvis")||"")}})}}m.show=function(){l();k.style.display="block";n.style.display="block";d.style.height=b.height+"px";d.style.width=b.width+"px";var o=window.innerHeight||document.documentElement.clientHeight,p=document.documentElement.scrollTop||document.body.scrollTop;n.style.top=(p+Math.max(Math.round((o-b.height)/2),50))+"px";c.style.zoom="1";c.style.zoom="";g(true);j=true};m.hide=function(o){k.style.display="";n.style.display="";g(false);j=false};m.set=function(p){for(var o in p){b[o]=p[o]}if(p.content){if(typeof p.content=="string"){f.innerHTML=p.content}else{f.innerHTML="";f.appendChild(p.content)}}if(j){m.show()}};m.getCloseButton=function(){return e};h()};if(!MySpace){MySpace={}}if(!MySpace.UI){MySpace.UI={}}MySpace.UI.LoginOverlayClient=(function(){var h=this,a,d=350,e=550,j=450,g;function f(){return !(MySpace.ClientContext&&MySpace.ClientContext.UserId>0)}function c(){var k;if(document.domain.indexOf("myspace.dev")>=0){document.domain="myspace.dev";k="http://secure.myspace.dev"}else{if(document.domain.indexOf("myspace.com")>=0){document.domain="myspace.com";k="https://secure.myspace.com"}}k+="/index.cfm?fuseaction=login.simpleform&featureName=loginOverlay";if(a.titleClass1&&a.titleKey1){k+="&tc1="+a.titleClass1+"&tk1="+a.titleKey1}if(a.titleClass2&&a.titleKey2){k+="&tc2="+a.titleClass2+"&tk2="+a.titleKey2}return k}function b(){var k=document.createElement("iframe");k.style.height="100%";k.style.width="100%";k.style.border="none";k.scrolling="no";k.frameBorder="0";k.src=c();return k}h.show=function(l){a={};if(l){for(var k in l){a[k]=l[k]}}if(f()){var m={height:d,width:j,content:b()};if(!g){g=new MySpace.UI.PopupV2(m)}else{g.set(m)}g.show();return true}else{if(a.alreadyLoggedInCallback&&typeof(a.alreadyLoggedInCallback)=="function"){a.alreadyLoggedInCallback()}else{h._loggedIn()}}return false},h.hide=function(){if(g){g.hide()}};h._resizeForCaptcha=function(k){if(g){if(k){g.set({height:e})}else{g.set({height:d})}}};h._loggedIn=function(k){h.hide();if(a.loggedInCallback&&typeof a.loggedInCallback=="function"){a.loggedInCallback(k)}else{if(a.redirectUrl&&typeof a.redirectUrl=="string"){window.top.location=a.redirectUrl}else{window.location.reload(true)}}};return h})();var AdTooltip={continuePlayback:false,addStyles:function(b){var c=null;if(document.createStyleSheet){c=document.createStyleSheet()}else{var a=document.getElementsByTagName("head")[0];c=document.createElement("style");a.appendChild(c)}if(jQuery.browser.msie){c.cssText=b}else{if(jQuery.browser.safari){c.innerText=b}else{c.innerHTML=b}}},close:function(){if(typeof(window.tip)!="undefined"){window.tip.hide()}},reposition:function(){var b=286;var c=300;var d=document.getElementById("shell");if(!jQuery.browser.msie&&!jQuery.browser.safari){d=d.getElementsByTagName("object")[0]}if(jQuery.browser.msie){swfPos=MySpaceMusic.getElementPosition(jQuery(".bandMusicPlayerModule").get(0))}else{swfPos=MySpaceMusic.getElementPosition(document.getElementById("shell").offsetParent)}var a=0;if(d.offsetWidth>c){a=(d.offsetWidth-c)/2}var e=(MusicPlayerControl.Width=="450")?44:99;window.tip._tipDiv.style.left=(swfPos.x+a)+"px";window.tip._tipDiv.style.top=(swfPos.y+e)+"px"},open:function(a){if(typeof(a)!="undefined"){AdTooltip.continuePlayback=a}AdTooltip.close();var d=286;var e=300;var f=document.getElementById("shell");if(!jQuery.browser.msie&&!jQuery.browser.safari){f=f.getElementsByTagName("object")[0]}if(jQuery.browser.msie){swfPos=MySpaceMusic.getElementPosition(jQuery(".bandMusicPlayerModule").get(0))}else{swfPos=MySpaceMusic.getElementPosition(document.getElementById("shell").offsetParent)}var c=0;if(f.offsetWidth>e){c=(f.offsetWidth-e)/2}var g=(MusicPlayerControl.Width=="450")?44:99;var b=".tooltipdiv .helper{background:none;border:none;}.tooltipdiv .helperarrow{display:none;}.tooltipleft{margin-left:10px;}";AdTooltip.addStyles(b);content="<iframe scrolling='no' style='position:absolute;' id='musicFlashPlayerContent' height='"+d+"' width='"+e+"' frameborder='0' src='"+MusicPlayerControl.TooltipUrl+"'></iframe>";window.tip=$create(MySpace.UI.Tooltip,{content:content,autoPos:false,hover:false,tipPos:"bottom",margin:0},null,null,$get(MusicPlayerControl.SwfObjectDiv));window.tip._tipDiv.childNodes[1].style.display="none";window.tip._tipDiv.childNodes[2].childNodes[0].style.display="none";window.tip._tipDiv.childNodes[2].childNodes[2].style.display="none";window.tip._tipDiv.childNodes[3].style.display="none";window.tip._tipDiv.childNodes[2].style.background="transparent";window.tip.show();window.tip._tipDiv.style.left=(swfPos.x+c)+"px";window.tip._tipDiv.style.top=(swfPos.y+g)+"px";$addHandler(window,"resize",AdTooltip.reposition)},onClickContinueListen:function(a){if(typeof(a.parent)!="undefined"&&typeof(a.parent.tip)!="undefined"){a.parent.tip.hide();if(a.parent.AdTooltip.continuePlayback){a.parent.MySpaceMusic.getPlayerFlashObject().playCurrentTrack()}}}};var FlashUpgrade={checkIfBelow104:function(){if(jQuery.browser.safari&&parseInt(jQuery.browser.version,10)<200){return true}if(jQuery.browser.mozilla){var a=navigator.oscpu;return(a.indexOf("10.3")!=-1)||(a.indexOf("10.2")!=-1)}return false},Init:function(){var b=null;try{b=new SWFObject(MusicPlayerControl.EmbedHandlerURL,"shell",MusicPlayerControl.Width,MusicPlayerControl.Height,MusicPlayerControl.PlayerVersion,MusicPlayerControl.BgColor)}catch(a){}var j=MusicPlayerControl.PlayerVersion.split(".");var c=false;var d=false;var f=false;var g=false;var h=false;if(b&&b.installedVer!=undefined){c=b.installedVer.major>j[0];d=b.installedVer.major==j[0];f=b.installedVer.minor>j[1];g=b.installedVer.minor==j[1];h=b.installedVer.rev>=j[2]}if(c||(d&&f)||(d&&g&&h)){if(b){b.addParam("allowScriptAccess","always");b.addParam("wmode","transparent");b.write(MusicPlayerControl.SwfObjectDiv)}}else{MusicPlayerControl.NeedUpgrade=true;document.getElementById(MusicPlayerControl.SwfObjectDiv).style.backgroundColor="#FFFFFF";if(MusicPlayerControl.FlashUpgradeEnabled){if(!MusicPlayerControl.IsPixelPlayer){document.getElementById(MusicPlayerControl.SwfObjectDiv).innerHTML=MusicPlayerControl.FlashUpgradeMarkup.replace("{0}",FlashUpgrade.GetFlashUpgradeURL(true));if(MySpace.ClientContext.FunctionalContext=="MusicSinglePlaylist"||MySpace.ClientContext.FunctionalContext=="ArtistAlbums"){$get("PlaylistsSinglePlayer").style.height="172px";$get("flashUpgradeBig").style.margin="0px 0px 0px 67px"}}else{}}else{document.getElementById(MusicPlayerControl.SwfObjectDiv).innerHTML='<span style="color:#000000;"><blockquote>'+MusicPlayerControl.ResourcesGetFlash+"</blockquote></span>"}}},GetFlashUpgradeURL:function(b){var c=MusicPlayerControl.AllOtherFlashUpgradeURL;if(b){var a=navigator.userAgent.toLowerCase();var l=navigator.platform.toLowerCase();var k=false;var j=false;var d=false;var f=false;var g=false;var h=false;var e=false;k=(a.indexOf("win 9x 4.90")!=-1&&a.indexOf("win")!=-1);j=(a.indexOf("win98")!=-1)||(a.indexOf("windows 98")!=-1);d=(a.indexOf("inux")!=-1);f=(a.indexOf("mac os x")!=-1);g=(f&&FlashUpgrade.checkIfBelow104());h=(f&&((a.indexOf("ppc")!=-1)||(a.indexOf("powerpc")!=-1)));e=(f&&((l.indexOf("intel")!=-1)));if(j||k){if(jQuery.browser.msie){c=MusicPlayerControl.WinME98_IE_FlashUpgradeURL}else{if(jQuery.browser.mozilla){c=MusicPlayerControl.WinME98_Netscape_FlashUpgradeURL}}}else{if(d){c=MusicPlayerControl.Linux_FlashUpgradeURL}else{if(g){if(h){c=MusicPlayerControl.MacOSX_Less10dot4_PowerPC_FlashUpgradeURL}if(e){c=MusicPlayerControl.MacOSX_Less10dot4_Intel_FlashUpgradeURL}}}}}return c}};var LoginObj={ajaxActionHandler:"/Modules/Music/Handlers/MusicUtil.ashx?action=EnforceLogin",req:null,_loginWin:null,Sleep:function(a){setTimeout("LoginObj.EnforceLoginOpenComplete()",a)},LoginRedirect:function(){if(LoginObj.req.readyState==4){var json=eval("("+LoginObj.req.responseText+")");if(json.ServerResponse.IsRequestSuccessful){window.location.href=json.ServerResponse.DisplayText}}},EnforceLoginPOMP:function(a){LoginObj._loginWin=window.open(decodeURI(a),"newWin","","");LoginObj.Sleep(1000)},EnforceLoginOpenComplete:function(){if(LoginObj._loginWin==null){LoginObj.Sleep(1000)}else{if(LoginObj._loginWin.document==null){LoginObj.Sleep(1000)}else{var a=LoginObj._loginWin.document.getElementById(MusicPlayerControl.SwfObjectDiv);if(a==null){LoginObj.Sleep(1000)}else{LoginObj._loginWin.LoginObj.EnforceLogin()}}}}};var Purchase={Popup:null,AlbumOnlySong:false,BuyOptionObjects:null,ClickedWhileSongPlaying:null,ButtonMouseOver:function(d,a){if(d!=null&&a!=""){if(d.className==""){d.className=a}else{var e="";var b=d.className.split(" ");for(var c=0;c<b.length;c++){if(b[c]==a){return}}d.className+=" "+a}}},ButtonMouseOut:function(c,e){if(c!=null&&e!=""){var d="";var a=c.className.split(" ");for(var b=0;b<a.length;b++){if(a[b]!=e){d+=(d?" ":"")+a[b]}}c.className=d}},ButtonClicked:function(){if(Purchase.ClickTrackingEnabled()){Purchase.ButtonClickTracking()}Purchase.OpenPopup(Purchase.CreatePopupContent())},RingtonesButtonClicked:function(a){if(Purchase.ClickTrackingEnabled()){Purchase.MakeBeaconRequest("","ringtones","jamster",MySpace.Application.keyDisabled("MusicJV_BuyButtonMultipleProviders"))}Ringtones.openBeta(a)},CreatePopupContent:function(){var j=0;var buyOptions=new Array();var ringtoneArtist="";var iTunesButton="<div id='poiTunesLogo'></div> 							<div id='poiTunesPrice'>"+MySpaceRes.Purchase.For+"</div>";var amazonButton="<div id='poAmazonLogo'></div> 							<div id='poAmazonPrice'>"+MySpaceRes.Purchase.For+"</div>";var jamsterButton="<div id='poRingtoneButtons'> 								<H5 class='poHfive'><span id='poBoldText' class='poBoldText'>"+MySpaceRes.Purchase.ChooseMp3s+"</span></H5> 								<div id='poRingtoneButton' class='poMusicButton' onclick=\"javascript:Purchase.RingtonesButtonClicked('{0}');\" > 									<div id='poJamsterLogo'></div> 									<div id='poJamsterPrice'>"+MySpaceRes.Purchase.Ringtones+"</div> 								</div> 							 </div>";var popupContent="<div id='po'> 								<div id='poGreeting'> 									<H2 class='poHtwo'>"+MySpaceRes.Purchase.GreatChoice+"</H2> 								</div>									<div id='poInformation'> 									<H5 class='poHfive'>"+MySpaceRes.Purchase.DownloadInformation+"</H5> 								</div> 								<div id ='poAlbumOnly'> 									<H5 class='poHfive'><span id='poBoldText' class='poBoldText' style='color:red !important;font-weight:bold !important;font-size:10px !important;'>"+MySpaceRes.Purchase.AlbumOnly+"</span></h5> 								</div> 								<div id='poMusicButtons'> 									<H5 class='poHfive'><span id='poBoldText' class='poBoldText'>"+MySpaceRes.Purchase.DownloadMp3s+"</span></H5>";var sortFunction=function(a,b){var c=a.providerName;var d=b.providerName;if(c>d){return -1}if(c<d){return 1}return 0};buyOptions=Purchase.BuyOptionObjects.split("|");for(j=0;j<buyOptions.length;j++){buyOptions[j]=eval("("+buyOptions[j]+")")}buyOptions.sort(sortFunction);for(j=0;j<buyOptions.length;j++){switch(buyOptions[j].purchaseType.toLowerCase()){case"song":popupContent=MySpaceMusic.textFormat(popupContent,buyOptions[j].mediaName,buyOptions[j].artistName);switch(buyOptions[j].providerName.toLowerCase()){case"amazon":popupContent+="<div id='poMusicButton' class='poMusicButton' onclick=\"javaScript:Purchase.SongClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(amazonButton,(buyOptions[j].price=="")?"FREE":buyOptions[j].price);break;case"itunes":popupContent+="<div id='poMusicButton' class='poMusicButtonNoBackground' onclick=\"javaScript:Purchase.SongClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(iTunesButton,(buyOptions[j].price=="")?"FREE":buyOptions[j].price);break;default:}popupContent+="</div>";break;case"albumonly":popupContent=MySpaceMusic.textFormat(popupContent,buyOptions[j].mediaName,buyOptions[j].artistName);switch(buyOptions[j].providerName.toLowerCase()){case"amazon":popupContent+="<div id='poMusicButton' class='poMusicButton' onclick=\"javaScript:Purchase.SongClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(amazonButton,(buyOptions[j].price=="")?"FREE":buyOptions[j].price);break;case"itunes":popupContent+="<div id='poMusicButton' class='poMusicButtonNoBackground' onclick=\"javaScript:Purchase.SongClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(iTunesButton,(buyOptions[j].price=="")?"FREE":buyOptions[j].price);break;default:}popupContent+="</div>";Purchase.AlbumOnlySong=true;break;case"album":popupContent=MySpaceMusic.textFormat(popupContent,buyOptions[j].mediaName,buyOptions[j].artistName);switch(buyOptions[j].providerName.toLowerCase()){case"amazon":popupContent+="<div id='poMusicButton' class='poMusicButton' onclick=\"javaScript:Purchase.AlbumClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(amazonButton,(buyOptions[j].price=="")?"FREE":buyOptions[j].price);break;case"itunes":popupContent+="<div id='poMusicButton' class='poMusicButtonNoBackground' onclick=\"javaScript:Purchase.AlbumClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(iTunesButton,(buyOptions[j].price=="")?"FREE":buyOptions[j].price);break;default:}popupContent+="</div>";break;case"playlist":popupContent="<div id='po'> 										<div id='poGreeting'> 											<H2 class='poHtwo'>"+MySpaceRes.Purchase.GreatChoice+"</H2> 										</div>											<div id='poInformation'> 											<H5 class='poHfive'>"+MySpaceRes.Purchase.DownloadInformationPlaylist+"</H5> 										</div> 										<div id ='poAlbumOnly'> 										</div> 										<div id='poMusicButtons'> 											<H5 class='poHfive'><span id='poBoldText' class='poBoldText'>"+MySpaceRes.Purchase.DownloadMp3s+"</span></H5>";popupContent=MySpaceMusic.textFormat(popupContent,buyOptions[j].artistName,buyOptions[j].mediaName);popupContent+="<div id='poMusicButton' class='poMusicButton' onclick=\"javaScript:Purchase.PlaylistClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(amazonButton,buyOptions[j].price);popupContent+="</div>";break;case"ringtone":ringtoneArtist=buyOptions[j].artistName;break;default:}}popupContent+="</div>";if(ringtoneArtist!=""){popupContent+=MySpaceMusic.textFormat(jamsterButton,ringtoneArtist)}popupContent+="</div>";return popupContent},OpenPopup:function(a){jQuery(a).dialog({width:"small"})},AlbumClicked:function(provider,productId,albumId,artistName,albumName){if(Purchase.ClickTrackingEnabled()){Purchase.MakeBeaconRequest(albumId,"album",provider,MySpace.Application.keyDisabled("MusicJV_BuyButtonMultipleProviders"))}switch(provider.toLowerCase()){case"amazon":if(MusicPlayerControl.AllowAmazonInPlace==true&&productId!=undefined&&productId!=null&&productId!=""){Purchase.AmazonInPlace(productId)}else{Purchase.AmazonAffiliate(productId,"album")}break;case"itunes":if(productId!=undefined&&productId!=null&&productId!=""){var providers=eval("("+MusicPlayerControl.Providers+")");var urlCulture=MySpace.Cookies.MSCulture.get_values().IPCulture.toLowerCase();if(urlCulture=="en-au"||urlCulture=="en-nz"||urlCulture=="en-gb"){encodedProductId=encodeURIComponent(productId);iTunesURL=MySpaceMusic.textFormat(providers.iTunes.Address,encodedProductId+"%3F")}else{if(urlCulture=="en-us"||urlCulture=="es-us"){doubleEncodedProductId=encodeURIComponent(encodeURIComponent(productId));iTunesURL=MySpaceMusic.textFormat(providers.iTunes.Address,doubleEncodedProductId+"%253F")}else{iTunesURL=MySpaceMusic.textFormat(providers.iTunes.Address,"?"+productId)}}var newWindow=window.open(iTunesURL,"iTunesSA","status=yes, scrollbars=yes, resizable=yes, toolbar=yes, location=yes, directories=no, menubar=yes, width=950, height=700");MySpaceMusic.checkForPopUpBlocker(newWindow)}break;default:}},SongClicked:function(provider,productId,songId,artistName,songName){if(Purchase.ClickTrackingEnabled()){Purchase.MakeBeaconRequest(songId,"song",provider,MySpace.Application.keyDisabled("MusicJV_BuyButtonMultipleProviders"))}switch(provider.toLowerCase()){case"amazon":if(MusicPlayerControl.AllowAmazonInPlace==true&&productId!=undefined&&productId!=null&&productId!=""){Purchase.AmazonInPlace(productId)}else{Purchase.AmazonAffiliate(productId,"song")}break;case"itunes":if(productId!=undefined&&productId!=null&&productId!=""){var providers=eval("("+MusicPlayerControl.Providers+")");var urlCulture=MySpace.Cookies.MSCulture.get_values().IPCulture.toLowerCase();if(urlCulture=="en-au"||urlCulture=="en-nz"||urlCulture=="en-gb"){encodedProductId=encodeURIComponent(productId);iTunesURL=MySpaceMusic.textFormat(providers.iTunes.Address,encodedProductId+"%26")}else{if(urlCulture=="en-us"||urlCulture=="es-us"){doubleEncodedProductId=encodeURIComponent(encodeURIComponent(productId));iTunesURL=MySpaceMusic.textFormat(providers.iTunes.Address,doubleEncodedProductId+"%2526")}else{iTunesURL=MySpaceMusic.textFormat(providers.iTunes.Address,"?"+productId)}}var newWindow=window.open(iTunesURL,"iTunesSA","status=yes, scrollbars=yes, resizable=yes, toolbar=yes, location=yes, directories=no, menubar=yes, width=950, height=700");MySpaceMusic.checkForPopUpBlocker(newWindow)}break;default:}},PlaylistClicked:function(c,b,a){if(Purchase.ClickTrackingEnabled()){Purchase.MakeBeaconRequest(a,"playlist",c,MySpace.Application.keyDisabled("MusicJV_BuyButtonMultipleProviders"))}switch(c.toLowerCase()){case"amazon":switch(MySpace.ClientContext.FunctionalContext){case"MusicSinglePlaylist":buyPlaylistUrl=MySpaceMusic.textFormat("http://www.amazon.com/gp/browse.html?node={0}&tag={1}&ASINs={2}","1266319011","playlistpurchase-20",b);break;case"CelebrityPromo":buyPlaylistUrl=MySpaceMusic.textFormat("http://www.amazon.com/gp/browse.html?node={0}&tag={1}&ASINs={2}","1266319011","featuredplaylistpurchase-20",b);break;default:buyPlaylistUrl=MySpaceMusic.textFormat("http://www.amazon.com/gp/browse.html?node={0}&tag={1}&ASINs={2}","1266319011","mys0d05-20",b);break}window.open(buyPlaylistUrl,"AmazonSA","status=yes, scrollbars=yes, resizable=yes, toolbar=yes, location=yes, directories=no, menubar=yes, width=950, height=700");break;default:}},AmazonInPlace:function(b){var a=MusicPlayerControl.AmazonPrice+"&asin="+b+"&mode=";var e=626;var d=426;if(navigator.userAgent.toLowerCase().indexOf("firefox/")>=0){e=611;d=366}a+="windowed";var c=window.open(a,"Amazon","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=610, height=400");MySpaceMusic.checkForPopUpBlocker(c)},AmazonAffiliate:function(a,b){standardAffUrl="http://www.amazon.com/dp/"+a;if(b=="album"){switch(MySpace.ClientContext.FunctionalContext){case"ArtistAlbums":standardAffUrl+="?tag=albumalbumpurchase-20";break;case"MusicSinglePlaylist":standardAffUrl+="?tag=playlistalbumpurchase-20";break;case"UserViewProfile":case"SitesProfile":if(MySpace.ProfileClientContext!=null&&MySpace.ProfileClientContext.ProfileType==7){standardAffUrl+="?tag=artistalbumpurchase-20"}else{if(MySpace.ProfileClientContext!=null&&MySpace.ProfileClientContext.ProfileType==8){standardAffUrl+="?tag=brandalbumpurchase-20"}else{standardAffUrl+="?tag=useralbumpurchase-20"}}break;case"CelebrityPromo":standardAffUrl+="?tag=featuredalbumpurchase-20";break;case"PopUpPlayer":standardAffUrl+="?tag=pompalbumpurchase-20";break;case"SiteSearch":standardAffUrl+="?tag=searchalbumpurchase-20";break;case"MusicTopCharts":standardAffUrl+="?tag=chartsalbumpurchase-20";break;default:standardAffUrl+="?tag=mys0d05-20"}}if(b=="song"){switch(MySpace.ClientContext.FunctionalContext){case"ArtistAlbums":standardAffUrl=standardAffUrl+"?tag=albumsongpurchase-20";break;case"MusicSinglePlaylist":standardAffUrl+="?tag=playlistsongpurchase-20";break;case"UserViewProfile":case"SitesProfile":if(MySpace.ProfileClientContext!=null&&MySpace.ProfileClientContext.ProfileType==7){standardAffUrl+="?tag=artistsongpurchase-20"}else{if(MySpace.ProfileClientContext!=null&&MySpace.ProfileClientContext.ProfileType==8){standardAffUrl+="?tag=brandsongpurchase-20"}else{standardAffUrl+="?tag=usersongpurchase-20"}}break;case"CelebrityPromo":standardAffUrl+="?tag=featuredsongpurchase-20";break;case"PopUpPlayer":standardAffUrl+="?tag=pompsongpurchase-20";break;case"Music":standardAffUrl+="?tag=msmhomesongpurchase-20";break;case"SiteSearch":standardAffUrl+="?tag=searchsongpurchase-20";break;case"MusicTopCharts":standardAffUrl+="?tag=chartssongpurchase-20";break;default:standardAffUrl=standardAffUrl+"?tag=mys0d05-20"}}var c=window.open(standardAffUrl,"AmazonSA","status=yes, scrollbars=yes, resizable=yes, toolbar=yes, location=yes, directories=no, menubar=yes, width=950, height=700");MySpaceMusic.checkForPopUpBlocker(c)},ButtonClickTracking:function(){try{if(Purchase.BuyOptionObjects){var buyOptions=Purchase.BuyOptionObjects.split("|");if(buyOptions.length>0){var providers="";for(var j=0;j<buyOptions.length;j++){buyOptions[j]=eval("("+buyOptions[j]+")");providers+=buyOptions[j].providerName.toLowerCase()+","}providers=providers.substring(0,providers.length-1);var srcType=buyOptions[0].purchaseType=="albumonly"?"song":buyOptions[0].purchaseType;Purchase.MakeBeaconRequest(buyOptions[0].mediaId,srcType,providers,true)}}}catch(e){}},findTopLevelElement:function(a){while(!(Sys.UI.DomElement.containsCssClass(a,"msm_draggablesong")||Sys.UI.DomElement.containsCssClass(a,"ui-draggable"))){a=a.parentNode;if(a.tagName.toLowerCase()==="body"){return null}}return a},AddMusicSearchClickTracking:function(a){var b=Purchase.ClickedBuyButton;if(a.srcType==="song"){var c=Purchase.findTopLevelElement(b);if(c!=null){a.albumid=c.getAttribute("msm_albumid");a.searchid=c.getAttribute("msm_searchid");a.pagenum=c.getAttribute("msm_pn");a.filter=c.getAttribute("msm_filter");a.sort=c.getAttribute("msm_sort");a.origin=c.getAttribute("msm_origin");a.dorigin=c.getAttribute("msm_dorigin");a.action=c.getAttribute("msm_action");a.rank=c.getAttribute("msm_rank")}}else{if(a.srcType==="album"){if(b.parentNode.id==="AlbumBuy"||b.parentNode.id==="AlbumBuyNew"){c=b.parentNode;a.artistid=c.getAttribute("msm_artistid");a.searchid=c.getAttribute("msm_searchid");a.pagenum=c.getAttribute("msm_pn");a.filter=c.getAttribute("msm_filter");a.sort=c.getAttribute("msm_sort");a.origin=c.getAttribute("msm_origin");a.dorigin=c.getAttribute("msm_dorigin");a.action=c.getAttribute("msm_action");a.rank=c.getAttribute("msm_rank")}}}return a},MakeBeaconRequest:function(b,e,d,c){var a;if(c){a={type:"musicbuybtn",srcType:e};if(b&&b!==""){if(e==="song"){a.songid=b}else{if(e==="album"){a.albumid=b}else{if(e==="playlist"){a.playlistid=b}}}}if(!MySpace.Application.keyDisabled("DWBeaconMusicBuyButton")){a.prov=d;if(MySpace.Application.keyDisabled("MusicJV_BuyButtonMultipleProviders")){a.lb="0"}else{a.lb="1"}}if(MySpace.ClientContext.FunctionalContext==="SiteSearch"&&!MySpace.Application.keyDisabled("DWBeaconMusicSearch")&&Purchase.ClickedBuyButton){a=Purchase.AddMusicSearchClickTracking(a)}}else{if(!MySpace.Application.keyDisabled("DWBeaconMusicBuyButton")){a={type:"musicbuylb",ptype:e,prov:d}}}if(a){MySpace.Beacon.Request(a)}},ClickTrackingEnabled:function(){return MySpace.BeaconData&&MySpace.Beacon&&(!MySpace.Application.keyDisabled("DWBeaconMusicBuyButton")||MySpace.ClientContext.FunctionalContext==="SiteSearch"&&!MySpace.Application.keyDisabled("DWBeaconMusicSearch"))}};var Ringtones={Popup:null,open:function(b){var c="";var a=[];if(b!=""){b=b.replace(/[^A-Za-z0-9\s:-]/g,"").replace(/[\s]/g,"+");a=b.split(":");c=MusicPlayerControl.JambaUrl+a[0];switch(MySpace.Cookies.MSCulture.get_values().IPCulture.toLowerCase()){case"en-gb":var d=window.open(c,"JambaRingtones","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=757, height=721");MySpaceMusic.checkForPopUpBlocker(d);break;case"en-au":c="http://ad.jamster.com.au/landingpages/campaigns/int_o_flash/myspacemusic/?adv_partner=0017&partner_var=Music&artist="+a[0];var d=window.open(c,"JambaRingtones","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=757, height=721");MySpaceMusic.checkForPopUpBlocker(d);break;case"en-nz":c="http://ad.jamster.co.nz/landingpages/campaigns/int_o_flash/myspacemusic/?adv_partner=0017&partner_var=Music&artist="+a[0];var d=window.open(c,"JambaRingtones","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=757, height=721");MySpaceMusic.checkForPopUpBlocker(d);break;default:if(MySpace.ClientContext.FunctionalContext=="PopUpPlayer"){var d=window.open(c,"JambaRingtones","status=no, scrollbars=yes, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=780, height=820");MySpaceMusic.checkForPopUpBlocker(d)}else{jQuery("<iframe id='ringtonesIframe' width='763' height='820' scrolling='no' style='border:0;' src='"+c+"'></iframe>").dialog({width:"large:",height:700})}}}},openBeta:function(a){var b="";if(a!=""){a=a.replace(/[^A-Za-z0-9\s:-]/g,"").replace(/[\s]/g,"+");b=MusicPlayerControl.JambaUrl+a;switch(MySpace.Cookies.MSCulture.get_values().IPCulture.toLowerCase()){case"en-gb":var c=window.open(b,"JambaRingtones","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=757, height=721");MySpaceMusic.checkForPopUpBlocker(c);break;case"en-au":b="http://ad.jamster.com.au/landingpages/campaigns/int_o_flash/myspacemusic/?adv_partner=0017&partner_var=Music&artist="+a;var c=window.open(b,"JambaRingtones","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=757, height=721");MySpaceMusic.checkForPopUpBlocker(c);break;case"en-nz":b="http://ad.jamster.co.nz/landingpages/campaigns/int_o_flash/myspacemusic/?adv_partner=0017&partner_var=Music&artist="+a;var c=window.open(b,"JambaRingtones","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=757, height=721");MySpaceMusic.checkForPopUpBlocker(c);break;default:if(MySpace.ClientContext.FunctionalContext=="PopUpPlayer"){var c=window.open(b,"JambaRingtones","status=no, scrollbars=yes, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=780, height=820");MySpaceMusic.checkForPopUpBlocker(c)}else{jQuery("<iframe id='ringtonesIframe' width='763' height='820' scrolling='no' style='border:0;' src='"+b+"'></iframe>").dialog({width:"large:",height:700})}}}},close:function(){var a=MySpaceMusic.getPlayerFlashObject();if(a!=null){a.resumeAfterRingtonesClose()}},ClosePopupCallback:function(){Ringtones.Popup._hide();Purchase.ButtonClicked()}};var MySpaceMusic={focusStatus:true,playerLoaded:false,prevSongID:null,prevArtistIDArray:null,isPlayingAudioAd:false,createPopUp:function(j,h,f,d,e){var b="";var a=j;var c=document.createElement("div");var k=50;var l=100;var g;c.innerHTML="<div id='divWrapper' class='popup_wrapper' style='z-index:1000201;left:0px;width: "+l+"%;display:none;visibility:hidden;text-align:center;padding:auto auto auto auto;'><div class='appspopup_box' style='width:"+h+"px; height:"+f+"px; margin-left: auto;margin-right: auto;border: 4px solid #6698CB;'>"+d+"<div></div><div class='appspopup_content' style='margin:0 auto;'></div><div class='appspopup_buttons'></div></div></div>";g=$create(MySpace.UI._Popup,{title:b,content:a,left:0,top:k},null,null,c.firstChild);return g},textFormat:function(c){var a=arguments.length-1;for(var b=0;b<a;b++){c=c.replace(new RegExp("\\{"+b+"\\}","gi"),arguments[b+1])}return c},getElementPosition:function(a){var b=0;var c=0;if(a){do{b+=a.offsetLeft;c+=a.offsetTop}while((a=a.offsetParent)&&MySpaceMusic.getElementStyle(a,"position")!="relative")}return{x:b,y:c}},getElementStyle:function(a,c){var b="";if(a.currentStyle){b=a.currentStyle[c]}else{if(document.defaultView&&document.defaultView.getComputedStyle){b=document.defaultView.getComputedStyle(a,null).getPropertyValue(c)}else{b=a[c]}}return b},showPopupBlockerMessage:function(){var d=false;var a=document.createElement("iframe");a.setAttribute("src","/modules/music/pages/NoAmazonPopupMessaging.aspx");a.setAttribute("id","amazonNoPopUp");a.style.position="absolute";a.setAttribute("allowTransparency","true");a.setAttribute("frameBorder","0");a.style.backgroundColor="transparent";var b=300;var c=300;var f=document.getElementById(MusicPlayerControl.SwfObjectDiv);var g=MySpaceMusic.getElementPosition(f);if(f.offsetHeight>b){a.style.top=g.y+"px"}else{var e=g.y-(b-f.offsetHeight)/2;a.style.top=e+"px"}if((parseInt(MusicPlayerControl.Height)==1)&&(parseInt(MusicPlayerControl.Width)==1)){a.style.position="fixed";a.style.left="44%";a.style.top="44%"}else{a.style.left=g.x+"px";a.style.width=c+"px"}a.style.height=b+"px";a.style.borderStyle="none";document.body.appendChild(a)},getPlayerFlashObject:function(){var a=document.getElementsByTagName("object");for(i in a){if(typeof(a[i].playSong)!="undefined"){return a[i]}}return null},Focus:function(){MySpaceMusic.focusStatus=true},Blur:function(){MySpaceMusic.focusStatus=false},IsWindowFocused:function(){return MySpaceMusic.focusStatus},onBuyClickedFromHTML:function(a,b){if(typeof(SearchBox)=="undefined"||SearchBox.EnterOnSearch!=="true"){Purchase.ClickedBuyButton=a;MySpaceMusic.onBuyClicked(b)}},onBuyClicked:function(a){Purchase.BuyOptionObjects=a;Purchase.ButtonClicked()},onFindRingtoneClicked:function(a,b){if(MusicPlayerControl.AllowJamba){Ringtones.open(b)}},onPlayingTrack:function(d,a,b,c){if(MySpace.Ads&&MySpace.Ads.BandType){MySpace.Ads.BandType.Genre1=b[0];MySpace.Ads.BandType.Genre2=b[1];MySpace.Ads.BandType.Genre3=b[2]}if(d!=MySpaceMusic.prevSongID&&a!=MySpaceMusic.prevArtistIDArray){if(document.getElementById("feedResult")!=null){if(a[0]>0){if(document.getElementById("ArtistFeeds")!=null){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.GetMultipleArtistsUpdateFromArtistUpdatesApi(a,MySpaceMusic.WebSvrManager.ArtistUpdateSuccess,MySpaceMusic.WebSvrManager.OnFailure)}else{MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.GetMultipleArtistsUpdate(a,MySpaceMusic.WebSvrManager.ArtistUpdateSuccess,MySpaceMusic.WebSvrManager.OnFailure)}}else{document.getElementById("feedResult").innerHTML='<br/><div class="activityFeedNoUpdate">'+MySpaceRes.PopUpPlayer.NoUpdatesForThisArtist+"</div>"}}MySpaceMusic.prevSongID=d;MySpaceMusic.prevArtistIDArray=a}},showLoginOverlay:function(){MySpace.UI.LoginOverlayClient.show({loggedInCallback:MySpaceMusic.loggedInCallbackFunction,alreadyLoggedInCallback:MySpaceMusic.alreadyLoggedInCallbackFunction})},loggedInCallbackFunction:function(){document.getElementById("shell").onLogin(true,1)},alreadyLoggedInCallbackFunction:function(){document.getElementById("shell").onLogin(true,1)},onBuyAlbumClicked:function(d,a,c,b){Purchase.AlbumClicked("Amazon",d,a,c,b)},onBuySongClicked:function(b,c,a,d){Purchase.SongClicked("Amazon",b,c,a,d)},DisablePlayButtons:function(){try{jQuery.each($(".chrtSongd1d0CSS"),function(e,f){$(f).html($(f).html().replace(/onmouseover/,"offmouseover").replace(/onclick/,"offclick").replace(/title/,"offtitle").replace(/search_btn_play.gif/,"search_btn_playDisabled.gif"))})}catch(a){}try{images=document.getElementsByTagName("*");for(var d=0;d<images.length;d++){if(images[d].id.indexOf("PlayButton_")!=-1||images[d].id.indexOf("SimilarSong_")!=-1){images[d].onclick=function(){};try{images[d].setAttribute("onclick","");$clearHandlers(images[d])}catch(c){}images[d].style.opacity=".2";images[d].style.filter="alpha(opacity=20)";images[d].style["-ms-filter"]="progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"}}}catch(b){}},EnablePlayButtons:function(){try{jQuery.each($(".chrtSongd1d0CSS"),function(d,e){$(e).html($(e).html().replace(/offmouseover/,"onmouseover").replace(/offclick/,"onclick").replace(/offtitle/,"title").replace(/search_btn_playDisabled.gif/,"search_btn_play.gif"))})}catch(a){}try{images=document.getElementsByTagName("*");for(var c=0;c<images.length;c++){if(images[c].id.indexOf("PlayButton_")!=-1||images[c].id.indexOf("SimilarSong_")!=-1){images[c].style.opacity="";images[c].style.filter="";images[c].style["-ms-filter"]="";$addHandler(images[c],"click",function(){if((typeof(PlayButton)!=="undefined")){PlayButton.OnClickPlaySongButton(this)}else{if((typeof(ButtonControls)!=="undefined")){ButtonControls.OnClickPlaySongButton(this)}}})}}}catch(b){}},onLockPlayerControls:function(){MySpaceMusic.isPlayingAudioAd=true;MySpaceMusic.DisablePlayButtons()},onUnLockPlayerControls:function(){MySpaceMusic.EnablePlayButtons();MySpaceMusic.isPlayingAudioAd=false},checkForPopUpBlocker:function(a){if(a){a.focus()}else{MySpaceMusic.showPopupBlockerMessage()}},MedRecRefresh:function(a){if(MySpace.ClientContext.FunctionalContext=="UserViewProfile"||MySpace.ClientContext.FunctionalContext=="SitesProfile"){AdTooltip.open(a)}if(MySpace.ClientContext.FunctionalContext=="MusicDiscography"){AdTooltip.open()}},MedRecDismiss:function(){AdTooltip.close()},EnforceLogin:function(){try{if(window.XMLHttpRequest){LoginObj.req=new XMLHttpRequest();LoginObj.req.onreadystatechange=LoginObj.LoginRedirect;LoginObj.req.open("GET",LoginObj.ajaxActionHandler,true);LoginObj.req.send(null)}else{if(window.ActiveXObject){LoginObj.req=new ActiveXObject("Microsoft.XMLHTTP");if(LoginObj.req){LoginObj.req.onreadystatechange=LoginObj.LoginRedirect;LoginObj.req.open("GET",LoginObj.ajaxActionHandler,true);LoginObj.req.send()}}}}catch(a){}},popupAllowed:function(){var a=window.open("","","width=1,height=1,left=0,top=0,scrollbars=no");if(a){var b=true;a.close()}else{MySpaceMusic.showPopupBlockerMessage()}return b},onStop:function(g,a){if(typeof(PlayButton)!="undefined"){$(PlayButton._oldElem).removeClass(PlayButton._oldElem.className).addClass(PlayButton._oldClassName).attr("title",PlayButton._oldTitle);$(PlayButton.oldParentElem).removeClass("isPlaying")}else{if(typeof(ButtonControls)!="undefined"){if(typeof(ButtonControls._oldSrc)!="undefined"&&typeof(ButtonControls._oldTitle)!="undefined"){$(ButtonControls._oldElem).attr("src",ButtonControls._oldSrc).attr("title",ButtonControls._oldTitle)}$(ButtonControls.oldParentElem).removeClass("isPlaying").removeClass("songRowSelected");if(typeof(SongList)!="undefined"&&typeof(SongList.SongListView)!="undefined"){if(SongList.SongListView.navType=="3"&&typeof($("#PLSongList"))!="undefined"&&ButtonControls._currPlayingPLId===$("#PLSongList").attr("msm_plid")){var h=parseInt($("#PLSongList").attr("msm_plplaysongcnt"));if(h>0){var b=0;if(ButtonControls._oldParentElem!=null){var c=ButtonControls._oldParentElem;b=parseInt($(c).attr("sid_in_player"))+1}else{b=SongList.SongListView.deletedPLSongIndex;ButtonControls._oldElem=null}if(h>=b){var d=$("#PLSongList #songListUl li[sid_in_player='"+b+"']");if(typeof(d)!="undefined"&&d.length!=0){ButtonControls.playSongInPage($(d).find("img"))}}}}else{if(ButtonControls._currPlayingPLId!=="0"&&SongList.SongListView.isPLDeleted!=="1"){var b=0;if(ButtonControls._oldParentElem!=null){var c=ButtonControls._oldParentElem;b=parseInt($(c).attr("sid_in_player"))}else{b=SongList.SongListView.deletedPLSongIndex}var h=$(ButtonControls._currPlayingPLSongItems).length;if(h>b){var e=$(ButtonControls._currPlayingPLSongItems)[b];ButtonControls._oldParentElem=e;ButtonControls._oldElem=$(e).find("img");ButtonControls._oldSrc=MyPlaylistsControl.playIcon;ButtonControls._oldTitle=elem.title;var f=$("#playlistsUl li[msplaylistid='"+ButtonControls._currPlayingPLId+"']");if(!$(f).hasClass("playing")){$(f).addClass("playing")}document.getElementById("shell").playSong($(e).attr("msm_songid"),null,$(e).attr("msm_albumid"),null,true)}}}}}}},onPausingCurrentTrack:function(){if(typeof SongList.SongItem.onPlayerPause=="function"){SongList.SongItem.onPlayerPause()}},onPlayingCurrentTrack:function(){if(typeof SongList.SongItem.onPlayerPlay=="function"){SongList.SongItem.onPlayerPlay()}},PlaySongInPOMP:function(d,b,a,f){try{document.getElementById("shell").playSong(d,b,a,f)}catch(c){}},onPlayerLoaded:function(){MySpaceMusic.playerLoaded=true;if((typeof SongList.SongListView.onPlayerLoaded)!="undefined"){SongList.SongListView.onPlayerLoaded()}},onShareClick:function(n,o,k,b,d,l,e,c,f,g){var m;if(k>0){m="http://www.myspace.com/{0}/music/songs/{1}".Format(f,k)}else{if(b>0){m="http://www.myspace.com/{0}/music/albums/{1}?songid={2}".Format(f,b,k)}else{if(g>0){m="http://www.myspace.com/{0}/music/playlists/{1}?songid={2}".Format(f,g,k)}}}var j=MySpaceRes.SingleSong.addThisTitle.Format(l,e);var a=jQuery(this);var h=new MySpace.UI.ShareButton(a);h.openPopup({url:m,title:j})},onEmbedClicked:function(p,q,m,a,c,n,d,b,l){var j=document.getElementById("shell");j=j.getElementsByTagName("object")[0];var k=MySpaceMusic.getElementPosition(j);var h=document.getElementById("musicFlashPlayerContent");var g=document.createElement("div");g.style.background="#F3F3F3";g.style.borderStyle="solid";g.style.borderWidth="5px";g.style.zIndex="500";g.style.width="240px";g.style.height="40px";g.style.position="absolute";g.style.top=k.y+q+"px";g.style.left=k.x+p+"px";var f=document.createElement("input");f.id="codeInput";f.value="<table style='background-color:#EDEDED;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;' width='400px' border='0'><tr><td><embed style='display:inline;' wmode='transparent' id='FlashDiv' FlashVars='"+m+"' AllowScriptAccess='always' src='http://lads-stage.myspace.com/Embeds/SongEmbed/SongEmbed.swf' width='400' height='77'></td></tr><tr style='font-family: Arial, sans-serif;padding-left:10px;margin-left:10px;font-size:small;color:#666666;'><td style='background-color:#D8D8D8;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;padding:5px;'>";f.style.zIndex="1000";f.style.position="absolute";f.style.top="10px";f.style.left="15px";f.style.height="15px";f.style.width="205px";f.style.fontSize="65%";g.appendChild(f);var e=document.createElement("div");e.style.zIndex="2000";e.style.backgroundImage="url(http://www.myspace.com/music/modules/common/static/img/closeButton.png)";e.style.position="absolute";e.style.width="6px";e.style.height="5px";e.style.top="5px";e.style.right="5px";e.onmouseup=function(){h.removeChild(g)};var o=seoTextReceved;g.appendChild(e);h.appendChild(g);jQuery.ajax({url:"http://www.myspace.com/music/song-embed?songid="+m+"&seoText=true",success:o})},seoTextreceved:function(b){var a=document.getElementById("codeInput");a.value+=b+"</td></tr></table>";a.style.visibility="visible"},AddThisFlashJS:function(){this.flashID=null;this.debug=false;this.divX=0;this.divY=0;this.addThisFlashDiv=null;this.init=function(d,a){this.debug=(a==true)?true:false;this.flashID=d;var e=document.getElementById(this.flashID);var f;if(jQuery.browser.mozilla&&e.getElementsByTagName("object").length>0){var b=e.getElementsByTagName("object")[0];var c=MySpaceMusic.getElementPosition(b);if(c.x==0&&c.y==0){f=MySpaceMusic.getElementPosition(e)}else{f=c}}else{f=MySpaceMusic.getElementPosition(e)}this.divX=f.x;this.divY=f.y;this.addThisFlashDiv=document.getElementById("AddThisFlashDIV");if(!this.addThisFlashDiv){this.addThisFlashDiv=document.createElement("div");this.addThisFlashDiv.setAttribute("id","AddThisFlashDIV");this.addThisFlashDiv.style.position="absolute";this.addThisFlashDiv.style.zIndex=100000;this.addThisFlashDiv.style.visibility="hidden";this.addThisFlashDiv.style.width=(!this.debug)?"0px":"16px";this.addThisFlashDiv.style.height=(!this.debug)?"0px":"16px";if(this.debug){this.addThisFlashDiv.style.border="1px solid #FF0000"}document.getElementById(this.flashID).parentNode.appendChild(this.addThisFlashDiv)}};this.open=function(b,e,f,d,c,a){this.init(b,a);this.addThisFlashDiv.style.top=this.divY+d+"px";this.addThisFlashDiv.style.left=this.divX+c+"px";this.addThisFlashDiv.style.height="1px";this.addThisFlashDiv.style.width="1px";if(this.debug){this.addThisFlashDiv.style.visibility="visible"}else{return addthis_open(this.addThisFlashDiv,"",f,e)}};this.close=function(){if(this.debug){this.addThisFlashDiv.style.visibility="hidden"}else{addthis_close()}};this.sendto=function(){if(this.debug){this.addThisFlashDiv.style.visibility="hidden"}else{return addthis_sendto()}}},Login:{ajaxActionHandler:"/Modules/Music/Handlers/MusicUtil.ashx?action=EnforceLogin",req:null,_loginWin:null,Sleep:function(a){setTimeout("Login.EnforceLoginOpenComplete()",a)},LoginRedirect:function(){if(MySpaceMusic.Login.req.readyState==4){var json=eval("("+MySpaceMusic.Login.req.responseText+")");if(json.ServerResponse.IsRequestSuccessful){jQuery.comm.send("location.href",json.ServerResponse.DisplayText)}}},EnforceLoginPOMP:function(a){MySpaceMusic.Login._loginWin=window.open(decodeURI(a),"newWin","","");MySpaceMusic.Login.Sleep(1000)},EnforceLoginOpenComplete:function(){if(MySpaceMusic.Login._loginWin==null){MySpaceMusic.Login.Sleep(1000)}else{if(MySpaceMusic.Login._loginWin.document==null){MySpaceMusic.Login.Sleep(1000)}else{var a=MySpaceMusic.Login._loginWin.document.getElementById(MusicPlayerControl.SwfObjectDiv);if(a==null){MySpaceMusic.Login.Sleep(1000)}else{MySpaceMusic.Login._loginWin.LoginObj.EnforceLogin()}}}},EnforceLogin:function(){try{if(window.XMLHttpRequest){MySpaceMusic.Login.req=new XMLHttpRequest();MySpaceMusic.Login.req.onreadystatechange=MySpaceMusic.Login.LoginRedirect;MySpaceMusic.Login.req.open("GET",MySpaceMusic.Login.ajaxActionHandler,true);MySpaceMusic.Login.req.send(null)}else{if(window.ActiveXObject){MySpaceMusic.Login.req=new ActiveXObject("Microsoft.XMLHTTP");if(MySpaceMusic.Login.req){MySpaceMusic.Login.req.onreadystatechange=MySpaceMusic.Login.LoginRedirect;MySpaceMusic.Login.req.open("GET",MySpaceMusic.Login.ajaxActionHandler,true);MySpaceMusic.Login.req.send()}}}}catch(a){}},LoginToPlay:function(){if(MySpace.ClientMaintenanceConfigs&&MySpace.ClientMaintenanceConfigs.musicloginoverlay!=0&&MySpace.UI.LoginOverlayAPI){MySpace.UI.LoginOverlayAPI.show({messageResourceId:"MusicTimelimitExceeded",cancelLoginCallback:function(){if(PlayButton.Player().overlayClosed){PlayButton.Player().overlayClosed()}}})}}}};if(typeof($addHandler)!=="undefined"){if(jQuery.browser.msie){$addHandler(document,"focusout",MySpaceMusic.Blur);$addHandler(document,"focusin",MySpaceMusic.Focus)}else{$addHandler(window,"blur",MySpaceMusic.Blur);$addHandler(window,"focus",MySpaceMusic.Focus)}}var popup;function ClosePopUp(){popup._hide();popupId=document.getElementById("divWrapper");document.body.removeChild(popupId)}killPopupBlockerMessaging=function(){popupFrame=document.getElementById("amazonNoPopUp");document.body.removeChild(popupFrame)};String.prototype.Format=function(){var b=this;for(var a=0;a<arguments.length;a++){var c=new RegExp("\\{"+a+"\\}","g");b=b.replace(c,arguments[a])}return b};namespace("MySpace.Web.Modules.MusicV2.Services");MySpace.Web.Modules.MusicV2.Services.PopUpPlayer=function(){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.initializeBase(this);this._timeout=0;this._userContext=null;this._succeeded=null;this._failed=null};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.prototype={GetMultipleArtistsUpdate:function(a,c,b,d){return this._invoke(MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_path(),"GetMultipleArtistsUpdate",false,{ArtistIds:a},c,b,d)},GetArtistUpdate:function(a,c,b,d){return this._invoke(MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_path(),"GetArtistUpdate",false,{ArtistId:a},c,b,d)},GetMultipleArtistsUpdateFromArtistUpdatesApi:function(a,c,b,d){return this._invoke(MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_path(),"GetMultipleArtistsUpdateFromArtistUpdatesApi",false,{ArtistIds:a},c,b,d)}};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.registerClass("MySpace.Web.Modules.MusicV2.Services.PopUpPlayer",Sys.Net.WebServiceProxy);MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance=new MySpace.Web.Modules.MusicV2.Services.PopUpPlayer();MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.set_path=function(a){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._path=a};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_path=function(){return MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._path};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.set_timeout=function(a){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._timeout=a};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_timeout=function(){return MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._timeout};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.set_defaultUserContext=function(a){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._userContext=a};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_defaultUserContext=function(){return MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._userContext};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.set_defaultSucceededCallback=function(a){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._succeeded=a};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_defaultSucceededCallback=function(){return MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._succeeded};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.set_defaultFailedCallback=function(a){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._failed=a};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_defaultFailedCallback=function(){return MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._failed};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.set_path("/Modules/Music/Handlers/PopUpPlayer.asmx");MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.GetMultipleArtistsUpdate=function(a,c,b,d){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance.GetMultipleArtistsUpdate(a,c,b,d)};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.GetArtistUpdate=function(a,c,b,d){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance.GetArtistUpdate(a,c,b,d)};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.GetMultipleArtistsUpdateFromArtistUpdatesApi=function(a,c,b,d){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance.GetMultipleArtistsUpdateFromArtistUpdatesApi(a,c,b,d)};MySpaceMusic.WebSvrManager={ArtistUpdateSuccess:function(c,a){if(c!=null){var b=document.getElementById("feedResult");if(b!=null){b.innerHTML=c}}},OnFailure:function(a){}};var PopUpPlayer={photoCount:5,prevArtistIDs:[],initialize:function(){window.$=jQuery;if(MySpaceMusic){MySpaceMusic.onPlayingTrack=PopUpPlayer.onPlayingTrack}jQuery("div.myspacelogo").click(PopUpPlayer.onLogoClick)},onLogoClick:function(){jQuery.comm.send("location.href","/")},onPlayingTrack:function(songID,artistIDs,genreIDs,isPremium,currentIndex){var json=Sys.Serialization.JavaScriptSerializer.serialize(artistIDs);if(artistIDs!=PopUpPlayer.prevArtistIDs){var feedResult=document.getElementById("feedResult");if(artistIDs[0]>0){if(feedResult){jQuery.ajax({type:"POST",url:"/Modules/Music/Handlers/PopUpPlayer.asmx/GetMultipleArtistsUpdate",data:"{ ArtistIds: "+json+"}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(result){if(result!=null){if(feedResult!=null){feedResult.innerHTML=String(result.d)}}}})}}var photoContainer=document.getElementById("photoContainer");if(photoContainer){var artistID=artistIDs[0];jQuery.ajax({type:"POST",url:"/Modules/Music/Handlers/PopUpPlayer.asmx/GetArtistPopularPhotos",data:"{ownerId: "+artistID+"}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(result){if(result!=null){$("article.PhotosModule").css("display","block");$(photoContainer).html("");var imageData=eval(result.d);if(imageData.length>1){$(imageData).each(function(i){var data=imageData[i];$(photoContainer).append($('<a href="/'+artistID+"/photos/"+data.PhotoId.Id+'" target="_blank"><img src="'+data.ThumbUrl+'" /></a>'))})}else{$("article.PhotosModule").css("display","none")}}$("span#title a.profileLink").attr("href","/"+artistID)}})}else{feedResult.innerHTML='<br/><div class="activityFeedNoUpdate">'+MySpaceRes.PopUpPlayer.NoUpdatesForThisArtist+"</div>"}MySpaceMusic.prevArtistIDArray=artistIDs}}};PopUpPlayer.initialize();(function(a){var d,b,e=true;function p(r){d={};if(r){for(var q in r){d[q]=r[q]}}if(MySpace.ClientContext.UserId<=0){f();j()}else{c()}return false}function k(q){e=q;b.dialog("close")}function j(){if(!b){b=a("<div/>");b.attr("id","loginOverlay");var q,r="GetLoginOverlayForm.ashx";if(d.redirectUrl){q="dest="+d.redirectUrl+"&"}else{q="dest="+window.location+"&"}if(d.messageResourceId){q+="messageResourceId="+d.messageResourceId}if(q){r+="?"+q}MySpace.UI.Pages.Data.request(r,null,function(u){var t;try{t=JSON.parse(u.get_responseData())}catch(s){o()}if(t){if(t.Code=="0"){o()}else{b.html(t.Data[0]);MySpace.UI.LoginManager.wireOverlayForm();h(1100,b);b.find('button[name="loginBtn"]').click(function(v){h(1101,b)});b.find(".needAccount").click(function(v){h(1102,b)});b.find(".forgotPassword").click(function(v){h(1103,b)})}b.closest(".glue-dialog").removeClass("pending")}},null,null,null,null,"Login");b.dialog({dialogClass:"pending customPadding",close:l,width:"medium",minHeight:300})}else{b.dialog("open")}}function f(){g("SplashStatus")}function o(){d.overlayDisabledCallback&&d.overlayDisabledCallback()}function c(){d.alreadyLoggedInCallback&&d.alreadyLoggedInCallback()}function n(q){h(1106,b,q);d.loggedInCallback&&d.loggedInCallback();f()}function m(){h(1105,b)}function l(){if(e){h(1104,b)}d.cancelLoginCallback&&d.cancelLoginCallback();return false}function g(q){document.cookie=q+"=; domain=."+document.domain+"; expires=Sat, 07-Feb-1981 20:22:04 GMT; path=/"}function h(r,q,v){if(!v){v=-2}var u=b.find(".alertbox > p").html(),t=u&&(r==1100||r==1105)?encodeURIComponent(u):"";var s={tmid:13,eid:r,em:a("#emailOverlay").val(),kfl:a("#rememberOverlay").val()=="false"?"f":"t",msg:t};if(r==1106){s.new_uid=v}MySpace.Beacon.Request(s)}namespace("MySpace.UI.LoginOverlayAPI",{show:p,hide:k,onSuccess:n,onFailedLoginAttempt:m})})(jQuery);
