/* ../kickPlaceServerSide.js built on Fri Oct 30 03:35:56 EDT 2009 */


/* ../../StarManager.js */

function kap_starSystem(type,size,stats){this.stats=stats;this.size=size;this.type=type;this.avg=stats.avg;this.system=null;starList=document.createElement("ul");starList.className="ka_starSystem"+size;for(var x=0;x<5;x++){starListItem=document.createElement("li");if(size=="L"){starListItem.id="ka_starL"+(x+1);}starListItem.className=(x+1)<=stats.avg?" ka_starSelected"+size:"ka_star"+size;starListItemLink=document.createElement("a");starListItemLink.innerHTML="&nbsp;";starListItemLink.href="Javascript: ;";if(this.type=="rate"){starListItemLink.onmouseover=function(){liNodes=starList.getElementsByTagName("li");for(var q=0;q<5;q++){liNodes[q].className="ka_star"+size;}this.parentNode.className="ka_starHighlight"+size;for(var q=0;q<5;q++){if(liNodes[q]!=this.parentNode){liNodes[q].className="ka_starHighlight"+size;}else{break;}}};starListItemLink.onmouseout=function(){liNodes=starList.getElementsByTagName("li");for(var q=0;q<5;q++){liNodes[q].className="ka_star"+size;}for(var q=0;q<stats.avg;q++){liNodes[q].className="ka_starSelected"+size;}};starListItemLink.onclick=function(){this.blur();liNodes=starList.getElementsByTagName("li");kap_starsBlink(liNodes,this,size,0);var ratingValue;for(var q=0;q<5;q++){liNodes[q].getElementsByTagName("a")[0].onmouseover=function(){};liNodes[q].getElementsByTagName("a")[0].onmouseout=function(){};liNodes[q].getElementsByTagName("a")[0].onclick=function(){};liNodes[q].getElementsByTagName("a")[0].style.cursor="default";if(liNodes[q]==this.parentNode){ratingValue=q+1;}}kap_rateMedia(ratingValue);$("ka_starRatingSubText").innerHTML=Ka.Messages.PlayPage.THANKSFORTHEVOTE+" "+Ka.Messages.Common.APPENDTOCONFIRMATIONMSG.replace("($siteName)",Ka.Info.SITENAME);};}starListItem.appendChild(starListItemLink);starList.appendChild(starListItem);}if(type=="view"){liNodes=starList.getElementsByTagName("li");for(var q=0;q<5;q++){liNodes[q].getElementsByTagName("a")[0].style.cursor="default";}}if(Ka.Info.PAGE=="pages/mediaPlayPage.jsp"||Ka.Info.PAGE=="pages/kickPlaceServerSide.jsp"){if(Ka.Info.USERID==""){liNodes=starList.getElementsByTagName("li");for(var q=0;q<5;q++){liNodes[q].getElementsByTagName("a")[0].style.cursor="pointer";}for(var i=0;i<liNodes.length;i++){liNodes[i].onmouseover=function(){this._oldClassName=this.className;this.className="ka_starHighlight"+size;};liNodes[i].onmouseout=function(){this.className=this._oldClassName;};liNodes[i].onclick=function(){Ka.popup("#ka_loginPopup");return false;};}}}this.system=starList;this.show=function(divId){$(divId).appendChild(this.system);numRatingsSpan=document.createElement("span");numRatingsSpan.className="ka_starsNumRatings"+size;numRatingsSpan.id="ka_starRatingSubText";numRatings=document.createTextNode("("+(this.stats.numRatings==1?Ka.Messages.PlayPage.RATING.replace("($count)",this.stats.numRatings):Ka.Messages.PlayPage.RATINGS.replace("($count)",this.stats.numRatings))+")");numRatingsSpan.appendChild(numRatings);$(divId).appendChild(numRatingsSpan);};}function kap_starsBlink(liNodes,lastLi,size,itCount){if(itCount<2){for(var q=0;q<5;q++){liNodes[q].className="ka_star"+size;}setTimeout(function(){lastLi.parentNode.className="ka_starHighlight"+size;for(var q=0;q<5;q++){if(liNodes[q]!=lastLi.parentNode){liNodes[q].className="ka_starHighlight"+size;}else{break;}}setTimeout(function(){kap_starsBlink(liNodes,lastLi,size,itCount+1);},250);},250);}}

/* ../profilePageCommon.js */

