function getPlaylistIndex(a){joms.gallery.getPlaylistIndex(a)}function nextPhoto(a){joms.gallery.nextPhoto(a)}function prevPhoto(a){joms.gallery.prevPhoto(a)}function currentPhoto(a){joms.gallery.currentPhoto(a)}function urlPhotoId(a){joms.gallery.urlPhotoId(a)}function initGallery(){joms.gallery.init()}function displayViewport(){joms.gallery.displayViewPort()}function displayPhoto(a){joms.gallery.displayPhoto(a)}function createPhotoImage(a,b){joms.gallery.createPhotoImage(a,b)}function prefetchPhoto(a){joms.gallery.prefetchPhoto(a)}function getPhotoUrl(a){joms.gallery.getPhotoUrl(a)}function displayPhotoCaption(a){joms.gallery.displayPhotoCaption(a)}function editPhotoCaption(){joms.gallery.editPhotoCaption()}function cancelPhotoCaption(){joms.gallery.cancelPhotoCaption()}function savePhotoCaption(){joms.gallery.savePhotoCaption()}function updatePhotoCaption(a,b){joms.gallery.updatePhotoCaption(a,b)}function displayPhotoWalls(a){joms.gallery.displayPhotoWalls(a)}function setPhotoAsDefault(){joms.gallery.setPhotoAsDefault()}function removePhoto(){joms.gallery.confirmRemovePhoto()}function downloadPhoto(){joms.gallery.downloadPhoto()}function updatePhotoReport(a){joms.gallery.updatePhotoReport(a)}function newPhotoTag(a){joms.gallery.newPhotoTag(a)}function createPhotoTag(a){joms.gallery.createPhotoTag(a)}function drawPhotoTag(a,b){joms.gallery.drawPhotoTag(a,b)}function updatePlaylistTag(a){joms.gallery.updatePlaylistTag(a)}function displayPhotoTags(a){joms.gallery.displayPhotoTags(a)}function addPhotoTag(a){joms.gallery.addPhotoTag(a)}function removePhotoTag(a){joms.gallery.removePhotoTag(a)}function clearPhotoTag(a){joms.gallery.clearPhotoTag(a)}function showPhotoTag(a,b){joms.gallery.showPhotoTag(a,b)}function hidePhotoTag(a){joms.gallery.hidePhotoTag(a)}function createPhotoTextTag(a){joms.gallery.createPhotoTextTag(a)}function commifyTextTags(){joms.gallery.commifyTextTags()}function clearPhotoTextTag(a){joms.gallery.clearPhotoTextTag(a)}function startTagMode(){joms.gallery.startTagMode()}function stopTagMode(){joms.gallery.stopTagMode()}function selectNewPhotoTagFriend(){joms.gallery.selectNewPhotoTagFriend()}function confirmPhotoTagFriend(){joms.gallery.confirmPhotoTagFriend()}function showPhotoTagFriends(){joms.gallery.showPhotoTagFriends()}function filterPhotoTagFriend(a){joms.gallery.filterPhotoTagFriend(a)}function cancelNewPhotoTag(){joms.gallery.cancelNewPhotoTag()}function displayCreator(a){joms.gallery.displayCreator(a)}function setProfilePicture(){joms.gallery.setProfilePicture()}joms.extend({gallery:{loaderTimeout:null,inputFocused:!1,bindFocus:function(){joms.jQuery("textarea, [type=text]").each(function(){joms.jQuery(this).focus(function(){joms.gallery.inputFocused=!0}).blur(function(){joms.gallery.inputFocused=!1})})},bindKeys:function(){joms.jQuery(document.documentElement).keyup(function(a){joms.gallery.inputFocused||(37==a.keyCode?(joms.gallery.displayPhoto(joms.gallery.prevPhoto()),joms.photos.photoSlider.switchPhoto()):39==a.keyCode&&(joms.gallery.displayPhoto(joms.gallery.nextPhoto()),joms.photos.photoSlider.switchPhoto()))})},showDeletePhoto:function(a){joms.jQuery(a).children(".photo-action")&&("none"==joms.jQuery(a).children(".photo-action").css("display")?joms.jQuery(a).children(".photo-action").show():joms.jQuery(a).children(".photo-action").hide())},confirmRemovePhoto:function(a){var b="",c=0;if(null==a){var d=joms.gallery.currentPhoto();a=d.id,c=1}var e="jax.call('community', 'photos,ajaxConfirmRemovePhoto', '"+a+"' , '"+b+"','"+c+"');";cWindowShow(e,"",450,100)},removePhoto:function(a,b,c){if("1"==c){var d=jsPlaylist.photos,e=joms.gallery.currentPhoto();d.splice(joms.gallery.getPlaylistIndex(e.id),1);var f=jsPlaylist.photos.length<1?1:0;f||(b="joms.gallery.displayPhoto(joms.gallery.nextPhoto());cWindowHide();")}joms.ajax.call("photos,ajaxRemovePhoto",[a,b])},getPlaylistIndex:function(a){if(void 0==a)return 0;var b;return joms.jQuery.each(jsPlaylist.photos,function(c){this.id==a&&(b=c)}),b},nextPhoto:function(a){var b=0;return void 0!=a?b=joms.gallery.getPlaylistIndex(a.id):(b=jsPlaylist.currentPlaylistIndex+1,b>=jsPlaylist.photos.length&&(b=0)),jsPlaylist.photos[b]},prevPhoto:function(a){var b=0;return void 0!=a?b=joms.gallery.getPlaylistIndex(a.id):(b=jsPlaylist.currentPlaylistIndex-1,0>b&&(b=jsPlaylist.photos.length-1)),jsPlaylist.photos[b]},currentPhoto:function(a){var b=jsPlaylist.currentPlaylistIndex;return void 0!=a&&(b=joms.gallery.getPlaylistIndex(a.id),joms.gallery.urlPhotoId(a.id)),void 0==b&&(b=joms.gallery.getPlaylistIndex(joms.gallery.urlPhotoId())),jsPlaylist.currentPlaylistIndex=b,jsPlaylist.photos[b]},urlPhotoId:function(a){return void 0==a?jsPlaylist.customSetting.defaultId:void 0},init:function(){"undefined"==typeof joms.jQuery.isArray&&joms.jQuery.extend({isArray:function(a){return a.constructor==Array}}),joms.gallery.displayViewport(),joms.gallery.displayPhoto(joms.gallery.currentPhoto(),!1),joms.gallery.editablePhotoCaption(),joms.gallery.swipeablePhoto(),window.addEventListener&&window.addEventListener("popstate",function(a){var b=a.state;if(null!=b){var c=jsPlaylist.photos[joms.gallery.getPlaylistIndex(b.photoid)];joms.gallery.displayPhoto(c,!1)}}),window.history&&window.history.replaceState&&window.history.replaceState({photoid:joms.gallery.currentPhoto().id},jsPlaylist.photos[joms.gallery.getPlaylistIndex(joms.gallery.currentPhoto().id)].caption,location.protocol+"//"+location.host+jsPlaylist.photos[joms.gallery.getPlaylistIndex(joms.gallery.currentPhoto().id)].sefURL)},displayViewport:function(){var a=joms.jQuery("#cGallery .photoViewport"),b=joms.jQuery(window).width()<=640?!0:!1;a.unbind(),a.hover(function(){joms.jQuery("#cGallery .photoAction").fadeIn("fast")},function(){b||joms.jQuery("#cGallery .photoAction").fadeOut("fast")});var c=joms.jQuery("#cGallery .photoDisplay");c.css("height",Math.floor(c.width()/16*12));var d=joms.jQuery("#cGallery .photoLoad");d.css({top:Math.floor(c.height()/2-d.height()/2),left:Math.floor(c.width()/2-d.width()/2)});var e,f={},g=joms.jQuery("#cGallery .photoActions"),h=joms.jQuery("#cGallery .photoAction._next"),i=joms.jQuery("#cGallery .photoAction._prev");b?(f={top:Math.floor(c.height()/2-h.height()/2),right:0,"margin-right":0,opacity:.3},e={top:Math.floor(c.height()/2-i.height()/2),left:0,"margin-left":0,opacity:.3}):(f={top:Math.floor(c.height()/2-h.height()/2),right:0},e={top:Math.floor(c.height()/2-i.height()/2),left:0}),g.css({width:c.width(),height:0,top:0,left:0}),h.css(f),i.css(e);var j=joms.jQuery("#cGallery .photoTags");j.css({width:c.width(),height:0,top:0,left:0})},displayPhoto:function(a,b){b="undefined"==typeof b?!0:b,window.history&&window.history.pushState||(b=!1),b?window.history.pushState({photoid:a.id},jsPlaylist.photos[joms.gallery.getPlaylistIndex(a.id)].caption,location.protocol+"//"+location.host+jsPlaylist.photos[joms.gallery.getPlaylistIndex(a.id)].sefURL):window.location.hash&&(window.location.hash="#photoid="+a.id);joms.jQuery("#cGallery .photoLoad");clearTimeout(joms.gallery.loaderTimeout),joms.gallery.loaderTimeout=setTimeout("joms.jQuery('#cGallery .photoLoad').show()",300),joms.gallery.currentPhoto(a),joms.jQuery("#cGallery .photoAction._next img").attr("src",joms.gallery.nextPhoto().thumbnail),joms.jQuery("#cGallery .photoAction._prev img").attr("src",joms.gallery.prevPhoto().thumbnail),joms.gallery.displayPhotoCaption(a.caption),joms.gallery.changeTitle(a.caption),joms.gallery.createPhotoImage(a,function(b){{var c=joms.jQuery("#cGallery .photoDisplay");joms.jQuery("#cGallery .photoImage")}c.empty(),b.appendTo(c),b.css({top:"3000px",left:"4000px",visibility:"visible",position:"absolute"});var d=joms.jQuery(b).height(),e=joms.jQuery(b).width();d>c.height()&&(e*=c.height()/d,d=c.height()),e>c.width()&&(d*=c.width()/e,e=c.width()),0==d&&(e=joms.jQuery(".photoDisplay img").width(),d=joms.jQuery(".photoDisplay img").height());var f={width:e,height:d,top:Math.floor((c.height()-d)/2),left:Math.floor((c.width()-e)/2),visibility:"visible",display:"none"};b.data("properties",f).css(f),joms.gallery.switchPhoto(a.id),joms.gallery.displayPhotoTags(a.tags)}),joms.gallery.prefetchPhoto([joms.gallery.prevPhoto(),joms.gallery.nextPhoto()])},createPhotoImage:function(a,b){"function"!=typeof b&&(b=function(){});var c=joms.jQuery(new Image);return c.load(function(){b.apply(this,[c])}).attr({id:"photo-"+a.id,"class":"photoImage",alt:a.caption,title:"",src:joms.gallery.getPhotoUrl(a)}),c},prefetchPhoto:function(a){joms.jQuery.isArray(a)||(a=[a]),joms.jQuery.each(a,function(a,b){b.loaded||joms.gallery.createPhotoImage(b,function(){b.loaded=!0})})},getPhotoUrl:function(a){var b=joms.jQuery("#cGallery .photoDisplay"),c="";return c=-1==a.url.indexOf("option=com_community")?a.url:a.url+"&"+joms.jQuery.param({maxW:b.width(),maxH:b.height()})},displayPhotoHits:function(a){var b=joms.jQuery("#cGallery .photoHitsText");b.text(""!=a?a:jsPlaylist.language.COM_COMMUNITY_PHOTOS_NO_CAPTIONS_YET)},addPhotoHits:function(){jax.call("community","photos,ajaxAddPhotoHits",joms.gallery.currentPhoto().id)},displayPhotoCaption:function(a){var b=joms.jQuery("#cGallery .photoCaptionText");a=a.replace(/\
/g,"\n"),b.val(""!=a?a:jsPlaylist.language.COM_COMMUNITY_PHOTOS_NO_CAPTIONS_YET).trigger("autogrow")},editablePhotoCaption:function(){var a=joms.jQuery("#cGallery .photoCaptionText");a.hasClass("editable")&&a.stretchToFit().autogrow({lineHeight:0,minHeight:0}).focus(function(){a.addClass("editing").stretchToFit().data("oldPhotoCaption",a.val())}).blur(function(){a.removeClass("editing").stretchToFit();var b=joms.jQuery.trim(a.data("oldPhotoCaption")),c=joms.jQuery.trim(a.val());return""==c||c==b?void a.val(b).trigger("autogrow"):void jax.call("community","photos,ajaxSaveCaption",joms.gallery.currentPhoto().id,c)})},editPhotoCaption:function(){var a=joms.jQuery("#cGallery .photoCaption");a.addClass("editMode");var b=joms.jQuery("#cGallery .photoCaptionText"),c=joms.jQuery("#cGallery .photoCaptionInput");c.val(joms.jQuery.trim(b.text()))},cancelPhotoCaption:function(){var a=joms.jQuery("#cGallery .photoCaption");a.removeClass("editMode");var b=joms.jQuery("#cGallery .photoCaptionInput");b.val("")},savePhotoCaption:function(){var a=joms.jQuery("#cGallery .photoCaptionText"),b=joms.jQuery("#cGallery .photoCaptionInput"),c=joms.jQuery.trim(a.text()),d=joms.jQuery.trim(b.val());""==d||d==c?joms.gallery.cancelPhotoCaption():jax.call("community","photos,ajaxSaveCaption",joms.gallery.currentPhoto().id,d)},updatePhotoCaption:function(a,b){var c=joms.jQuery("#cGallery .photoCaptionText");c.text(b),jsPlaylist.photos[joms.gallery.getPlaylistIndex(a)].caption=b,joms.gallery.cancelPhotoCaption()},switchPhoto:function(a){joms.jQuery("#cGallery .photoDisplay img").show(),joms.ajax.call("photos,ajaxSwitchPhotoTrigger",[a],{success:function(a){joms.jQuery("#like-container").html(a),clearTimeout(joms.gallery.loaderTimeout),joms.jQuery("#cGallery .photoLoad").hide()}})},displayPhotoWalls:function(a){joms.gallery.switchPhoto(a)},setPhotoAsDefault:function(){var a="jax.call('community', 'photos,ajaxConfirmDefaultPhoto', jsPlaylist.album, joms.gallery.currentPhoto().id);";cWindowShow(a,"",450,100)},downloadPhoto:function(){window.open(jsPlaylist.photos[jsPlaylist.currentPlaylistIndex].originalUrl)},updatePhotoReport:function(a){joms.jQuery(".page-action#report-this").remove(),joms.jQuery(".page-actions").prepend(a)},updatePhotoBookmarks:function(a){joms.jQuery(".page-action#social-bookmarks").remove(),joms.jQuery(".page-actions").append(a)},newPhotoTag:function(a){var b={id:null,userId:null,photoId:null,displayName:null,profileUrl:null,top:null,left:null,width:null,height:null,displayTop:null,displayLeft:null,displayWidth:null,displayHeight:null,"canRemove:":null};return joms.jQuery.extend(b,a),b},createPhotoTag:function(tag){var photo=joms.jQuery("#cGallery .photoImage"),photoTags=joms.jQuery("#cGallery .photoTags");"string"==typeof tag&&(tag=eval("("+tag+")"));var singleTag=!1;joms.jQuery.isArray(tag)||(tag=[tag],singleTag=!0);var newPhotoTags=new Array;return joms.jQuery.each(tag,function(a,b){var c=joms.gallery.drawPhotoTag(b,photo);c.data("tag",b).attr("id","photoTag-"+b.id).hover(function(){joms.gallery.showPhotoTag(b.id,"Label")},function(){joms.gallery.hidePhotoTag(b.id)}).appendTo(photoTags);var d=joms.jQuery('
');d.html(b.displayName),d.wrapInner("").appendTo(c),newPhotoTags.push(c)}),singleTag?newPhotoTags[0]:newPhotoTags},drawPhotoTag:function(a,b){var c=a.displayWidth!=a.width*b.width();c&&(a.displayWidth=a.width*b.width(),a.displayHeight=a.height*b.height(),a.displayTop=a.top*b.height()-a.displayHeight/2,a.displayTop<0&&(a.displayTop=0),maxTop=b.height()-a.displayHeight,a.displayTop>maxTop&&(a.displayTop=maxTop),a.displayLeft=a.left*b.width()-a.displayWidth/2,a.displayLeft<0&&(a.displayLeft=0),maxLeft=b.width()-a.displayWidth,a.displayLeft>maxLeft&&(a.displayLeft=maxLeft));var d=joms.jQuery('
');d.css({width:a.displayWidth,height:a.displayHeight,top:a.displayTop,left:a.displayLeft});var e=joms.jQuery('
');return e.css({width:a.displayWidth-4,height:a.displayHeight-4,border:"2px solid #222"}).appendTo(d),null!=a.id&&joms.gallery.updatePlaylistTag(a),d},updatePlaylistTag:function(a){var b,c=jsPlaylist.photos[joms.gallery.getPlaylistIndex(a.photoId)].tags;joms.jQuery.each(c,function(){this.id==a.id&&(b=this)}),void 0==b&&(b=c[c.push(joms.gallery.newPhotoTag())-1]),joms.jQuery.extend(b,a)},displayPhotoTags:function(a){joms.gallery.clearPhotoTag(),joms.gallery.clearPhotoTextTag();var b=joms.jQuery("#cGallery .photoImage"),c=joms.jQuery("#cGallery .photoTags");c.css({width:b.width(),height:b.height(),top:b.data("properties").top,left:b.data("properties").left}),joms.gallery.createPhotoTag(a),joms.jQuery(".photoTextTags").empty(),joms.gallery.createPhotoTextTag(a)},addPhotoTag:function(a){var b=joms.jQuery("#cGallery .photoTags"),c=b.data("newPhotoTag");a>0&&jax.call("community","photos,ajaxAddPhotoTag",c.photoId,a,c.top,c.left,c.width,c.height)},removePhotoTag:function(a){jax.call("community","photos,ajaxRemovePhotoTag",a.photoId,a.userId),joms.gallery.clearPhotoTag(a),joms.gallery.clearPhotoTextTag(a);var b=jsPlaylist.photos[joms.gallery.getPlaylistIndex(a.photoId)].tags;joms.jQuery.each(b,function(c){this.id==a.id&&b.splice(c,1)})},clearPhotoTag:function(a){void 0==a?joms.jQuery("#cGallery .photoTag").remove():joms.jQuery("#photoTag-"+a.id).remove()},showPhotoTag:function(a,b){joms.jQuery("#photoTag-"+a).addClass("show"+b)},hidePhotoTag:function(a){joms.jQuery("#photoTag-"+a).removeClass("show showLabel showForce")},createPhotoTextTag:function(tags){var photoTextTags=joms.jQuery(".photoTextTags");0==tags.length&&photoTextTags.html(""),"string"==typeof tags&&(tags=eval("("+tags+")"));var singleTag=!1;joms.jQuery.isArray(tags)||(tags=[tags],singleTag=!0);var newPhotoTextTags=new Array,a=1;return joms.jQuery.each(tags,function(b,c){if(void 0!=c.id){var d=joms.jQuery('');d.data("tag",c).attr("id","photoTextTag-"+c.id).hover(function(){joms.gallery.showPhotoTag(c.id,"Force")},function(){joms.gallery.hidePhotoTag(c.id)}).appendTo(photoTextTags);var e=joms.jQuery("");if(e.attr("href",c.profileUrl).html(c.displayName).prependTo(d),c.canRemove){var f=joms.jQuery('');f.appendTo(d);var g=joms.jQuery('');g.addClass("_remove").html(jsPlaylist.language.COM_COMMUNITY_REMOVE).click(function(){joms.gallery.removePhotoTag(c)}).appendTo(f),f.before(" ").prepend("(").append(")")}a++,newPhotoTextTags.push(d)}}),joms.gallery.commifyTextTags(),newPhotoTextTags},commifyTextTags:function(){joms.jQuery(".photoTextTags .comma").remove(),photoTextTag=joms.jQuery(".photoTextTags .photoTextTag"),photoTextTag.each(function(a){if(0!=a){var b=joms.jQuery('');b.html(", ").prependTo(this)}})},clearPhotoTextTag:function(a){void 0==a?joms.jQuery("#cGallery .photoTextTag").remove():(joms.jQuery("#photoTextTag-"+a.id).remove(),joms.gallery.commifyTextTags())},startTagMode:function(){joms.jQuery(".photoTags").unbindSwipe(),joms.jQuery("#cGallery .photoTagInstructions").slideDown("fast"),joms.jQuery("#startTagMode").hide();var a=joms.jQuery("#cGallery .photoViewport");a.addClass("tagMode");var b=joms.jQuery("#cGallery .photoImage"),c=joms.jQuery("#cGallery .photoTags"),d=joms.jQuery("#cGallery .photoTagActions"),e=joms.jQuery("#cGallery .photoTagAction._select"),f=b.width()/2-jsPlaylist.config.defaultTagWidth/2,g=b.height()/2-jsPlaylist.config.defaultTagHeight/2,h=f+jsPlaylist.config.defaultTagWidth,i=g+jsPlaylist.config.defaultTagHeight,j=function(a){c.data("newPhotoTag",joms.gallery.newPhotoTag({photoId:joms.gallery.currentPhoto().id,top:(a.y1+a.height/2)/b.height(),left:(a.x1+a.width/2)/b.width(),width:a.width/b.width(),height:a.height/b.height()})),d.css({top:a.y1-3,left:a.x1-3,width:a.width,height:a.height}).show(),e.css({bottom:-1*e.outerHeight(!0),left:(a.width-e.outerWidth(!0))/2}),joms.jQuery("div.autocomplete-w1").parent().css("top","-1000px").show()};c.imgAreaSelect({parent:c,x1:f,y1:g,x2:h,y2:i,minWidth:50,minHeight:50,zIndex:6630,show:!0,handles:!0,movable:!0,resizable:!1,persistent:!0,onInit:function(a,b){j(b)},onSelectStart:function(){d.hide()},onSelectChange:function(a,b){d.hide();var e=c.imgAreaSelect({instance:!0});b.x1-75<0&&(b.x1=0),b.y1-75<0&&(b.y1=0),b.x1+150>c.width()&&(b.x1=c.width()-150),b.y1+150>c.height()&&(b.y1=c.height()-150),e.setSelection(b.x1,b.y1,b.x1+150,b.y1+150,!0),e.update()},onSelectEnd:function(a,b){j(b),c.css({cursor:"pointer"}).imgAreaSelect({persistent:!0})}})},stopTagMode:function(){var a=joms.jQuery("#cGallery .photoViewport");a.removeClass("tagMode");var b=joms.jQuery("#cGallery .photoTags");b.css({cursor:"default"}).imgAreaSelect({remove:!0});var c=joms.jQuery("#cGallery .photoTagActions");c.hide(),joms.jQuery("#cGallery .photoTagInstructions").hide(),joms.jQuery("#startTagMode").show(),joms.jQuery("#photoTagQuery").val(""),joms.gallery.swipeablePhoto(),cWindowHide()},selectNewPhotoTagFriend:function(){joms.jQuery("#cGallery .photoTagFriend");cWindowShow(function(){joms.gallery.showPhotoTagFriends()},jsPlaylist.language.COM_COMMUNITY_SELECT_PERSON,300,300),cWindowActions('")},confirmPhotoTagFriend:function(){joms.jQuery("#cWindow .js-system-message").hide();var a=joms.jQuery("#cWindow .invitation-item-invited input:checked");a.length>0?joms.gallery.addPhotoTag(a.val()):(joms.jQuery("#cWindow .js-system-message").show(),joms.jQuery("#cWindow .js-system-message").fadeOut(5e3))},showPhotoTagFriends:function(){var a=joms.jQuery("#cGallery .photoTags"),b=a.data("newPhotoTag"),c=b.photoId;joms.jQuery("#cWindowContent").empty(),joms.jQuery("#cGallery .photoTagSelectFriend").clone().appendTo("#cWindowContent"),jax.loadingFunction(),joms.friends.showForm("","photos",c,1,"joms.gallery.confirmPhotoTagFriend();"),jax.doneLoadingFunction(),setTimeout("joms.jQuery('#cWindowContent .photoTagFriendFilter').focus()",300)},filterPhotoTagFriend:function(){var a=(joms.jQuery("#cWindow .photoTagFriend"),joms.jQuery("#cWindow .photoTagFriendFilter")),b=joms.jQuery.trim(a.val()),c=joms.jQuery("#cGallery .photoTags"),d=c.data("newPhotoTag"),e=d.photoId;jax.loadingFunction(),joms.friends.loadFriend(b,"photos",e,"0","9"),jax.doneLoadingFunction()},cancelNewPhotoTag:function(){var a=joms.jQuery("#cGallery .photoTags");a.css({cursor:"crosshair"}).imgAreaSelect({hide:!0,persistent:!1});var b=joms.jQuery("#cGallery .photoTagActions");b.hide();{var a=joms.jQuery("#cGallery .photoTags");a.data("newPhotoTag",{})}joms.jQuery("#photoTagQuery").val(""),joms.jQuery("div.autocomplete-w1").parent().hide(),joms.gallery.stopTagMode(),joms.jQuery("#cGallery .photoTag").addClass("showLabel")},displayCreator:function(a){jax.call("community","photos,ajaxDisplayCreator",a)},setProfilePicture:function(){var a="jax.call('community', 'photos,ajaxLinkToProfile', '"+joms.gallery.currentPhoto().id+"');";cWindowShow(a,"",450,100)},rotatePhoto:function(a){if("none"==joms.jQuery("#startTagMode").css("display"))return!1;var b=joms.gallery.currentPhoto().id;joms.ajax.call("photos,ajaxRotatePhoto",[b,a],{success:function(a,b,c){var d=jsPlaylist.photos[joms.gallery.getPlaylistIndex(a)];d.url=b,d.thumbnail=c,joms.gallery.displayPhoto(d)}})},swipeablePhoto:function(){joms.jQuery(".photoTags").unbindSwipe().touchSwipe(function(a){clearTimeout(joms.gallery.loaderTimeout),joms.gallery.displayPhoto("left"==a?joms.gallery.nextPhoto():joms.gallery.prevPhoto()),joms.photos.photoSlider.switchPhoto()})},changeTitle:function(a){var b=joms.jQuery("div#community-wrap > h4");if(b.length>0){var c=joms.jQuery(b).html().split(" - ");joms.jQuery(b).html(c[0]+" - "+a)}}}});