prelistenhq=false;autostart=false;epileptic=false;disKeyTrap=false;tooltipped=false;afterbookmark=false;SortableButtPlug=false;SortableEndDragButtPlug=false;badpng=(/MSIE (5\.5|6).+Win/.test(navigator.userAgent));iesucks=(/MSIE (5\.5|6|7).+Win/.test(navigator.userAgent));goPrevious=false;goNext=false;fileID=false;Volume=50;CurrentPlaya=false;IntegratedPlaya=false;NavigatorLocked=false;GotFlash=false;DisableKeyNav=false;document.onkeydown=function(B){B=B?B:window.event;if(!DisableKeyNav){if(B.ctrlKey){switch(B.keyCode){case 37:if(a=$("previous_page")){location.href=a.href}if(goPrevious){goPrevious()}break;case 39:if(a=$("next_page")){location.href=a.href}if(goNext){goNext()}break}}}};function isFF(){return/Firefox/.test(navigator.userAgent)}function ReloadCaptcha(D,C){$(D).src=C+"&"+Math.random();if(i=$("captchainput")){i.focus()}return false}var tooltip={options:{attr_name:"tooltip",blank_text:"",newline_entity:"<br>",max_width:0,delay:400,skip_tags:["link","style"]},no:0,t:null,c:null,aj:null,sex:null,g:false,canvas:document.getElementsByTagName(document.compatMode&&document.compatMode=="CSS1Compat"?"HTML":"BODY")[0],cache:new Array(),safari:/Konqueror|Safari|KHTML/.test(navigator.userAgent),ie:function(F){if(!F||tooltip.options.skip_tags.in_array(F.tagName.toLowerCase())){return }if(F._ied){return }F._ied=true;var E=F.getAttribute("title");if(E&&typeof E!="string"){E=""}if(F.getAttribute("amba")){F.removeAttribute("alt");F.removeAttribute("title");tooltip.l(F,"mouseover",tooltip.s);tooltip.l(F,"mouseout",tooltip.h)}else{var D=F.getAttribute("alt");if(E){F.setAttribute(tooltip.options.attr_name,E);if(F.getAttribute(tooltip.options.attr_name)){F.removeAttribute("title");if(D&&F.complete){F.removeAttribute("alt")}tooltip.l(F,"mouseover",tooltip.s);tooltip.l(F,"mouseout",tooltip.h)}}else{if(D&&F.complete){F.setAttribute(tooltip.options.attr_name,D);if(F.getAttribute(tooltip.options.attr_name)){F.removeAttribute("alt");tooltip.l(F,"mouseover",tooltip.s);tooltip.l(F,"mouseout",tooltip.h)}}}}},ieall:function(){var F=document.all&&!window.opera?document.all:document.getElementsByTagName("*");var D=F.length;for(var E=0;E<D;E++){tooltip.ie(F[E])}},d:function(){if(!(tooltip.t=$("tooltip"))){return false}tooltipped=true;tooltip.ieall();tooltip._lastx=0;tooltip._lasty=0;window.onscroll=tooltip.h;tooltip.a(-99,-99);document.onmousemove=tooltip.inheaven},_:function(B){B=B.replace(/\&/g,"&");B=B.replace(/\</g,"<");B=B.replace(/\>/g,">");return B},sx:function(){tooltip.t.style.left=tooltip._lastx+"px";tooltip.t.style.top=tooltip._lasty+"px";tooltip.g=true;if(tooltip.cache[tooltip.sxe]){tooltip.t.innerHTML=tooltip.cache[tooltip.sxe];tooltip.t.style.display="block";tooltip.fwtf()}else{(tooltip.aj=new Ajax.Request("/ajax/tooltip.html?wtf="+tooltip.sxe,{asynchronous:true,onSuccess:tooltip.ldd}))._no=++tooltip.no}},ldd:function(B){if(B.request._no==tooltip.no){$("tooltip").innerHTML=B.responseText;tooltip.t.style.display="block";tooltip.cache[tooltip.sxe]=B.responseText;tooltip.fwtf()}},fwtfr:function(){var G=Element.getDimensions(tooltip.t);var F=document.viewport.getDimensions();var H=Element.cumulativeOffset(tooltip.t);if(G.width+32+H.left>F.width){var E=F.width-G.width-32;Element.setStyle(tooltip.t,{left:E+"px"})}},fwtf:function(){tooltip.fwtfr();setTimeout(tooltip.fwtfr,1)},s:function(e){if(tooltip){var d=window.event?window.event.srcElement:e.target;var di=Element.getDimensions(d);var po=Element.cumulativeOffset(d);var promenade=d.getAttribute("promenade");if(promenade){tooltip._lasty=po.top+di.height-5;tooltip.t.style.width=di.width+"px";tooltip.t.style.padding="8px 0px";tooltip.t.style.textAlign="center"}else{tooltip.t.style.width="auto";tooltip.t.style.padding="8px 12px";tooltip.t.style.textAlign="left"}tooltip._lastx=po.left;if(tooltip.sxe=d.getAttribute("amba")){tooltip.c=setTimeout(tooltip.sx,tooltip.options.delay)}else{if(!d.getAttribute(tooltip.options.attr_name)){return }var s=d.getAttribute(tooltip.options.attr_name);var s=tooltip._(s);s=s.replace(eval("/"+tooltip._(tooltip.options.newline_entity)+"/g"),"<br />");tooltip.t.innerHTML=s;tooltip.t.style.left=tooltip._lastx+"px";tooltip.t.style.top=tooltip._lasty+"px";tooltip.c=setTimeout(function(){tooltip.t.style.display="block";if(!promenade){tooltip.t.style.top=tooltip._lasty+"px"}tooltip.fwtf()},tooltip.options.delay);tooltip.g=true}}},h:function(B){if(tooltip){tooltip.t.style.display="none";if(!tooltip.options.newline_entity&&tooltip.t.firstChild){tooltip.t.removeChild(tooltip.t.firstChild)}clearTimeout(tooltip.c);tooltip.g=false;tooltip.a(-1024,-1024)}},l:function(E,F,D){if(E.addEventListener){E.addEventListener(F,D,false)}else{if(E.attachEvent){E.attachEvent("on"+F,D)}else{return null}}},a:function(G,H){var J=tooltip.canvas.clientWidth?tooltip.canvas.clientWidth+tooltip.canvas.scrollLeft:window.innerWidth+window.pageXOffset;var K=window.innerHeight?window.innerHeight+window.pageYOffset:tooltip.canvas.clientHeight+tooltip.canvas.scrollTop;tooltip.t.style.width=tooltip.options.max_width&&tooltip.t.offsetWidth>tooltip.options.max_width?tooltip.options.max_width+"px":"auto";var I=tooltip.t.offsetWidth;var L=tooltip.t.offsetHeight;tooltip.t.style.left=G+8+"px";tooltip.t.style.top=H+8+"px"},inheaven:function(D){var C=Event.pointer(D?D:window.event);tooltip._lasty=C.y+16}};Array.prototype.in_array=function(E){var D=this.length;for(var F=0;F<D;F++){if(this[F]===E){return true}}return false};function fixPNG(F,D){var E;if(/MSIE (5\.5|6).+Win/.test(navigator.userAgent)){if((F.tagName=="IMG")&&(!D)){if(/\.png$/.test(F.src)){E=F.src;F.src="http://i.cdn.promodeejay.net/0.gif"}}else{E=F.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);if(E){E=E[1];F.runtimeStyle.backgroundImage="none"}}if(E){F.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+E+"',sizingMethod='scale')"}}return""}function htmlspecialchars(B){B=B.replace(/&/g,"&");B=B.replace(/"/g,"&quot;");B=B.replace(/'/g,"&apos;");B=B.replace(/</g,"&lt;");B=B.replace(/>/g,"&gt;");return B}function Selector(G,F,I,H,J){target=$(F);o=new Option();o.text="...";o.value="0";target.length=0;target.options[target.length]=o;new Ajax.Request("/ajax/selector.html",{method:"get",parameters:"src="+encodeURIComponent(G)+"&dest="+encodeURIComponent(F)+"&kind="+encodeURIComponent(I)+"&value="+encodeURIComponent($(G).value)+"&any="+encodeURIComponent(H)+"&filter="+encodeURIComponent(J)+"&"+Math.random(),onComplete:GotSelector})}function GotSelector(F){F=F.responseText;F=F.split("\x0D\x0A");if(F.length==0){return }if(!(target=$(F[0]))){return }target.length=0;var D=-1;for(k=1;k<F.length-1;k++){y=F[k].split("<.>");o=new Option();o.text=y[1];o.value=y[0];target.options[target.length]=o;D++}if(target.onchange){target.onchange()}var E=F[0]+"_row";if(E=$(E)){E.style.display=D?"":"none";if(window.RecoverHiddenStuff){window.RecoverHiddenStuff()}}}function getCursor(K){var G={start:0,end:0,fixup:0};if(K.setSelectionRange){G.start=K.selectionStart;G.end=K.selectionEnd}else{if(!document.selection){return 0}else{if(document.selection&&document.selection.createRange){var L=document.selection.createRange();var J=L.duplicate();try{J.moveToElementText(K)}catch(H){}J.setEndPoint("EndToEnd",L);var I=0;for(k=0;k<J.text.length;k++){if(J.text.charCodeAt(k)==13){I++}}G.start=J.text.length-L.text.length;G.end=G.start+L.text.length;G.fixup=I}}}return G}function setCursor(G,H,F,I){if(G.createTextRange){var J=G.createTextRange();J.move("character",H-I);J.select()}else{if(G.selectionStart){G.setSelectionRange(H,F)}}}function InsertPair(N,S,P,L){var R=$(N)?$(N):N;R.focus();var T=R.scrollTop;var V=getCursor(R);var Q=0;if(V.start==V.end){if((S)&&(S.tagged=!S.tagged)){R.value=R.value.substring(0,V.start)+P+R.value.substr(V.start);Q=V.start+P.length}else{R.value=R.value.substring(0,V.start)+L+R.value.substr(V.start);Q=V.start+L.length}setCursor(R,Q,Q,V.fixup)}else{var M=R.value.substring(0,V.start);var O=R.value.substring(V.start,V.end);var U=R.value.substring(V.end);R.value=M+P+O+L+U;var Q=String(M+P+O+L).length;setCursor(R,Q,Q,V.fixup)}if(T){R.scrollTop=T}return false}function cb(B){B.cancelBubble=true;return true}var LastTinyPlayer=false;var LastTinyPlayerHilight=false;function Prelisten(N,K,H){if(!GotFlash){return true}StopTracklistListen();K.cancelBubble=true;if(LastTinyPlayer){StopTinyPlayer()}if(!N){return false}var I=N.parentNode.id;if(I==LastTinyPlayer){return false}if(LastTinyPlayerHilight){$(LastTinyPlayerHilight).parentNode.parentNode.parentNode.style.backgroundColor=$(LastTinyPlayerHilight).parentNode.parentNode.parentNode.style._backgroundColor;$(LastTinyPlayerHilight).parentNode.parentNode.parentNode.style.backgroundImage=$(LastTinyPlayerHilight).parentNode.parentNode.parentNode.style._backgroundImage;LastTinyPlayerHilight=false}N.parentNode._savedhtml=N.parentNode.innerHTML;N.parentNode._savedclassName=N.parentNode.className;N.parentNode.className="play_button_playing";LastTinyPlayer=I;LastTinyPlayerHilight=I;var J=$(I);J.parentNode.parentNode.parentNode.style._backgroundImage=J.parentNode.parentNode.parentNode.style.backgroundImage;J.parentNode.parentNode.parentNode.style._backgroundColor=J.parentNode.parentNode.parentNode.style.backgroundColor;J.parentNode.parentNode.parentNode.style.backgroundImage="";J.parentNode.parentNode.parentNode.style.backgroundColor="#f5f4e8";var M="wtf="+Math.random()+"";var L=new SWFObject("http://i.cdn.promodeejay.net/swf/tinyplayer.swf","playa_"+I,"45","9","7","#f5f4e8");L.addParam("swliveconnect",true);L.addParam("allowScriptAccess","always");L.addParam("wmode","transparent");L.addVariable("file",encodeURIComponent(baseurl+"prelisten/"+H+"/bobmarley?"+(prelistenhq?"hq=1&":"")+M));L.addVariable("volumePercent",Volume);L.write(I);if(tooltipped){tooltip.h()}CurrentPlaya="playa_"+I;TitleRollerStart();return false}function StopTinyPlayer(){if(LastTinyPlayer){var B=$(LastTinyPlayer);if(cp=$(CurrentPlaya)){if(cp.ResetMF){cp.ResetMF("YESS")}}B.className=B._savedclassName;B.innerHTML=B._savedhtml;LastTinyPlayer=false;RecalcTooltips();TitleRollerStop()}}function EasyPlay(F,E,D){if(E){if(E.target){if(E.target.toString().match(/mbed/)){return false}}}return GotFlash?Prelisten($("ta"+F),E,D):true}function FlipFAQ(B){$("faq"+B).style.display=($("faq"+B).style.display=="none")?"block":"none";return false}function cb(B){B.cancelBubble=true}function NoEnter(C){var D=0;if(window.event){D=C.keyCode}else{if(C.which){D=C.which}}return(D==13?false:true)}function CheckEnter(F,D){var E=0;if(window.event){E=F.keyCode}else{if(F.which){E=F.which}}if(E==13){D();return false}else{return true}}function slOver(B){B.className="over"}function slOut(B){B.className=""}function ToggleAll(E){var F=document.getElementsByTagName("INPUT");var D=0;while(i=F[D]){if(i.id==E){i.checked=!i.checked}D++}}function InsertTA(C,D){C.value+=D}function TicketAttach(B){B.style.display="none";$("attach_file").style.display="block";setTimeout("$('attacher').focus();",50)}function TicketInsertTemplate(){InsertTA($("ta"),$("template").value)}function iroOnMouseOut(B){var B=B?(B.srcElement?B.srcElement:B.target):window.event.srcElement;while(B){if(B.tagName=="TR"){B.className=B.iroClassName;break}B=B.parentNode}}function iroOnMouseOver(B){var B=B?(B.srcElement?B.srcElement:B.target):window.event.srcElement;while(B){if(B.tagName=="TR"){B.iroClassName=B.className;B.className=B.iroClassName+" over";break}B=B.parentNode}}function iroOnClick(D){var C=isFF();var D=D?(D.srcElement?D.srcElement:D.target):window.event.srcElement;while(D){if(D.tagName=="TR"){D.className="over";break}D=D.parentNode}if(!D){return false}if(url=D.getAttribute("gourl")){window.location.href=url;return }D=D.firstChild;while(D){if(D.id=="clickme"){d=C?D.firstChild.nextSibling:D.firstChild;while(d){if(d.id=="clickme"){if(d.href){C?(window.location.href=d.href):d.click()}else{(C||(!d.firstChild.click))?(window.location.href=d.firstChild.href):d.firstChild.click()}return }d=d.nextSibling}}D=D.nextSibling}}function InstallRowsOverTo(C){var D=C.firstChild.firstChild;if(!D){D=C.firstChild.nextSibling.firstChild}while(D){if(D.id!="nohover"){D.onmouseover=iroOnMouseOver;D.onmouseout=iroOnMouseOut;D.onclick=iroOnClick}D=D.nextSibling}}function InstallRowsOver(){var C=1;var D=false;while(D=$("hover"+(C+""))){InstallRowsOverTo(D);C++}}function SetOption(C,D){new Ajax.Request("/ajax/option_set.html",{method:"post",parameters:"option="+encodeURIComponent(C)+"&value="+encodeURIComponent(D)})}function FlashMessagesCount(){if(mc=$("messages_count")){mc.style.color=(mc._flash=!mc._flash)?"":"#ff0000";setTimeout(FlashMessagesCount,400)}}function msgThread(B){B=B.parentNode.parentNode;B.className="unthreaded";return false}function SetAdminskyStatus(C){SetOption("adminsky_column",C?"1":"0");for(k=1;k<=10;k++){var D=(C?(15*k):(150-15*k))+"px";setTimeout("$('adminsky_column_content').style.width = '"+D+"'; $('adminsky_column').style.width = '"+D+"';",k*15)}setTimeout("$('adminsky_up').style.display = '"+(C?"none":"")+"';",150);return false}function BringMenu(D,F){if(F){$(D)._bringer=setTimeout("BringMenu('"+D+"');",150)}else{var E=Element.cumulativeOffset($(D));$(D+"_menu").style.left=(E[0]-20)+"px";$(D+"_menu").style.top=(E[1]+16)+"px";$(D+"_menu").style.display="block";if($(D)._bringer){clearTimeout($(D)._bringer)}$(D)._bringer=false;if($(D)._locks==undefined){$(D)._locks=0}}return false}function BringMenuOut(B){if($(B)._bringer){clearTimeout($(B)._bringer)}$(B)._bringer=false;return false}function BringMenuInner(B){if($(B)._locks==undefined){$(B)._locks=0}$(B)._locks++;if($(B)._outer){clearTimeout($(B)._outer);$(B)._outer=false}return false}function BringMenuOuter(B){$(B)._locks--;if($(B)._locks==0){if($(B)._outer){clearTimeout($(B)._outer)}$(B)._outer=setTimeout("BringMenuOff('"+B+"');",250)}return false}function BringMenuOff(B){if($(B)._outer){clearTimeout($(B)._outer)}$(B+"_menu").style.display="none";return false}function ie6sucks(){var C=document.uniqueID&&document.compatMode&&!window.XMLHttpRequest&&document.execCommand;try{if(!!C){C("BackgroundImageCache",false,true)}}catch(D){}}function AvatarSelector(F,E){$("current_avatar").value=E;var D=0;while(i=$("avasel"+D)){if(i.id!=F.id){i.className="avatar"}D++}F.className="avatar_active"}function CreateHiddenInput(E,D){var F=document.createElement("input");F.setAttribute("type","hidden");F.setAttribute("name",E);F.setAttribute("value",D);return F}function CreateA(F,H,G){var E=document.createElement("a");E.innerHTML=F;E.setAttribute("amba",G);E.setAttribute("href",H);if(tooltipped){tooltip.ie(E)}return E}function hc(C,D){C.href=D;return true}function Wishlist(E,F,D){$("wisho"+F).innerHTML="";if(tooltipped){tooltip.h()}new Ajax.Updater("wisho"+F,"/ajax/market_wish.html",{asynchronous:true,method:"POST",parameters:"digest="+digest+"&offerID="+F+"&status="+D});return false}function ptOver(B){B.className="post_tool post_tool_hover"}function ptOut(B){B.className="post_tool"}var NatashaKapustina=false;var NatashaPosting=false;function CommentReply(D,F){if(!NatashaPosting){var E=$("commentform");if(!E){return false}E.parentNode.removeChild(E);if(NatashaKapustina){NatashaKapustina.style.display="inline"}$("ch"+D).appendChild(E);E.style.display="";(NatashaKapustina=$("ct"+D)).style.display="none";$("replyto").value=D;$("commentpreview").style.display="none";if(!F){setTimeout("$('comment').focus();",1)}}return false}function CommentSubmitSuccess(D){var F=$("commentform");var E=$("commentprogressc");NatashaPosting=false;$("cs1").disabled=false;$("cs2").disabled=false;$("cs3").disabled=false;$("comment").value="";F.style.display="block";E.setAttribute("id","commentprogressd");E.parentNode.removeChild(E);CommentReply(0,true);if(tooltipped){setTimeout(tooltip.ieall,2)}}function CommentSubmit(){NatashaPosting=true;var B=$("commentform");if(cp=$("commentprogress")){cp=cp.cloneNode(false);cp.setAttribute("id","commentprogressc");cp.style.display="inline";$("ch"+$("replyto").value).appendChild(cp)}B.style.display="none";$("cs1").disabled=true;$("cs2").disabled=true;$("cs3").disabled=true;$("commentpreview").style.display="none";new Ajax.Updater("cp"+$("replyto").value,"/ajax/comment.html",{asynchronous:true,method:"POST",onSuccess:CommentSubmitSuccess,evalScripts:true,parameters:"digest="+digest+"&"+Form.serialize($("commentformm"))});return false}function CommentDeleteSuccess(C){var D=$("commentform");NatashaPosting=false;$("cs1").disabled=false;$("cs2").disabled=false;$("cs3").disabled=false;if($("comment")){$("comment").value=""}D.style.display="block";CommentReply(0,true);$(C.request.wtf).innerHTML=C.responseText;if(tooltipped){setTimeout(tooltip.ieall,2)}}function CommentDelete(D,F,E){CommentReply(D,true);NatashaPosting=true;var G=$("commentform");if(cp=$("commentprogress")){cp=cp.cloneNode(false);cp.setAttribute("id","commentprogressc");cp.style.display="inline";$("ch"+D).appendChild(cp);$("ct"+D).style.display="none"}G.style.display="none";$("cs1").disabled=true;$("cs2").disabled=true;$("cs3").disabled=true;$("commentpreview").style.display="none";(new Ajax.Request("/ajax/comment.html",{asynchronous:true,method:"POST",onSuccess:CommentDeleteSuccess,parameters:"digest="+digest+"&delete=1&spam="+E+"&"+Form.serialize($("commentformm"))})).wtf="cp"+F;return false}function CommentThreadSuccess(C){var D=$("commentform");NatashaPosting=false;$("cs1").disabled=false;$("cs2").disabled=false;$("cs3").disabled=false;D.style.display="block";CommentReply(0,true);$(C.request.wtf).innerHTML=C.responseText;if(tooltipped){setTimeout(tooltip.ieall,2)}}function CommentThread(D,E){CommentReply(D,true);NatashaPosting=true;var F=$("commentform");if(cp=$("commentprogress")){cp=cp.cloneNode(false);cp.setAttribute("id","commentprogressc");cp.style.display="inline";$("ch"+D).appendChild(cp);$("ct"+D).style.display="none"}if(F){F.style.display="none";$("cs1").disabled=true;$("cs2").disabled=true;$("cs3").disabled=true;$("commentpreview").style.display="none";(new Ajax.Request("/ajax/comment.html",{asynchronous:true,method:"POST",onSuccess:CommentDeleteSuccess,parameters:(wtf="digest="+digest+"&thread=1&"+Form.serialize($("commentformm")))})).wtf="cp"+E}else{(new Ajax.Request("/ajax/comment.html",{asynchronous:true,method:"POST",onSuccess:CommentDeleteSuccess,parameters:(wtf="digest="+digest+"&thread=1&comment[replyto]="+D)})).wtf="cp"+E}return false}function CommentPreviewSuccess(B){if(tooltipped){setTimeout(tooltip.ieall,2)}}function CommentPreview(){$("commentpreview").innerHTML="";$("commentpreview").style.display="block";if(D=$("commentprogress")){var D=D.cloneNode(false);D.setAttribute("id","commentprogressc");D.style.display="inline";var C=document.createElement("div");C.style.textAlign="center";C.style.padding="10px";C.appendChild(D);$("commentpreview").appendChild(C)}new Ajax.Updater("commentpreview","/ajax/comment.html",{asynchronous:true,method:"POST",onSuccess:CommentPreviewSuccess,parameters:"digest="+digest+"&preview=1&"+Form.serialize($("commentformm"))})}function CommentPreviewKeyhandler(B){if(B){if((B.ctrlKey)&&((B.keyCode==10)||(B.keyCode==13))){CommentSubmit()}}}function CommentSmiles(){var B=$("commentsmiles");B._shown=!B._shown;B.style.display=B._shown?"block":"none";return false}function CommentSubscribeSuccess(B){B.request.wtf.innerHTML=B.responseText;if(tooltipped){setTimeout(tooltip.ieall,1)}}function CommentSubscribe(C){var D=$("csub"+C);if(tooltipped){tooltip.h()}D.innerHTML="";D.appendChild(CreateRoller());(new Ajax.Request("/ajax/comment_subscribe.html",{asynchronous:true,method:"POST",onSuccess:CommentSubscribeSuccess,parameters:"digest="+digest+"&commentownerID="+C})).wtf=D;return false}function CreateRoller(){var B=document.createElement("IMG");B.setAttribute("src","http://i.cdn.promodeejay.net/roller2.gif");B.setAttribute("width",10);B.setAttribute("height",10);B.className="roller";return B}function VoteSuccess(B){B.request.wtf.rolling=false;if(r=B.request.roller){r.parentNode.removeChild(r)}}function Vote(M,L,R,U,O){if(R.rolling){return false}R.rolling=true;var T=false;if(M=="user"){var N=Element.cumulativeOffset($("rankvoter2"));var Q=N[0]+7;var S=N[1]+12;var V=CreateRoller();V.style.position="absolute";V.style.left=Q+"px";V.style.top=S+"px";R.appendChild(V)}else{if(O){R.parentNode.appendChild(T=CreateRoller())}else{R.appendChild(CreateRoller())}}var P=new Ajax.Updater(R.id,"/ajax/vote.html",{asynchronous:true,method:"POST",onSuccess:VoteSuccess,evalScripts:true,parameters:"digest="+digest+"&kind="+M+"&kindID="+L+"&id="+R.id+"&hash="+U});P.wtf=R;P.roller=T;return false}function BookmarkSuccess(B){B.responseText.evalScripts();B.request.wtf.rolling=false;if(afterbookmark){afterbookmark()}}function Bookmark(G,H,E,F){if(E.rolling){return false}E.rolling=true;E.className="rolling";(new Ajax.Request("/ajax/bookmark.html",{asynchronous:true,method:"POST",onSuccess:BookmarkSuccess,evalScripts:true,parameters:"digest="+digest+"&kind="+G+"&kindID="+H+"&id="+E.id+"&hash="+F})).wtf=E;return false}function CommentScroll(B){setTimeout(function(){Effect.ScrollToEx("c"+B,{duration:0.2,offset:-200});$("c"+B).parentNode.className="comment comment_hilight"},30)}function Insert(C,D){return InsertPair(C,false,"",D)}function ColorPicker(N,M){var L=430;var H=350;var I=Math.round((document.body.clientWidth-L)/2);var J=Math.round((document.body.clientHeight-H)/2);var K=window.open("/ajax/colorpicker.html?color="+encodeURIComponent(N)+"&return_to="+encodeURIComponent(M),"pdjcolorpicker","toolbar=no,scrollbars=no,status=no,height="+H+",width="+L+",top="+J+",left="+I);K.focus()}function PerformDisableOnSubmit(){var B=1;while(d=$("dos"+B)){d.disabled=true;B++}}function DisableOnSubmit(){return true}function ExecuteIt(B){B.responseText.evalScripts()}function ToggleIdol(C,D){(f=$("idolr")).style.background="url(http://i.cdn.promodeejay.net/roller2.gif)";f.style.backgroundPosition="50% 55%";f.style.backgroundRepeat="no-repeat";new Ajax.Request("/ajax/idol.html",{method:"post",parameters:"digest="+digest+"&idolID="+C+"&hash="+D,onComplete:ExecuteIt});return false}function ToggleFriend(C,D){(f=$("friendr")).style.background="url(http://i.cdn.promodeejay.net/roller2.gif)";f.style.backgroundPosition="50% 55%";f.style.backgroundRepeat="no-repeat";new Ajax.Request("/ajax/friend.html",{method:"post",parameters:"digest="+digest+"&friendID="+C+"&hash="+D,onComplete:ExecuteIt});return false}function SwitchAboutLang(B){$("aabout_ru").className=B=="ru"?"active":"";$("aabout_en").className=B=="en"?"active":"";$("about_ru").style.display=B=="ru"?"block":"none";$("about_en").style.display=B=="en"?"block":"none";return false}function Flyer(K,L,G){L+=30;G+=30;var H=Math.round((document.body.clientWidth-L)/2);var I=Math.round((document.body.clientHeight-G)/2);var J=window.open("/ajax/flyer.html?flyerID="+K,"pdjflyer","toolbar=no,scrollbars=no,status=no,height="+G+",width="+L+",top="+I+",left="+H);J.focus();return false}function RecalcTooltips(){if(tooltipped){setTimeout(tooltip.ieall,1)}}function AfishaGoes(D,C){$("who_goes_button").disabled=true;new Ajax.Updater("who_goes","/ajax/afisha_goes.html",{asynchronous:true,method:"POST",onSuccess:RecalcTooltips,parameters:"digest="+digest+"&afishaID="+D+"&goes_hash="+C});return false}function FotoWho(D,C){$("who_button").disabled=true;new Ajax.Updater("who","/ajax/foto_who.html",{asynchronous:true,method:"POST",onSuccess:RecalcTooltips,parameters:"digest="+digest+"&fotoID="+D+"&who_hash="+C});return false}var LastTracklistListener=false;function StopTracklistListen(){if(a=LastTracklistListener){a.innerHTML=a._saved_content;a._locked=false;LastTracklistListener=false;RecalcTooltips();TitleRollerStop()}}function TracklistListen(E,F){if(!GotFlash){return true}if(E._locked){return false}StopTinyPlayer();StopTracklistListen();LastTracklistListener=E;E._saved_content=E.innerHTML;E._locked=true;var H="wtf="+Math.random()+"";var G=new SWFObject("http://i.cdn.promodeejay.net/swf/tinytracklistplayer.swf","playa_"+E.id,"45","9","7","#f5f4e8");G.addParam("wmode","transparent");G.addParam("allowScriptAccess","always");G.addParam("swliveconnect",true);G.addParam("align","absmiddle");G.addVariable("file",encodeURIComponent(baseurl+"tracklist_prelisten/"+F+"/sunisshining?"+H+(prelistenhq?"&hq=1":"")));G.addVariable("volumePercent",Volume);G.write(E.id);if(tooltipped){tooltip.h()}CurrentPlaya="playa_"+E.id;TitleRollerStart();return false}var currentChannelID=false;function RadioListen(F,H,G){if(!GotFlash){return true}if(F._locked){return false}currentChannelID=G;StopTinyPlayer();StopTracklistListen();LastTracklistListener=F;F._saved_content=F.innerHTML;F._locked=true;var J="wtf="+Math.random()+"";var I=new SWFObject("http://i.cdn.promodeejay.net/swf/radioplayer6.swf","playa_"+F.id,"5","9","7","#f5f4e8");I.addParam("wmode","transparent");I.addParam("allowScriptAccess","always");I.addParam("swliveconnect",true);I.addParam("align","absmiddle");I.addVariable("volumePercent",Volume);I.addVariable("file",encodeURIComponent("/go/"+H+"/sunisshining"+G+"?"+J+(prelistenhq?"&hq=1":"")));I.write(F.id);if(tooltipped){tooltip.h()}CurrentPlaya="playa_"+F.id;TitleRollerStart();if($("rtr0")){$("rtr0").style.backgroundColor="#ffffff";$("rtr1").style.borderBottomColor=G==1?"#e0e0e0":"#ffffff";$("rtr2").style.borderBottomColor=G==2?"#e0e0e0":"#ffffff";$("rtr3").style.borderBottomColor=G==3?"#e0e0e0":"#ffffff";$("rtr0").style.backgroundColor="transparent"}if($("rtr00")){$("rtr00").style.backgroundColor="#ffffff";$("rtr100").style.borderBottomColor=G==100?"#e0e0e0":"#ffffff";$("rtr101").style.borderBottomColor=G==101?"#e0e0e0":"#ffffff";$("rtr00").style.backgroundColor="transparent"}UpdateRadioPlaylist();return false}var urpTimer=false;function UpdateRadioPlaylist(){clearTimeout(urpTimer);if($("radio_playlist")){new Ajax.Updater("radio_playlist","/radio/?digest="+digest+"&ajax=1&channelID="+currentChannelID,{asynchronous:true,method:"GET",onSuccess:RecalcTooltips});if($("radio_playlist_loader")){$("radio_playlist_loader").appendChild(CreateRoller())}urpTimer=setTimeout(UpdateRadioPlaylist,30000)}}function SetFileLikeDone(){var B=$("filelike");B.value=""}function SetFileLike(){var B=$("filelike").value;if(B.length>0){$("filelikes").appendChild(CreateRoller());$("filelike").value="";new Ajax.Updater("filelikes","/ajax/file_likes.html",{asynchronous:true,method:"POST",onSuccess:SetFileLikeDone,parameters:"digest="+digest+"&fileID="+fileID+"&like="+encodeURIComponent(B)})}return false}Object.extend(Event,{_domReady:function(){if(arguments.callee.done){return }arguments.callee.done=true;if(this._timer){clearInterval(this._timer)}this._readyCallbacks.each(function(B){B()});this._readyCallbacks=null},onDOMReady:function(D){if(!this._readyCallbacks){var C=this._domReady.bind(this);if(document.addEventListener){document.addEventListener("DOMContentLoaded",C,false)}if(/WebKit/i.test(navigator.userAgent)){this._timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){C()}},10)}Event.observe(window,"load",C);Event._readyCallbacks=[]}Event._readyCallbacks.push(D)}});Event.onDOMReady(function(){if(window.FireStarter){setTimeout(window.FireStarter,1)}window.domgot=true});function InitFeeler(){if($("bottomfeeler")){var B=document.createElement("IMG");B.src="http://counter.promodeejay.net/cnt";B.width=1;B.height=1;$("bottomfeeler").appendChild(B)}}function OhGod(){if(!window.domgot){if(window.FireStarter){setTimeout(window.FireStarter,1)}}setTimeout(InitFeeler,1)}var UpdateVolumeTimeout=false;var FlushVolumeTimeout=false;var SetVolumeTimeout=false;function UpdateVolume(B){Volume=B;if(UpdateVolumeTimeout){clearTimeout(UpdateVolumeTimeout)}UpdateVolumeTimeout=setTimeout("UpdateVolumePerform("+Volume+");",25)}function UpdateVolumePerform(B){if(cp=$(CurrentPlaya)){if(cp.Mogilevsky){cp.Mogilevsky(B)}}if(IntegratedPlaya){if(ip=$(IntegratedPlaya)){if(ip.Mogilevsky){ip.Mogilevsky(B)}}}UpdateVolumeTimeout=false;if(FlushVolumeTimeout){clearTimeout(FlushVolumeTimeout)}FlushVolumeTimeout=setTimeout(FlushVolumePerform,500)}function FlushVolumePerform(){FlushVolumeTimeout=false;new Ajax.Request("/ajax/set_volume.html",{method:"post",parameters:"volume="+Volume+"&digest="+digest})}function SetVolume(B){Volume=B;if(SetVolumeTimeout){clearTimeout(SetVolumeTimeout)}SetVolumeTimeout=setTimeout(SetVolumePerform,25)}function SetVolumePerform(){SetVolumeTimeout=false;if(vc=$("volumeChanger")){if(vc.Mogilevsky){vc.Mogilevsky(Volume)}}if(FlushVolumeTimeout){clearTimeout(FlushVolumeTimeout)}FlushVolumeTimeout=setTimeout(FlushVolumePerform,500)}function InitVolumer(){if($("volumer")){var B=new SWFObject("http://i.cdn.promodeejay.net/swf/volumer.swf","volumeChanger","80","16","7","");B.addParam("allowscriptaccess","always");B.addParam("swliveconnect",true);B.addParam("wmode","transparent");B.addVariable("volumePercent",Volume);B.write("volumer");GotFlash=$("volumer").innerHTML==""?false:true}}function FileCommentsNavigatorPaged(B){NavigatorLocked=false;setTimeout("Effect.ScrollToEx('file_comments', { duration: 0.2, offset: -200 }); NatashaKapustina = $('ct0');",10);RecalcTooltips()}function FileCommentsNavigatorPage(C,D){if(NavigatorLocked){return false}NavigatorLocked=true;if(C){C.appendChild(CreateRoller())}new Ajax.Updater("file_comments","/ajax/file_comments.html?page="+D,{asynchronous:true,method:"POST",parameters:"digest="+digest+"&fileID="+fileID,onSuccess:FileCommentsNavigatorPaged});return false}function FileDownloadFlash(){if(d=$("download_flasher")){d.className=d.className=="flash"?"":"flash";setTimeout(FileDownloadFlash,600)}}var MoodLocked=false;function EditMood(){$("dj_mood").style.display="none";$("dj_mood_editor").style.display="block";setTimeout("$('dj_mood_text').focus();",50);return false}function MoodApplied(B){MoodLocked=false;$("dj_mood")._ied=false;$("dj_mood").style.display="block";$("dj_mood_editor").style.display="none";$("dj_mood_text").disabled=false;setTimeout(RecalcTooltips,10)}function ApplyMood(){if(MoodLocked){return false}MoodLocked=true;$("dj_mood_text").disabled=true;new Ajax.Updater("dj_mood","/ajax/set_mood.html",{asynchronous:true,method:"POST",parameters:"digest="+digest+"&mood="+encodeURIComponent($("dj_mood_text").value),onSuccess:MoodApplied})}function FOv(B){B._className=B.className;B.className="track track_hover"}function FOu(B){B.className=B._className}function POv(B){B.className="people people_hover"}function POu(B){B.className="people"}var titlerollerOldTitle=false;var titlerollerTimer=false;var titlerollerStep=false;var titlerollerPhase=false;var titlerollerLocks=0;function TitleRollerStart(){if(epileptic){return }titlerollerLocks++;if(titlerollerLocks==1){if(titlerollerOldTitle===false){titlerollerOldTitle=document.title}if(titlerollerTimer){clearTimeout(titlerollerTimer)}titlerollerTimer=setTimeout(TitleRollerRoll,230);titlerollerStep=0;titlerollerPhase=false}}function TitleRollerRoll(){titlerollerStep++;if(titlerollerStep>8){titlerollerStep=1}var D=">";var C=String.fromCharCode(8211);if(titlerollerStep==1){document.title="["+D+C+C+C+"] "+titlerollerOldTitle}else{if(titlerollerStep==2){document.title="["+D+D+C+C+"] "+titlerollerOldTitle}else{if(titlerollerStep==3){document.title="["+D+D+D+C+"] "+titlerollerOldTitle}else{if(titlerollerStep==4){document.title="["+D+D+D+D+"] "+titlerollerOldTitle}else{if(titlerollerStep==5){document.title="["+C+D+D+D+"] "+titlerollerOldTitle}else{if(titlerollerStep==6){document.title="["+C+C+D+D+"] "+titlerollerOldTitle}else{if(titlerollerStep==7){document.title="["+C+C+C+D+"] "+titlerollerOldTitle}else{if(titlerollerStep==8){document.title="["+C+C+C+C+"] "+titlerollerOldTitle}}}}}}}}titlerollerTimer=setTimeout(TitleRollerRoll,230)}function TitleRollerStop(){if(epileptic){return }titlerollerLocks--;if(titlerollerLocks==0){if(titlerollerTimer){clearTimeout(titlerollerTimer)}document.title=titlerollerOldTitle}}var favicon={change:function(B){if(!iesucks){this.restore();this.put(B,"icon");this.put(B,"shortcut icon")}},put:function(F,D){var E=document.createElement("link");E.type="image/x-icon";E.rel=D;E.href=F;this.wtf().appendChild(E)},restore:function(){if(!iesucks){var D=this.wtf().getElementsByTagName("link");for(var F=D.length-1;F>=0;F--){var E=D[F];if(E.type=="image/x-icon"){this.wtf().removeChild(E)}}}},wtf:function(){if(this.omg==undefined){this.omg=document.getElementsByTagName("head")[0]}return this.omg}};var ExternalPlayerState=false;function ExternalPlayerStatus(B){if(B){if(ExternalPlayerState!=true){TitleRollerStart()}}else{if(ExternalPlayerState!=false){TitleRollerStop()}}ExternalPlayerState=B?true:false}function AfishaAddressChange(D){var E=false;var F=false;if(D.id=="afisha_adr_metro"){E="metroID";F="afisha_adr_city"}else{if(D.id=="afisha_adr_city"){E="cityID";F="afisha_adr_region"}else{if(D.id=="afisha_adr_region"){E="regionID";F="afisha_adr_country"}else{E="countryID";F=false}}}if((D.value>0)||(!F)){window.location.replace(AfishaAddressURLPrefix+E+"="+D.value)}else{AfishaAddressChange($(F))}return false}function MainPageTop100Flip(B){$("top100_djsa").className=B?"atool_active":"atool";$("top100_musiciansa").className=B?"atool":"atool_active";$("top100_djs").style.display=B?"block":"none";$("top100_musicians").style.display=B?"none":"block";return false}var NextTwinkler="twinkler2";var CurrentTwinkler=1;var twinker=false;function TwinkTwink(){if(twinker){CurrentTwinkler++;if(CurrentTwinkler>=twinker.length){CurrentTwinkler=1}var G=twinker[CurrentTwinkler];var E=$("twinkler_container");E.style.width=G.width+"px";E.style.height=G.height+"px";var H=$(NextTwinkler);H.style.zIndex=100;H.innerHTML=G.html;H.setOpacity(1);NextTwinkler=(NextTwinkler=="twinkler2")?"twinkler":"twinkler2";var F=$(NextTwinkler);F.style.zIndex=101;F._effector=new Effect.Opacity(F,{from:1,to:0,duration:0.2})}setTimeout(TwinkTwink,10000)}var FeaturedAfishaCurrent=0;function SwitchFeaturedAfisha(D){var C=FeaturedAfishaCurrent+D;if($("featured_afisha_"+C)){$("featured_afisha_"+FeaturedAfishaCurrent).style.display="none";FeaturedAfishaCurrent=C;$("featured_afisha_"+FeaturedAfishaCurrent).style.display="block";var C=FeaturedAfishaCurrent+1;$("afisha_right_container").style.display=$("featured_afisha_"+C)?"block":"none";var C=FeaturedAfishaCurrent-1;$("afisha_left_container").style.display=$("featured_afisha_"+C)?"block":"none"}return false}function SubmitPollDone(B){RecalcTooltips();setTimeout(function(){Effect.ScrollToEx("postpoll"+B.request.wtf,{duration:0.2,offset:-100})},30)}function SubmitPoll(H,E){H.disabled=true;var F=0;var G=Form.serialize("pollform"+E);while(v=$("variant"+E+"_"+F)){v.disabled=true;F++}(new Ajax.Updater("postpoll"+E,"/ajax/poll.html",{asynchronous:true,method:"post",parameters:G+"&postID="+E+"&digest="+digest,onSuccess:SubmitPollDone})).wtf=E;return false}function PollButton(E,D){var F=$("poll_voter_"+D);if(F._locks==undefined){F._locks=0}if(E.checked){F._locks++}else{F._locks--}F.disabled=F._locks>0?false:true}function ShowGodsfinger(H,L){var K=Element.cumulativeOffset(H);var M=$("godsfinger");var I=$("godsfinger_data");var N=$("bottomspot").cumulativeOffset();M.style.width=document.body.clientWidth+"px";M.style.height=N[1]+"px";M.style.display="block";K[0]=K[0]-10;K[1]=K[1]-10;I.style.paddingLeft=K[0]+"px";I.style.paddingTop=K[1]+"px";I.innerHTML="";var J=document.createElement("DIV");J.className="godsfingerer";I.appendChild(J);J.appendChild(CreateRoller());new Ajax.Updater("godsfinger_data","/ajax/godsfinger.html",{asynchronous:true,method:"POST",parameters:"digest="+digest+"&wtf="+encodeURIComponent(L)+"&backto="+encodeURIComponent(document.location)});return false}function HideGodsfinger(){var B=$("godsfinger");B.style.display="none";return false}function JoinUnjoinCommunity(A,B){A.appendChild(CreateRoller());new Ajax.Updater(A.id,"/ajax/community_join.html",{asynchronous:true,method:"POST",onSuccess:RecalcTooltips,parameters:"digest="+digest+"&communityID="+B});return false}function DKN(B,A){DisableKeyNav=A};