function ka_sendMessage(id){var url=Ka.Info.SERVERROOT+"/view/displayNewMessage.kickAction?as="+Ka.Info.AFFILIATESITEID+"&name="+Ka.Info.PROFILENAME;$("redirectURL").value=url;Ka.popup(id);}function ka_addFriendsAndRss(id,uId){var url=Ka.Info.SERVERROOT+"/update/addWatchMe.kickAction?as="+Ka.Info.AFFILIATESITEID+"&u="+uId;$("redirectURL").value=url;Ka.popup(id);}function toggleMoreTags(){var collpased=$j("#ka_profileTagsShort:visible").length>0;if(!Ka.events.dispatchEvent("profile-page-toggle-more-tags",{collapsed:collpased})){return false;}if(collpased){$j("#ka_profileTagsToggleShow a").css("background","transparent url(/kickapps/images/bullet_arrow_down.png) no-repeat scroll 0 50%").find("span").html(Ka.Messages.PlayPage.HIDE);}else{$j("#ka_profileTagsToggleShow a").css("background","transparent url(/kickapps/images/bullet_arrow_right.png) no-repeat 0 50%").find("span").html(Ka.Messages.ProfilePage.SHOWALL);}$j("#ka_profileTagsShort, #ka_profileTagsLong").toggle();}var profileCollapsed=true;function toggleAboutMe(){if(!Ka.events.dispatchEvent("profile-page-toggle-about-me",{collapsed:profileCollapsed})){return false;}$j("#ka_profileAboutMeExt").toggle();if(profileCollapsed){profileCollapsed=false;$j("#ka_profileAboutToggleShow a").html(Ka.Messages.PlayPage.HIDE);}else{profileCollapsed=true;$j("#ka_profileAboutToggleShow a").html(Ka.Messages.PlayPage.READMORE);}return false;}function toggleCommentForm(){if(!Ka.events.dispatchEvent("profile-page-before-display-comment-form")){return false;}if(typeof tinyMCE!="undefined"&&tinyMCE.editors&&tinyMCE.editors.ka_profileNewCommentTextarea){tinyMCE.editors.ka_profileNewCommentTextarea.setContent("");}$j("#ka_profileCommentForm, #ka_profileCommentControlTop").toggle();if($j("#ka_profileCommentsList li.ka_profComment").length>1){$j("#ka_profileCommentControlBot").toggle();}$j("#ka_profileCommentPosted").hide();$j("#ka_profileCommentBody .ka_Error").hide();if(!Ka.events.dispatchEvent("profile-page-after-display-comment-form")){return false;}$j("#ka_profileCommentForm").ScrollTo();}function ka_flagComment(thisLink,dataObj){var tosHrf="/service/displayTOS.kickAction?as="+Ka.Info.AFFILIATESITEID;if(!Ka.events.dispatchEvent("profile-page-before-flag-comment",{commentId:dataObj.messageId})){return false;}Ka.prompt(Ka.Messages.Common.flagCommentAsInappropriate.replace("($siteName)",Ka.Info.SITENAME).replace("($tosHref)",tosHrf),function(reason){var thisUserOr0=(Ka.Info.USERID=="")?0:Ka.Info.USERID;KickAppsBizComponent.flagCommentAsInappropriate(dataObj.messageId,thisUserOr0,dataObj.commenterId,dataObj.commenterName,reason,Ka.Info.AFFILIATESITEID,"1",function(success){if(success){$j(thisLink).parent().append('<span class="red">'+Ka.Messages.ProfilePage.PROFILEPAGEFLAGGED+"</span>");$j(thisLink).remove();}if(!Ka.events.dispatchEvent("profile-page-after-flag-comment",{commentId:dataObj.messageId,success:success})){return false;}});});}function kap_flagUserAsInappropriate(thisLink){Ka.prompt(Ka.Messages.Common.inAppropriateUserFlaggingConfirm.replace("($siteName)",Ka.Info.SITENAME).replace("($tosHref)","/service/displayTOS.kickAction?as="+Ka.Info.AFFILIATESITEID),function(reason){var thisUserOr0=(Ka.Info.USERID=="")?0:Ka.Info.USERID;KickAppsBizComponent.inAppropriateUserFlaggingConfirm(Ka.Info.IP,reason,Ka.Info.PROFILEID||Ka.Info.Profile.PROFILEID,thisUserOr0,Ka.Info.AFFILIATESITEID,function(response){if(response){$j("#ka_profileFlag").hide();$j("#ka_profileFlagged").show();}});});}var ka_submitFormText;function kap_profileCommentSave(thisForm){if(tinyMCE){tinyMCE.triggerSave();}var commentText=$j("#ka_profileNewCommentTextarea").val();if(!Ka.events.dispatchEvent("profile-page-before-add-comment",{commentText:commentText})){return false;}if(Ka.Info.PAGE=="pages/kickPlaceServerSide.jsp"){Ka.formValidation.actions.disableSubmit(thisForm);}else{$j("#ka_profileNewCommentSubmit").attr("disabled","disabled").val(Ka.Messages.PlayPage.SENDING).addClass("ka_disabledInput").blur();}var addMessageSuccess=KickAppsBizComponent.addGuestbookEntry((Ka.Info.PROFILEID||Ka.Info.Profile.PROFILEID),Ka.Info.USERID,commentText,Ka.Info.AFFILIATESITEID,kap_profileCommentSaveCallback);
return false;}function kap_profileCommentSaveCallback(newCommentID){toggleCommentForm();if(Ka.Info.AUTOAPPROVALCOMMENTS=="false"&&Ka.Info.AUTOAPPROVECONTENT!="T"){alert(Ka.Messages.InappFlag.YOURCOMMENTSHASBEENSUBMITTED);if(!Ka.events.dispatchEvent("profile-page-after-add-comment",{commentId:null,approved:false})){return false;}document.location.reload();return ;}if(!Ka.events.dispatchEvent("profile-page-after-add-comment",{commentId:newCommentID,approved:true})){return false;}$j("#ka_profileNewCommentSubmit").removeAttr("disabled").removeClass("ka_disabledInput").val(Ka.Messages.Profile.POSTCOMMENT);if(Ka.Info.PAGE=="pages/kickPlaceServerSide.jsp"){Ka.formValidation.actions.enableSubmit($("ka_profileCommentForm"));}var messageContent=$j("#ka_profileNewCommentTextarea").val();var newCommentData={commentId:newCommentID,secondsAgo:Ka.Messages.Common.SECONDS.replace("($count)",0),userId:Ka.Info.USERID,userName:Ka.Info.USERNAME,asId:Ka.Info.AFFILIATESITEID,photo:Ka.Info.AUDIOPHOTOSERVERPATH+Ka.Info.USERPHOTO,messageContent:messageContent,messageEncoded:Ka.String.encodeHTML(messageContent),flag:Ka.Messages.InappFlag.FLAGASINAPPROPRIATE,"delete":Ka.Messages.Profile.DELETELINK};Comments.insert(newCommentData).fadeIn();$("ka_profileNewCommentTextarea").value="";if($("ka_profileNewCommentTextarea_ifr")){tinyMCE.getInstanceById("ka_profileNewCommentTextarea").setContent("");}if($("ka_showMoreCommentsOutter")){$j("#ka_commentPageEndTotal").html(Number($j("#ka_commentPageEndTotal").html())+1);}$j("#ka_profileCommentsEmptyCont").hide();if($j.browser.msie&&$j.browser.version=="6.0"){Ka.Compatibility.IE.fixOversizedEmbed("#ka_profileCommentsList li");}else{$j("#ka_profileCommentsList li:eq(0)").find("object, embed").addClass("ka_userGenerated");}$(function(){if($j.browser.msie&&$j.browser.version=="6.0"){Ka.Compatibility.IE.fixOversizedEmbed("#ka_profileCommentsList li");}});}function showCommentButtons(){if(!Ka.events.dispatchEvent("profile-page-before-hide-comment-form")){return false;}$j("#ka_profileCommentControlTop","#ka_profileAddCommentButtonTop").show();if($j("#ka_profileCommentsList li.ka_profComment").length>1){$j("#ka_profileCommentControlBot","#ka_profileAddCommentButtonBot").show();}$j("#ka_profileCommentPosted","#ka_profileCommentForm").hide();if(!Ka.events.dispatchEvent("profile-page-after-hide-comment-form")){return false;}}var Comments={animate:true,get:function(offset,limit,animate,atBottom){var totalCommentsOnPage=$j("#ka_profileCommentsList li.ka_profComment").length;offset=offset||totalCommentsOnPage+1;limit=limit||Ka.Settings.profileCommentsLength;if(typeof animate!="undefined"){this.animate=animate;}else{this.animate=true;}if(!Ka.events.dispatchEvent("profile-page-before-load-comments",{offset:offset,limit:limit})){return false;}KickAppsBizComponent.getProfileCommentsJson(Ka.Info.USERID===""?null:Ka.Info.USERID,Ka.Info.PROFILEID||Ka.Info.Profile.PROFILEID,Ka.Info.AFFILIATESITEID,offset,limit,function(data){Comments.iterate(JSON.parse(data),atBottom);});},insert:function(commentData,atBottom){var templateNewComment='<li id="ka_profComment_{commentId}" class="ka_profComment clearfix" style="display:none; height:0;"><div class="ka_profileCommentDate">{secondsAgo} <span class="ka_pipe">|</span> <a href="/service/displayKickPlace.kickAction?u={userId}&amp;as={asId}">{userName}</a></div><div class="ka_profileCommentImg"><a href="/service/displayKickPlace.kickAction?u={userId}&amp;as={asId}"><span style="background-image: url({photo});"></span></a></div><div class="ka_profileCommentContent clearfix">{messageContent}</div><div class="ka_profileCommentControls clearfix">{flagControl}{deleteControl}</div></li>',flagged='<span id="flagcomment_{commentId}" class="ka_flag ka_flagged_comment red">'+Ka.Messages.ProfilePage.PROFILEPAGEFLAGGED+"</span>",notFlagged="<span class=\"ka_flag ka_flag_comment\"><a onclick=\"ka_flagComment(this, {'messageId':'{commentId}', 'commenterId': '{userId}', 'commenterName': '{userName}'}); return false;\" href=\"#\">{flag}</a></span>",deleteLink='<span id="deleteComment_{commentId}"> <span class="ka_pipe">|</span> <a onclick="deleteComment({commentId},{userId},{asId}); return false;" href="#">{delete}</a></span>';
if(commentData.isFlagged){commentData.flagControl=flagged.supplant(commentData);}else{commentData.flagControl=notFlagged.supplant(commentData);}if(commentData.userId==Ka.Info.USERID){commentData.deleteControl=deleteLink.supplant(commentData);}else{commentData.deleteControl="";}var newComment=templateNewComment.supplant(commentData);delete templateNewComment,flagged,notFlagged,deleteLink,commentData;if(atBottom){return $j(newComment).hide().appendTo("#ka_profileCommentsList");}return $j(newComment).hide().prependTo("#ka_profileCommentsList");},iterate:function(commentObj,atBottom){var newComments=commentObj.comments;if(newComments.length>0){$j("#ka_profileCommentsEmptyCont").hide();}newComments=$j.grep(newComments,function(i){return !this.blocked;});function buildCommentData(comment){return{commentId:comment.commentId,secondsAgo:comment.commentTimeStamp,userId:comment.userId,userName:comment.username,asId:comment.asId,photo:comment.commentByImg,messageContent:comment.commentBody,flag:Ka.Messages.InappFlag.FLAGASINAPPROPRIATE,isFlagged:comment.isFlagged,"delete":Ka.Messages.Profile.DELETELINK};}if(atBottom){for(var i=0,len=newComments.length;i<len;i++){Comments.insert(buildCommentData(newComments[i]),atBottom).fadeIn();}}else{for(var index=newComments.length;index>0;index--){Comments.insert(buildCommentData(newComments[index-1]),atBottom).fadeIn();}}function showNext(){if(Ka.Settings.profileCommentsFade&&Comments.animate){$j("#ka_profileCommentsList li.ka_profComment:hidden:eq(0)").fadeIn(function(){showNext();});}else{$j("#ka_profileCommentsList li.ka_profComment:hidden").show();}}showNext();if(!Ka.events.dispatchEvent("profile-page-after-load-comments")){return false;}var totalComments=commentObj.totalComments,totalCommentsOnPage=$j("#ka_profileCommentsList li.ka_profComment").length,nextCommentStart=totalCommentsOnPage+1;if(totalCommentsOnPage!=totalComments){var remainingComments=totalComments-totalCommentsOnPage,remainingLimit=(remainingComments>Ka.Settings.profileCommentsLength)?Ka.Settings.profileCommentsLength:remainingComments;if(!$("ka_showMoreCommentsOutter")){$j('<div id="ka_showMoreCommentsOutter"><span id="ka_showMoreCommentsInner">'+Ka.Messages.ProfilePage.PAGINATIONLINKCOMMENT+' <span id="ka_commentPageStartTotal">1</span> - <span id="ka_commentPageEndTotal">'+totalCommentsOnPage+'</span>  <a href="#">'+Ka.Messages.ProfilePage.PAGINATIONLINKNEXT+' <span id="ka_commentOffset">'+remainingLimit+"</span></a></span></div>").insertAfter("#ka_profileCommentsList");$j("#ka_showMoreCommentsOutter a").click(function(){Comments.get($j("#ka_profileCommentsList li.ka_profComment").length+1,remainingLimit,null,true);return false;});}else{$j("#ka_commentOffset").text(remainingLimit);$j("#ka_commentPageEndTotal").html(totalCommentsOnPage);}}else{$j("#ka_showMoreCommentsOutter").remove();}}};function deleteComment(commentId,commentUserId,asId){if(!Ka.events.dispatchEvent("profile-page-before-delete-comment",{commentId:commentId})){return false;}Ka.confirm(Ka.Messages.Profile.DELETECOMMENTCONFIRM,function(){KickAppsBizComponent.deleteProfileComment(commentId,commentUserId,asId,function(success){if(success){$j("#ka_profComment_"+commentId).animate({opacity:0},500,function(){$j(this).remove();});}if(!Ka.events.dispatchEvent("profile-page-after-delete-comment",{commentId:commentId,success:success})){return false;}});});}function kap_rateMedia(rating){KickAppsBizComponent.rateMedia(Ka.Info.USERID,(Ka.Info.PROFILEID||Ka.Info.Profile.PROFILEID),"USER",rating,Ka.Info.AFFILIATEID,Ka.Info.AFFILIATESITEID,function(result){Ka.events.dispatchEvent("profile-page-after-rating",result);});}function displayUserRating(){Ka.events.dispatchEvent("profile-page-before-load-ratings");if(Ka.Info.USERID===""){var mediaRatingSystem=new kap_starSystem("view","L",{avg:Math.round((Ka.Info.AVERAGERATING||Ka.Info.Profile.AVERAGERATING)),numRatings:(Ka.Info.VOTES||Ka.Info.Profile.VOTES)});mediaRatingSystem.show("currentRatingArea");Ka.events.dispatchEvent("profile-page-after-load-ratings");
}else{KickAppsBizComponent.getRatedMediaForUser((Ka.Info.PROFILEID||Ka.Info.Profile.PROFILEID),Ka.Info.USERID,"USER",Ka.Info.AFFILIATESITEID,function(ratingObject){mediaRatingSystem=new kap_starSystem(ratingObject==null?"view":"rate","L",{avg:Math.round((Ka.Info.AVERAGERATING||Ka.Info.Profile.AVERAGERATING)),numRatings:(Ka.Info.VOTES||Ka.Info.Profile.VOTES)});mediaRatingSystem.show("currentRatingArea");Ka.events.dispatchEvent("profile-page-after-load-ratings");});}}var Feeds={templates:{itemTemplate:"<li><a href='{0}' rel='external nofollow' title='{1}'>{1}</a></li>",listTemplate:'<div id="ka_profileRssFeed{4}" class="ka_profileSeg ka_profileRssFeed"><div class="ka_profileSegHeader ka_contentTitle"><h5><a title="{0}" href="{2}" rel="external nofollow" class="ka_chicklet" target="_blank"><span class="ka_sprite_misc ka_gen_rss_link"/></a>{1}</h5></div><div class="ka_profileSegCont ka_contentBody clearfix"><ul>{3}</ul></div><div class="ka_profileSegFooter"></div></div>'},feedIndex:0,load:function(){KickAppsBizComponent.getProfileUpdates(Ka.Info.Profile.PROFILEID,Ka.Info.USERID,Ka.Info.AFFILIATESITEID,Ka.Info.IP,function(data){var feedData=JSON.parse(data);for(var i=0,len=feedData.rss.length;i<len;i++){Feeds.insert(feedData.rss[i].link);}});},insert:function(feed){var eventArgs={feedUrl:decodeURIComponent(feed)};if(!Ka.events.dispatchEvent("profile-page-before-display-feed",eventArgs)){return false;}$j.ajax({type:"GET",url:"http://"+window.location.host+"/service/getHttpUrl.kickAction?contentType=text/xml&ttl=300&urlLink="+escape(feed),dataType:"xml",error:function(){if(!Ka.events.dispatchEvent("profile-page-feed-error",eventArgs)){return false;}},success:function(data){Feeds.feedIndex++;var $hold=$j("#ka_profileLeft"),feedTitle=$j(data).find("title:eq(0)").text(),feedTitleWrapped=Ka.Util.wbr(feedTitle,10),$items=$j(data).find("item:lt(8)").add("entry:lt(8)");if($items.length>0){var itemsArray=[];$items.each(function(){var link=$j(this).find("link").text();var text=$j(this).find("title").text();var textWrapped=Ka.Util.wbr(text,10);itemsArray.push(Feeds.templates.itemTemplate.format(link,textWrapped));});var listHtml=Feeds.templates.listTemplate.format(feedTitle,feedTitleWrapped,feed,itemsArray.join(""),Feeds.feedIndex);$hold.append(listHtml);}eventArgs.element=$j("#ka_profileRssFeed"+Feeds.feedIndex);if(!Ka.events.dispatchEvent("profile-page-after-display-feed",eventArgs)){return false;}}});}};

