if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(K,B,L,D,H,I,F,E,C,J){if(!document.getElementById){return }this.DETECT_KEY=J?J:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(K){this.setAttribute("swf",K)}if(B){this.setAttribute("id",B)}if(L){this.setAttribute("width",L)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(I){this.addParam("bgcolor",I)}var A=F?F:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var G=(E)?E:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(C){this.setAttribute("redirectUrl",C)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C[C.length]=B+"="+A[B]}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}B='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';B+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var F=this.getParams();for(var E in F){B+=[E]+'="'+F[E]+'" '}var D=this.getVariablePairs().join("&");if(D.length>0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}B='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';B+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var E in C){B+='<param name="'+E+'" value="'+C[E]+'" />'}var A=this.getVariablePairs().join("&");if(A.length>0){B+='<param name="flashvars" value="'+A+'" />'}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var E=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){E=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var B=1;var C=3;while(B){try{C++;B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+C);E=new deconcept.PlayerVersion([C,0,0])}catch(D){B=null}}}else{try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E=new deconcept.PlayerVersion([6,0,21]);B.AllowScriptAccess="always"}catch(D){if(E.major==6){return E}}try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(B!=null){E=new deconcept.PlayerVersion(B.GetVariable("$version").split(" ")[1].split(","))}}}return E};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(C){var D=document.location.search||document.location.hash;if(C==null){return D}if(D){var B=D.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==C){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var B=document.getElementsByTagName("OBJECT");for(var C=B.length-1;C>=0;C--){B[C].style.display="none";for(var A in B[C]){if(typeof B[C][A]=="function"){B[C][A]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var GaduMusic=Class.create();Object.extend(GaduMusic.prototype,AppFramework.prototype);Object.extend(GaduMusic.prototype,{appid:"GaduMusic",formHTML:"",mediaPlayer:null,defaultPlayerDiv:"mPlayer",defaultPlayerDivTtitle:"mPlayer-title",defaultPlayerDivContainer:"mPlayer-container",defaultWidth:240,defaultHeight:19,defaultDisplayHeight:0,playerJustLoaded:false,playerInProfile:false,beforeShowLightBox:function(){if(this.mediaPlayer!=null){var A=$(this.defaultPlayerDiv);if(!this.playerJustLoaded){this.playerStop()}A.hide()}},afterHideLightBox:function(){if(this.mediaPlayer!=null){var A=$(this.defaultPlayerDiv);A.show()}},startPlayer:function(B,G,F,C,E,A){E=E?E:this.defaultWidth;if(!$(A)){return }requiredFlashVersion="7";var D=new SWFObject(B,"mediaplayer_"+A,this.defaultWidth,this.defaultHeight,requiredFlashVersion);D.addVariable("enablejs","true");D.addVariable("displayheight",this.defaultDisplayHeight);D.addVariable("width",E);D.addVariable("file",G);D.addVariable("height",this.defaultHeight);D.addVariable("lightcolor","0xff9600");D.addVariable("frontcolor","0xfeef00");D.addVariable("title",F);D.addParam("bgcolor","");D.addParam("menu","false");D.addParam("wmode","transparent");D.addParam("allowfullscreen","false");if(C==1){D.addVariable("autostart","true")}if(F!="null"){this.playerSetTitle(F)}else{this.playerJustLoaded=true}this.playerInProfile=false;D.write(A);this.mediaPlayer=$("mediaplayer_"+A);return false},startProfilePlayer:function(G,H,D,B,C,A,F){if(!$(B)){return }F=F?F:this.defaultWidth;requiredFlashVersion="7";var E=new SWFObject(G,"mediaplayer_"+B,240,this.defaultHeight,requiredFlashVersion);E.addVariable("height",this.defaultHeight);E.addVariable("width",F);E.addVariable("enablejs","true");E.addVariable("lightcolor",A);E.addVariable("frontcolor",C);E.addVariable("displayheight",this.defaultDisplayHeight);E.addVariable("file",H);E.addVariable("javascriptid","mediaplayer_"+B);E.addParam("menu","false");E.addParam("wmode","transparent");E.addParam("allowfullscreen","false");if(D==1){E.addVariable("autostart","true")}this.playerInProfile=true;E.write(B);this.mediaPlayer=$("mediaplayer_"+B);return false},showinfo:function(){return this.mediaPlayer;return false},playerPlayPause:function(){if(this.mediaPlayer==null){return false}this.mediaPlayer.sendEvent("playpause");return false},playerStop:function(){if(this.mediaPlayer==null){return false}this.mediaPlayer.sendEvent("stop");return false},playerNextItem:function(){if(this.mediaPlayer==null){return false}this.mediaPlayer.sendEvent("next");return false},playerPlayItem:function(A){if(this.mediaPlayer==null){return false}this.mediaPlayer.sendEvent("playitem",(A-1));return false},playerPreviousItem:function(){if(this.mediaPlayer==null){return false}this.mediaPlayer.sendEvent("prev");return false},playerLoadItem:function(A,B){if(this.mediaPlayer==null){return false}this.mediaPlayer.loadFile({file:A,title:B});if(!this.playerInProfile){this.playerSetTitle(B)}this.playerJustLoaded=false;this.mediaPlayer.sendEvent("playpause");return false},playerSetTitle:function(A){$(this.defaultPlayerDivTtitle).update(A);return false},playerAddItem:function(A,B){if(this.mediaPlayer==null){return false}this.mediaPlayer.addItem({file:A,title:B});return false},playerRemoveItem:function(A){if(this.mediaPlayer==null){return false}this.mediaPlayer.removeItem(A-1);return false}});Event.onDOMReady(function(){gadumusic=new GaduMusic()});Effect.ScrollVertical=Class.create();Object.extend(Object.extend(Effect.ScrollVertical.prototype,Effect.Base.prototype),{initialize:function(B){if(typeof B=="string"){this.element=$(B);if(!this.element){throw (Effect._elementDoesNotExistError)}}var A=Object.extend({from:this.element.scrollTop||0,to:this.element.offsetHeight},arguments[1]||{});this.start(A)},update:function(A){this.element.scrollTop=A}});Effect.ScrollHorizontal=Class.create();Object.extend(Object.extend(Effect.ScrollHorizontal.prototype,Effect.Base.prototype),{initialize:function(B){if(typeof B=="string"){this.element=$(B);if(!this.element){throw (Effect._elementDoesNotExistError)}}var A=Object.extend({from:this.element.scrollLeft||0,to:this.element.offsetWidth},arguments[1]||{});this.start(A)},update:function(A){this.element.scrollLeft=A}});Object.extend(GaduMusic.prototype,{scrollDefault:3,scrollLevel:0,scrollWidth:800,scrollMax:0,appid:"GaduMusic",formHTML:"",mediaPlayer:null,defaultPlayerDiv:"mPlayer",defaultPlayerDivTtitle:"mPlayer-title",defaultPlayerDivContainer:"mPlayer-container",defaultWidth:302,defaultHeight:19,defaultDisplayHeight:0,playerJustLoaded:false,playerInProfile:false,scrollSpeed:25,initialize:function(){AppFramework.afterHideLightBox=function(){gadumusic.afterHideLightBox()}},addSong:function(A){this.beforeShowLightBox();if(typeof A=="undefined"){A="0"}this.showLightBox("center_gadu_form","viewAddSong",{"songKey":A},{width:580,height:450},function(B){this.startAutoSuggest()}.bind(this));return false},artistHelp:function(A){this.showLightBox("center_gadu_form","viewArtistHelp",{helpID:A},{width:410,height:220},function(B){});return false},startScroll:function(A){var B=new Number(A);var C=new Effect.ScrollHorizontal("cal-scrollable",{to:B,queue:"end",duration:20,afterFinish:function(){new Effect.ScrollHorizontal("cal-scrollable",{to:0,queue:"end",duration:20,afterFinish:function(){gadumusic.startScroll(B)}})}})},scrollMoveLeft:function(){if(this.scrollLevel>0){this.scrollLevel--}new Effect.ScrollHorizontal("cal-scrollable",{to:this.scrollLevel*this.scrollWidth,duration:2})},scrollMoveRight:function(){var A=0;if(this.scrollLevel>0&&this.scrollLevel%this.scrollDefault==0){this.scrollMax+=this.scrollDefault;A=1}this.scrollLevel++;if(A==1){params={level:this.scrollLevel};this.sendRequest("viewCalendarThreads",params,function(B){new Effect.ScrollHorizontal("cal-scrollable",{to:this.scrollLevel*this.scrollWidth,duration:2});new Insertion.Bottom("site-delimeter",B.html)}.bind(this))}else{new Effect.ScrollHorizontal("cal-scrollable",{to:this.scrollLevel*this.scrollWidth,duration:2})}},hideAdv:function(){var A=$("adv_search_toggle"),B=$("songs-advanced-search");basic_search=$("basic-search-area");if(A){A.value="0"}sType=$("gm-search-type").value;if(sType==0){$("gm-search-value").value=$("performer_in").value}if(sType==1){$("gm-search-value").value=$("title_in").value}if(sType==2){$("gm-search-value").value=$("mainTag_in").value}B.hide();basic_search.show();$("search-type").value="basic";return false},showAdv:function(){var A=$("adv_search_toggle"),B=$("songs-advanced-search");basic_search=$("basic-search-area");if(A){A.value="1"}$("performer_in","title_in","mainTag_in").each(function(C){C.value=""});sType=$("gm-search-type").value;if(sType==0){$("performer_in").value=$("gm-search-value").value}if(sType==1){$("title_in").value=$("gm-search-value").value}if(sType==2){$("mainTag_in").value=$("gm-search-value").value}B.show();basic_search.hide();$("search-type").value="adv";return false},changeSearchMenu:function(B){var A=$$("li.search-element");for(i=0;i<A.size();i++){A[i].removeClassName("selected-element")}$("gm-search-type").value=B;A[B].addClassName("selected-element")},checkSubmit:function(){return false},submit:function(){form=$("songs-search");form.submit();return false},slHide:function(A){var B=$("adv-song-data-"+A);buttonZwin=$("zwin-"+A);buttonRozwin=$("rozwin-"+A);if(B){B.hide();buttonZwin.hide();buttonRozwin.show()}return false},slShow:function(A){var B=$("adv-song-data-"+A);buttonZwin=$("zwin-"+A);buttonRozwin=$("rozwin-"+A);if(B){B.show();buttonZwin.show();buttonRozwin.hide()}return false},slHideAll:function(B){for(i=0;i<B;i++){this.slHide(i)}var A=$("sl-show-all");divHideAll=$("sl-hide-all");divHideAll.hide();A.show();return false},slShowAll:function(B){for(i=0;i<B;i++){this.slShow(i)}var A=$("sl-show-all");divHideAll=$("sl-hide-all");A.hide();divHideAll.show();return false},viewInformationBox:function(A){this.showLightBox("center_gadu_form","viewInformationBox",{objectId:A},{width:580,height:450},function(B){this.beforeShowLightBox()}.bind(this))},viewFirstTimeInformationBox:function(A){this.showLightBox("center_gadu_form","viewFirstTimeInformationBox",{objectId:A},{width:260,height:140},function(B){this.beforeShowLightBox()}.bind(this))},closeInformationBox:function(){this.closeLightBox()},closeLightBox:function(){AppFramework.hideLightBox("center_gadu_form");this.afterHideLightBox()},cancelAddSong:function(){this.closeLightBox();return false},startUpload:function(){this.w=new Wait($("center_gadu_form_row2"));this.w.show();this.w.update(Lang.songUpload);$("addSongFormFile").submit();return false},endUpload:function(A){return this.getIFramePage(A,function(B){if(B.result==this.RESPONSE_RESULT_OK){if(B.location){document.location=B.location}else{this.w.hide();this.closeLightBox()}}else{this.w.hide();$("addSongWindow").update(B.html)}}.bind(this),function(){this.w.hide()}.bind(this))},getSongsByGenre:function(A){$("genre").value=A;$("gm-search-form").submit()},fold_down:function(A){$(A).show();$(A+"_down").hide();$(A+"_up").show()},fold_up:function(A){$(A).hide();$(A+"_up").hide();$(A+"_down").show()},getGenreList:function(){var A=Form.getArray($("addSongForm"));this.sendRequest("viewGenreList",A,function(B){})},waitingForAcceptanceUserBox:function(){this.showLightBox("center_gadu_form","viewWaitingForAcceptanceUserBox",{},{width:350,height:100},function(A){this.beforeShowLightBox()}.bind(this))},startAutoSuggest:function(){new AutoSuggest("songTags","tagsSuggest",{appid:"GaduMusic",action:"viewGenreList",minChars:2,tokens:" "})},acceptTerms:function(){if($("rulesAccepted").checked==true){$("gm_step2").show();$("gm_step1").hide()}return false},contestSwitchDJAva:function(A,B){avaImage=$("dj-"+A+"-ava");imageSource=avaImage.src;imageSource=imageSource.substring(0,1+imageSource.lastIndexOf("/"));imageSource=imageSource+"dj-"+A+B+".jpg";avaImage.src=imageSource;return false}});var ForumFramework=Class.create();Object.extend(ForumFramework.prototype,AppFramework.prototype);Object.extend(ForumFramework.prototype,{isEditorOpened:false,savePost:function(C,A,F,B){Editor.populate("body_content");Editor.disable("body_content",true);Form.disable(C);this.prePost();var E=Form.getArray(C);var D=new Wait(C);D.show();Object.extend(E,{threadId:F,forumId:A,postId:B});this.sendRequest("savePost",E,function(H){D.hide();this.updateChildCount(F,H.count);if(H.updated){if(H.added){Element.replace("Post_"+B,H.html);$("Post_"+B).show();Element.show("Post_"+B,H.html);var G=$("Post_edit_"+B);if(G){Element.remove(G)}}else{$("Post_edit_"+B).update(H.html)}}else{if(H.added){F?this.effectNewPost(A,F,H):this.effectNewThread(A,F,H)}else{C.remove();var J=F?F:A;$(this.appid+"AddPost_"+J).update('<div id="Post_edit_'+H.id+'"> '+H.html+"</div>");var I=document.getElementsByClassName("error","Form_"+H.id);if(I.length>0){Field.select(I[0])}}}}.bind(this),function(){C.remove();D.hide();this.cancelPost(F?F:A)}.bind(this));this.isEditorOpened=false;return false},prePost:function(){},effectNewThread:function(A,C,B){new Insertion.Top($("Forum_"+A),B.html);new Effect.BlindDown($("Post_"+B.id));this.cancelPost(C?C:A,A)},effectNewPost:function(A,C,B){new Insertion.Bottom($("Forum_"+A),B.html);new Effect.BlindDown($("Post_"+B.id));this.cancelPost(C?C:A,A)},effectDelPost:function(A){new Effect.BlindUp($("Post_"+A),{afterFinish:function(){Element.replace($("Post_"+A),"")}})},addPost:function(A,B){if(!this.isEditorOpened){this.sendRequest("addNewPost",{threadId:B,forumId:A},function(C){this.addPostAction(A);var D=B?B:A;if(C.updated){Element.replace($("Post_"+C.id),C.html)}else{Element.update($(this.appid+"AddPost_"+D),'<div id="Post_edit_'+C.id+'"> '+C.html+"</div>")}Field.select(B?$("Form_"+C.id).body:$("Form_"+C.id).subject);this.isEditorOpened=true}.bind(this),function(){this.isEditorOpened=false})}else{this.alertBlockedEditor()}return false},alertBlockedEditor:function(){this.showLightBoxStatic("multieditor_alert",'<div style="margin-top : 20px; text-align : center;">'+Lang.multieditorAlert+"</div>");return false},editPost:function(A,C,B){if(!this.isEditorOpened){this.sendRequest("editPost",{threadId:C,forumId:A,postId:B},function(D){var E=C?C:A;Element.hide($("Post_"+B));new Insertion.After($("Post_"+B),'<div id="Post_edit_'+B+'"> '+D.html+"</div>");this.isEditorOpened=true}.bind(this),function(){this.isEditorOpened=false})}else{this.alertBlockedEditor()}return false},addPostAction:function(A){if($(this.appid+"AddPostButton_")){$(this.appid+"AddPostButton_").hide()}},cancelPost:function(D,A){var C=$(this.appid+"AddPost_"+D);if(C){C.update("").show();Effect.BlindUp(C,{duration:0.2,afterFinish:function(){C.update("").show()}})}var B=$("Post_edit_"+D);if(B){Element.remove(B);if($("Post_"+D)){Element.show($("Post_"+D))}}if($(this.appid+"AddPostButton_")){$(this.appid+"AddPostButton_").show()}Editor.cancel();this.isEditorOpened=false;return false},delPost:function(B,A){this.sendRequest("deletePost",{postId:B,jump:A},function(C){if(typeof C.location!="undefined"){window.location=C.location;return }this.updateChildCount(C.threadId,C.count);if(C.postDelated){this.effectDelPost(B)}}.bind(this),null,true);return false},updateChildCount:function(B,A){if(typeof A!="undefined"&&$(this.appid+"Comments_"+B)){Element.update($(this.appid+"Comments_"+B),A)}}});var ScreamCast=Class.create();Object.extend(ScreamCast.prototype,ForumFramework.prototype);Object.extend(ScreamCast.prototype,{appid:"ScreamCast",effectNewThread:function(A,C,B){new Insertion.After($(this.appid+"AddPost_"+A),B.html);new Effect.BlindDown($("Post_"+B.id));this.cancelPost(C?C:A)},effectNewPost:function(A,C,B){new Insertion.Before($(this.appid+"AddPost_"+C),B.html);new Effect.BlindDown($("Post_"+B.id));this.cancelPost(C?C:A)},prePost:function(){Editor.populate("body_content")}});Event.onDOMReady(function(){screamcast=new ScreamCast()});var Galleries=Class.create();Object.extend(Galleries.prototype,AppFramework.prototype);Object.extend(Galleries.prototype,{appid:"Galleries"});Event.onDOMReady(function(){galleries=new Galleries()});Object.extend(Galleries.prototype,{userAlbumsScroller:null,createUserAlbumsScroller:function(A,B){this.userAlbumsScroller=new Scroller({listHolder:"albums-scroller-holder",listScrollHolder:"albums-scroller",params:{},app:this,scrollSpeed:126,direction:"left",rangeEnd:A-1,startPage:B})},userAlbumsScrollLeft:function(A,B){if(!this.userAlbumsScroller){this.createUserAlbumsScroller(A,B)}this.userAlbumsScroller.scrollDecrease();return false},userAlbumsScrollRight:function(A,B){if(!this.userAlbumsScroller){this.createUserAlbumsScroller(A,B)}this.userAlbumsScroller.scrollIncrease();return false}});var Shoutbox=Class.create();Object.extend(Shoutbox.prototype,AppFramework.prototype);Object.extend(Shoutbox.prototype,{appid:"Shoutbox",editmode:false,add:function(){Editor.populate("Shoutbox_content");Editor.disable("Shoutbox_content",true);var A=$("Shoutbox_content").value;this.sendRequest("add",{"content":A},function(B){if(typeof B.error=="undefined"){this.editmode=false;Editor.populate("Shoutbox_content",true);Element.remove($("Shoutbox_content").form);if(ownerUIN!=112){B.count++}Element.update($("Shoutbox_count"),B.count);new Insertion.Top($("shoutbox-list-content"),B.html);new Effect.Highlight($("shoutbox-list-content").getElementsByTagName("div")[0],{duration:1})}else{Element.update($("Shoutbox_error"),B.errorMsg);Element.show($("Shoutbox_error"));Editor.disable("Shoutbox_content",false);return false}}.bind(this));return false},showAdd:function(){if(this.editmode){return false}this.sendRequest("showAdd",{},function(A){new Insertion.Top($("shoutbox-list-content"),A.html);this.editmode=true}.bind(this));return false},cancel:function(){Element.remove($("shoutbox-list-content").getElementsByTagName("form")[0]);this.editmode=false;return false},viewAll:function(A){this.sendRequest("viewAll",{},function(C){var B=$("Shoutbox_list");Element.addClassName(B,"scroll");window.setTimeout(function(){Element.update(B,C.html)},0);Element.remove($("Shoutbox_viewAll"));Shoutbox.showingAll=true}.bind(this));return false},remove:function(A,B){this.sendRequest("remove",{"id":B},function(C){if(C.result!=0){if(ownerUIN!=112){C.count++}Element.update($("Shoutbox_count"),C.count);Element.update($("Shoutbox_list"),C.html);new Effect.Highlight($("shoutbox-list-content"),{duration:1})}}.bind(this),null,true);return false}});shoutbox=new Shoutbox()