CORE={};prelistenhq=false;autostart=false;epileptic=false;tooltipped=false;afterbookmark=false;SortableButtPlug=false;SortableEndDragButtPlug=false;goPrevious=false;goNext=false;fileID=false;CurrentPlaya=false;IntegratedPlaya=false;NavigatorLocked=false;GotFlash=false;DisableKeyNav=false;NoIEResizing=false;FlashMessagesCounter=false;LiveMessagesUpdater=false;stamp_15min=false;Popper=false;badpng=(/MSIE (5\.5|6).+Win/.test(navigator.userAgent));iesucks=(/MSIE (5\.5|6|7).+Win/.test(navigator.userAgent));Volume=50;CommentsPage="";LiveMessagesUpdaterMode="";lang="ru";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),black:false,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){return B.replace(/\&/g,"&").replace(/\</g,"<").replace(/\>/g,">")},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,method:"get",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.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);if(tooltip.t){tooltip.black?tooltip.t.addClassName("tooltip_black"):tooltip.t.removeClassName("tooltip_black")}},s:function(e){if(tooltip){var d=window.event?window.event.srcElement:e.target;var p=d;while(p){if(p.getAttribute){if(p.getAttribute("noamba")){return }}p=p.parentNode}tooltip.no++;var di=Element.getDimensions(d);var po=Element.cumulativeOffset(d);var promenade=d.getAttribute("promenade");if(promenade){tooltip._lasty=po.top+di.height-6;tooltip._lastx=po.left-2-8;tooltip.t.style.width=(di.width+2)+"px";tooltip.t.style.padding="8px 8px";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")){clearTimeout(tooltip.c);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";clearTimeout(tooltip.c);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);tooltip.no++}},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}};function RecalcTooltips(){if(tooltipped){setTimeout(tooltip.ieall,1)}}function Selectory(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:"lang="+encodeURIComponent(lang)+"&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 InsertTA(C,D){C.value+=D}function Insert(C,D){return InsertPair(C,false,"",D)}function taTwin(D,A,B,C){return InsertPair(D,A,B,C)}function taPut(A,B){return InsertPair(A,false,"",B)}function taBold(B,A){return taTwin(B,A,"<b>","</b>")}function taItalic(B,A){return taTwin(B,A,"<i>","</i>")}function taUnderline(B,A){return taTwin(B,A,"<u>","</u>")}function taStrike(B,A){return taTwin(B,A,"<s>","</s>")}function taAbbr(B,A){return taTwin(B,A,"<abbr>","</abbr>")}function taCut(B,A){return taPut($(B),"<cut>")}function taURL(A){var A=$(A);var C=prompt("URL","http://");if(C){var B=prompt("Title","Title");if(B){taPut(A,'<a href="'+C+'">'+B+"</a>")}}return false}function taTool(B,C,A){var F=Math.round((document.body.clientWidth-C)/2);var E=Math.round((document.body.clientHeight-A)/2);var D=window.open(B,"pdjedittool","toolbar=no,scrollbars=yes,status=no,height="+A+",width="+C+",top="+E+",left="+F);D.focus();return false}function taInsertToOpener(D,B){var C=window.opener.document;var A=window.opener.document.getElementById(D);window.opener.taPut(A,B);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}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 ExternalPlayerState=false;function ExternalPlayerStatus(B){if(B){if(ExternalPlayerState!=true){TitleRollerStart()}}else{if(ExternalPlayerState!=false){TitleRollerStop()}}ExternalPlayerState=B?true:false}function GeneratePlayer(F,E,A,C,D){if(E=="audio"){var B=new SWFObject("http://i.cdn.promodeejay.net/swf/bigplayer.swf","fp"+F,"481","30","8","");B.addParam("swliveconnect",true);B.addParam("allowScriptAccess","always");B.addParam("wmode","transparent");B.addVariable("link",encodeURIComponent(A));B.addVariable("slowChannel",prelistenhq?0:1);B.addVariable("autostart",0);B.addVariable("volumePercent",85);B.write(F)}}function iroOnMouseOut(B){var B=Event.element(B);while(B){if(B.tagName=="TR"){B.className=B.iroClassName;break}B=B.parentNode}}function iroOnMouseOver(B){var B=Event.element(B);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();if(!Event.isLeftClick(D)){return }var D=Event.element(D);while(D){if(D.tagName.toUpperCase()=="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 FOv(B){B._className=B.className;B.className="track track_hover"}function FOu(B){B.className=B._className}function POv(B){B._className=B.className;B.className=B.className+" people_hover"}function POu(B){B.className=B._className}function ptOver(B){B.className="post_tool post_tool_hover"}function ptOut(B){B.className="post_tool"}function slOver(B){B.className="over"}function slOut(B){B.className=""}function FlashMessagesCount(){if(mc=$("messages_count")){mc.style.color=(mc._flash=!mc._flash)?"":"#ff0000"}FlashMessagesCounter=setTimeout(FlashMessagesCount,400)}function StartFlashMessagesCounter(){clearTimeout(FlashMessagesCounter);FlashMessagesCounter=setTimeout(FlashMessagesCount,400)}function StopFlashMessagesCounter(){clearTimeout(FlashMessagesCounter)}function LiveMessagesUpdaterDone(){RecalcTooltips();StartLiveMessagesUpdater()}function LiveMessagesUpdaterPerform(){clearTimeout(LiveMessagesUpdater);if($("messages_count_holder")){new Ajax.Updater("messages_count_holder","/ajax/messages.html?"+LiveMessagesUpdaterMode,{asynchronous:true,method:"GET",onSuccess:LiveMessagesUpdaterDone,evalScripts:true})}}function StartLiveMessagesUpdater(){clearTimeout(LiveMessagesUpdater);LiveMessagesUpdater=setTimeout(LiveMessagesUpdaterPerform,45000)}function msgThread(B){B=B.parentNode.parentNode;B.className="unthreaded";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 Eschoer(){var B=Element.getDimensions($("header_container"));var A=$("header_container").style.paddingRight?$("header_container").style.paddingRight:"0px";var C=B.height-((A=="0px")?4:8);$("escho").style.right=A;$("escho").style.top=C+"px";$("escho").style.display=($("escho").style.display=="none")?"block":"none";$("eschorr").innerHTML=($("escho").style.display=="none")?"&nbsp;&#x25BC;":"&nbsp;&#x25B2;";return false}function HideEschoer(){var A=$("escho");if(A){if(A.style.display=="block"){Eschoer()}}return false}function HideMaindrop(){var A=$("maindrop");if(A){if(A.style.display=="block"){A.style.display="none"}}return false}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);RecalcTooltips()}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?page="+CommentsPage,{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(!C.request.noclear){if($("comment")){$("comment").value=""}}D.style.display="block";CommentReply(0,true);$(C.request.wtf).innerHTML=C.responseText;if(h=$(C.request.hilight)){setTimeout(function(){new Effect.Highlight(h,{})},1)}C.responseText.evalScripts();RecalcTooltips()}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?page="+CommentsPage,{asynchronous:true,method:"POST",onSuccess:CommentDeleteSuccess,parameters:"digest="+digest+"&delete=1&spam="+E+"&"+Form.serialize($("commentformm"))})).wtf="cp"+F;return false}function CommentBest(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"}F.style.display="none";$("cs1").disabled=true;$("cs2").disabled=true;$("cs3").disabled=true;$("commentpreview").style.display="none";(new Ajax.Request("/ajax/comment.html?page="+CommentsPage,{asynchronous:true,method:"POST",onSuccess:CommentDeleteSuccess,parameters:"digest="+digest+"&best=1&"+Form.serialize($("commentformm"))})).wtf="cp"+E;return false}function CommentThread(D,I,E,F){CommentReply(D,true);NatashaPosting=true;var J=$("commentform");var H=(E?("vote_commentID="+E+"&vote="+F+"&"):"");var G=false;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(J){J.style.display="none";$("cs1").disabled=true;$("cs2").disabled=true;$("cs3").disabled=true;$("commentpreview").style.display="none";G=new Ajax.Request("/ajax/comment.html",{asynchronous:true,method:"POST",onSuccess:CommentDeleteSuccess,parameters:(wtf="digest="+digest+"&thread=1&"+H+Form.serialize($("commentformm")))})}else{G=new Ajax.Request("/ajax/comment.html",{asynchronous:true,method:"POST",onSuccess:CommentDeleteSuccess,parameters:(wtf="digest="+digest+"&thread=1&comment[replyto]="+D+"&"+H)})}G.wtf="cp"+I;G.hilight="c"+D;return false}function CommentVote(B,A){$("cvv"+B).innerHTML="";$("cvvv"+B).innerHTML="";$("cvvv"+B).appendChild(CreateRoller());new Ajax.Updater("cv"+B,"/ajax/comment_vote.html",{asynchronous:true,method:"POST",parameters:"digest="+digest+"&commentID="+B+"&vote="+A,evalScripts:true});return false}function CommentPreviewSuccess(B){RecalcTooltips()}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(A){A=A?A:window.event;if(A){if((A.ctrlKey)&&((A.keyCode==10)||(A.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;B.responseText.evalScripts();RecalcTooltips()}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 CommentScroll(B){setTimeout(function(){Effect.ScrollToEx("c"+B,{duration:0.2,offset:-200});$("c"+B).parentNode.className="comment comment_hilight"},30)}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 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 ToggleIgnore(C,D){(f=$("ignorer")).style.background="url(http://i.cdn.promodeejay.net/roller2.gif)";f.style.backgroundPosition="50% 55%";f.style.backgroundRepeat="no-repeat";new Ajax.Request("/ajax/ignore.html",{method:"post",parameters:"digest="+digest+"&ignoreID="+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 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}function SetFileLikeDone(){$("filelike").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}function FileCommentsNavigatorPaged(B){NavigatorLocked=false;setTimeout(function(){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())}CommentsPage=D;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)}}function AfishaAddressChange(D){var E=false,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,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,evalScripts: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 ColorPicker(N,M){var L=450;var H=360;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 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 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 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 TicketAttach(B){B.style.display="none";$("attach_file").style.display="block";setTimeout("$('attacher').focus();",50)}function TicketInsertTemplate(){InsertTA($("ta"),$("template").value)}function SetOption(C,D){new Ajax.Request("/ajax/option_set.html",{method:"post",parameters:"option="+encodeURIComponent(C)+"&value="+encodeURIComponent(D)})}var UpdateVolumeTimeout=false;var FlushVolumeTimeout=false;var SetVolumeTimeout=false;function UpdateVolume(B){Volume=B;if(UpdateVolumeTimeout){clearTimeout(UpdateVolumeTimeout)}UpdateVolumeTimeout=setTimeout(function(){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}}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})}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 TitleRollerStop(){if(epileptic){return }titlerollerLocks--;if(titlerollerLocks==0){if(titlerollerTimer){clearTimeout(titlerollerTimer)}document.title=titlerollerOldTitle}}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 fotoslamI(B){var C=$("fotos_slam_hover");if(C){var D=Element.cumulativeOffset(B.parentNode.parentNode);var E=Element.getDimensions(B);var A=D.left+E.width/2-C.width/2-1;var F=D.top+E.height/2-C.height/2-1;C.src=B.src;C.style.left=A+"px";C.style.top=F+"px";C.style.display="block";C._original=B}}function fotoslamO(A){}function fotoslamIH(A){}function fotoslamOH(B){var A=$("fotos_slam_hover");if(A){A.style.display="none"}}function fotoslamC(B){var A=B._original.parentNode;if(A.click){A.click()}else{if(A.onclick){A.onclick()}else{if(A.href){window.location.replace(A.href)}}}}var checked300x250=false;function Check300x250(){if(!checked300x250){if($("atlas_240x400")){var A=0;Element.descendants($("atlas_240x400")).each(function(B){var D=B.tagName;if((D=="IMG")||(D=="OBJECT")||(D=="EMBED")){var C=Element.getWidth(B);A=C>A?C:A}});if(A>=300){if($("content_left")){$("content_left").style.marginRight="320px"}if($("content_right")){$("content_right").style.width="300px"}if((CORE)&&(CORE.LayoutChanged)){CORE.LayoutChanged()}checked300x250=true}}}}var Comet=Class.create();Comet.prototype={lastModified:null,eTag:null,URL:"/nonexistent",reconnectInterval:20000,fetchInterval:500,wasError:false,handlers:{},polling:false,lastCommand:"",lastCommandStamp:0,lastCommandSame:0,initialize:function(A,B,C){this.URL=A;if(B){this.lastModified=B}if(C){this.polling=C}},connect:function(){var A=new Array();if(this.lastModified!=null){A.push("If-Modified-Since");A.push(this.lastModified)}if(this.eTag!=null){A.push("If-None-Match");A.push(this.eTag)}var B=this;new Ajax.Request(this.URL,{method:"get",parameters:{},requestHeaders:A,oversun:B,onSuccess:function(C){var D=C.request.options.oversun;D.lastModified=C.getResponseHeader("Last-Modified")||D.lastModified;D.eTag=C.getResponseHeader("Etag")||D.eTag;D.handleResponse(C);D.wasError=false},onComplete:function(C){var D=C.request.options.oversun;D.wasError=D.wasError||(C.status==0)||(C.status==304)||(D.lastCommandSame>=2);setTimeout(function(){D.connect()},D.wasError?D.reconnectInterval:D.fetchInterval)}})},disconnect:function(){},handleResponse:function(C){try{var B=C.responseText.evalJSON();var D=Math.round((new Date()).getTime()/1000);if((B.command==this.lastCommand)&&((D-this.lastCommandStamp)<5)){this.lastCommandSame++}else{this.lastCommandSame=0}this.lastCommand=B.command;this.lastCommandStamp=D;if(handler=this.handlers[B.command]){handler(B,C)}else{this.unhandled(B,C)}}catch(A){}},unhandled:function(A,B){}};var Popup=Class.create();CurrentPopup=false;Popup.prototype={instance:0,options:false,attachedElement:false,onShow:false,onLoaded:false,onHide:false,onError:false,onEsc:false,initialize:function(A){CORE.popupInstance=CORE.popupInstance||0;CORE.popupInstance++;this.instance=CORE.popupInstance;if(CORE.popupInstances==undefined){CORE.popupInstances=new Array()}CORE.popupInstances[CORE.popupInstance]=this;A.width=A.width||"600px";A.height=A.height||"400px";A.maxWidth=A.maxWidth||"90%";A.maxHeight=A.maxHeight||"90%";this.onShow=A.onShow;this.onLoaded=A.onLoaded;this.onHide=A.onHide;this.onError=A.onError;this.onEsc=A.onEsc;this.popup=document.createElement("DIV");this.popup.className="popup";var B='<div style="position: relative; height: 100%;"><img src="http://i.cdn.promodeejay.net/0.gif" style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"><div style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;" align="center"><div style="height: 100%;"><table class="popup_holder"><td class="popup_holder"><div class="popup_holder">';B+='<div class="popup_title"><div id="lt"></div><div id="rt"></div><table style="width: 100%;"><td class="popup_title">'+A.title+'</td><td class="popup_close"><a href="#" onClick="return CORE.popupInstances['+CORE.popupInstance+'].hide();">'+lng.popup_close+"</a></td></table></div>";B+='<div class="popup_content'+(A.epilog?(" popup_content_with_epilog"):"")+'" style="min-height: '+A.height+"; min-width: "+A.width+"; max-width: "+A.maxWidth+"; max-height: "+A.maxHeight+';"><div id="popup_'+CORE.popupInstance+'_content" style="min-height: '+A.height+"; min-width: "+A.width+'; background: url(http://i.cdn.promodeejay.net/roller2.gif) 50% 50% no-repeat;"></div></div>';if(A.epilog){B+='<div class="popup_epilog"><table><td>'+A.epilog+'</td></table><div id="lb"></div><div id="rb"></div></div>'}B+="</div></td></table></div></div></div>";this.popup.innerHTML=B;$("popups").appendChild(this.popup);this.options=A;var C=this;if(A.element){setTimeout(function(){C.attachElement($(A.element))},1)}else{if(A.URL){setTimeout(function(){C.attachURL(A.URL)},1)}}if(!A.noShow){setTimeout(function(){C.show()},1)}C.keyHandler=function(D){D=D||window.event;if((D.keyCode==27)&&(C==CurrentPopup)){if(C.onEsc){if(!C.onEsc()){C.hide();Event.stop(D)}}else{C.hide();Event.stop(D)}}}},loaded:function(A){$("popup_"+this.instance+"_content").style.background="";if(this.onLoaded){this.onLoaded(this,A)}},attachElement:function(A){A._saved_popup_parent=A.parentNode;A._saved_style_display=A.style.display;if(A.parentNode){A.parentNode.removeChild(A)}$("popup_"+this.instance+"_content").appendChild(A);this.attachedElement=A;A.style.display="block";this.loaded()},attachURL:function(A){var B=this;new Ajax.Updater("popup_"+B.instance+"_content",A,{asynchronous:true,method:"GET",onSuccess:function(C){B.loaded(C)},onFailure:function(C){$("popup_"+B.instance+"_content").innerHTML='<div style="text-align: center; padding: 1em;">'+lng.popup_error+"</div>";if(B.onError){B.onError(B,C)}},evalScripts:true})},deattach:function(){if(this.attachedElement){var A=this.attachedElement;$("popup_"+this.instance+"_content").removeChild(A);if(A._saved_popup_parent){A._saved_popup_parent.appendChild(A)}A.style.display=A._saved_style_display;this.attachedElement=false}else{$("popup_"+this.instance+"_content").update("")}this.popup.update("")},show:function(){if(CORE.activePopups==undefined){CORE.activePopups=new Array()}if(CORE.activePopups.length>0){var B=CORE.activePopups.pop();B.fadeOut();CORE.activePopups.push(B)}CORE.activePopups.push(this);CORE.popupsShown=CORE.popupsShown||0;CORE.popupsShown++;if(CORE.popupsShown==1){var A=$("bottomspot").cumulativeOffset();$("popup_background").style.height=A[1]+"px";$("popup_background").style.display="block"}this.popup.style.display="block";CurrentPopup=this;if(this.onShow){this.onShow(this)}Event.observe(document,"keydown",this.keyHandler);return false},hide:function(){CORE.popupsShown--;if(CORE.popupsShown==0){$("popup_background").style.display="none"}this.popup.style.display="none";this.deattach();CORE.activePopups.pop();var A=false;if(CORE.activePopups.length>0){A=CORE.activePopups.pop();A.fadeIn();CORE.activePopups.push(A)}CurrentPopup=A;if(this.onHide){this.onHide(this)}Event.stopObserving(document,"keydown",this.keyHandler);if(tooltipped){tooltip.h()}return false},fadeOut:function(){new Effect.Opacity(this.popup,{duration:0.2,from:1,to:0.3})},fadeIn:function(){new Effect.Opacity(this.popup,{duration:0.2,from:0.3,to:1})}};CORE.URLHash=function(){var A=window.location.hash;return A.substring(0,1)=="#"?A.substring(1):A};CORE.CheckHash=function(){var A=CORE.URLHash();if(A!=CORE.lastHash){CORE.lastHash=A;CORE.onHashChange.each(function(B){if(B(A)){throw $break}})}};CORE.onHashChangeComments=function(A){if(A.match(/^c[0-9]+$/)){if(h=$(A)){new Effect.Highlight(h,{});return true}}};CORE.SetHash=function(A){window.location="#"+A;CORE.lastHash=A};CORE.lastHash="";CORE.onHashChange=[CORE.onHashChangeComments];CORE.TextAreaAutoSize=function(B,J,H){var I=$(B);if((!I)||(!I.getHeight)){return }var F=I.getHeight();var D=-1;var C=false;var A=new Element("div");A.id=I.id+"_hidden";I.insert({after:A});Element.setStyle(A,{width:Element.getWidth(I)?(Element.getWidth(I)+"px"):Element.getStyle(I,"width"),fontFamily:Element.getStyle(I,"fontFamily"),fontSize:Element.getStyle(I,"fontSize"),lineHeight:Element.getStyle(I,"lineHeight"),paddingTop:Element.getStyle(I,"paddingTop"),paddingLeft:Element.getStyle(I,"paddingLeft"),paddingRight:Element.getStyle(I,"paddingRight"),paddingBottom:Element.getStyle(I,"paddingBottom"),marginTop:Element.getStyle(I,"marginTop"),marginLeft:Element.getStyle(I,"marginLeft"),marginRight:Element.getStyle(I,"marginRight"),marginBottom:Element.getStyle(I,"marginBottom"),borderTop:Element.getStyle(I,"borderTop"),borderLeft:Element.getStyle(I,"borderLeft"),borderRight:Element.getStyle(I,"borderRight"),borderBottom:Element.getStyle(I,"borderBottom"),display:"none",whiteSpace:"pre-wrap"});var G=function(){if(F==0){F=I.getHeight()}var L=$F(I).replace(/&/g,"&amp;").replace(/</g,"&lt;");L+=" "+(H?"":"<br />z");if(Prototype.Browser.IE){L=L.replace(/\x0A/g,"<br />&nbsp;")}A.innerHTML=L;var K=Math.max(F,A.getHeight());if(J){K=Math.min(K,J)}if((K!=D)&&(K!=0)){I.setStyle({height:K+"px"});D=K}};var E=function(K){clearTimeout(C);C=setTimeout(G,100)};I.observe("change",E);I.observe("keyup",E);G()};function h5waveformplayerInitable(){var B=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;if(!B){var A=document.createElement("audio");if(A){if(A.canPlayType){return(("no"!=A.canPlayType("audio/mpeg"))&&(""!=A.canPlayType("audio/mpeg")))}}}return false}var h5waveformplayer=Class.create({initialize:function(B,A,E,F,D){var C=this;this.statusTimeout=false;this.gotStop=false;this.intervalID=0;this.mp3=A;this.repeat=false;this.dragging=false;this.IsiPad=navigator.userAgent.indexOf("iPad")!=-1;this.IsiPhone=navigator.userAgent.indexOf("iPhone")!=-1;this.IsiPod=navigator.userAgent.indexOf("iPod")!=-1;this.html=new Element("div",{id:"h5wfp-holder"});this.wave_wrapper=new Element("div",{id:E?"h5wfp-wave-wrapper":"h5wfp-wave-wrapper-no-wave"});this.wave=new Element("div",{id:"h5wfp-wave",style:E?"-webkit-mask-box-image:url('"+E+"')":""});if(D==undefined){D="#C6190E"}this.wave.style.backgroundColor=D;if(E){this.availableImg(E)}if(this.IsiPad||this.IsiPhone||this.IsiPod){this.iDevice=1;this.wave.ontouchstart=function(){C.sliderDown()};this.wave.ontouchmove=function(){C.sliderMove()};this.wave.ontouchend=function(){C.sliderUp()}}else{this.wave.onmousedown=function(){C.sliderDown()};this.wave.onmousemove=function(){C.sliderMove()};this.wave.onmouseup=function(){C.sliderUp()}}this.gray_wave=new Element("div",{id:"h5wfp-gray-wave"});this.roller=new Element("div",{id:E?"h5wfp-roller":"h5wfp-roller-mini"});this.roller.onmouseup=function(){C.sliderUp()};Element.insert(this.wave,this.gray_wave);Element.insert(this.wave_wrapper,this.wave);Element.insert(this.wave_wrapper,this.roller);this.slider=new Element("div",{id:E?"h5wfp-slider":"h5wfp-slider-no-wave"});this.slider.onmouseup=function(){C.sliderUp()};Element.insert(this.wave_wrapper,this.slider);Element.insert(this.html,this.wave_wrapper);this.controls=new Element("div",{"class":this.IsiPad?"controls-2x":"controls"});this.playbtn=new Element("a",{href:"#",id:this.IsiPad?"h5wfp-play-2x":"h5wfp-play","class":"active"});this.playbtn.onclick=function(){return C.play()};Element.insert(this.controls,this.playbtn);this.pausebtn=new Element("a",{href:"#",id:this.IsiPad?"h5wfp-pause-2x":"h5wfp-pause"});this.pausebtn.onclick=function(){return C.pause()};Element.insert(this.controls,this.pausebtn);this.stopbtn=new Element("a",{href:"#",id:this.IsiPad?"h5wfp-stop-2x":"h5wfp-stop"});this.stopbtn.onclick=function(){return C.stop()};Element.insert(this.controls,this.stopbtn);this.timeDisplay=new Element("div",{id:this.IsiPad?"h5wfp-timeDisplay-2x":"h5wfp-timeDisplay"});this.playedTime=new Element("b",{id:"h5wfp-playedTime"}).update("00:00");Element.insert(this.timeDisplay,this.playedTime);this.fullTime=new Element("b",{id:"h5wfp-fullTime"});Element.insert(this.timeDisplay,this.fullTime);Element.insert(this.controls,this.timeDisplay);this.repeatbtn=new Element("a",{href:"#",id:this.IsiPad?"h5wfp-repeat-2x":"h5wfp-repeat"});this.repeatbtn.onclick=function(){return C.toggleRepeat()};Element.insert(this.controls,this.repeatbtn);this.clearboth=new Element("div",{style:"clear:both;"});Element.insert(this.controls,this.clearboth);Element.insert(this.html,this.controls);if(this.IsiPhone||this.IsiPod){this.createAudio()}Element.insert(B,this.html);if(F){this.play()}},createAudio:function(){var A=this;if(!this.IsiPhone&&!this.IsiPod){this.roller.style.display="block"}this.audio=new Element("audio",{src:this.mp3});this.audio.controls=false;if(this.volume!=undefined){this.audio.volume=this.volume}this.audio.addEventListener("timeupdate",function(){A.updateTime()},false);this.audio.addEventListener("loadedmetadata",function(){A.setFullTime()},false);this.audio.addEventListener("pause",function(){A.pausing()},false);this.audio.addEventListener("ended",function(){A.endingPlay()},false);this.audio.addEventListener("error",function(){A.onErrorRaw()},false);this.audio.addEventListener("seeked",function(){A.waitEnd()},false);this.audio.addEventListener("playing",function(){A.playing()},false);this.audio.addEventListener("waiting",function(){A.waitStart()},false);setInterval(function(){A.updateProgress()},750);this.audio.load();Element.insert(this.html,this.audio);return true},play:function(){if(this.intervalID!=0&&!this.audio.paused){clearInterval(this.intervalID);this.intervalID=0}if(this.audio==undefined){this.createAudio()}if(this.audio.paused){this.audio.play();this.onStatusRaw("play")}return false},pause:function(){if(!this.audio.paused){this.audio.pause();this.onStatusRaw(this.gotStop?"stop":"pause");this.gotStop=false}return false},stop:function(){if(this.audio&&this.audio.played){this.gotStop=true;this.fullTime.innerHTML="";this.audio.currentTime=0;this.audio.pause();this.onStatusRaw("stop")}return false},setFullTime:function(){if(this.audio.duration){this.fullTime.innerHTML=" / "+this.secondsToTime(this.audio.duration).join(":")}},updateTime:function(){var A=this.audio.currentTime/this.audio.duration*100;this.slider.style.left=A+"%";var B=this.secondsToTime(this.audio.currentTime);this.playedTime.innerHTML=B.join(":")},updateProgress:function(){if(this.audio.duration&&this.audio.buffered.length!=0){var A=100-Math.ceil(((this.audio.buffered.end(0)/this.audio.duration)*100));this.gray_wave.style.width=A+"%"}},sliderDown:function(){if(this.audio==undefined){this.createAudio()}this.blinkWave();this.dragging=true;this.pause();this.sliderMove();return false},sliderMove:function(){if(this.dragging&&this.audio.duration){if(this.iDevice==1){event.preventDefault()}var C=0;if(event.target.id=="h5wfp-wave"||(event.targetTouches!=undefined&&event.targetTouches[0].target.id=="h5wfp-wave")){if(this.iDevice==1){var A=event.targetTouches[0].pageX-this.wave_wrapper.cumulativeOffset()[0];C=A/this.wave.offsetWidth*this.audio.duration;var B=this.audio.duration-this.gray_wave.offsetWidth/this.wave.offsetWidth*this.audio.duration;C=B>=C?C:B}else{C=event.layerX/this.wave.offsetWidth*this.audio.duration}}else{C=this.audio.duration*0.99-this.gray_wave.offsetWidth/this.wave.offsetWidth*this.audio.duration}if(!C){C=0}this.slider.style.left=(C/this.audio.duration*100)+"%";this.pos=C}return false},sliderUp:function(){var A=this;if(this.audio.duration){this.audio.currentTime=this.pos}this.dragging=false;if(this.intervalID==0){this.intervalID=setInterval(function(){A.play()},200)}return false},toggleRepeat:function(){if(this.repeat){this.repeat=false;this.repeatbtn.removeClassName("active")}else{this.repeat=true;this.repeatbtn.addClassName("active")}return false},endingPlay:function(){if(this.repeat){this.audio.currentTime=0;this.audio.play()}else{this.stop()}},secondsToTime:function(E){var C=Math.floor(E/(60*60));var F=E%(60*60);var D=Math.floor(F/60);var B=F%60;var G=Math.ceil(B);var A=new Array();if(E>=3600){A.push(C>9?parseInt(C):"0"+parseInt(C))}A.push(D>9?parseInt(D):"0"+parseInt(D));A.push(G>9?parseInt(G):"0"+parseInt(G));return A},onErrorRaw:function(){switch(this.audio.error.code){case this.audio.error.MEDIA_ERR_ABORTED:break;case this.audio.error.MEDIA_ERR_NETWORK:this.onError("network_error");break;case this.audio.error.MEDIA_ERR_DECODE:this.onError("failed_to_decode");break;case this.audio.error.MEDIA_ERR_SRC_NOT_SUPPORTED:this.onError("source_not_supported");break;default:this.onError("unknown_error");break}},onError:function(A){},onStatusRaw:function(B){var A=this;clearTimeout(this.statusTimeout);this.statusTimeout=setTimeout(function(){A.onStatus(B)},250)},onStatus:function(A){},availableImg:function(B){var A=this;this.testimg=new Image();this.testimg.onerror=function(C){A.slider.id="h5wfp-slider-no-wave";A.wave_wrapper.id="h5wfp-wave-wrapper-no-wave";A.roller.id="roller_mini"};this.testimg.src=B},getVolume:function(){return this.audio.volume*100},setVolume:function(A){if(this.audio==undefined){this.volume=A/100}else{this.audio.volume=A/100}},blinkWave:function(){var A=this;this.wave_wrapper.setOpacity(0.4);setTimeout(function(){A.wave_wrapper.setOpacity(1)},100)},dbg:function(A){$("dbg").innerHTML+="dbg: "+A+"<br />"},waitStart:function(){if(!this.IsiPhone&&!this.IsiPod){this.roller.style.display="block"}},waitEnd:function(){this.roller.style.display="none"},playing:function(){if(this.dragging==false){this.setFullTime();this.playbtn.removeClassName("active");this.stopbtn.addClassName("active");this.pausebtn.addClassName("active");this.roller.style.display="none"}},pausing:function(){if(this.dragging==false){this.playbtn.addClassName("active");this.stopbtn.removeClassName("active");this.pausebtn.removeClassName("active")}}});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)}});function UT(){return parseInt((new Date).getTime()/1000)}function LZ(A){A=A.toString();if(A.length==1){A="0"+A}return A}function DKN(B,A){DisableKeyNav=A}function PerformDisableOnSubmit(){var B=1;while(d=$("dos"+B)){d.disabled=true;B++}}function DisableOnSubmit(){return true}function ExecuteIt(B){B.responseText.evalScripts()}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 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 ie6sucks(){var C=document.uniqueID&&document.compatMode&&!window.XMLHttpRequest&&document.execCommand;try{if(!!C){C("BackgroundImageCache",false,true)}}catch(D){}}function isFF(){return/Firefox/.test(navigator.userAgent)}function ReloadCaptcha(D,C){$(D).src=C+"&"+Math.random();if(i=$("captchainput")){i.focus()}return false}function cb(B){B.cancelBubble=true;return true}function FlipFAQ(B){$("faq"+B).style.display=($("faq"+B).style.display=="none")?"block":"none";return false}function NoEnter(C){var D=0;if(window.event){D=window.event.keyCode}else{if(C.which){D=C.which}}return D==13?false:true}function CheckEnter(F,D){var E=0;if(window.event){E=window.event.keyCode}else{if(F.which){E=F.which}}if(E==13){D();return false}else{return true}}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 htmlspecialchars(B){return B.replace(/&/g,"&").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/\>/g,"&gt;")}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""}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 ToggleVisibility(C,A){var B=$(C);B.style.display=B.style.display=="none"?"block":"none";return false}Event.observe(document,"keydown",function(A){A=A?A:window.event;if(!DisableKeyNav){if(A.ctrlKey){if(A.keyCode==37){if(a=$("previous_page")){location.href=a.href}if(goPrevious){goPrevious()}}else{if(A.keyCode==39){if(a=$("next_page")){location.href=a.href}if(goNext){goNext()}}}}}});function OhGod(){if(!window.FireStarted){if(window.FireStarter){setTimeout(window.FireStarter,1)}window.FireStarted=true}setTimeout(InitFeeler,1)}Event.onDOMReady(function(){if(!window.FireStarted){if(window.FireStarter){window.FireStarter()}window.FireStarted=true}});function InitFeeler(){if(bf=$("bottomfeeler")){bf.appendChild(a=document.createElement("IMG"));a.src="http://counter.promodeejay.net/cnt"+(stamp_15min?("?"+stamp_15min):"");a.width=1;a.height=1}}function LaunchPopper(B,E,D,A){var C="?";if(D!=""){C+="mode="+D+"&"}if(A!=""){C+="submode="+A+"&"}C+="hash="+B+"&v=4";Popper=new Comet("/ajax/pop?channel="+B,E,true);Popper.handlers.alert=function(F,G){alert(F.value)};Popper.handlers["session.refresh"]=function(F,G){new Ajax.Request("/ajax/session_refresh.html"+C,{asynchronous:true,method:"GET",evalScripts:true})};Popper.handlers["messages.update.counter"]=function(F,G){if($("messages_count_holder")){setTimeout(function(){new Ajax.Updater("messages_count_holder","/ajax/messages.html"+C,{asynchronous:true,method:"GET",onSuccess:RecalcTooltips,evalScripts:true})},500)}};Popper.connect()};