/* kickPlaceServerSide.src.js */

function ka_checkInputLogic(event){var input=$("ka_profileNewCommentSubject"),keyCode=event.keyCode;if((keyCode==13&&input.value!="")||keyCode==9||keyCode==40||keyCode==3){if(typeof tinyMCE!=="undefined"){try{tinyMCE.execCommand("mceFocus",false,"mce_editor_0");}catch(err){}}return false;}else{if($j.browser.safari&&(keyCode==13||keyCode==3)){return false;}}return true;}Ka.Settings.tinyMCE.defaultHeight=150;descMaxLimit=600;var linksCollapsed=true;function toggleMoreLinks(){var ka_profileLinksToggleShow=$("ka_profileLinksToggleShow"),ka_profileLinksLong=$("ka_profileLinksLong"),ka_profileLinksShort=$("ka_profileLinksShort");if(linksCollapsed==true){linksCollapsed=false;ka_profileLinksShort.style.display="none";ka_profileLinksLong.style.display="block";ka_profileLinksToggleShow.getElementsByTagName("a")[0].style.background="transparent url(/kickapps/images/bullet_arrow_down.png) no-repeat scroll 0 50%";ka_profileLinksToggleShow.getElementsByTagName("a")[0].getElementsByTagName("span")[0].innerHTML=Ka.Messages.PlayPage.HIDE;}else{linksCollapsed=true;ka_profileLinksShort.style.display="block";ka_profileLinksLong.style.display="none";ka_profileLinksToggleShow.getElementsByTagName("a")[0].style.background="transparent url(/kickapps/images/bullet_arrow_right.png) no-repeat 0 50%";ka_profileLinksToggleShow.getElementsByTagName("a")[0].getElementsByTagName("span")[0].innerHTML=Ka.Messages.ProfilePage.SHOWALL;}}function flaggedcomment(ret){var defaultUrl="/service/displayKickPlace.kickAction?u="+Ka.Info.USERID+"&as="+Ka.Info.AFFILIATESITEID;document.location.href=defaultUrl;}var kap_commentSourceLogin=false;function kap_addFriend(){KickAppsBizComponent.addFavoriteUserAsFriend(Ka.Info.USERID,Ka.Info.PROFILEID,Ka.Info.AFFILIATESITEID,function(){if(!Ka.events.dispatchEvent("profile-page-before-add-friend",{memberId:Ka.Info.PROFILEID})){return false;}if($("ka_profileFriendLink")){$("ka_profileFriendLink").style.display="none";$("ka_profileFriendAlready").style.display="inline";}if(!Ka.events.dispatchEvent("profile-page-after-add-friend",{memberId:Ka.Info.PROFILEID})){return false;}});}function ka_main(){if(Ka.Info.USERID!=""){$j("#ka_profileAddCommentButtonTop, #ka_profileAddCommentButtonBot").show();}else{$j(".ka_LoginLink").toggle();}$j("#ka_profileAboutToggleShow a").click(function(){return toggleAboutMe();});if(!Ka.Info.Profile.ISPRIVATE&&Ka.Info.Features.MEMBERRATING){displayUserRating();}if(!Ka.Info.Profile.ISPRIVATE){ka_submitFormText=$("ka_profileNewCommentSubmit").value;Comments.get();}if(typeof displayFeeds!="undefined"){displayFeeds();}if(!Ka.events.dispatchEvent("profile-page-load")){return false;}}$j(ka_main);