(function(C){function ad(){H||(H=!0,W(I,function(b){T(b);}));}function ac(a,b){var f=C.createElement("script");f.type="text/"+(a.type||"javascript"),f.src=a.src||a,f.async=!1,f.onreadystatechange=f.onload=function(){var c=f.readyState;!b.done&&(!c||/loaded|complete/.test(c))&&(b.done=!0,b());},(C.body||E).appendChild(f);}function ab(c,d){if(c.state==S){return d&&d();}if(c.state==R){return O.ready(c.name,d);}if(c.state==Q){return c.onpreload.push(function(){ab(c,d);});}c.state=R,ac(c.url,function(){c.state=S,d&&d(),W(K[c.name],function(b){T(b);}),Y()&&H&&W(K.ALL,function(b){T(b);});});}function aa(c,d){c.state===undefined&&(c.state=Q,c.onpreload=[],ac({src:c.url,type:"cache"},function(){Z(c);}));}function Z(b){b.state=P,W(b.onpreload,function(c){c.call();});}function Y(d){d=d||L;var e;for(var f in d){if(d.hasOwnProperty(f)&&d[f].state!=S){return !1;}e=!0;}return e;}function X(b){return Object.prototype.toString.call(b)=="[object Function]";}function W(d,e){if(!!d){typeof d=="object"&&(d=[].slice.call(d));for(var f=0;f<d.length;f++){e.call(d,d[f],f);}}}function V(e){var f;if(typeof e=="object"){for(var g in e){e[g]&&(f={name:g,url:e[g]});}}else{f={name:U(e),url:e};}var h=L[f.name];if(h&&h.url===f.url){return h;}L[f.name]=f;return f;}function U(e){var f=e.split("/"),g=f[f.length-1],h=g.indexOf("?");return h!=-1?g.substring(0,h):g;}function T(b){b._done||(b(),b._done=1);}var E=C.documentElement,G,H,I=[],J=[],K={},L={},M=C.createElement("script").async===!0||"MozAppearance" in C.documentElement.style||window.opera,N=window.head_conf&&head_conf.head||"head",O=window[N]=window[N]||function(){O.ready.apply(null,arguments);},P=1,Q=2,R=3,S=4;M?O.js=function(){var d=arguments,e=d[d.length-1],f={};X(e)||(e=null),W(d,function(a,b){a!=e&&(a=V(a),f[a.name]=a,ab(a,e&&b==d.length-2?function(){Y(f)&&T(e);}:null));});return O;}:O.js=function(){var c=arguments,e=[].slice.call(c,1),f=e[0];if(!G){J.push(function(){O.js.apply(null,c);});return O;}f?(W(e,function(b){X(b)||aa(V(b));}),ab(V(c[0]),X(f)?f:function(){O.js.apply(null,e);})):ab(V(c[0]));return O;},O.ready=function(a,d){if(a==C){H?T(d):I.push(d);return O;}X(a)&&(d=a,a="ALL");if(typeof a!="string"||!X(d)){return O;}var e=L[a];if(e&&e.state==S||a=="ALL"&&Y()&&H){T(d);return O;}var g=K[a];g?g.push(d):g=K[a]=[d];return O;},O.ready(C,function(){Y()&&W(K.ALL,function(b){T(b);}),O.feature&&O.feature("domloaded",!0);});if(window.addEventListener){C.addEventListener("DOMContentLoaded",ad,!1),window.addEventListener("load",ad,!1);}else{if(window.attachEvent){C.attachEvent("onreadystatechange",function(){C.readyState==="complete"&&ad();});var D=1;try{D=window.frameElement;}catch(F){}!D&&E.doScroll&&function(){try{E.doScroll("left"),ad();}catch(b){setTimeout(arguments.callee,1);return;}}(),window.attachEvent("onload",ad);}}!C.readyState&&C.addEventListener&&(C.readyState="loading",C.addEventListener("DOMContentLoaded",handler=function(){C.removeEventListener("DOMContentLoaded",handler,!1),C.readyState="complete";},!1)),setTimeout(function(){G=!0,W(J,function(b){b();});},300);})(document);var Microgroove=Microgroove||{};Microgroove.helpers={loadFile:function(a){if(a.indexOf("js")!=-1){var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("src",a);}else{if(a.indexOf("css")!=-1){var b=document.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("type","text/css");b.setAttribute("href",a);}}if(typeof b!="undefined"){document.getElementsByTagName("head")[0].appendChild(b);}},urlEncode:function(f){var g="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.!~*'()";var d="0123456789ABCDEF";var c="";for(var e=0;e<f.length;e++){var a=f.charAt(e);if(a==" "){c+="+";}else{if(g.indexOf(a)!=-1){c+=a;}else{var b=a.charCodeAt(0);if(b>255){alert("Unicode Character '"+a+"' cannot be encoded using standard URL encoding.\n(URL encoding only supports 8-bit characters.)\nA space (+) will be substituted.");c+="+";}else{c+="%";c+=d.charAt((b>>4)&15);c+=d.charAt(b&15);}}}}return c;},setCookie:function(b,d,a,c){document.cookie=b+"="+escape(d)+((a==null)?"":("; expires="+a.toGMTString()))+((c)?"; path="+c:"");},getCookie:function(a){var b=a+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(b);if(offset!=-1){offset+=b.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length;}return unescape(document.cookie.substring(offset,end));}}},killCookie:function(a,b){theValue=Microgroove.helpers.getCookie(a);if(theValue){document.cookie=a+"="+theValue+"; expires=Fri, 13-Apr-1970 00:00:00 GMT"+((b)?"; path="+b:"");}},setMultiValueCookie:function(f,e,h,a,g){if(e.length!=h.length){return;}var b=f+" = ";var c="";for(var d=0;d<h.length;d++){if(c.length>0){c+="&";}c+=e[d]+"="+escape(h[d]);}b+=c;b+=a==null?"":"; expires="+a.toUTCString();b+=(g)?"; path="+g:"";document.cookie=b;},getMultiValueCookie:function(b,a){var c=Microgroove.helpers.getCookie(b);if(c==""){return"";}return Microgroove.helpers.paramaterFrom(a,c);},paramaterFrom:function(b,a){a="="+a+"&";if(a.indexOf(b)!=-1){locStart=a.indexOf(b)+b.length+1;locEnd=a.indexOf("&",locStart);if(locEnd<locStart){locEnd=a.length;}return a.substring(locStart,locEnd);}else{return null;}},replaceString:function(a,d,c){for(var b=0;b<a.length;b++){if(a.substring(b,b+d.length)==d){a=a.substring(0,b)+c+a.substring(b+d.length,a.length);}}return a;},unPackUrl:function(a){return Microgroove.helpers.replaceString(Microgroove.helpers.replaceString(Microgroove.helpers.replaceString(Microgroove.helpers.replaceString(a,"!","?"),"^","&"),"|","="),"$","/");},changeSortOrder:function(a,c,b){Microgroove.helpers.setCookie(a,c,null,"/");Microgroove.helpers.redirectLocation(b);},redirectLocation:function(a){if(a){var b=a.replace(/#[^&.]*/,"");window.location.href=b;}},getRef:function(a){if(!document.getElementById){return document[a];}else{return document.getElementById(a);}},trim:function trim(a,b){return(a.length>b)?a.substring(0,b)+"...":a;}};var setCookie=Microgroove.helpers.setCookie;var getCookie=Microgroove.helpers.getCookie;Microgroove.viewTracking={trackView:function(b,a,d,l,g,i){function e(n){var o=document.cookie.split(";");for(var p=0;p<o.length;p++){var q=o[p].split("=");if(q.length==2&&q[0].replace(" ","")==n){return q[1];}}return null;}function j(n,o){document.cookie=n+"="+o+";path=/;";}function f(t,o,n){var p=o+"_"+n;var s=t.split("|");for(var q=0;q<s.length;q++){var r=s[q].split(":");if(r.length==2&&r[0]==p){return r[1];}}return 0;}function k(u,o,n,v){var p=o+"_"+n;var t=u.split("|");var q=false;u="";for(var r=0;r<t.length;r++){var s=t[r].split(":");if(s.length==2){if(s[0]==p){u+=p+":"+v+"|";q=true;}else{u+=s[0]+":"+s[1]+"|";}}}if(!q){u+=p+":"+v+"|";}return u;}if(!i){var h=new Image();h.src="/aspnet_client/microgroove/tracking/tracking.ashx?contentTypeID="+b+"&contentID="+a+"&ttl="+l+"&h="+g+"&t="+(new Date()).getTime();}var c=e("TrackViewCount");if(c==null){c=k("",b,a,d);}var m=f(c,b,a);if(m!=0){d=m;}if(!i){d++;}c=k(c,b,a,d);j("TrackViewCount",c);return d;}};Microgroove.pageTracking=function(){var c=function(d){};var b=function(d){};var a=function(d,e){return"/"+d+"/"+e;};return{trackPage:c,trackModal:b,getTrackingPath:a};}();Microgroove.toolTips=function(){var c;var d;var b=false;var f=function(m){if(m!=0){$.getJSON("/webservices/v4.0/int/memberservice.aspx/GetMember",{memberID:m},function(n){if(n){k("<div style='margin:10px;'><img src='"+n.ImageUrl+"'></div><div style='margin-top:10px;margin-left:10px;'><strong>User: </strong>"+n.Username+"</div><div style='margin-left:10px;'><strong>Location: </strong>"+n.Location+"</div><div style='margin-left:10px;margin-bottom:10px;'><strong>Joined: </strong>"+n.ConfirmedDate+"</div>");}});}};var j=function(){$("body").prepend("<div id='ToolTip' style='position:absolute; width:100px; top:0px; left:0px; z-index:11; visibility:hidden;'></div>");if(!$.browser.msie){document.captureEvents(Event.MOUSEMOVE);}document.onmousemove=i;};var g=function(){if($.browser.msie){return document.body.offsetHeight;}else{return window.innerHeight;}};var h=function(){if($.browser.msie){return document.body.offsetWidth;}else{return window.innerWidth;}};var l=function(){if(!document.getElementById||!document.getElementById("ToolTip")||!c||!d){return;}var m=(c+20)+"px";if((c+270)>h()){m=(c-240)+"px";}document.getElementById("ToolTip").style.left=m;document.getElementById("ToolTip").style.top=(d)+"px";};var i=function(m){if(!document.getElementById||!document.getElementById("ToolTip")){return;}if($.browser.msie){var n=(document.documentElement&&document.documentElement.scrollTop)?document.documentElement.scrollTop:document.body.scrollTop;c=event.clientX+document.body.scrollLeft;d=event.clientY+n;}else{c=m.pageX;d=m.pageY;}if(c<0){c=0;}if(d<0){d=0;}if(b){l();}};var a=function(m){f(m);return"<div style='margin:10px;'>Loading...</div>";};var e=function(n,m){if(!document.getElementById||!document.getElementById("ToolTip")){return;}if(n){l();b=true;document.getElementById("ToolTip").style.visibility="visible";k(m);}else{b=false;document.getElementById("ToolTip").style.visibility="hidden";k("");}};var k=function(m){if(!document.getElementById||!document.getElementById("ToolTip")){return;}document.getElementById("ToolTip").innerHTML="<div style='width:220px;border:1px solid black;background-color:white;font-family:verdana, arial, sans-serif;font-size:8pt;color:black;'>"+m+"</div>";};$(document).ready(function(){j();});return{getMember:a,showHideTooltip:e};}();var ShowHideTooltip=Microgroove.toolTips.showHideTooltip;var GetMember=Microgroove.toolTips.getMember;Microgroove.forms={clearMemberImage:function(b,a,c){$("#"+b).val("true");$("#"+a).hide();$("#"+c).hide();},validateDropdowns:function(b,a){if(a.Value==="null"){a.IsValid=false;}else{a.IsValid=true;}},removeArtistFan:function(b,a){if(!confirm("Removing yourself as a fan will also remove you from that artist's email list. Do you want to continue?")){return;}Microgroove.forms.clearArtistFanCheckbox(b);Microgroove.forms.hideArtistFanRow(b);},hideArtistFanRow:function(a){$("span[artistfanof*='"+a+"']").slideUp();},clearArtistFanCheckbox:function(a){$("input[artistfanof*='"+a+"']").attr("checked",false);}};var GetMail=function(a,b){window.document.location.href=b+$("#"+a).val();};Microgroove.webIM=function(){var e=10000;var j=0;var g=0;var a=function(){if(!f()){$.getJSON("/webservices/v4.0/int/messagingservice.aspx/IsMessageWaiting",{memberID:g},function(o){if(g!=0&&!f()&&o&&o.SenderID&&o.SenderID!=0&&!d(o.SenderID)){Microgroove.windowManager.open("/aspnet_client/microgroove/windows/chat/intro.aspx?t="+o.SenderID+"&ta="+Microgroove.helpers.urlEncode(o.Author)+"&tl="+Microgroove.helpers.urlEncode(o.AuthorLocation)+"&ti="+Microgroove.helpers.urlEncode(o.ImageUrl)+"&m="+Microgroove.helpers.urlEncode(o.MessageBody),"IntroWindow");setChatting(o.SenderID,true);}n();});}else{n();}};var f=function(){return(Microgroove.helpers.getCookie("Chatting")!=null&&Microgroove.helpers.getCookie("Chatting")=="Disabled");};var c=function(){Microgroove.helpers.setCookie("Chatting","Enabled",null,"/");};var b=function(){Microgroove.helpers.setCookie("Chatting","Disabled",null,"/");};var i=function(s,r){var o="";if(Microgroove.helpers.getCookie("ChattingRecipients")!=null){o=Microgroove.helpers.getCookie("ChattingRecipients");}var t=o.split("|");var p=false;o="";for(var q=0;q<t.length;q++){if(t[q]==s&&r){o+=s+"|";p=true;continue;}if(t[q]==s&&!r){p=true;continue;}o+=t[q]+"|";}if(!p&&r){o+=s+"|";}Microgroove.helpers.setCookie("ChattingRecipients",o,null,"/");};var d=function(q){var o="";if(Microgroove.helpers.getCookie("ChattingRecipients")!=null){o=Microgroove.helpers.getCookie("ChattingRecipients");}else{return false;}var r=o.split("|");for(var p=0;p<r.length;p++){if(r[p]==q){return true;}}return false;};var h=function(r){if(g==r){alert("When you click this icon next to another member that is currently online, \ryou can start an Instant Messaging conversation with that member, \rfrom right within this site.");return;}if(r==0){return;}var s="/aspnet_client/microgroove/windows/chat/default.aspx?t="+r;var o=screen.availWidth;var q=screen.availHeight;var t=327;var p=390;wHandle=null;wHandle=window.open(s,"ChatWindow_"+r,"width="+t+",height="+p+",left="+((o-t-10)*0.5)+",top="+((q-p-30)*0.5)+",scrollbars=no");if(wHandle.blur){wHandle.focus();}};var n=function(){j=setTimeout("Microgroove.webIM.callService()",e);};var m=function(){alert("You need to be a logged in member to WebIM other members. Please log in or register.");};var l=function(){alert("You need to be a logged in member to WebIM other members. Please log in or register.");};var k=function(){alert("The person you are trying to WebIM is currently offline.");};return{init:function(o){if(o!=0){g=o;n();}},callService:a,isChattingDisabled:f,enableChatting:c,disableChatting:b,setChatting:i,getChatting:d,openChatWindow:h};}();var OpenChatWindow=Microgroove.webIM.openChatWindow;var shadowboxWindowManager=function(){var r=[];var m=false;var n,o;var q=function(t){var s=Microgroove.helpers.paramaterFrom("vpl",t);return t.replace(s,"false");};var j=function(s){return"javascript:"+s;};var k=function(){var s="*[href^='OpenModalWindow'], *[href^='RedirectLocation'], *[href^='Microgroove.windowManager.open'], *[href^='Microgroove.helpers.redirectLocation']";$(s).each(function(){var t=$(this).attr("href");$(this).attr("href",j(t));});};var l=function(t){for(var s=0;s<r.length;s++){if(r[s].id==t){return r[s];}}return null;};var p=function(){if(m){Microgroove.helpers.redirectLocation(document.location.href);return;}m=false;};var g=function(s){n=s;};var h=function(s){o=s;};var f=function(s){r=s;for(var t=0;t<r.length;t++){r[t].content=r[t].url;r[t].player="iframe";}};var a=function(s){var t=l(s.id);if(t){return;}s.content=s.url;s.player="iframe";r.push(s);};var i=function(u,s){if(arguments.length>2){var v=l(s);if(!v){return;}if(u){v.content=u;}m=v.reloadOnClose;Shadowbox.open(v);return;}if((typeof o!="undefined")&&(typeof o=="function")){var t=o(function(){i(u,s,true);});if(t){return;}}i(u,s,true);};var b=function(){m=false;if(arguments.length>0){return d(arguments[0]);}return c();};var e=function(){$("#sb-container").hide();};var d=function(t){if(arguments.length>1){var t=q(t);Microgroove.helpers.redirectLocation(t);return;}if((typeof n!="undefined")&&(typeof n=="function")){e();var s=n(function(){d(t,true);});if(s){return;}}d(t,true);};var c=function(){if(arguments.length>0){Shadowbox.close();return;}if((typeof n!="undefined")&&(typeof n=="function")){e();var s=n(function(){c(true);});if(s){return;}}c(true);};Microgroove.helpers.loadFile("/aspnet_client/microgroove/shadowbox/shadowbox.css");Shadowbox.init({showOverlay:false,language:"en",skipSetup:true,modal:false,overlayOpacity:0,useSizzle:false,onClose:p,players:["iframe"]});$(document).ready(function(){k();});return{init:f,open:i,close:b,add:a,hide:e,onCloseWindow:g,onOpenWindow:h};};Microgroove.windowManager=shadowboxWindowManager();var OpenModalWindow=Microgroove.windowManager.open;var OpenDeleteWindow=Microgroove.windowManager.open;
