var Browser=function(){var a=navigator.userAgent.toLowerCase();return{version:(a.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(a),opera:/opera/.test(a),msie:/msie/.test(a)&&!(/opera/.test(a)),mozilla:/mozilla/.test(a)&&!(/(compatible|webkit)/.test(a))}}();var ScriptFragment="<script[^>]*>([\\S\\s]*?)</script>";var JSONFilter=/^\/\*-secure-([\s\S]*)\*\/\s*$/;var $break={};function $A(a){if(!a){return[]}if(a.toArray){return a.toArray()}var b=a.length||0,c=new Array(b);while(b--){c[b]=a[b]}return c}if(Browser.opera){$A=function(a){if(!a){return[]}if(!(typeof a=="function"&&a=="[object NodeList]")&&a.toArray){return a.toArray()}var b=a.length||0,c=new Array(b);while(b--){c[b]=a[b]}return c}}function $$(a){return typeof(a)=="string"?document.getElementById(a):a}function $CSS(c,b,a){if(b){if(arguments.callee.hasQuerySelectorAll){b=typeof(b)=="string"?document.getElementById(b):b;return arguments.callee.rootedQuerySelectorAll(b,c)}else{return MySpace.Utils.Selector.query(c,b,a)}}else{if(arguments.callee.hasQuerySelectorAll){return $A(document.querySelectorAll(c))}else{return MySpace.Utils.Selector.query(c,b,a)}}}$CSS.hasQuerySelector=(function(){return !!document.querySelector})();$CSS.hasQuerySelectorAll=(function(){return !!document.querySelectorAll})();$CSS.rootedQuerySelectorAll=(function(b,c){var a=1;return function(f,h){var g=f.id;f.id="rooted"+(a++);try{return $A(f.querySelectorAll("#"+f.id+" "+h))}catch(d){throw d}finally{f.id=g}}})();var mySpaceTv=(function(){var a;var c=[];var b=[];var e="http://x.myspacecdn.com/modules/videos/static/img/mysubs/no-thumbnail.gif";var d="http://x.myspacecdn.com/modules/common/static/img/no_pic.gif";return{delayLoad:function(g,h,f){c[c.length]=[g,h,f];b[f]=false},performDelayLoad:function(g){if(!b[g]){b[g]=true;var h=[];for(var f=(c.length-1);f>=0;f--){if(c[f][2]==g){c[f][0].onload="";c[f][0].src=c[f][1];h[h.length]=c[f][0]}}return h}},extend:function(f,h){for(var g in h){f[g]=h[g]}return f},_domReady:function(){if(arguments.callee.done){return}arguments.callee.done=true;if(this._timer){clearInterval(this._timer)}for(var g=0;g<a.length;g++){var f=a[g];f.call()}a=null},onReady:function(h){if(!a){var g=this._domReady;if(g.done){return h()}if(document.addEventListener){if(navigator.userAgent.indexOf("AppleWebKit/")>-1){this._timer=window.setInterval(function(){if(/loaded|complete/.test(document.readyState)){g()}},0);window.onload=g}else{document.addEventListener("DOMContentLoaded",g,false)}}else{(function(){try{document.documentElement.doScroll("left")}catch(f){this._timer=window.setTimeout(arguments.callee,50);return}g()})();document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;g()}}}a=[]}a.push(h)},adjustImage:function(f,k,h){if(!(f=$$(f))){return}function j(){return(f.height/f.width)}function i(){return(h/k)}function g(n,m){if(n>m){var l=Math.ceil((k/f.clientWidth)*f.clientHeight);f.style.height=l+"px";f.style.width="auto"}else{var o=Math.ceil((h/f.clientHeight)*f.clientWidth);f.style.width=o+"px";f.style.height="auto"}}return g(j(),i())},adjustProfileImage:function(i,k,j){if(!(i=$$(i))){return}var n=i.width;var m=i.height;var l=0;var f;var g;var h;if(n>k){l=k/n;i.width=k;f=Math.floor(m*l);if(f>j){l=j/f;i.height=j;i.width=Math.floor(k*l)}else{i.height=f}}else{if(m>j){l=j/m;i.height=j;g=Math.floor(n*l);if(g>k){l=k/g;i.width=k;i.height=Math.floor(j*l)}else{i.width=g}}}},imageError:function(f,g){f=typeof(f)=="string"?$$(f):f;f.src=g;f.onload=null},imageLoad:function(f,j,g,i){f=typeof(f)=="string"?$$(f):f;if(f.width<=5||f.height<=30){i?f.src=d:f.src=e;f.onload=null;return}if(j>0&&g>0){if(i){this.adjustProfileImage(f,j,g)}else{this.adjustImage(f,j,g)}}f.onload=null;f.onerror=null},perr:function(f){this.imageError(f,d)},pload:function(f,i,g){this.imageLoad(f,i,g,true)},verr:function(f){this.imageError(f,e)},vload:function(f,i,g){this.imageLoad(f,i,g,false)}}}());function perr(a){mySpaceTv.perr.call(mySpaceTv,a)}function pload(a,c,b){mySpaceTv.pload.call(mySpaceTv,a,c,b)}function verr(a){mySpaceTv.verr.call(mySpaceTv,a)}function vload(a,c,b){mySpaceTv.vload.call(mySpaceTv,a,c,b)}function delayLoad(a,c,b){mySpaceTv.delayLoad.call(mySpaceTv,a,c,b)};
