/*
 G8 Profile: Version 4.0.16
*/
(function(){window.G8=window.G8||{};var ca=$(document),wa=$(window),Ea=G8.ax_jqxtnd.dbg,ta=G8.ax_jqxtnd.prxy;G8.globalSubscriber=$({});jQuery.fn.extend({bindTglHoverClass:function(y,a,b){return this.bindOnce("mouseenter",{show:true,cssClass:y,parentSelector:a,tglObjSelector:b},X.tglHoverClass).bindOnce("mouseleave",{show:false,cssClass:y,parentSelector:a,tglObjSelector:b},X.tglHoverClass)},setAltText:function(y){return this.attr("alt",Z.strToAlt(y))},getAltText:function(){return Z.altToStr(this.attr("alt"))},
disbl:function(y){return y?this.data("disabled",true).removeClass("iActObj"):this.removeData("disabled").addClass("iActObj")},isDisbld:function(){return this.data("disabled")},isActImg:function(){return $Self("img.iRollover",this).srcF().hasStr("_act.")},setImgLo:function(){$Self("img.iRollover",this).switchSrc("_hi.","_lo.").switchSrc("_act.","_lo.");return this},setImgLo_HiOnly:function(){$Self("img.iRollover",this).switchSrc("_hi.","_lo.");return this},setImgHi:function(){$Self("img.iRollover",
this).switchSrc("_lo.","_hi.").switchSrc("_act.","_hi.");return this},setImgAct:function(){$Self("img.iRollover",this).switchSrc("_lo.","_act.").switchSrc("_hi.","_act.");return this},hiliteSingleImg:function(y){y.not(this).setImgLo();this.setImgAct()}});(function y(){var a=G8.pageVars;a.mainHostDomain="adaagallery.com";try{document.domain=a.mainHostDomain}catch(b){}a.brandedMode=false;a.userCommentsAllowed=true;a.videoThumbsVisible=true;a.maxDirectFriends=8;a.maxDirectComments=8;a.maxDirectMessages=
8;a.maxDirectGalImgs=5;a.scriptPathUserpage="script.php";a.scriptPathShare="http://www."+a.mainHostDomain+"/script.php";a.maxGalPreviews=15;a.flashVersion=9;a.sortFriendsAlphabetically=false;a.maxContents={totalImgsInGallery:100,totalImgsInBentry:10,totalImgsInTextCb:10};a.Feed={intervalTime:30,maxGalImgs:3};a.PCMS={intervalTime:30};a.PCFR={intervalTime:30};a.siteViewMode="Edit";a.themeImgsPathSuffix="themes/"+a.profileData.currThemeId+"/img/";a.profileImgsPathSuffix="themes/profile/img/";a.staticResPaths=
[a.staticResPaths=a.profileData.staticResPath];a.urlEightpage="http://www.eightpage.com";a.urlWorld="http://www.eightpageworld.com";a.urlCenter="https://center."+a.mainHostDomain;a.Preloading={maxTime:15,percentEssentialsLoadedBeforeContent:0.98};a.UL={maxFileSize:4194304,selectWinFilterExts:"*.jpg;*.jpeg;*.gif;*.png"};a.UserChronjob={intervalTime:120};a.Notify={autohideTime:10};a.fullscreenGallery={fadeTime:2,holdTime:4};a.alertAutohideTime=2;a.deviceConfig={iPhone:{galleryDisabled:true,blogDisabled:true,
textCBDisabled:true,headerImgDisabled:true,metaBarDisabled:true,fcbDisabled:true,notifyDisabled:true},allMobile:{}}})();var la=function y(){function a(){(B=W.getDeviceConfig("fcbDisabled"))||G8.globalSubscriber.bindOnce("initCreatePageDOMString",j).bindOnce("initExtendPageDOM",g).bindOnce("extendEE",h)}function b(){s("CBPosition")}function f(v){v=$(v.target);if(v.isChildOf(c.FO_BarToggleAll)){r();return false}else if(v.isChildOf(c.FO_CoverAdd)){v=c.FO_CoverAdd.parents(".EE_friend");G(v);return false}else if(v.isChildOf(c.FO_CoverMsg)){v=
c.FO_CoverMsg.parents(".EE_friend");w(v);return false}if(J.isInEditMode())if(v.isChildOf(c.FO_BarDelete)){v=c.FO_BarDelete.parents(".EE_friend");v.trigger("delete");E(v);return false}if(v.isChildOf(".FO_idFInfo")){v=v.parents(".EE_friend");ea.gotoUrl("http://"+z.readObj("friendObj",v).url);return false}}function h(v,D){$Self(".EE_friend",D).each(function(){new Ua($(this))})}function j(){var v="";v+=d({id:"TAF_Pop",hid:true},d({cl:"TAF_contents"},d({cl:"BP_contHeadline"},"Tell a friend about my eightpage"),
d({cl:"TAF_contCenter"},d({cl:"BP_label"},n("Label_TAF_to")),d({cl:"BP_boxInput"},ga({e:"inp",cl:"TAF_inpBig idSendTo Vali_email"})),d({cl:"BP_label"},n("Label_TAF_message")),d({cl:"BP_boxInput"},ga({e:"txt",cl:"TAF_inptxtBig idMsg Vali_notEmpty"})),T.getCaptchaMaster()),d({cl:"BP_contControls"},F("icon_taf_send_lo.png","idBtnOkVali iActObj",n("TT_TAF_send")),F("icon_taf_cancel_lo.png","idBtnCancel iActObj",n("TT_GEN_cancel")))));if(L.isLogged()){v+=d({id:"FO_CoverMsg",pos:"absolute",hid:true},M("cover_theme_userthumb_msg.png",
"iActObj fixPNGImg",n("TT_GEN_writeMessage")));v+=d({id:"FO_CoverAdd",pos:"absolute",hid:true},M("cover_theme_userthumb_add.png","iActObj fixPNGImg",n("TT_FCB_coverStartFriendship")));v+=d({id:"FO_BarDelete",pos:"absolute",hid:true},M("icon_gen_theme_delete_mini_lo.png","idBtnDelete iActObj",n("TT_deleteFriendship")))}v+=d({id:"FO_BarFriendsNavigator",hid:true},d({id:"FO_FriendSearch"},ga({e:"inp",id:"FO_FriendSearch_Input"}),M("infoicon_theme_search.png","FO_idBtnDoSearch"),M("icon_gen_theme_close_mini_lo.png",
"FO_idBtnClearSearch iActObj hidden",n("TT_FCB_clearSearch"))),M("icon_gen_theme_world_lo.png","idBtnNewFriends iActObj",!m.brandedMode?L.isLogged()?n("TT_gotoWorld_logged"):n("TT_gotoWorld_notLogged"):m.brandedMode=="adobe"?L.isLogged()?n("TT_gotoAdobeWorld_logged"):n("TT_gotoAdobeWorld_notLogged"):""),!m.brandedMode?M("icon_gen_theme_tellafriend_lo.png","idBtnTellafriend iActObj",n("TT_FCB_TAF")):"",d({cl:"clr"}));v+=d({id:"FO_BarToggleAll",cl:"iActObj",hid:true},M("icon_gen_theme_toggle_collapsed_lo.png",
"tgl_idBtnTgl iActObj"),d({cl:"tgl_togglerText"},n("Text_FCB_Tgl_allFriends")));v+=d({id:"BoxMoreFriends",hid:true});v+=d({id:"BoxVisibleFriends"});if(L.isLogged())v+=d({id:"FR_PopAddFriend",hid:true},ia.makeBP({size:"small",headline:n("HL_BP_FR_friendRequest"),content:d({cl:"idRequestMsg BP_infoText BP_centered"})+d({cl:"BP_label"},n("Label_BP_FR_to"))+d({cl:"BP_divSmallInp idUsername"})+d({cl:"BP_label"},n("Label_BP_FR_message"))+d({cl:"BP_boxInput"},ga({e:"txt",cl:"BP_inptxtSmall idMsg Vali_notEmpty"}))+
T.getCaptchaMaster(),controls:F("icon_bp_send_lo.png","idBtnOkVali iActObj",n("TT_BP_FR_invite"))+F("icon_bp_cancel_lo.png","idBtnCancel iActObj",n("TT_GEN_cancel"))}));J.appendGlobalDomString(v)}function g(){var v=["TAF_Pop","FO_CoverMsg","FO_CoverAdd","FO_BarDelete","FO_BarFriendsNavigator","FO_BarToggleAll","BoxMoreFriends","BoxVisibleFriends","FR_PopAddFriend"];J.setDOMReference(v);c.TAF_Pop.find(".idBtnOkVali").bindOnce("click",q);c.FO_BarFriendsNavigator.find(".idBtnNewFriends").bindOnce("click",
o).end().find(".idBtnTellafriend").bindOnce("click",k).end().find("#FO_FriendSearch_Input").bindOnce("focus",{focus:true},e).bindOnce("blur",{focus:false},e).end().find(".FO_idBtnClearSearch").bindOnce("click",p);c.FR_PopAddFriend.find(".idBtnOkVali").bindOnce("click",t);$(".EE_CBFriends").find(".CB_cont>.idClr").before(c.FO_BarFriendsNavigator).before(c.BoxVisibleFriends).before(c.FO_BarToggleAll).before(c.BoxMoreFriends);ca.bindOnce("click",f)}function q(){ma.validateForm(c.TAF_Pop,function(){var v=
X.readFormVal(c.TAF_Pop,".idCaptcha"),D=X.readFormVal(c.TAF_Pop,".idSendTo"),K=X.readFormVal(c.TAF_Pop,".idMsg");R.post({action:37,captcha:v,mail:D,text:K,lang:m.loggedData.lang},{dontTrace:[1701],afterError:function(N){R.handleCaptchaError(N,c.TAF_Pop)},afterSuccess:function(){ma.resetCaptchaError(c.TAF_Pop);T.alertt({autoHide:m.alertAutohideTime,headline:n("HL_BP_Success_mailSent"),msg:n("Text_BP_Success_mailSent",D)})}})})}function o(){ea.gotoUrl(m.urlWorld)}function k(){T.refreshCaptcha(c.TAF_Pop);
c.TAF_Pop.find(".idCaptcha,.idSendTo").val("").end().find(".idMsg").val(n("Input_TAF_message"));T.tglAlert(true,c.TAF_Pop)}function e(v){v=v.data.focus;var D=$(this);v?D.bindOnce("keyup",l):D.unbind("keyup",l)}function l(){var v=C($(this).val());c.FO_BarFriendsNavigator.find(".FO_idBtnClearSearch").tgl(v!="");c.FO_BarFriendsNavigator.find(".FO_idBtnDoSearch").tgl(v=="");$(".EE_CBFriends").find(".EE_friend").each(function(){var D=$(this),K=z.readObj("friendObj",D),N=C(K.name);K=C(K.url);N.hasStr(v)||
K.hasStr(v)?D.show():D.hide()});s("totalFriends")}function p(){$(this).hide();$("#FO_FriendSearch_Input").val("");l()}function t(){ma.validateForm(c.FR_PopAddFriend,function(){var v=c.FR_PopAddFriend.data("friendData"),D=X.readFormVal(c.FR_PopAddFriend,".idMsg"),K=X.readFormVal(c.FR_PopAddFriend,".idCaptcha");R.post({action:13,id:v.id,request:D,captcha:K},{dontTrace:[1701],afterError:function(N){R.handleCaptchaError(N,c.FR_PopAddFriend)},afterSuccess:function(){ma.resetCaptchaError(c.FR_PopAddFriend);
var N=$("dbFriend_"+v.id);N.length&&S(N,"Requested");T.alertt({autoHide:m.alertAutohideTime,headline:n("HL_BP_Success_friendRequested"),msg:n("Text_BP_Success_friendRequested",Z.formatUser(v))});c.FR_PopAddFriend.removeData("friendData");Va.handleFriendRelationChange(v.id,2)}})})}function r(){if(c.BoxMoreFriends.data("expanded")){c.BoxMoreFriends.slideUp(300).data("expanded",false);ja.tglCollapseToggler("allFriends",$("#FO_BarToggleAll").find(".tgl_idBtnTgl"),false)}else{c.BoxMoreFriends.slideDown(300).data("expanded",
true);ja.tglCollapseToggler("allFriends",$("#FO_BarToggleAll").find(".tgl_idBtnTgl"),true)}}function x(){c.BoxMoreFriends.slideUp(300).data("expanded",false);ja.tglCollapseToggler("allFriends",$("#FO_BarToggleAll").find(".tgl_idBtnTgl"),false)}function s(v){if(!B){var D=$(".EE_CBFriends");if(D.length){c.FO_BarFriendsNavigator.show();if(v=="totalFriends"||!v){var K=D.find(".EE_friend"),N=K.filter(function(){return $(this).css("display")!="none"}),O=c.BoxVisibleFriends.find(">.idClr").length?c.BoxVisibleFriends.find(">.idClr"):
d({cl:"idClr"});c.BoxVisibleFriends.append(N.filter(":lt("+m.maxDirectFriends+")")).append(O);if(N.length>m.maxDirectFriends){O=c.BoxMoreFriends.find(">.idClr").length?c.BoxMoreFriends.find(">.idClr"):d({cl:"idClr"});c.BoxMoreFriends.append(N.filter(":gt("+(m.maxDirectFriends-1)+")")).append(O);c.FO_BarToggleAll.fadeIn(300)}else c.FO_BarToggleAll.fadeOut(300);K.length>m.maxDirectFriends?c.FO_BarFriendsNavigator.find("#FO_FriendSearch").fadeIn(300):c.FO_BarFriendsNavigator.find("#FO_FriendSearch").fadeOut(300);
K=U("Contentblock",D);K.updateCBTotalItems()}if(v=="CBPosition"||!v){$(".FO_idFriendTrenner").remove();K=c.PageMaincontents.find(".EE_CB");if(K.filter(":not(.EE_CBFriends)").length)K.index(D)==0?D.after($("<div>").addClass("FO_idFriendTrenner")):D.before($("<div>").addClass("FO_idFriendTrenner"))}if(!v&&m.sortFriendsAlphabetically){K=D.find(".EE_friend");K.sortElements(function(aa,fa){return $(aa).find(".FO_idFUrl").text()>$(fa).find(".FO_idFUrl").text()?1:-1})}}else $(".FO_idFriendTrenner").remove()}}
function u(v,D){T.refreshCaptcha(c.FR_PopAddFriend);c.FR_PopAddFriend.data("friendData",v).find(".idRequestMsg").html(D).end().find(".idUsername").html(Z.formatUser(v)).end().find(".idCaptcha").val("").end().find(".idMsg").val(n("Input_FR_message"));T.tglAlert(true,c.FR_PopAddFriend)}function A(v,D){if(v=="add"){v=$(D.DOM);D=$(".EE_CBFriends");D.find(".CB_cont").prepend(v);$.event.trigger("extendEE",[v]);v=U("Contentblock",D);v.preloadPreviewImgs();s("totalFriends")}else if(v=="delete"){v=D.id;v=
$("#dbFriend_"+v);m.loggedData.totalFriends--;v.removeAni(300,function(){s("totalFriends")})}else if(v=="changeTotalFriendRequests"){v=D.totalFriendRequests;m.loggedData.totalFriendRequests=v;J.updateDisplayVal("MB_TotalFRequests");if(ka.isVisible()&&c.UB.data("currPane")=="FRequests"){J.updateDisplayVal("PCFR_Subline");m.loggedData.totalFriendRequests==0&&c.PC_Contents.find(".PC_contentsBody").html(d({cl:"PC_contentsBodyEmpty"},n("Text_FR_noRequests")))}}}function E(v){Q.tglObjToDelete(v,true);var D=
z.readObj("friendObj",v);T.confirmm({headline:n("HL_BP_Confirm_deleteFriendship"),contentText:n("Text_BP_Confirm_deleteFriendship"),okAction:function(){A("delete",{id:D.id});R.post({id:D.id,action:14,state:0})},okTitle:n("TT_GEN_delete"),cancelAction:function(){Q.tglObjToDelete(v,false)}})}function G(v){v=z.readObj("friendObj",v);if(v.fState=="Requested")T.alertt({headline:n("HL_BP_friendAlreadyRequested"),msg:n("Text_BP_friendAlreadyRequested",Z.formatUser(v))});else{var D="";u(v,D)}}function w(v){v=
z.readObj("friendObj",v);Fa.showWriteMSPop({userDataArr:[v]})}function C(v){return $.trim(v.toLowerCase().replace("www.",""))}function H(v){return v=v.hasClass("idFstate_1")?"Friends":v.hasClass("idFstate_2")?"Requested":false}function S(v,D){D=D=="Requested"?2:1;v.removeClass("idFstate_1").removeClass("idFstate_2").addClass("idFstate_"+D)}var B;G8.globalSubscriber.bindOnce("initClasses",a);return{hideAllFriends:x,showPopAddFriend:u,handleFriendChange:A,getFriendFlag:H,fcbPositionChanged:b,updateFCBDesign:s}}(),
Va=function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initExtendPageDOM",b)}function b(){L.isLogged()&&ca.bindOnce("click",f)}function f(l){l=$(l.target);if(l.isChildOf(c.PC.find(".PCFR_requestBox .idBtnAccept"))){l=l.parents(".PCFR_requestBox");j(l);return false}else if(l.isChildOf(c.PC.find(".PCFR_requestBox .idBtnRefuse"))){l=l.parents(".PCFR_requestBox");g(l);return false}else if(l.isChildOf(c.PC.find(".PCFR_requestBox").find(".PC_userUrl,.PC_userName,.SHAF_imgUserThumb"))){l=
l.parents(".PCFR_requestBox").data("userData").url;ea.gotoUrl("http://"+l);return false}}function h(l){var p=$(d({cl:"PCFR_requestBox"},d({cl:"PC_colLeft"},d({cl:"SHAF_userThumb"},F(z.makeImgPathFromId("share",l.userData.imgId,"thumb"),"SHAF_imgUserThumb"))),d({cl:"PC_colRight"},d({cl:"PC_userName PCFR_UserName"},Z.shortenText(l.userData.name,30)),d({cl:"PCFR_date"},F("infoicon_gen_fix_updated.png","PC_imgDate"),Z.formatDate(l.date)),d({cl:"clr"}),d({cl:"PC_userUrl"},l.userData.url),d({cl:"PCFR_Msg"},
l.text),d({cl:"PCFR_Actions"},F("icon_gen_fix_ok_lo.png","iActObj idBtnAccept",n("TT_FR_acceptFriendship")),F("icon_gen_fix_cancel_lo.png","iActObj idBtnRefuse",n("TT_FR_refuseFriendship")))),d({cl:"clr"}),F("pc_trenner_big.png")));p.data("userData",l.userData).data("requestDate",l.date).find(".PC_userUrl,.PC_userName,.SHAF_imgUserThumb").bindTglHoverClass("GEN_domainHi",".PCFR_requestBox",".PC_userUrl");return p}function j(l){l.removeAni(300);var p=l.data("userData");R.post({id:p.id,action:14,state:1},
{afterSuccess:function(t){t=z.readObj("friendshipJ",t).DOM;q(p.id,1);la.handleFriendChange("changeTotalFriendRequests",{totalFriendRequests:m.loggedData.totalFriendRequests-1});la.handleFriendChange("add",{DOM:t})}})}function g(l){l.removeAni(300);var p=l.data("userData");R.post({id:p.id,action:14,state:0},{afterSuccess:function(){q(p.id,0);la.handleFriendChange("changeTotalFriendRequests",{totalFriendRequests:m.loggedData.totalFriendRequests-1})}})}function q(l,p){if(l==m.parsedProfileUser.id){m.loggedData.upRelation=
p;Ca.updateFriendRelationBtn()}}function o(){if(ka.isVisible()&&c.UB.data("currPane")=="FRequests"){var l=c.PC_Contents.find(".PC_contentsBody"),p=l.find(".PCFR_requestBox:first"),t=p.length?p.data("requestDate"):0;R.post({action:15,fromTime:t},{afterSuccess:function(r){r=z.readObj("FRequestsJ",r);r.totalRequests!=m.loggedData.totalFriendRequests&&la.handleFriendChange("changeTotalFriendRequests",{totalFriendRequests:r.totalRequests});J.updateDisplayVal("PCFR_Subline");if(r.requests){p.length||l.empty();
$.each(r.requests,function(x,s){x=z.readObj("FRequest",s);h(x).appendTo(l)})}Q.extendHoverAndTt(c.PC_Contents)}})}else{clearInterval(m.PCFR.interval);m.PCFR.interval=false}}function k(){var l=c.PC_Contents.find(".PC_contentsBody");c.PC_Contents.find(".PC_contentsHeadColLeft").html(m.brandedMode=="adobe"?M("icon_pcbig_world_lo.png","iActObj idBtnWorld",n("TT_gotoAdobeWorld_logged")):F("icon_pcbig_world_lo.png","iActObj idBtnWorld",n("TT_gotoWorld_logged"))).end().find(".PC_contentsHeadHL").html(n("HL_PC_FR")).end().find(".idBtnWorld").bindOnce("click",
e);J.updateDisplayVal("PCFR_Subline");R.post({action:15},{afterSuccess:function(p){p=z.readObj("FRequestsJ",p);p.totalRequests!=m.loggedData.totalFriendRequests&&la.handleFriendChange("changeTotalFriendRequests",{totalFriendRequests:p.totalRequests});J.updateDisplayVal("PCFR_Subline");l.empty();p.requests?$.each(p.requests,function(t,r){t=z.readObj("FRequest",r);h(t).appendTo(l)}):l.html(d({cl:"PC_contentsBodyEmpty"},n("Text_FR_noRequests")));Q.extendHoverAndTt(c.PC_Contents);m.PCFR.interval=setInterval(o,
m.PCFR.intervalTime*1E3)}})}function e(){ea.gotoUrl(m.urlWorld)}G8.globalSubscriber.bindOnce("initClasses",a);return{handleFriendRelationChange:q,fillPCFR:k}}(),Ua=function y(a){var b=this;L.isOwner()&&a.bindOnce("mouseenter",{show:true},b._hov_tglBar).bindOnce("mouseleave",{show:false},b._hov_tglBar);a.find(".FO_idFImg").bindOnce("mouseenter",{show:true},b._hov_tglCover).bindOnce("mouseleave",{show:false},b._hov_tglCover).end().find(".FO_idFInfo").bindTglHoverClass("FO_friendInfoHi").find(".FO_idFMod").prepend(M("infoicon_theme_updated.png")).end().find(".FO_idFName").each(function(){var f=
$(this);f.html(Z.shortenText(f.html(),25))});Q.extendHoverAndTt(a)};Ua.prototype={_hov_tglBar:function y(a){a=a.data.show;var b=$(this);if(J.isInEditMode())a?c.FO_BarDelete.appendTo(b).setPosTo(b.find(".FO_idFName"),["BOTTOMI",-3],["RIGHT",5]).tglFadeIn(300):c.FO_BarDelete.tglFadeOut(300)},_hov_tglCover:function y(a){if(L.isLogged()){a=a.data.show;var b=$(this),f=b.parents(".EE_friend"),h=L.isLoggedId(z.getEEId(f));if(!h){f=(f=L.isOwner()?true:la.getFriendFlag(f)=="Friends"?true:false)?c.FO_CoverMsg:
c.FO_CoverAdd;a?f.appendTo(b).delay(200).tglFadeIn(300):f.tglFadeOut(250)}}}};var ua=function y(){function a(j){var g=false;if(L.isLogged()&&j==m.parsedLoggedUser.id)g=m.parsedLoggedUser;else $.each(m.adressList,function(q,o){if(o.id==j){g=o;return false}});return g}function b(j,g){var q=this,o=false;$.each(j,function(k,e){if(e!=undefined)if(!a(e)){o=true;return false}});o?q.updateAdressList(g):g.call()}function f(j){R.post({action:16,id:m.parsedLoggedUser.id},{afterSuccess:function(g){var q=[];$.each(z.readObj("friendsJ",
g).users,function(o,k){o=z.readObj("user",k);q.push(o)});m.adressList=q;j&&j.call()}})}function h(j){if(m.adressList.length){var g=true;$.each(m.adressList,function(q,o){q=o;if(q.id==j.id)g=false});m.adressList.push(j)}else m.adressList=[j]}return{getUserDataByIdFromList:a,handleAdressListUpdate:b,updateAdressList:f,addToAdresssList:h}}(),L=function y(){function a(q){m.loggedData.user[2]=m.profileData.user[2]=q;m.parsedLoggedUser=z.readObj("user",m.loggedData.user);m.parsedProfileUser=z.readObj("user",
m.profileData.user);J.updateDisplayVal("DocTitle");J.updateDisplayVal("UserName")}function b(){return z.readObj("auth",m.loggedData.userAuthedStatus)!="notLogged"}function f(){return z.readObj("auth",m.loggedData.userAuthedStatus)=="ownerLogged"}function h(q){return q==m.parsedLoggedUser.id}function j(){var q=m.loggedData.upRelation;return q=b()?f()?"isOwner":q==1?"isFriend":q==2?"isPending":"isNoFriend":"isNotLogged"}function g(){return retVal=true}return{updateUserName:a,isLogged:b,isOwner:f,isLoggedId:h,
getRelation:j,userEditAllowed:g}}(),qa=function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f)}function b(){var s="";s+=d({id:"Log_Pop",hid:true},ia.makeBP({headline:"Login",content:d({cl:"idLoginMsg BP_centered BP_infoText"})+d({cl:"idPasswordForm"},d({cl:"BP_label idLabelDomain"},n("Label_Login_domain")),d({cl:"BP_boxInput"},ga({e:"inp",cl:"BP_inpSmall idDomain"})),d({cl:"BP_label idLabelPassword"},n("Label_Login_password")),
d({cl:"BP_boxInput"},ga({e:"pw",cl:"BP_inpSmall idPW"})))+d({cl:"extLinks"},d({cl:"link idLinkPWForgot"},n("Link_Login_pwForgotten")))+(!m.brandedMode?d({cl:"Log_eightpageBadge"},F("badge_loginpop_lo.png","iFadeImg noFadeMsie idBtnBadge",n("TT_GEN_iWantEightpage"))):"")+d({cl:"BP_contControls"},F("icon_bp_ok_lo.png","idBtnOk iActObj",n("TT_GEN_login"))+F("icon_bp_cancel_lo.png","idBtnCancel iActObj",n("TT_GEN_cancel")))}));s+=d({id:"Log_PopPWRestore",hid:true},ia.makeBP({headline:"",content:d({cl:"BP_centered BP_infoText idInfoText"})+
d({cl:"BP_label"},n("Label_PwRestore_domain"))+d({cl:"BP_boxInput"},ga({e:"inp",cl:"BP_inpSmall idDomain Vali_notEmpty"}))+d({cl:"BP_label"},n("Label_PwRestore_email"))+d({cl:"BP_boxInput"},ga({e:"inp",cl:"BP_inpSmall idEmail Vali_email"}))+T.getCaptchaMaster()+(!m.brandedMode?d({cl:"Log_eightpageBadge"},F("badge_loginpop_lo.png","iFadeImg noFadeMsie idBtnBadge",n("TT_GEN_iWantEightpage"))):"")+d({cl:"BP_contControls"},F("icon_bp_ok_lo.png","idBtnOkVali iActObj",n("TT_PwRestore_requestPassword"))+
F("icon_bp_cancel_lo.png","idBtnCancel iActObj",n("TT_GEN_cancel")))}));J.appendGlobalDomString(s)}function f(){var s=["Log_Pop","Log_PopPWRestore"];J.setDOMReference(s);G8.isLocaltest||c.Log_Pop.find(".idPasswordForm").empty().append($("#Page_hiddenLoginForm").find(".idLabelDomain").html(n("Label_Login_domain")).end().find(".idLabelPassword").html(n("Label_Login_password")).end().find("input[name='UP']").val(m.parsedProfileUser.url).end().show());c.Log_Pop.find(".idDomain,.idPW").bindOnce("focus",
{start:true},g).bindOnce("blur",{start:false},g).end().find(".idBtnOk").bindOnce("click",o).end().find(".idLinkPWForgot").bindOnce("click",l).end().find(".idBtnBadge").bindOnce("click",e);Q.bindLinkStyle(c.Log_Pop.find(".idLinkPWForgot"));Q.extendFadeImgs(c.Log_Pop);c.Log_PopPWRestore.find(".idBtnOkVali").bindOnce("click",r).end().find(".idBtnBadge").bindOnce("click",e);Q.extendFadeImgs(c.Log_PopPWRestore)}function h(s){m.brandedMode&&c.Log_Pop.find(".idDomain").val()==""&&c.Log_Pop.find(".idDomain").val(m.parsedProfileUser.url);
s?c.Log_Pop.find(".idLoginMsg").html(s).show():c.Log_Pop.find(".idLoginMsg").hide();T.tglAlert(true,c.Log_Pop)}function j(){h();return false}function g(s){(s=s.data.start)?c.Log_Pop.bindOnce("keypress",q):c.Log_Pop.unbind("keypress",q)}function q(s){s.which==13&&c.Log_Pop.find(".idBtnOk").trigger("click")}function o(){T.tglPreloader(true);c.Log_Pop.find(".idPW").val(X.readFormVal(c.Log_Pop,".idPW"));c.Log_Pop.find(".idDomain").val(X.readFormVal(c.Log_Pop,".idDomain").replace("www.","").replace("http://",
"").replace("/",""));X.readFormVal(c.Log_Pop,".idDomain");var s=$("#Page_hiddenLoginForm");if(window.location.search){var u=window.location.search;s.attr("action",s.attr("action")+u.replace("?","&"))}s.submit()}function k(){function s(){R.post({action:4},{afterSuccess:function(u){u=z.readObj("json",u);m.loggedData.userAuthedStatus=u.authed;m.loggedData.loginError=u.stateError;m.loggedData.user=false;m.parsedLoggedUser=false;m.siteViewMode="View";$(".EE_CB").each(function(){var A=$(this);if(A.data("privacy")!=
R.getAjaxConst("PRIVACY_FLAGS","ALL")){A.removeAni(300);A.hasClass(".EE_CBFriends")&&$(".FO_idFriendTrenner").remove()}});J.displayPage();x()}})}if(ka.isVisible()){c.UB.fadeOut(300);c.PC_Cover.fadeOut(300,function(){s()});c.UB.data("expanded",false);c.AllPageContents.add("#LB_Popup,#LB_Overlay").show()}else s()}function e(){ea.gotoUrl(m.urlEightpage)}function l(){t("forgot")}function p(){t("restore")}function t(s){if(s=="forgot"){s=n("HL_PwRestore_passwordForgotten");var u=n("Text_PwRestore_passwordForgotten")}else{s=
n("HL_PwRestore_passwordRestore");u=n("Text_PwRestore_passwordRestore")}T.tglAlert(false,c.Log_Pop);T.refreshCaptcha(c.Log_PopPWRestore);c.Log_PopPWRestore.find(".BP_contHeadline").html(s).end().find(".idInfoText").html(u).end().find(".idDomain").val("").end().find(".idCaptcha").val("");T.tglAlert(true,c.Log_PopPWRestore)}function r(){ma.validateForm(c.Log_PopPWRestore,function(){var s=X.readFormVal(c.Log_PopPWRestore,".idDomain"),u=X.readFormVal(c.Log_PopPWRestore,".idEmail");s.hasStr("www.")||(s=
"www."+s);var A=X.readFormVal(c.Log_PopPWRestore,".idCaptcha");R.post({action:35,domain:s,mail:u,captcha:A,lang:m.loggedData.lang},{dontTrace:[1701,2],afterError:function(E){R.handleCaptchaError(E,c.Log_PopPWRestore);R.handlePWRestoreEmailError(E,c.Log_PopPWRestore)},afterSuccess:function(){ma.resetCaptchaError(c.Log_PopPWRestore);T.alertt({autoHide:true,headline:n("HL_BP_Success_passwordRequested"),msg:n("Text_BP_Success_passwordRequested")})}})})}function x(){var s=m.loggedData.loginError;if(s==
1)h(n("Text_Login_problemCookie"));else if(s==2&&L.isLogged())h(n("Text_Login_problemSession"));else if(s==3)h(n("Text_Login_problemPassword"));else if(s==4){h(n("Text_Login_problemLocked")+d({cl:"link idLinkPWRestore"},n("Link_Login_unlockPassword")));c.Log_Pop.find(".idLinkPWRestore").bindOnce("click",p);Q.bindLinkStyle(c.Log_Pop.find(".idLinkPWRestore"))}if(L.isLogged()){J.tglUserChronjob("logged",true);J.tglUserChronjob("notLogged",false)}else{J.tglUserChronjob("logged",false);J.tglUserChronjob("notLogged",
true)}}G8.globalSubscriber.bindOnce("initClasses",a);return{showLoginPop:h,clk_showLoginPop:j,clk_submitLogout:k,handleLoginState:x}}();(function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f)}function b(){if(L.isLogged()){var j="";j+=d({id:"PCMS_CoverUserThumbMsg",pos:"absolute",hid:true},F("cover_fix_userthumb_msg.png","iActObj",n("TT_GEN_writeMessage")));J.appendGlobalDomString(j)}}function f(){if(L.isLogged()){var j=["PCMS_CoverUserThumbMsg"];
J.setDOMReference(j)}ca.bindOnce("click",h)}function h(j){j=$(j.target);if(ka.isVisible())if(j.isChildOf(".PCMS_ToggleFullDialog")){j=j.parents(".PCMS_DialogBox");j=U("Dialog",j);j.tglFullDialog();return false}else if(j.isChildOf(".PCMS_ToggleDialog")){j=j.parents(".PCMS_DialogBox");j=U("Dialog",j);j.tglDialog();return false}else if(j.isChildOf(c.PCMS_CoverUserThumbMsg)){j=j.parents(".PCMS_DialogBox");j=U("Dialog",j);j.writeMessageToUser();return false}else if(j.isChildOf(".PCMS_userDialogPartner,.PC_userTitleRow")){j=
j.parents(".PCMS_DialogBox");j=U("Dialog",j);j.gotoDialogUser();return false}}G8.globalSubscriber.bindOnce("initClasses",a);return{}})();var xa=function y(){function a(q){var o=q.messageData,k=q.totalMessages,e=q.totalNewMessages,l=q.totalMessagesDialog,p=q.totalNewMessagesDialog;h("changeTotals",{totalNewMessages:e,totalMessages:k});var t=L.isLoggedId(o.uidReci)?o.uidSend:o.uidReci;c.PC_Contents.find(".PC_contentsBodyEmpty").remove();var r=false,x=false;c.PC_Contents.find(".PCMS_DialogBox").each(function(){var s=
$(this);x=s.data("dialogUserData");if(x.id==t){r=s;return false}});ua.handleAdressListUpdate([t],function(){if(!r){var s={user:ua.getUserDataByIdFromList(t),totalNewMessages:0,totalMessages:0,messages:[]};x=s.user;s=new Ma(s);r=s.getJDomObj();r.data("dialogUserData",x);c.PC_Contents.find(".PC_contentsBody").prepend(r);Q.extendHoverAndTt(r)}var u=r.find(".PCMS_DirectMessagesBox");o.userDataSend=L.isLoggedId(o.uidSend)?m.parsedLoggedUser:x;u.prepend((new Na(o,s)).getJDomObj());f(r);m.loggedData.totalMessages=
k;m.loggedData.totalNewMessages=e;r.data("totalMessages",l);r.data("totalNewMessages",p);J.updateDisplayVal("PCMS_DialogHL",{dialogObj:r});J.updateDisplayVal("PCMS_Subline")})}function b(){if(ka.isVisible()&&c.UB.data("currPane")=="Messages"){var q=c.PC_Contents.find(".PC_contentsBody");q.find(".PCMS_MsgBox:first");q=m.latestMessageStamp;R.post({action:40,showDetails:true,lengthDialog:100,fromTime:q},{afterSuccess:function(o){var k=z.readObj("dialogsJ",o);$.each(k.dialogs,function(e,l){var p=z.readObj("dialog",
l);$.each(p.messages,function(t,r){t={messageData:z.readObj("message",r),totalMessages:k.totalMessages,totalNewMessages:k.totalNewMessages,totalMessagesDialog:p.totalMessages,totalNewMessagesDialog:p.totalNewMessages};a(t)})})}})}else{clearInterval(m.PCMS.interval);m.PCMS.interval=false}}function f(q){var o=q.find(".PCMS_MsgBox"),k=q.find(".PCMS_DirectMessagesBox"),e=q.find(".PCMS_FullDialogBox");if(o.length){q=q.find(".PCMS_ToggleFullDialog");o.filter(":lt("+m.maxDirectMessages+")").appendTo(k);
if(o.length>m.maxDirectMessages){q.show();o.filter(":gt("+(m.maxDirectMessages-1)+")").appendTo(e);o.filter(":last").find(".PCMS_imgTrennerSmall").remove()}else q.add(e).hide()}else q.removeAni(300)}function h(q,o){if(q=="changeTotals"){if(o.totalNewMessages!=undefined)m.loggedData.totalNewMessages=o.totalNewMessages;if(o.totalMessages!=undefined)m.loggedData.totalMessages=o.totalMessages;J.updateDisplayVal("MB_TotalMessages");if(ka.isVisible()&&c.UB.data("currPane")=="Messages"){J.updateDisplayVal("PCMS_Subline");
m.loggedData.totalMessages==0&&c.PC_Contents.find(".PC_contentsBody").html(d({cl:"PC_contentsBodyEmpty"},n("Text_MS_noMessages")))}}}function j(){m.parsedLoggedUser&&m.parsedLoggedUser.url=="www.eightpageteam.com"&&m.parsedProfileUser.url=="www.eightpageteam.com"?Fa.showWriteMSPop({writeToAllFriends:true}):Fa.showWriteMSPop()}function g(){var q=c.PC_Contents.find(".PC_contentsBody");c.PC_Contents.find(".PC_contentsHeadColLeft").html(F("icon_pcbig_writemsg_lo.png","iActObj idBtnWriteNew",n("TT_GEN_writeMessage"))).end().find(".PC_contentsHeadHL").html(n("HL_PC_MS")).end().find(".idBtnWriteNew").bindOnce("click",
j);J.updateDisplayVal("PCMS_Subline");R.post({action:40,showDetails:true,lengthDialog:100},{afterSuccess:function(o){q.empty();o=z.readObj("dialogsJ",o);h("changeTotals",{totalNewMessages:o.totalNewMessages,totalMessages:o.totalMessages});if(o.dialogs){$.each(o.dialogs,function(k,e){k=z.readObj("dialog",e);e=(new Ma(k)).getJDomObj();q.append(e);f(e);ua.addToAdresssList(k.user)});Q.extendHoverAndTt(c.PC_Contents)}else q.html(d({cl:"PC_contentsBodyEmpty"},n("Text_MS_noMessages")));m.PCMS.interval=setInterval(b,
m.PCMS.intervalTime*1E3)}})}return{fillPCMS:g,addMessage:a,handleMsgChange:h,updatePCMSDesign:f}}();(function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initCreatePageDOMString",f).bindOnce("initExtendPageDOM",h)}function b(j){j=$(j.target);if(ka.isVisible())if(j.isChildOf(".PCMS_ToggleReply")){j=j.parents(".PCMS_MsgBox");j=U("Message",j);j.tglReply();return false}else if(j.isChildOf(".PCMS_Subject")){j=j.parents(".PCMS_MsgBox");j=U("Message",j);j.tglMessage();return false}else if(j.isChildOf(".idBtnReply")){j=
j.parents(".PCMS_MsgBox");j=U("Message",j);j.submitReply();return false}}function f(){if(L.isLogged()){var j="";j+=d({id:"PCMS_BtnMsgDelete",hid:true},F("icon_gen_fix_delete_mini_lo.png","idBtnDelete iActObj",n("TT_PC_MS_deleteMessage")));J.appendGlobalDomString(j)}}function h(){if(L.isLogged()){var j=["PCMS_BtnMsgDelete"];J.setDOMReference(j);ca.bindOnce("click",b)}}G8.globalSubscriber.bindOnce("initClasses",a);return{}})();var Fa=function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initCreatePageDOMString",
b).bindOnce("initExtendPageDOM",f)}function b(){if(L.isLogged()){var u="";u+=d({id:"WriteMS_Pop",hid:true},ia.makeBP({size:"big",headline:n("HL_BP_WriteMS_writeMessage"),content:d({cl:"BP_label"},n("Label_BP_WriteMS_to"))+d({cl:"idSendToBoxes BP_boxInput"},d({cl:"BP_divBigInp WriteMS_adressInputBox"},ga({e:"inp",cl:"BP_inpInvisible idSendTo Vali_hasRecipient"})))+d({cl:"BP_label"},n("Label_BP_WriteMS_subject"))+d({cl:"BP_boxInput"},ga({e:"inp",cl:"BP_inpBig idSubject Vali_notEmpty"}))+d({cl:"BP_label"},
n("Label_BP_WriteMS_message"))+d({cl:"BP_boxInput"},ga({e:"txt",cl:"BP_inptxtBig idMsg Vali_notEmpty"})),controls:F("icon_bp_send_lo.png","idBtnOkVali iActObj",n("TT_GEN_sendMessage"))+F("icon_bp_cancel_lo.png","idBtnCancel iActObj",n("TT_GEN_cancel"))}));u+=d({id:"WriteMS_AdressList",hid:true},d({hid:true,id:"WriteMS_AdressListPreview"},d({cl:"SHA_userMini"},F("preview_user_mini.png","SHA_imgUserMini idPreviewImg"))),d({cl:"WriteMS_adressListTop"}),d({cl:"WriteMS_adressListContents"}),d({cl:"WriteMS_adressListBot"}));
J.appendGlobalDomString(u)}}function f(){if(L.isLogged()){var u=["WriteMS_Pop","WriteMS_AdressList","WriteMS_AdressListPreview"];J.setDOMReference(u);c.WriteMS_Pop.find(".idBtnOkVali").bindOnce("click",h).end().find(".idSendTo").bindOnce("blur",g).bindOnce("focus",j)}}function h(){ma.validateForm(c.WriteMS_Pop,function(){var u=[];c.WriteMS_Pop.data("writeToAllFriends")?$(".EE_friend").each(function(){var w=$(this);u.push({id:z.getEEId(w)})}):c.WriteMS_Pop.find(".WriteMS_idAdressObj").each(function(){u.push($(this).data("userData"))});
var A=X.readFormVal(c.WriteMS_Pop,".idSubject"),E=X.readFormVal(c.WriteMS_Pop,".idMsg"),G=[];$.each(u,function(w,C){G.push(C.id)});R.post({action:19,"id[]":G,subject:A,text:E},{afterSuccess:function(w){T.alertt({autoHide:m.alertAutohideTime,headline:n("HL_BP_Success_messageSent"),msg:n("Text_BP_Success_messageSent")});var C=z.readObj("dialogsJ",w);$.each(C.dialogs,function(H,S){H=z.readObj("dialog",S);H={messageData:z.readObj("message",H.messages[0]),totalMessages:C.totalMessages,totalNewMessages:C.totalNewMessages,
totalMessagesDialog:H.totalMessages,totalNewMessagesDialog:H.totalNewMessages};xa.addMessage(H)})}})})}function j(){$(this).bindOnce("keyup",q)}function g(){$(this).unbind("keyup",q).val("");c.WriteMS_AdressList.fadeOut(300)}function q(u){l(X.readFormVal(c.WriteMS_Pop.find(".idSendTo")));if(u.which==38)e("up");else if(u.which==40)e("down");else u.which==13&&k()}function o(){var u=$(this);u=u.data("userData");p(u)}function k(){var u=c.WriteMS_AdressList.find(".WriteMS_adressListEntryHi");if(u.length){u=
u.data("userData");p(u)}}function e(u){if(c.WriteMS_AdressList.is(":visible")){var A=c.WriteMS_AdressList.find(".WriteMS_idAdressListEntry:visible"),E=A.index(c.WriteMS_AdressList.find(".WriteMS_adressListEntryHi"));if(u=="down"&&E<A.length-1){A.eq(E).removeClass("WriteMS_adressListEntryHi").end().eq(E+1).addClass("WriteMS_adressListEntryHi");x(true,A.eq(E+1))}else if(u=="up"&&E>0){A.eq(E).removeClass("WriteMS_adressListEntryHi").end().eq(E-1).addClass("WriteMS_adressListEntryHi");x(true,A.eq(E-1))}}}
function l(u){function A(C){var H=false;c.WriteMS_Pop.find(".WriteMS_idAdressObj").each(function(){if($(this).data("userData").id==C.id)H=true});return H}var E=c.WriteMS_Pop.find(".idSendTo"),G=m.adressList,w=c.WriteMS_AdressList.find(".WriteMS_adressListContents");if(c.WriteMS_AdressList.is(":hidden")){w.empty();$.each(G,function(C,H){$(d({cl:"WriteMS_idAdressListEntry"},d({cl:"WriteMS_adressListEntryCont"},Y({cl:"WriteMS_idAdressEntryName"},Z.shortenText(H.name,22)),Y({cl:"WriteMS_idAdressEntryUrl"},
"["+H.url+"]")))).data("userData",H).bindOnce("mouseenter",{show:true},r).bindOnce("mouseleave",{show:false},r).bindOnce("click",o).appendTo(w)});c.WriteMS_AdressList.setPosTo(E,"LEFTI","BOTTOM").fadeIn(300)}c.WriteMS_AdressList.find(".WriteMS_idAdressListEntry").each(function(){var C=$(this),H=C.find(".WriteMS_idAdressEntryName"),S=C.find(".WriteMS_idAdressEntryUrl");if((H.text().hasStr(u)||S.text().hasStr(u))&&!A(C.data("userData"))){C.show();C=new RegExp(u,"i");H.html(H.text().replace(C,ga({e:"sp",
cl:"WriteMS_adressEntryMatch"},u)));S.html(S.text().replace(C,ga({e:"sp",cl:"WriteMS_adressEntryMatch"},u)))}else{C.removeClass("WriteMS_adressListEntryHi").hide();x(false,C)}})}function p(u){var A=c.WriteMS_Pop.find(".idSendToBoxes"),E=A.find(".idSendTo"),G=E.parent();u=$(d({cl:"WriteMS_idAdressObj"},Z.formatUser(u))).data("userData",u);var w=$(d({cl:"BP_divBigInp WriteMS_adressInputBox"})),C=$(F("icon_gen_fix_delete_mini_lo.png","WriteMS_imgBtnDeleteAdress iActObj",n("TT_BP_WriteMS_removeAdress")));
G.append(u).append(C);A.append(w.append(E));Q.extendHoverAndTt(C);C.bindOnce("click",t)}function t(){var u=$(this);u=u.parent();u.remove()}function r(u){u=u.data.show;var A=$(this),E=c.WriteMS_AdressList.find(".WriteMS_idAdressListEntry");if(u){E.filter(function(){return this!=A.get(0)}).removeClass("WriteMS_adressListEntryHi");A.addClass("WriteMS_adressListEntryHi");x(true,A)}else{E.removeClass("WriteMS_adressListEntryHi");x(false,A)}}function x(u,A){u?c.WriteMS_AdressListPreview.find(".idPreviewImg").attr("src",
z.makeImgPathFromId("share",A.data("userData").imgId,"mini")).end().setPosTo(A,["RIGHTI",-20],"BOTTOMI").tglFadeIn(300):c.WriteMS_AdressListPreview.tglFadeOut(300)}function s(u){u=u||{};c.WriteMS_Pop.find(".idSendTo,.idSubject,.idMsg").val("");c.WriteMS_Pop.find(".WriteMS_idAdressObj").each(function(){$(this).parent().remove()});ua.updateAdressList();u.userDataArr&&$.each(u.userDataArr,function(A,E){p(E)});u.writeToAllFriends?c.WriteMS_Pop.data("writeToAllFriends",true).find(".idSendTo").val("MESSAGE ALL FRIENDS!!!").removeClass("Vali_hasRecipient"):
c.WriteMS_Pop.data("writeToAllFriends",false).find(".idSendTo").addClass("Vali_hasRecipient");T.tglAlert(true,c.WriteMS_Pop)}G8.globalSubscriber.bindOnce("initClasses",a);return{showWriteMSPop:s}}(),Ma=function y(a){var b=this,f=a.user,h=$(d({cl:"PCMS_DialogBox"},d({cl:"PC_colLeft"},d({cl:"SHAF_userThumb idDialogUser"},F(z.makeImgPathFromId("share",f.imgId,"thumb"),"SHAF_imgUserThumb"))),d({cl:"PC_colRight"},d({cl:"PC_userTitleRow"},d({cl:"PC_userName"},Z.shortenText(f.name,30)),d({cl:"PC_userUrl PCMS_UserUrl"},
f.url)),d({cl:"PCMS_ToggleDialog"},F("icon_gen_fix_toggle_collapsed_lo.png","iActObj PCMS_imgToggler idTogglerDialog"),d({cl:"PCMS_DialogTotalMsgs tgl_togglerText"})),d({cl:"PCMS_DialogContents"},d({cl:"PCMS_DirectMessagesBox"}),d({cl:"PCMS_ToggleFullDialog"},F("icon_gen_fix_toggle_collapsed_lo.png","iActObj PCMS_imgToggler idTogglerFullDialog"),n("Text_MS_Tgl_allMessages")),d({cl:"PCMS_FullDialogBox"}))),d({cl:"clr"}),F("pc_trenner_big.png")));h.data("totalNewMessages",a.totalNewMessages).data("totalMessages",
a.totalMessages).data("dialogUserData",f).find(".PCMS_DialogContents").hide().end().find(".PCMS_FullDialogBox").hide().end().find(".idDialogUser").bindOnce("mouseenter",{show:true},b._hov_tglCoverDialogUser).bindOnce("mouseleave",{show:false},b._hov_tglCoverDialogUser).end().find(".PC_userTitleRow").addClass("iActObj").bindTglHoverClass("PCMS_userInfoHi");J.updateDisplayVal("PCMS_DialogHL",{dialogObj:h});var j=h.find(".PCMS_FullDialogBox").empty();$.each(a.messages,function(g,q){g=z.readObj("message",
q);g.userDataSend=L.isLoggedId(g.uidSend)?m.parsedLoggedUser:f;j.append((new Na(g,b)).getJDomObj())});b._glo_jDomObj=h;na.setJDomToObjMapping("Dialog",h,b)};Ma.prototype={getJDomObj:function y(){var a=this;return a._glo_jDomObj},tglFullDialog:function y(){var a=this,b=a._glo_jDomObj;a=b.find(".PCMS_FullDialogBox");b=b.find(".idTogglerFullDialog");ja.tglBox(a,b,"PCMS_FullDialog")},tglDialog:function y(){var a=this,b=a._glo_jDomObj;a=b.find(".PCMS_DialogContents");b=b.find(".idTogglerDialog");ja.tglBox(a,
b,"PCMS_Dialog")},_hov_tglCoverDialogUser:function y(a){a=a.data.show;var b=$(this);a?c.PCMS_CoverUserThumbMsg.appendTo(b).tglFadeIn(300):c.PCMS_CoverUserThumbMsg.tglFadeOut(250)},writeMessageToUser:function y(){var a=this;a=a._glo_jDomObj.data("dialogUserData");Fa.showWriteMSPop({userDataArr:[a]})},gotoDialogUser:function y(){var a=this;a=a._glo_jDomObj.data("dialogUserData");ea.gotoUrl("http://"+a.url)}};var Na=function y(a,b){var f=this;f._glo_parentDialogObj=b;if(a.date>m.latestMessageStamp)m.latestMessageStamp=
a.date;b=L.isLoggedId(a.uidSend);var h=$(d({cl:"PCMS_MsgBox"},d({cl:"SHAF_userMini PCMS_UserMini PC_userMiniLeft"},F(z.makeImgPathFromId("share",a.userDataSend.imgId,"mini"),"SHAF_imgUserMini")),d({cl:"PCMS_subjectRow"},d({cl:"PCMS_Subject"},F("icon_gen_fix_toggle_collapsed_lo.png","iActObj PCMS_imgToggler idTogglerMessage"),a.subject),d({cl:"PCMS_date"},F("infoicon_gen_fix_updated.png","PC_imgDate"),Z.formatDate(a.date,"long")),d({cl:"clr"})),d({cl:"PCMS_MsgContents"},d({cl:"PCMS_Msg"},a.text),b?
"":d({cl:"PCMS_ReplyBox"},d({cl:"PCMS_ToggleReply"},F("icon_gen_fix_toggle_collapsed_lo.png","iActObj PCMS_imgToggler idTogglerReply",n("TT_MS_Tgl_reply")),n("Text_MS_Tgl_reply")),d({cl:"PCMS_ReplayForm"}))),F("pc_trenner_small.png","PCMS_imgTrennerSmall")));h.data("messageData",a).find(".PCMS_MsgContents").hide().end().find(".PCMS_ReplayForm").hide().end().bindOnce("mouseenter",{show:true,thiss:f},f._hov_tglBtnDelete).bindOnce("mouseleave",{show:false,thiss:f},f._hov_tglBtnDelete);f._isUnread(a)&&
h.find(".PCMS_Subject").addClass("PCMS_Unread");b||h.find(".PCMS_UserMini").addClass("PCMS_userDialogPartner").find(".SHAF_imgUserMini").addClass("iActObj").setAltText(n("TT_MS_visitUser"));Q.extendTextLinks(h.find(".PCMS_Msg"));Q.extendHoverAndTt(h);f._glo_jDomObj=h;na.setJDomToObjMapping("Message",h,f)};Na.prototype={getJDomObj:function y(){var a=this;return a._glo_jDomObj},_isUnread:function y(a){return a.state==1},submitReply:function y(){var a=this;msgBox=a._glo_jDomObj;ma.validateForm(msgBox,
function(){var b=msgBox.data("messageData").userDataSend,f=X.readFormVal(msgBox,".PCMS_ReplyFieldSubject"),h=X.readFormVal(msgBox,".PCMS_ReplyFieldMsg");b=[b.id];a.tglReply();R.post({action:19,"id[]":b,subject:f,text:h},{afterSuccess:function(j){T.alertt({autoHide:m.alertAutohideTime,headline:n("HL_BP_Success_messageSent"),msg:n("Text_BP_Success_messageSent")});var g=z.readObj("dialogsJ",j);$.each(g.dialogs,function(q,o){q=z.readObj("dialog",o);q={messageData:z.readObj("message",q.messages[0]),totalMessages:g.totalMessages,
totalNewMessages:g.totalNewMessages,totalMessagesDialog:q.totalMessages,totalNewMessagesDialog:q.totalNewMessages};xa.addMessage(q)})}})})},tglMessage:function y(){var a=this,b=a._glo_jDomObj,f=b.find(".idTogglerMessage"),h=b.find(".PCMS_MsgContents");h.data("expanded")||a._isUnread(b.data("messageData"))&&a._markRead(b);ja.tglBox(h,f,"PCMS_Message")},_markRead:function y(a){a.find(".PCMS_Subject").removeClass("PCMS_Unread");a.data("messageData").state=2;var b=a,f=a.parents(".PCMS_DialogBox");R.post({action:20,
id:a.data("messageData").mid,state:2},{afterError:function(){b.find(".PCMS_Subject").addClass("PCMS_Unread");b.data("messageData").state=1},afterSuccess:function(h){h=z.readObj("dialogsJ",h);var j=z.readObj("dialog",h.dialogs[0]);f.data("totalMessages",j.totalMessages);f.data("totalNewMessages",j.totalNewMessages);xa.handleMsgChange("changeTotals",{totalMessages:h.totalMessages,totalNewMessages:h.totalNewMessages});J.updateDisplayVal("PCMS_DialogHL",{dialogObj:f})}})},tglReply:function y(){var a=
this;msgObj=a._glo_jDomObj;a=msgObj.find(".idTogglerReply");var b=msgObj.find(".PCMS_ReplayForm");if(!b.data("expanded")){var f=d({cl:"BP_boxInput"},ga({e:"inp",cl:"PCMS_ReplyFieldSubject Vali_notEmpty"}))+d({cl:"BP_boxInput"},ga({e:"txt",cl:"PCMS_ReplyFieldMsg Vali_notEmpty"}))+d({cl:"PCMS_ReplyActions"},F("icon_gen_fix_send_lo.png","iActObj idBtnReply",n("TT_GEN_sendMessage")));b.html(f);b.find(".PCMS_ReplyFieldSubject").val("RE: "+G8.ax_jqxtnd.unescapeHtml(msgObj.data("messageData").subject));
Q.extendHoverAndTt(b)}ja.tglBox(b,a,"PCMS_Reply")},_clk_btnDelete:function y(a){a=a.data.thiss;var b=a._glo_jDomObj,f=b.data("messageData");Q.tglObjToDelete(b,true);T.confirmm({headline:n("HL_BP_Confirm_deleteMessage"),okTitle:n("TT_GEN_delete"),okAction:function(){var h=b.parents(".PCMS_DialogBox");b.removeAni(300,function(){xa.updatePCMSDesign(h)});R.post({id:f.mid,action:20,state:0},{afterSuccess:function(j){j=z.readObj("dialogsJ",j);var g=z.readObj("dialog",j.dialogs[0]);h.data("totalMessages",
g.totalMessages);h.data("totalNewMessages",g.totalNewMessages);xa.handleMsgChange("changeTotals",{totalMessages:j.totalMessages,totalNewMessages:j.totalNewMessages});J.updateDisplayVal("PCMS_DialogHL",{dialogObj:h})}})},cancelAction:function(){Q.tglObjToDelete(b,false)}});return false},_hov_tglBtnDelete:function y(a){var b=a.data.thiss,f=b._glo_jDomObj;if(a=a.data.show){c.PCMS_BtnMsgDelete.bindOnce("click",{thiss:b},b._clk_btnDelete).appendTo(f).tglFadeInXB(300);Q.extendHoverAndTt(c.PCMS_BtnMsgDelete)}else c.PCMS_BtnMsgDelete.tglFadeOutXB(300)}};
(function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initExtendPageDOM",b)}function b(){ca.bindOnce("click",f)}function f(h){h=$(h.target);if(ka.isVisible())if(h.isChildOf(".PCFeed_userInfo, .PCFeed_idImgNewsUser")){h=h.parents(".PCFeed_box");p_feedObj=U("FeedEntry",h);p_feedObj.gotoFeedUser();return false}else if(h.isChildOf(".PCNF_box .PCFeed_commentedUserHL,.PCNF_box .PC_userMiniLeft")){h=h.parents(".PCFeed_box");p_feedObj=U("FeedEntry",h);p_feedObj.gotoCommentedUser();return false}else if(h.isChildOf(".PCFeed_commentText")){h=
h.parents(".PCFeed_box");p_feedObj=U("FeedEntry",h);p_feedObj.gotoComment();return false}else if(h.isChildOf(".PCFeed_descHL,.PCFeed_itemBEntry,.PCFeed_itemText,.PCFeed_itemVideo,.PCFeed_itemGallery,.PCFeed_userMiniFriend,.PCFeed_itemProfile")){h=h.parents(".PCFeed_box");p_feedObj=U("FeedEntry",h);p_feedObj.gotoElement();return false}}G8.globalSubscriber.bindOnce("initClasses",a);return{}})();var Oa=function y(){function a(){if(ka.isVisible()&&c.UB.data("currPane")=="Comments"){var g=c.PC_Contents.find(".PC_contentsBody"),
q=g.find(".PCFeed_box:first"),o=q.length?U("FeedEntry",q).getTimestamp():0;R.post({action:41,fromTime:o},{afterSuccess:function(k){var e=z.readObj("commentsJ",k);if(e.comments.length){q.length||g.empty();var l=[];$.each(e.comments,function(p,t){l.push(z.readObj("comment",t).userData.uid)});ua.handleAdressListUpdate(l,function(){$.each(e.comments,function(p,t){p=z.readObj("comment",t);p=(new Ga("commentfeed",p)).getJDomObj();q.length?q.before(p):g.append(p)})})}}})}else{clearInterval(m.Feed.intervalCF);
m.Feed.intervalCF=false}}function b(){if(ka.isVisible()&&c.UB.data("currPane")=="Newsfeed"){var g=c.PC_Contents.find(".PC_contentsBody"),q=g.find(".PCFeed_box:first"),o=q.length?U("FeedEntry",q).getTimestamp():0;R.post({action:42,withComments:true,fromTime:o},{afterSuccess:function(k){var e=z.readObj("friendsfeedJ",k);if(e.news.length){q.length||g.empty();var l=[];$.each(e.news,function(p,t){l.push(z.readObj("news",t).uid)});ua.handleAdressListUpdate(l,function(){$.each(e.news,function(p,t){p=z.readObj("news",
t);if(p.feedAction!="FRIEND"){p=(new Ga("newsfeed",p)).getJDomObj();q.length?q.before(p):g.append(p)}})})}}})}else{clearInterval(m.Feed.intervalNF);m.Feed.intervalNF=false}}function f(){var g=c.PC_Contents.find(".PC_contentsBody");c.PC_Contents.find(".PC_contentsHeadColLeft").empty().end().find(".PC_contentsHeadHL").html(n("HL_PC_NF")).end();J.updateDisplayVal("PCNF_Subline");R.post({action:42,withComments:true},{afterSuccess:function(q){var o=z.readObj("friendsfeedJ",q);g.empty();if(o.news.length){var k=
[];$.each(o.news,function(e,l){k.push(z.readObj("news",l).uid)});ua.handleAdressListUpdate(k,function(){$.each(o.news,function(e,l){e=z.readObj("news",l);if(e.feedAction!="FRIEND"){e=(new Ga("newsfeed",e)).getJDomObj();g.append(e)}})})}else g.html(d({cl:"PC_contentsBodyEmpty"},n("Text_NF_noFeeds")));Q.extendHoverAndTt(c.PC_Contents);m.Feed.intervalNF=setInterval(b,m.Feed.intervalTime*1E3)}})}function h(g){m.loggedData.totalNewComments=g;J.updateDisplayVal("MB_TotalComments")}function j(){var g=c.PC_Contents.find(".PC_contentsBody");
c.PC_Contents.find(".PC_contentsHeadColLeft").empty().end().find(".PC_contentsHeadHL").html(n("HL_CF_Main")).end();J.updateDisplayVal("PCCF_Subline");R.post({action:41},{afterSuccess:function(q){var o=z.readObj("commentsJ",q);h(0);g.empty();if(o.comments.length){var k=[];$.each(o.comments,function(e,l){k.push(z.readObj("comment",l).userData.uid)});ua.handleAdressListUpdate(k,function(){$.each(o.comments,function(e,l){e=z.readObj("comment",l);e=(new Ga("commentfeed",e)).getJDomObj();g.append(e)})})}else g.html(d({cl:"PC_contentsBodyEmpty"},
n("Text_CF_noComments")));Q.extendHoverAndTt(c.PC_Contents);m.Feed.intervalCF=setInterval(a,m.Feed.intervalTime*1E3)}})}return{fillPCNF:f,fillPCCF:j,handleTotalNewCommentsChange:h}}(),Ga=function y(a,b){var f,h=this._makeFeedMarkup;if(a=="newsfeed"){f=b;b=ua.getUserDataByIdFromList(f.uid);var j;if(f.feedAction=="TEXT"){j=z.readObj("feedElement",f.content);f.itemId=j.id;j=j.children;var g=j[0].value1;j=h("newsUser",b)+d({cl:"PCFeed_description"},n("Text_NF_CreatedText",Y({cl:"PCFeed_descHL"},g)))+
h("newsDate",f)+h("itemText",j)}else if(f.feedAction=="VIDEO"){j=z.readObj("feedElement",f.content);f.itemId=j.id;j=j.children;g=j[0].value1;j=h("newsUser",b)+d({cl:"PCFeed_description"},n("Text_NF_CreatedVideo",Y({cl:"PCFeed_descHL"},g)))+h("newsDate",f)+h("itemVideo",j)}else if(f.feedAction=="GALLERY"){j=z.readObj("feedElement",f.content);f.itemId=j.id;j=j.children;g=j[0].value1;j=h("newsUser",b)+d({cl:"PCFeed_description"},n("Text_NF_CreatedGallery",Y({cl:"PCFeed_descHL"},g)))+h("newsDate",f)+
h("itemGallery",j)}else if(f.feedAction=="BLOGENTRY"){j=z.readObj("feedElement",f.content);f.itemId=j.id;g=j.line1;j=h("newsUser",b)+d({cl:"PCFeed_description"},n("Text_NF_CreatedBlogentry",Y({cl:"PCFeed_descHL"},g)))+h("newsDate",f)+h("itemBlogEntry",j)}else if(f.feedAction=="FRIEND"){var q=z.readObj("user",f.content);f.friendData=q;j=Z.shortenText(q.name,25);j=h("newsUser",b)+d({cl:"PCFeed_description"},n("Text_NF_MadeFriendship",Y({cl:"PCFeed_descHL"},j)))+h("newsDate",f)+h("itemFriends",b,q)}else if(f.feedAction==
"PROFILEIMG")j=h("newsUser",b)+d({cl:"PCFeed_description"},n("Text_NF_ChangedProfileImg"))+h("newsDate",f);else if(f.feedAction=="COMMENT"){j=z.readObj("comment",f.content);q=j.commentedUser;var o=j.commentedElement,k=o.type,e=o.mode,l=this._getCommentedItemType(k,e);k=j.text;var p;e=Y({cl:"PCFeed_commentedUserHL"},Z.shortenText(q.name,22)+"'s");f.commentedData={cid:j.id,userData:q,itemType:l,itemId:o.id};if(l=="BEntry"){p=o;g=p.line1;g=n("Text_NF_CommentedBlogentry",e,Y({cl:"PCFeed_descHL"},g));
p=h("commentedUserImg",q)+h("itemBlogEntry",p)}else if(l=="Text"){p=o.children;g=p[0].value1;g=n("Text_NF_CommentedText",e,Y({cl:"PCFeed_descHL"},g));p=h("commentedUserImg",q)+h("itemText",p)}else if(l=="Video"){p=o.children;g=p[0].value1;g=n("Text_NF_CommentedVideo",e,Y({cl:"PCFeed_descHL"},g));p=h("commentedUserImg",q)+h("itemVideo",p)}else if(l=="GalImg"){p=o;g=p.line1;g=n("Text_NF_CommentedGalImg",e,Y({cl:"PCFeed_descHL"},g));p=h("commentedUserImg",q)+h("itemGalImg",p)}else if(l=="Profile"){j=
Z.shortenText(q.name,30);g=n("Text_NF_CommentedProfile",Y({cl:"PCFeed_descHL PCFeed_commentedUserHL"},j));p=h("commentedUserImg",q)+h("itemProfile",q)}j=d({cl:"PC_bubble"},d({cl:"PC_bubbleTop"},h("newsUser",b),d({cl:"PCFeed_description"},g),h("newsDate",f),d({cl:"PCFeed_commentText"},k)),d({cl:"PC_bubbleBot"}))+d({cl:"PC_commentedItems"},p)}j=$(d({cl:"PCNF_box PCFeed_box"},d({cl:"PC_colLeft"},d({cl:"SHAF_userThumb"},F(z.makeImgPathFromId("share",b.imgId,"thumb"),"SHAF_imgUserThumb PCFeed_idImgNewsUser"))),
d({cl:"PC_colRight"},j),d({cl:"clr PCFeed_clr"})));f.userData=b;j.find(".PCFeed_userInfo,.PCFeed_idImgNewsUser").bindTglHoverClass("GEN_domainHi",".PCFeed_box",".PCNF_idUserUrl").end().find(".PCFeed_descHL,.PCFeed_itemBEntry,.PCFeed_itemText,.PCFeed_itemVideo,.PCFeed_itemGallery,.PCFeed_userMiniFriend,.PCFeed_itemProfile").bindTglHoverClass("GEN_domainHi",".PCFeed_box",".PCFeed_descHL").end().find(".PCFeed_commentedUserHL,.PCFeed_idImgCommentedUser").bindTglHoverClass("GEN_domainHi",".PCFeed_box",
".PCFeed_commentedUserHL").end();this._glo_newsData=f;f=j}else if(a=="commentfeed"){j=b;b=j.userData;q=m.parsedLoggedUser;o=j.commentedElement;k=o.type;e=o.mode;l=this._getCommentedItemType(k,e);k=j.text;j.itemType=l;if(l=="BEntry"){p=o;g=p.line1;g=n("Text_CF_CommentedBlogentry",Y({cl:"PCFeed_descHL"},g));p=h("itemBlogEntry",p)}else if(l=="Text"){p=o.children;g=p[0].value1;g=n("Text_CF_CommentedText",Y({cl:"PCFeed_descHL"},g));p=h("itemText",p)}else if(l=="Video"){p=o.children;g=p[0].value1;g=n("Text_CF_CommentedVideo",
Y({cl:"PCFeed_descHL"},g));p=h("itemVideo",p)}else if(l=="GalImg"){p=o;g=p.line1;g=n("Text_CF_CommentedGalImg",Y({cl:"PCFeed_descHL"},g));p=h("itemGalImg",p)}else if(l=="Profile"){Z.shortenText(q.name,30);g=n("Text_CF_CommentedProfile");p=h("itemProfile",q)}f=d({cl:"PC_bubble"},d({cl:"PC_bubbleTop"},h("newsUser",b),d({cl:"PCFeed_description"},g),h("newsDate",j),d({cl:"PCFeed_commentText"},k)),d({cl:"PC_bubbleBot"}))+d({cl:"PC_commentedItems"},p);b=$(d({cl:"PCFeed_box PCCF_box"},d({cl:"PC_colLeft"},
d({cl:"SHAF_userThumb"},F(z.makeImgPathFromId("share",b.imgId,"thumb"),"SHAF_imgUserThumb PCFeed_idImgNewsUser"))),d({cl:"PC_colRight"},f),d({cl:"clr PCFeed_clr"})));b.find(".PCFeed_userInfo,.PCFeed_idImgNewsUser").bindTglHoverClass("GEN_domainHi",".PCFeed_box",".PCNF_idUserUrl").end();this._glo_commentData=j;f=b}Q.extendHoverAndTt(f);this._glo_jDomObj=f;this._glo_feedMode=a;na.setJDomToObjMapping("FeedEntry",f,this)};Ga.prototype={_makeFeedMarkup:function y(a,b,f){var h;if(a=="newsUser")h=d({cl:"PCFeed_userInfo"},
d({cl:"PC_userName"},Z.shortenText(b.name,30))+d({cl:"PC_userUrl PCNF_idUserUrl"},b.url));else if(a=="newsDate")h=d({cl:"PCFeed_date"},F("infoicon_gen_fix_updated.png","PC_imgDate")+Z.formatDate(b.date,"long"));else if(a=="itemText")h=d({cl:"PCFeed_itemText"},b[1].value1);else if(a=="itemGallery"){var j="";$.each(b,function(g,q){if(g!=0){q=q;j+=d({cl:"PCFeed_itemGalImg SHAF_galThumb"},F(z.makeImgPathFromId("UP",q.value1,"thumb"),"SHAF_imgGalThumb",q.line1))}if(g>m.Feed.maxGalImgs)return false});h=
d({cl:"PCFeed_itemGallery"},j)}else if(a=="itemGalImg"){b=d({cl:"PCFeed_itemGalImg SHAF_galThumb"},F(z.makeImgPathFromId("UP",b.value1,"thumb"),"SHAF_imgGalThumb"));h=d({cl:"PCFeed_itemGallery"},b)}else if(a=="itemBlogEntry"){a=b.value1;b=b.children.length?d({cl:"SHAF_blogThumbmb PCFeed_itemBEntryImg"},d({cl:"SHAF_blogThumbmbBot"}),F(z.makeImgPathFromId("UP",b.children[0].value1,"normal"),"SHAF_imgBlogThumb")):"";h=d({cl:"PCFeed_itemBEntry"},d({cl:"PCFeed_itemBEntryText"},a),b,d({cl:"clr"}))}else if(a==
"itemVideo"){a=ra.readEmbedVideo(b[1].value1).url;f=ra.makeEmbedMarkup(a,"thumb");a=b[2].value1;h=d({cl:"PCFeed_itemVideo SHA_videoThumb"},f,d({cl:"Video_ThumbVideoCover"}))}else if(a=="itemFriends")h=d({cl:"PCFeed_itemFriendship"},d({cl:"SHAF_userMini PC_userMiniLeft"},F(z.makeImgPathFromId("share",b.imgId,"mini"),"SHAF_imgUserMini PCFeed_idImgNewsUser")),d({cl:"SHAF_userMini PCFeed_userMiniFriend"},F(z.makeImgPathFromId("share",f.imgId,"mini"),"SHAF_imgUserMini PCFeed_idImgFriendUser")),F("infoicon_gen_fix_befriend.png",
"PCNF_friendshipIcon"));else if(a=="commentedUserImg")h=d({cl:"SHAF_userMini PC_userMiniLeft"},F(z.makeImgPathFromId("share",b.imgId,"mini"),"SHAF_imgUserMini PCFeed_idImgCommentedUser"));else if(a=="itemProfile")h=d({cl:"PCFeed_itemProfile"},d({cl:"PC_userName"},Z.shortenText(b.name,30))+d({cl:"PC_userUrl"},b.url));return h},_getCommentedItemType:function y(a,b){return a=a==6?"BEntry":a==1&&b==2?"Text":a==1&&b==1?"Video":a==1&&b==5?"Profile":a==4&&b==3?"GalImg":""},getJDomObj:function y(){return this._glo_jDomObj},
getTimestamp:function y(){var a=this._glo_feedMode=="newsfeed"?this._glo_newsData.date:this._glo_commentData.date;return a},gotoFeedUser:function y(){var a=this._glo_feedMode=="newsfeed"?this._glo_newsData.userData:this._glo_commentData.userData;ea.gotoUrl("http://"+a.url)},gotoCommentedUser:function y(){var a=this._glo_newsData.commentedData.userData;ea.gotoUrl("http://"+a.url)},gotoComment:function y(){if(this._glo_feedMode=="newsfeed"){var a=this._glo_newsData,b=a.commentedData;a=b.userData.url;
var f=b.cid,h=b.itemId;b=b.itemType;this._jumpToUserElement({url:a,elementId:h,elementType:b,commentId:f})}else if(this._glo_feedMode=="commentfeed"){b=this._glo_commentData;a=m.parsedLoggedUser.url;f=b.id;h=b.commentedElement.id;b=b.itemType;this._jumpToUserElement({url:a,elementId:h,elementType:b,commentId:f})}},gotoElement:function y(){if(this._glo_feedMode=="newsfeed"){var a=this._glo_newsData,b,f,h=a.feedAction=="COMMENT"?a.commentedData.userData.url:a.feedAction=="FRIEND"?a.friendData.url:a.userData.url;
if(a.feedAction=="TEXT"){b=a.itemId;f="Text"}else if(a.feedAction=="VIDEO"){b=a.itemId;f="Video"}else if(a.feedAction=="GALLERY"){b=a.itemId;f="Gallery"}else if(a.feedAction=="BLOGENTRY"){b=a.itemId;f="BEntry"}else if(a.feedAction=="FRIEND")f="Profile";else if(a.feedAction=="PROFILEIMG")f="Profile";else if(a.feedAction=="COMMENT"){b=a.commentedData.itemId;f=a.commentedData.itemType}this._jumpToUserElement({url:h,elementId:b,elementType:f})}else if(this._glo_feedMode=="commentfeed"){a=this._glo_commentData;
h=m.parsedLoggedUser.url;b=a.commentedElement.id;f=a.itemType;this._jumpToUserElement({url:h,elementId:b,elementType:f})}},_jumpToUserElement:function y(a){var b="http://"+a.url+"?";if(a.elementId)b+="g8_eid="+a.elementId+"&";if(a.commentId)b+="g8_cid="+a.commentId+"&";if(a.elementType)b+="g8_etype="+a.elementType+"&";ea.gotoUrl(b)}};var gb=function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initCreatePageDOMString",f).bindOnce("initExtendPageDOM",h).bindOnce("extendEE",b)}function b(o,
k){if(m.userCommentsAllowed){c.Profile.isChildOf(k)&&new Da(c.Profile,"Profile");o=$Self(".BE_idBE",k);o.length&&new Da(o,"BEntry");$Self(".EE_CBText",k).each(function(){new Da($(this),"CBText")});$Self(".EE_CBVideo",k).each(function(){new Da($(this),"CBVideo")});Q.extendHoverAndTt(k)}}function f(){if(L.isLogged()&&m.userCommentsAllowed){var o="";o+=d({id:"CM_PopWriteCmt",hid:true},ia.makeBP({size:"small",headline:n("HL_BP_CM_writeComment"),content:d({cl:"BP_label"},n("Label_BP_CM_commentText"))+
d({cl:"BP_boxInput"},ga({e:"txt",cl:"BP_inptxtSmall idMsg Vali_notEmpty"}))+T.getCaptchaMaster(),controls:F("icon_bp_send_lo.png","idBtnOkVali iActObj",n("TT_BP_sendComment"))+F("icon_bp_cancel_lo.png","idBtnCancel iActObj",n("TT_GEN_cancel"))}));J.appendGlobalDomString(o)}}function h(){if(L.isLogged()&&m.userCommentsAllowed){var o=["CM_PopWriteCmt"];J.setDOMReference(o);c.CM_PopWriteCmt.find(".idBtnOkVali").bindOnce("click",g)}ca.bindOnce("click",j)}function j(o){o=$(o.target);if(o.isChildOf(".CM_togglerShowCmts,#LB_btnCloseCMBox")){o=
o.parents(".CM_Box");o=U("CommentBox",o);o.tglComments();return false}else if(o.isChildOf(".CM_togglerMoreEntries")){o=o.parents(".CM_Box");o=U("CommentBox",o);o.tglAllComments();return false}else if(o.isChildOf(".CM_BtnWriteCmt")){o=o.parents(".CM_Box");o=U("CommentBox",o);o.writeComment();return false}}function g(){ma.validateForm(c.CM_PopWriteCmt,function(){var o=c.CM_PopWriteCmt.data("cmtBox"),k=U("CommentBox",o),e=o.isChildOf("#LB_Popup"),l=o.data("elmtId"),p=X.readFormVal(c.CM_PopWriteCmt,".idMsg"),
t=X.readFormVal(c.CM_PopWriteCmt,".idCaptcha");R.post({action:24,id:l,text1:p,captcha:t},{dontTrace:[1701],afterError:function(r){R.handleCaptchaError(r,c.CM_PopWriteCmt)},afterSuccess:function(r){ma.resetCaptchaError(c.CM_PopWriteCmt);r=z.readObj("commentsJ",r);var x=z.readObj("comment",r.comment);k.handleCommentsChange({mode:"add",cmtEntryObj:(new Ja(x,e)).getJDomObj(),totalComments:r.totalComments,totalCBComments:r.totalCBComments});o.find(".CM_EntriesBox").data("expanded")||k.tglComments()}})})}
function q(o){T.refreshCaptcha(c.CM_PopWriteCmt);c.CM_PopWriteCmt.data("cmtBox",o).find(".idMsg,.idCaptcha").val("");T.tglAlert(true,c.CM_PopWriteCmt)}G8.globalSubscriber.bindOnce("initClasses",a);return{showPopWriteCmt:q}}();(function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f)}function b(){if(L.isOwner()){var g="";g+=d({id:"CM_BarCmtDelete",pos:"absolute",hid:true},M("icon_gen_theme_delete_mini_lo.png","idBtnStandard iActObj",
n("TT_CM_deleteComment")),F("icon_gen_fix_delete_mini_lo.png","idBtnLightbox iActObj",n("TT_CM_deleteComment")));J.appendGlobalDomString(g)}}function f(){if(L.isOwner()){var g=["CM_BarCmtDelete"];J.setDOMReference(g)}ca.bindOnce("click",h)}function h(g){g=$(g.target);if(g.isChildOf(".CM_entryUsername,.CM_entryUserImg")){g=g.parents(".CM_entry").find(".CM_entryUserImg img").getAltText();ea.gotoUrl("http://"+g);return false}if(J.isInEditMode())if(g.isChildOf(c.CM_BarCmtDelete)){g=c.CM_BarCmtDelete.parents(".CM_entry");
j(g);return false}}function j(g){Q.tglObjToDelete(g,true);var q=g.parents(".CM_Box"),o=U("CommentBox",q),k=z.readObj("cmtEntryObj",g);T.confirmm({headline:n("HL_BP_Confirm_deleteComment"),okAction:function(){R.post({id:k.id,action:25},{afterSuccess:function(e){e=z.readObj("commentsJ",e);o.handleCommentsChange({mode:"delete",id:k.id,totalComments:e.totalComments,totalCBComments:e.totalCBComments})}})},okTitle:n("TT_GEN_delete"),cancelAction:function(){Q.tglObjToDelete(g,false)}})}G8.globalSubscriber.bindOnce("initClasses",
a);return{}})();var Da=function y(a,b){var f=this;if(!a.data("commentsExtended")){var h=f._getCmtBoxMaster(b);Q.extendHoverAndTt(h);var j,g;if(b=="CBText"){a.find(".CB_cont").append(h);j=z.getEEId(a);g=a.data("totalComments")}else if(b=="CBVideo"){a.find(".CB_cont").append(h);j=z.getEEId(a);g=a.data("totalComments")}else if(b=="Profile"){a.find(".Profile_infoBox").append(h);j=z.getEEId(a);g=a.data("totalComments")}else if(b=="BEntry"){a.find(".B_colCBLeft").append(h);j=z.getEEId(a);g=z.readObj("BEntry",
ha.getArrBEntry(j)).totalComments}else if(b=="Lightbox"){$("#LB_Tab_Controls_CM").empty().append(h);j=f._getLightboxImgDbId();g=0}a.data("commentsExtended",true);h.data("elmtId",j).data("mode",b).find(".CM_TotalCmts").html(g);b=="Lightbox"&&f._updateLightboxComments();f._glo_jDomObj=h;na.setJDomToObjMapping("CommentBox",h,f)}};Da.prototype={_updateCmtBoxDesign:function y(a){var b=this,f=b._glo_jDomObj;b=f.find(".CM_entry");var h=f.find(".CM_DirectEntriesBox"),j=f.find(".CM_MoreEntriesBox");f=f.find(".CM_togglerMoreEntries");
b.filter(":lt("+m.maxDirectComments+")").appendTo(h);b.length>m.maxDirectComments&&b.filter(":gt("+(m.maxDirectComments-1)+")").appendTo(j);a>m.maxDirectComments?f.show():f.hide();a>0?h.find(".CM_statusInfo").remove():!h.find(".CM_statusInfo").length&&h.append(Y({cl:"CM_statusInfo"},n("Text_CM_noComments")))},_updateCBItemTotalComments:function y(a,b){var f=this;f=f._glo_jDomObj;var h=f.data("mode");f.find(".CM_TotalCmts").html(a);if(h=="CBText")f.parents(".EE_CBText").find(".CLPS_clpsCBCmtsTotalComments").html(a);
else if(h=="CBVideo")f.parents(".EE_CBVideo").find(".CLPS_clpsCBCmtsTotalComments").html(a);else if(h=="BEntry")f.parents(".EE_CBBlog").find(".CLPS_clpsCBCmtsTotalComments").html(b);else h=="Lightbox"&&f.parents(".EE_CBText").find(".CLPS_clpsCBCmtsTotalComments").html(b)},_updateLightboxComments:function y(){var a=$("#LB_Popup"),b=a.data("origImgDivObj"),f=z.getEEId(b);b=b.getIdFromClass("tCmt_");a.find(".CM_Box").data("elmtId",f).find(".CM_TotalCmts").html(b).end().find(".CM_DirectEntriesBox,.CM_MoreEntriesBox").empty()},
_getLightboxImgDbId:function y(){var a=$("#LB_Popup");a=a.data("origImgDivObj");return a=z.getEEId(a)},_getCmtBoxMaster:function y(a){return a=a=="Lightbox"?$(d({cl:"CM_Box"},d({cl:"CM_Bar"},F("icon_lb_gen_cmt_collapsed_lo.png","iActObj CM_togglerShowCmts",n("Text_CM_Tgl_comments")),d({cl:"CM_TotalCmts"}),F("icon_lb_gen_cmt_add_lo.png","iActObj CM_BtnWriteCmt",n("TT_CM_addComment"))),d({id:"LB_CmtFreeBox",hid:true},F("icon_bbar_close_mini_lo.png","iActObj",n("TT_GEN_close"),"LB_btnCloseCMBox"),d({id:"LB_CmtFreeBoxInner"},
d({cl:"CM_EntriesBox",hid:true},d({cl:"CM_DirectEntriesBox"}),d({cl:"CM_togglerMoreEntries",hid:true},F("icon_bbar_toggle_collapsed_lo.png","tgl_idBtnTgl iActObj"),d({cl:"tgl_togglerText"},n("Text_CM_Tgl_allComments"))),d({cl:"CM_MoreEntriesBox",hid:true})))))):a=="Profile"?$(d({cl:"CM_Box"},d({cl:"CM_Bar"},M("icon_theme_cmtbig_collapsed_lo.png","iActObj CM_togglerShowCmts",n("Text_CM_Tgl_comments")),d({cl:"CM_TotalCmts"}),M("icon_theme_cmtbig_add_lo.png","iActObj CM_BtnWriteCmt",n("TT_CM_addComment"))),
d({cl:"CM_EntriesBox",hid:true},d({cl:"CM_DirectEntriesBox"}),d({cl:"CM_togglerMoreEntries",hid:true},M("icon_gen_theme_toggle_collapsed_lo.png","tgl_idBtnTgl iActObj"),d({cl:"tgl_togglerText"},n("Text_CM_Tgl_allComments"))),d({cl:"CM_MoreEntriesBox",hid:true})))):$(d({cl:"CM_Box"},d({cl:"CM_Bar"},M("icon_gen_theme_cmt_collapsed_lo.png","iActObj CM_togglerShowCmts",n("Text_CM_Tgl_comments")),d({cl:"CM_TotalCmts"}),M("icon_gen_theme_cmt_add_lo.png","iActObj CM_BtnWriteCmt",n("TT_CM_addComment"))),
d({cl:"CM_EntriesBox",hid:true},d({cl:"CM_DirectEntriesBox"}),d({cl:"CM_togglerMoreEntries",hid:true},M("icon_gen_theme_toggle_collapsed_lo.png","tgl_idBtnTgl iActObj"),d({cl:"tgl_togglerText"},n("Text_CM_Tgl_allComments"))),d({cl:"CM_MoreEntriesBox",hid:true}))))},handleCommentsChange:function y(a){var b=this,f=b._glo_jDomObj;if(a.mode=="add"){f.find(".CM_DirectEntriesBox").prepend(a.cmtEntryObj);b._updateCmtBoxDesign(a.totalComments)}else a.mode=="delete"&&$("#dbComment_"+a.id).removeAni(300,function(){b._updateCmtBoxDesign(a.totalComments)});
b._updateCBItemTotalComments(a.totalComments,a.totalCBComments)},tglComments:function y(){var a=this,b=a._glo_jDomObj,f=b.find(".CM_togglerShowCmts"),h=b.find(".CM_EntriesBox"),j=b.find(".CM_MoreEntriesBox"),g=b.find(".CM_DirectEntriesBox"),q=b.parents("#LB_Popup").length;if(h.data("expanded")){h.data("expanded",false).slideUp(300);ja.tglCollapseToggler("comments",f,false);q&&b.find("#LB_CmtFreeBox").fadeOut(300)}else{var o=q?c.PreloaderLBMiniMaster:c.PreloaderThemeMiniMaster;g.empty().html(Y({cl:"CM_statusInfo"},
o+n("Text_GEN_loading")));b.find(".CM_togglerMoreEntries").hide();h.slideDown(300);q&&b.find("#LB_CmtFreeBox").fadeIn(300);b.find(".CM_togglerMoreEntries");j.data("expanded",false).hide();ja.tglCollapseToggler("allComments",b.find(".tgl_idBtnTgl"),false);h.data("expanded",true);ja.tglCollapseToggler("comments",f,true);b=b.data("elmtId");var k=h.isChildOf("#LB_Popup");R.post({action:23,id:b,start:0,length:m.maxDirectComments},{afterError:function(){},afterSuccess:function(e){e=z.readObj("commentsJ",
e);g.add(j).empty();e.comments.length?$.each(e.comments,function(l,p){l=z.readObj("comment",p);g.append((new Ja(l,k)).getJDomObj())}):g.append(Y({cl:"CM_statusInfo"},n("Text_CM_noComments")));a._updateCBItemTotalComments(e.totalComments,e.totalCBComments);a._updateCmtBoxDesign(e.totalComments)}})}},tglAllComments:function y(){var a=this,b=a._glo_jDomObj,f=b.find(".CM_MoreEntriesBox"),h=b.find(".CM_DirectEntriesBox"),j=b.find(".tgl_idBtnTgl"),g=b.parents("#LB_Popup").length;if(f.data("expanded")){f.data("expanded",
false).slideUp(300);ja.tglCollapseToggler("allComments",j,false)}else{g=g?c.PreloaderLBMiniMaster:c.PreloaderThemeMiniMaster;f.empty().html(Y({cl:"CM_statusInfo"},g+n("Text_GEN_loading"))).slideDown(300).data("expanded",true);ja.tglCollapseToggler("allComments",j,true);j=b.data("elmtId");var q=b.isChildOf("#LB_Popup");R.post({action:23,id:j,start:0},{afterSuccess:function(o){o=z.readObj("commentsJ",o);f.add(h).empty();$.each(o.comments,function(k,e){k=z.readObj("comment",e);h.append((new Ja(k,q)).getJDomObj())});
a._updateCBItemTotalComments(o.totalComments,o.totalCBComments);a._updateCmtBoxDesign(o.totalComments)}})}},writeComment:function y(){var a=this;a=a._glo_jDomObj;var b=L.getRelation();if(b=="isFriend"||b=="isOwner")gb.showPopWriteCmt(a);else if(b=="isPending")T.alertt({headline:n("HL_BP_CM_friendshipPending"),msg:n("Text_BP_CM_friendshipPending")});else if(b=="isNoFriend")la.showPopAddFriend(m.parsedProfileUser,n("Text_BP_CM_friendshipMandatory"));else b=="isNotLogged"&&qa.showLoginPop(n("Text_BP_CM_loginMandatory"))}};
var Ja=function y(a,b){var f=this,h=b?"CM_entryUserImg":"CM_entryUserImg SHAF_userMini";a=$(d({cl:"CM_entry",id:"dbComment_"+a.id},d({cl:"CM_entryLeftCol"},d({cl:h},F(z.makeImgPathFromId("share",a.userData.imgId,"mini"),"",a.userData.url))),d({cl:"CM_entryRightCol"},'<a href="http://'+a.userData.url+'" target="_blank" class="CM_entryUsername">'+Z.shortenText(a.userData.name,25)+"</a>",d({cl:"CM_entryDate"},b?F("infoicon_bbar_updated.png"):M("infoicon_theme_updated.png"),Z.formatDate(a.date,"long")),
d({cl:"CM_entryText"},a.text)),d({cl:"clr"})));Q.extendTextLinks(a.find(".CM_entryText"));a.bindOnce("mouseenter",{show:true},f._hov_tglBarCmtEntry).bindOnce("mouseleave",{show:false},f._hov_tglBarCmtEntry);f._glo_jDomObj=a};Ja.prototype={_hov_tglBarCmtEntry:function y(a){a=a.data.show;var b=$(this);if(J.isInEditMode())if(a){c.CM_BarCmtDelete.appendTo(b).setPosTo(b.find(".CM_entryUsername"),["BOTTOMI",-1],["RIGHT",5]).tglFadeIn(300);Q.extendHoverAndTt(c.CM_BarCmtDelete)}else c.CM_BarCmtDelete.tglFadeOut(300)},
getJDomObj:function y(){var a=this;return a._glo_jDomObj}};var hb=function y(){function a(o,k,e){var l=5;Ea("received from filler",o);var p=z.getEEId($(".Profile_idName")),t=o.name;R.post({id:p,action:9,type:2,value1:t},{afterError:function(){e("changing profile name")},afterSuccess:function(){l--;l==0&&k()}});p=z.getEEId($(".Profile_idSlogan"));t=q[o.school];R.post({id:p,action:9,type:3,value1:t},{afterError:function(){e("changing profile slogan")},afterSuccess:function(){l--;l==0&&k()}});p=z.getEEId($(".Profile_keywords"));
t="Category: "+j[o.category]+"\nWork title: "+o.title+"\nCountry: "+g[o.country];R.post({id:p,action:9,type:3,value1:t},{afterError:function(){e("changing profile keywords")},afterSuccess:function(){l--;l==0&&k()}});o={action:7,realname:o.name,title:o.title,category:o.category,year:o.year,school:o.school,country:o.country,winner:o.winner,type:o.type,additional:"Venue: "+o.venue};R.post(o,{afterError:function(){e("changing metadata")},afterSuccess:function(){l--;l==0&&k()}});R.post({action:17,id:5},
{afterError:function(){e("changing theme")},afterSuccess:function(){l--;l==0&&k()}})}function b(o,k){Ea("called update submission img data for user",m.parsedLoggedUser.id);R.post({action:31,complete:true,id:m.parsedLoggedUser.id},{afterSuccess:function(e){e=f(e.USER);e=e.additional;var l={};if(e.hasStr("[","{"))l=R.jsonToObj(e);else if(e.hasStr("Venue:")){e=e.replace("Venue: ","");l.venue=e}e=$(".EE_CBGal:first").find(".EE_galImg:lt(3)").find(".EE_OBJ");l.submissionImgs=[];e.each(function(){var p=
$(this).attr("src");l.submissionImgs.push(p)});e=h(l);e={action:7,additional:e};R.post(e,{afterError:function(){k("changing metadata")},afterSuccess:function(){o()}})},afterError:function(){k("reading metadata")}})}function f(o){o=o||{};return o={id:o[0],url:o[1],name:String(o[2]),imgId:o[3],lastUpdated:o[4],UPState:o[5],fState:o[6],contentImgStack:o[9],winner:o[10],year:o[11],category:o[12],realname:o[13],school:o[14],country:o[15],title:o[16],type:o[17],additional:o[18]}}function h(){var o={"\u0008":"b",
"\t":"t","\n":"n","\u000c":"f","\r":"r",'"':'"',"\\":"\\","/":"/"},k=function(G){return G<10?"0".concat(G):G},e=function(G,w,C){return 1*G.substr(w,C)},l=["","000","00","0",""],p=/(\x5c|\x2F|\x22|[\x0c-\x0d]|[\x08-\x0a])/g,t=/([\x00-\x07]|\x0b|[\x0e-\x1f])/g,r=function(G,w){return"\\".concat(o[w])},x=function(G,w){G=w.charCodeAt(0).toString(16);return"\\u".concat(l[G.length],G)};e={"boolean":function(){return Boolean},"function":function(){return Function},number:function(){return Number},object:function(G){return G instanceof
G.constructor?G.constructor:null},string:function(){return String},undefined:function(){return null}};var s=arguments.length?arguments[0]:this,u,A;if(s===null)u="null";else if(s!==undefined&&(A=e[typeof s](s)))switch(A){case Array:u=[];k=e=0;for(p=s.length;k<p;k++)if(s[k]!==undefined&&(A=h(s[k])))u[e++]=A;u="[".concat(u.join(","),"]");break;case Boolean:u=String(s);break;case Date:u='"'.concat(s.getFullYear(),"-",k(s.getMonth()+1),"-",k(s.getDate()),"T",k(s.getHours()),":",k(s.getMinutes()),":",k(s.getSeconds()),
'"');break;case Function:break;case Number:u=isFinite(s)?String(s):"null";break;case String:u='"'.concat(s.replace(p,r).replace(t,x),'"');break;default:e=0;var E;u=[];for(E in s)if(s[E]!==undefined&&(A=h(s[E])))u[e++]='"'.concat(E.replace(p,r).replace(t,x),'":',A);u="{".concat(u.join(","),"}");break}return u}var j={1:"Print",2:"Print Design",3:"Print Design Multi-Page",4:"Print Design Single-Page",5:"Print Communications",17:"Print Communications - Single-Page",18:"Print Communications - Multi-Page",
6:"Print Collaboration",7:"Print Media",8:"Photography",9:"Digital Photography",10:"Digital Photography / Imaging",11:"Illustration",12:"Digital Illustration",13:"Environmental Graphics",14:"Packaging",15:"Environmental Graphics and Packaging",16:"Self-Expression",101:"Video",102:"Animation",103:"Live Action",104:"Motion Graphics",105:"Experimental Design",106:"Broadcast Design",201:"Interactive Design",202:"Web Design",203:"Web",204:"Interactive and Web Design",205:"Designer/Developer Collaboration",
206:"Digital Media",207:"Time-Based Media",208:"Browser Based Design",209:"Non-Browser Based Design",210:"Application Development",211:"Installation Design",212:"Mobile Design"},g={14:"Australia",1:"Canada",2:"France",3:"Germany",4:"Italy",13:"Japan",5:"Korea",6:"Portugal",7:"Spain",8:"Sweden",9:"Switzerland",10:"Taiwan",11:"United Kingdom",12:"United States"},q={2:"Academy of Art and Design Offenbach am Main",3:"Academy of Art College",4:"Academy of Art University",6:"Anhalt University of Applied Sciences",
7:"Art Center College of Design",8:"Atlanta College of Art",10:"BAU, Escola Superior de Disseny",11:"Braunschweig University of Art",12:"Brigham Young University",13:"California College of Arts and Crafts",14:"California Institute of the Arts",15:"Carnegie Mellon University",16:"Central Saint Martins College of Art and Design",18:"College of Design, Kook-min University",20:"Columbia College Chicago",22:"Coventry U. School of Art & Design",115:"Dankook",24:"Dortmund University of Applied Science",
25:"Drexel University",26:"Duke University",27:"Ecole Intuit/lab",31:"Ewha Womans University and Chung-ang University",33:"Fachhochschule W\u00fcrzburg-Schweinfurt",34:"FH Dortmund",35:"FH Mainz, University of Applied Sciences",36:"Filmakademie Baden-W\u00fcrttemberg",37:"Fort Hays State University",39:"Full Sail University",40:"George Brown College",42:"Gobelins",44:"Hamburg University of Applied Sciences",111:"Hamburger Technische Kunstschule",45:"HDK School of Design and Crafts at G\u00f6teborg University",
46:"Hongik University",47:"Indiana University",48:"IUAV",49:"IUAV University of Venice",51:"Keimyung university",52:"Kendall College of Art and Design",53:"Kingston University",54:"Kookmin University",55:"Kutztown University",110:"L\u2019\u00c9cole de design Nantes Atlantique",56:"London College of Communication",58:"Maryland Institute College of Art",59:"Massachusetts College of Art",60:"Mingchi University of Technology",61:"Minneapolis College of Art and Design",62:"New York University",112:"North Carolina State University",
65:"Parsons The New School for Design",66:"Pratt Institute",68:"Rhode Island School of Design",69:"Ringling School of Art and Design",71:"Rochester Institute of Technology",72:"Royal College of Art",74:"San Jose State University",75:"Savannah College of Art and Design",76:"School for Applied Sciences \u2014 Aachen, Germany",77:"School of the Art Institute of Chicago",78:"School of Visual Arts",79:"Seoul National University",114:"Swinburne University",81:"Tama Art University",84:"The Massachusetts College of Art and Design",
85:"Tyler School of Art, Temple University",86:"UCLA School of Arts and Architecture",87:"Universidade de Coimbra",117:"Universit\u00e9 du Qu\u00e9bec \u00e0 Montr\u00e9al",89:"Universit\u00e9 Marc Bloch",90:"University of Applied Sciences Augsburg",91:"University of Applied Sciences Schw\u00e4bisch Gm\u00fcnd",93:"University of California Los Angeles",95:"University of Illinois at Chicago",113:"University of North Texas",96:"University of Notre Dame",98:"University of Stuttgart",99:"University of the Applied Sciences and Arts in Zurich",
101:"University of Washington",102:"University of Wisconsin, Madison",103:"University of Wisconsin-Stout",106:"Vancouver Film School",108:"Yale University School of Art",109:"York University/Sheridan College"};return{startFilling:a,updateSubmissionImgs:b}}(),Wa=function y(){function a(){(_glo_adobeHeaderDisabled=W.getDeviceConfig("adobeHeaderDisabled"))||G8.globalSubscriber.bindOnce("initExtendPageDOM",b)}function b(){if(m.brandedMode=="adobe"){c.PageStatusbar.hide();x=$(d({id:"adobeHeader"},d({id:"ahmLogo"},
'<a target="_blank" href="http://www.adobe.com">'+M("brand_adobe_logo.png")+"</a>"),d({id:"ahmStripe"},d({id:"ahmQuicklinks"},'<a class="iActObj" href="http://www.adobeawards.com" target="_blank" alt="Adobe Design Achievement Awards">'+M("brand_adobe_cube_lo.png","iActObj")+"</a>",'<a class="iActObj" href="http://www.das-labor.net" target="_blank" alt="powered by Das LABOR">'+M("brand_adobe_star_lo.png","iActObj")+"</a>"),d({id:"ahmMenu"},'<a class="iActObj idLinkPrev" href="">'+M("brand_adobe_arrow-prev_lo.png",
"iActObj")+"</a>",'<a class="iActObj ahmWorld" href="'+m.urlAdobeWorld+'" alt="back to ADAA World">'+M("brand_adobe_worldlogo_lo.png","iActObj")+"</a>",'<a class="iActObj idLinkNext" href="">'+M("brand_adobe_arrow-next_lo.png","iActObj")+"</a>"),d({id:"ahmRightCol"},d({id:"ahmDisplaying"},'Displaying <span class="currProfile">12</span> / 214'),d({id:"ahmLogin"},'<a class="iActObj idLinkLogin" href="" alt="Login">Login</a>','<a class="iActObj idLinkLogout" href="" alt="Logout">Logout</a>'),d({cl:"clr"})))));
g();x.find(".idLinkLogin").bindOnce("click",f).end().find(".idLinkLogout").bindOnce("click",h).end();Q.extendHoverAndTt(x);x.find("#ahmLogin").tgl(G8.ax_jqxtnd.getQueryVal("brandedShowLogin"));W.isIPhone()&&x.css("position","absolute");c.PageStatusbar.before(x)}}function f(E){E.preventDefault();qa.showLoginPop()}function h(E){E.preventDefault();qa.clk_submitLogout(E)}function j(){if(m.brandedMode=="adobe"){var E={"Traditional media categories":{1:"Print",2:"Print Design",3:"Print Design Multi-Page",
4:"Print Design Single-Page",5:"Print Communications",17:"Print Communications - Single-Page",18:"Print Communications - Multi-Page",6:"Print Collaboration",7:"Print Media",8:"Photography",9:"Digital Photography",10:"Digital Photography / Imaging",11:"Illustration",12:"Digital Illustration",13:"Environmental Graphics",14:"Packaging",15:"Environmental Graphics and Packaging",16:"Self-Expression"},"Video and Motion categories":{101:"Video",102:"Animation",103:"Live Action",104:"Motion Graphics",105:"Experimental Design",
106:"Broadcast Design"},"Interactive media categories":{201:"Interactive Design",202:"Web Design",203:"Web",204:"Interactive and Web Design",205:"Designer/Developer Collaboration",206:"Digital Media",207:"Time-Based Media",208:"Browser Based Design",209:"Non-Browser Based Design",210:"Application Development",211:"Installation Design",212:"Mobile Design"}},G={14:"Australia",1:"Canada",2:"France",3:"Germany",4:"Italy",13:"Japan",5:"Korea",6:"Portugal",7:"Spain",8:"Sweden",9:"Switzerland",10:"Taiwan",
11:"United Kingdom",12:"United States"},w={1:"Winner",2:"Finalist",3:"Winner Most Creative",4:"Finalist Most Creative",5:"Winner Most Professional",6:"Finalist Most Professional"},C={2:"Academy of Art and Design Offenbach am Main",3:"Academy of Art College",4:"Academy of Art University",6:"Anhalt University of Applied Sciences",7:"Art Center College of Design",8:"Atlanta College of Art",10:"BAU, Escola Superior de Disseny",11:"Braunschweig University of Art",12:"Brigham Young University",13:"California College of Arts and Crafts",
14:"California Institute of the Arts",15:"Carnegie Mellon University",16:"Central Saint Martins College of Art and Design",18:"College of Design, Kook-min University",20:"Columbia College Chicago",22:"Coventry U. School of Art & Design",115:"Dankook",24:"Dortmund University of Applied Science",25:"Drexel University",26:"Duke University",27:"Ecole Intuit/lab",31:"Ewha Womans University and Chung-ang University",33:"Fachhochschule W\u00fcrzburg-Schweinfurt",34:"FH Dortmund",35:"FH Mainz, University of Applied Sciences",
36:"Filmakademie Baden-W\u00fcrttemberg",37:"Fort Hays State University",39:"Full Sail University",40:"George Brown College",42:"Gobelins",44:"Hamburg University of Applied Sciences",111:"Hamburger Technische Kunstschule",45:"HDK School of Design and Crafts at G\u00f6teborg University",46:"Hongik University",47:"Indiana University",48:"IUAV",49:"IUAV University of Venice",51:"Keimyung university",52:"Kendall College of Art and Design",53:"Kingston University",54:"Kookmin University",55:"Kutztown University",
110:"L\u2019\u00c9cole de design Nantes Atlantique",56:"London College of Communication",58:"Maryland Institute College of Art",59:"Massachusetts College of Art",60:"Mingchi University of Technology",61:"Minneapolis College of Art and Design",62:"New York University",112:"North Carolina State University",65:"Parsons The New School for Design",66:"Pratt Institute",68:"Rhode Island School of Design",69:"Ringling School of Art and Design",71:"Rochester Institute of Technology",72:"Royal College of Art",
74:"San Jose State University",75:"Savannah College of Art and Design",76:"School for Applied Sciences \u2014 Aachen, Germany",77:"School of the Art Institute of Chicago",78:"School of Visual Arts",79:"Seoul National University",114:"Swinburne University",81:"Tama Art University",84:"The Massachusetts College of Art and Design",85:"Tyler School of Art, Temple University",86:"UCLA School of Arts and Architecture",87:"Universidade de Coimbra",117:"Universit\u00e9 du Qu\u00e9bec \u00e0 Montr\u00e9al",
89:"Universit\u00e9 Marc Bloch",90:"University of Applied Sciences Augsburg",91:"University of Applied Sciences Schw\u00e4bisch Gm\u00fcnd",93:"University of California Los Angeles",95:"University of Illinois at Chicago",113:"University of North Texas",96:"University of Notre Dame",98:"University of Stuttgart",99:"University of the Applied Sciences and Arts in Zurich",101:"University of Washington",102:"University of Wisconsin, Madison",103:"University of Wisconsin-Stout",106:"Vancouver Film School",
108:"Yale University School of Art",109:"York University/Sheridan College"},H={1:"Profile",2:"Yearpage"},S=c.PC_Contents.find(".PC_contentsBody"),B=$(d({cl:"PCST_SettingsBox ST_idBoxMetadata"},d({cl:"PC_colLeft"},"<b>ADAA Metadata</b><br />"+Y({cl:"PCST_currVal"})),d({cl:"PC_colRight"},d({},"<label>Realname<label>",'<input class="fieldStandard" type="text" name="realname" />'),d({},"<label>Title<label>",'<input class="fieldStandard" type="text" name="title" />'),d({},"<label>Category<label>",'<select class="fieldStandard" name="category" ></select>'),
d({},"<label>Year<label>",'<select class="fieldStandard" name="year" ></select>'),d({},"<label>School<label>",'<select class="fieldStandard" name="school" ></select>'),d({},"<label>Country<label>",'<select class="fieldStandard" name="country" ></select>'),d({},"<label>Winner<label>",'<select class="fieldStandard" name="winner" ></select>'),d({},"<label>Type<label>",'<select class="fieldStandard" name="type" ></select>'),d({},"<label>Additional<label>",'<textarea class="fieldStandard" name="additional" /></textarea>'),
d({},"<label><label>",F("icon_gen_fix_notification_on_lo.png","iActObj idBtnSave","Save changes"))),d({cl:"clr"}),F("pc_trenner_big.png","PCST_trennerBot"))),v=B.find("select[name=country]");v.append($("<option>--- NONE ---</option>").val(0));$.each(G,function(V,I){v.append($("<option></option>").val(V).html(I))});var D=B.find("select[name=school]");D.append($("<option>--- NONE ---</option>").val(0));$.each(C,function(V,I){D.append($("<option></option>").val(V).html(I))});var K=B.find("select[name=category]");
K.append($("<option>--- NONE ---</option>").val(0));$.each(E,function(V,I){I=I;var P=$("<optgroup></optgroup>").attr("label",V).appendTo(K);$.each(I,function(ba,oa){P.append($("<option></option>").val(ba).html(oa))})});var N=B.find("select[name=type]");N.append($("<option>--- NONE ---</option>").val(0));$.each(H,function(V,I){N.append($("<option></option>").val(V).html(I))});var O=B.find("select[name=winner]");O.append($("<option>--- NONE ---</option>").val(0));$.each(w,function(V,I){O.append($("<option></option>").val(V).html(I))});
var aa=B.find("select[name=year]");aa.append($("<option>--- NONE ---</option>").val(0));for(var fa=2001;fa<=2010;fa++)aa.append($("<option></option>").val(fa).html(fa));B.find(".idBtnSave").bindOnce("click",p);S.append(B);R.post({action:31,complete:true,id:m.parsedLoggedUser.id},{afterSuccess:function(V){V=e(V.USER);B.find("[name=realname]").val(V.realname).end().find("[name=school]").val(V.school).end().find("[name=winner]").val(V.winner).end().find("[name=year]").val(V.year).end().find("[name=category]").val(V.category).end().find("[name=country]").val(V.country).end().find("[name=title]").val(V.title).end().find("[name=type]").val(V.type).end().find("[name=additional]").val(V.additional).end()}})}}
function g(){$.each(r,function(C,H){if(H.id==m.parsedProfileUser.id){x.find(".ahmWorld").attr("href",m.urlAdobeWorld+"?showYear="+H.year);return false}});var E=x.find("#ahmMenu").find(".idLinkPrev"),G=x.find("#ahmMenu").find(".idLinkNext"),w=x.find("#ahmDisplaying");E.hide();G.hide();w.hide();R.post({action:61},{dontTrace:[4002],afterSuccess:function(C){C=C.VAR.searchResultIds;if(C!==undefined&&C!="false"){var H;$.each(C,function(v,D){if(D==m.parsedProfileUser.id)H=v});if(H!==undefined){var S,B;if(C.length>
1){S=H>0?C[H-1]:C[C.length-1];B=H<C.length-1?C[H+1]:C[0]}w.html('Displaying <span class="currProfile">'+(H+1)+"</span> / "+C.length).show();s=S;u=B;k(q)}}}});R.post({action:60,key:"hilightedId","var":m.parsedProfileUser.id},{afterSuccess:function(){}})}function q(){var E=x.find("#ahmMenu").find(".idLinkPrev"),G=x.find("#ahmMenu").find(".idLinkNext");if(s){var w=o(s).url;E.attr("href","http://"+w).attr("alt",w).show()}if(u){E=o(u).url;G.attr("href","http://"+E).attr("alt",E).show()}}function o(E){var G=
{};$.each(A,function(w,C){if(C.id==E)G=C});return G}function k(E){R.post({action:26,complete:true},{afterSuccess:function(G){A=[];$.each(G.USERS.users,function(w,C){w=e(C);A.push(w)});E()}})}function e(E){E=E||{};return E={id:E[0],url:E[1],name:String(E[2]),imgId:E[3],lastUpdated:E[4],UPState:E[5],fState:E[6],contentImgStack:E[9],winner:E[10],year:E[11],category:E[12],realname:E[13],school:E[14],country:E[15],title:E[16],type:E[17],additional:E[18]}}function l(E,G){var w=E;if(!w.is("form")&&!w.is(":input"))w=
E.find(":input");E=w.serializeArray();w={};for(var C in E)w[E[C].name]=E[C].value;G&&$.extend(w,G);return w}function p(){var E=c.PC_Contents.find(".ST_idBoxMetadata"),G=l(E,{action:7});$.each(G,function(w,C){C||delete G[w]});R.post(G,{afterError:function(w){Ea("ajax error",w)},afterSuccess:function(){T.alertt({headline:"Success",msg:"Metadata saved successfully",autoHide:1})}})}function t(){if(m.brandedMode=="adobe"){m.urlAdobeWorld="http://www.adaagallery.com";m.brandedMode="adobe";m.urlWorld=m.urlAdobeWorld;
m.sortFriendsAlphabetically=true;m.userCommentsAllowed=false;m.videoThumbsVisible=false}}var r=[{id:78,year:2001},{id:77,year:2002},{id:76,year:2003},{id:75,year:2004},{id:74,year:2005},{id:73,year:2006},{id:72,year:2007},{id:71,year:2008},{id:70,year:2009},{id:81,year:2010}],x,s,u,A;G8.globalSubscriber.bindOnce("initClasses",a);return{createSpecialUserpageSettingsContents:j,initPageVarsBranded:t}}(),ib=function y(){function a(q,o){h=c.PM_CBDragThumbnails;j=o;Ca.tglAddCBIcons(false);o=q.pageX;q=q.pageY;
var k=g={x:40,y:40};$("img",h).hide();if(j=="Video")$(".idVideo",h).show();else if(j=="Gallery")$(".idGallery",h).show();else if(j=="Text")$(".idText",h).show();else j=="Blog"&&$(".idBlog",h).show();h.left(o-k.x).top(q-k.y).opacity(0).show().fadeTo(300,0.85);ca.bindOnce("mousemove",b);h.unbind("click").bindOnce("click",f)}function b(q){var o=q.pageX;q=q.pageY;var k=g;h.top(q-k.y).left(o-k.x)}function f(q){ca.unbind("mousemove",b);h.fadeOut(300,function(){va.callAddCB({category:j,mx:q.pageX,my:q.pageY})})}
var h,j,g;return{startDrag:a}}(),ya=function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initExtendPageDOM",b)}function b(){if(L.isLogged()){var g;if($(".Profile_idUserImg").hasClass("idFirstRun")){g=f("Profilbild hochladen");g.appendTo(".Profile_idUserImg")}if($(".Profile_idName").hasClass("idFirstRun")){g=f("Profilnamen \u00e4ndern");g.appendTo($(".Profile_idName").parent())}if($(".EE_CB").length<2){g=f("Contentblock hinzuf\u00fcgen");g.prependTo("#MB_PageMode")}if($("#HeadImg_idHeaderImgs").hasClass("idFirstRun")){g=
f("Header-Bild \u00e4ndern");g.appendTo("#HeadImg_idShadow")}}}function f(g){return g=$(d({cl:"idFirstrunHelpTT"},d({cl:"firstrunHelpTTLeft"}),d({cl:"firstrunHelpTTMid"},d({cl:"firstrunHelpTTMidInner"},g)),d({cl:"firstrunHelpTTRight"}),d({cl:"clr"})))}function h(g){g?$(".idFirstrunHelpTT").fadeInXB(300):$(".idFirstrunHelpTT").fadeOutXB(300)}function j(g){if(g=="profilePic")$(".Profile_idUserImg").removeClass("idFirstRun").find(".idFirstrunHelpTT").remove();else if(g=="profileName")$(".Profile_idName").removeClass("idFirstRun").parent().find(".idFirstrunHelpTT").remove();
else if(g=="contentblock")$("#MB_PageMode").find(".idFirstrunHelpTT").remove();else if(g=="headerImg"){$("#HeadImg_idHeaderImgs").removeClass("idFirstRun");$("#HeadImg_idShadow").find(".idFirstrunHelpTT").remove()}}G8.globalSubscriber.bindOnce("initClasses",a);return{tglFirstrunHelp:h,resetFirstrunTooltip:j}}();(function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initExtendPageDOM",b)}function b(){var j=$(M("icon_hm_loggedout_lo.png","iFadeImg idBtnLogin",n("TT_GEN_login"))).bindOnce("click",
qa.clk_showLoginPop),g=$(M("icon_hm_head_lo.png","iFadeImg idBtnDotcom",n("TT_GEN_iWantEightpage"))).bindOnce("click",h),q=$(M("icon_hm_world_lo.png","iFadeImg idBtnWorld",L.isLogged()?n("TT_gotoWorld_logged"):n("TT_gotoWorld_notLogged"))).bindOnce("click",f);$("#HM_Personal").append(j);$("#HM_Dotcom").append(g);$("#HM_World").append(q);Q.extendHoverAndTt(c.PageStatusbar);Q.extendFadeImgs(c.PageStatusbar)}function f(){ea.gotoUrl(m.urlWorld)}function h(){ea.gotoUrl(m.urlEightpage,true)}G8.globalSubscriber.bindOnce("initClasses",
a);return{}})();var Ka=function y(){function a(q,o,k){k=k=="BP"?F("icon_bp_info_lo.png","iActObj Help_imgInfoBtn",n("TT_Help_moreInfo")):k=="PC"?F("icon_gen_fix_info_lo.png","iActObj Help_imgInfoBtn",n("TT_Help_moreInfo")):k=="edit"?F("icon_edit_info_lo.png","iActObj Help_imgInfoBtn",n("TT_Help_moreInfo")):k=="theme"?M("icon_theme_info_lo.png","iActObj Help_imgInfoBtn",n("TT_Help_moreInfo")):"";k=$(d({cl:"Help_infoBtn"},k));k.data("infoKey",o).find(".Help_imgInfoBtn").bindOnce("click",b);q.before(k).remove();
Q.extendHoverAndTt(k)}function b(){var q=$(this).parents(".Help_infoBtn");if(q.data("helpExpanded"))h(q);else{var o=q.data("infoKey");o=j(o).appendTo(q).tglFadeIn(300).find(".Help_ttCloseBtn").bindOnce("click",f);q.data("helpExpanded",true);Q.extendHoverAndTt(o)}}function f(){h($(this).parents(".Help_infoBtn"))}function h(q){q.data("helpExpanded",false).find(".Help_tt").tglFadeOut(300,function(){$(this).remove()})}function j(q){var o={};o.ULError_ajaxResolution=n("Help_ajaxResolution")+n("Help_FAQImgUploadingLink");
o.ULError_fileSize=n("Help_fileSize")+n("Help_FAQImgUploadingLink");o.ULError_ajaxFormat=n("Help_ajaxFormat")+n("Help_FAQImgUploadingLink");o.ULError_ajaxTotalItems=n("Help_ajaxTotalItems");o.ULError_other=n("Help_other")+n("Help_FAQLink");o.videoEmbedding=n("Help_VideoEmbedding")+"<br/>"+F("infocont_embedding.png","Help_ttContImg")+"<br/><br/>"+n("Help_VideoProvider")+n("Help_FAQLink");o.worldInfos=n("Help_WorldVisible");return $(d({cl:"Help_tt",pos:"absolute"},d({cl:"Help_ttTop"}),d({cl:"Help_ttMid"},
F("icon_gen_fix_close_mini_lo.png","Help_ttCloseBtn iActObj",n("TT_GEN_close")),d({cl:"Help_ttContents"},o[q])),d({cl:"Help_ttBot"})))}function g(q){q.find(".Help_infoBtn").each(function(){$(this).data("helpExpanded",false).find(".Help_tt").remove()})}return{extendInfoBtn:a,resetInfoTTs:g}}();(function y(a){function b(G,w){w=w||{};x&&clearInterval(x);var C=G==window,H=w.message!==undefined?w.message:undefined,S=H?typeof H=="object"?"obj":"string":"noMsg";S=="obj"&&a.extend(true,a.blockUI.defaults.css,
a.blockUI.defaults.cssObj);S=w.msgFixed!==false?true:false;A=w.xOff||0;E=w.yOff||0;w=a.extend(true,{},a.blockUI.defaults,w);var B=w.css,v=w.clonePosObj;if(v)S=false;var D=w.onMsgIn;if(H&&typeof H!="string"&&(H.parentNode||H.jquery)){var K=H.jquery?H[0]:H,N={};a(H).data("blockUI.history",N);N.el=K;N.parent=K.parentNode;N.display=K.style.display;N.position=K.style.position;N.parent.removeChild(K)}var O=w.baseZ,aa=a("<div>").addClass("idBlockUIContainer");K=a.browser.msie?a('<iframe class="blockUI" style="z-index:'+
O++ +';border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="javascript:false;"></iframe>'):a('<div class="blockUI" style="display:none"></div>');N=a('<div class="blockUI" style="z-index:'+O++ +';cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');N.hide();if(!w.applyPlatformOpacityRules||!(a.browser.mozilla&&/Linux/.test(navigator.platform)))N.css(w.overlayCSS);N.css("position",C?"fixed":"absolute");a.browser.msie&&K.css("opacity",
"0.0");aa.append(K).append(N).appendTo(C?"body":G);N.fadeIn(400);O=C?!S?a('<div class="blockUI blockMsg blockPage" style="z-index:'+O++ +';position:absolute;"></div>'):a('<div class="blockUI blockMsg blockPage" style="z-index:'+O++ +';position:fixed;"></div>'):a('<div class="blockUI blockMsg blockElement" style="z-index:'+O++ +';display:none;position:absolute;"></div>');if(H)s=O;H&&O.css(B).hide();aa.append(O);if(p){C&&w.allowBodyStretch&&a.boxModel&&a("html,body").css("height","100%");if((p||!a.boxModel)&&
!C){B=k(G,"borderTopWidth");aa=k(G,"borderLeftWidth");var fa=B?"(0 - "+B+")":0,V=aa?"(0 - "+aa+")":0}a.each([K,N,O],function(I,P){P=P[0].style;P.position="absolute";if(I<2){C?P.setExpression("height",'document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px"'):P.setExpression("height",'this.parentNode.offsetHeight + "px"');C?P.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):
P.setExpression("width",'this.parentNode.offsetWidth + "px"');V&&P.setExpression("left",V);fa&&P.setExpression("top",fa)}else if(w.centerY){C&&P.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');P.marginTop=0}})}j(1,G,w);a(window).bindOnce("resize",l);if(C){O.append(H).show();if(S)if(v)O.clonePos(v,{windowFixed:true});
else{if(w.centerX&&w.centerY)if(H)if(H.not(":visible")){H.show();O.setPosTo(a(window),"CENTERX","CENTERY");H.hide()}else O.setPosTo(a(window),"CENTERX","CENTERY")}else{if(v){O.clonePos(v,{xOff:A,yOff:E});u=v}if(s)x=window.setInterval(e,20)}if(H&&(H.jquery||H.nodeType))D&&D();t=O[0];r=a(":input:enabled:visible",t);w.focusInput&&setTimeout(q,20)}else{o(O[0],w.centerX,w.centerY);O.append(H).show()}}function f(G,w){var C=G==window,H=a(w.msgObj).data("blockUI.history");x&&clearInterval(x);u=s=null;E=A=
0;w=a.extend({},a.blockUI.defaults,w||{});j(0,G,w);var S=C?a("body").find(".idBlockUIContainer"):a(".idBlockUIContainer",G);if(w.msgObj)S=w.msgObj.parents(".idBlockUIContainer");if(C)t=r=null;if(w.fadeOut){S.find(".blockMsg").fadeOutXB(w.fadeOut);S.fadeOutXB(w.fadeOut,function(){h(S,H,w,G);w.callback&&w.callback.call()})}else{h(S,H,w,G);w.callback&&w.callback.call()}}function h(G,w,C,H){G.each(function(){this.parentNode&&this.parentNode.removeChild(this)});if(w&&w.el){w.el.style.display=w.display;
w.el.style.position=w.position;w.parent.appendChild(w.el);a(w.el).removeData("blockUI.history")}typeof C.onUnblock=="function"&&C.onUnblock(H,C)}function j(G,w,C){var H=w==window;w=a(w);if(!(!G&&(H&&!t||!H&&!w.data("blockUI.isBlocked")))){H||w.data("blockUI.isBlocked",G);H="mousedown mouseup keydown keypress click";G?a(document).bind(H,C,g):a(document).unbind(H,g)}}function g(G){if(G.which&&G.which==9)if(t&&G.data.constrainTabKey){var w=r,C=!G.shiftKey&&G.target==w[w.length-1],H=G.shiftKey&&G.target==
w[0];if(C||H){setTimeout(function(){q(H)},10);return false}}if(a(G.target).parents("div.blockMsg").length>0)return true;return a(G.target).parents().children().filter("div.blockUI").length==0}function q(G){if(r)(G=r[G===true?r.length-1:0])&&G.focus()}function o(G,w,C){var H=G.parentNode,S=G.style,B=(H.offsetWidth-G.offsetWidth)/2-k(H,"borderLeftWidth");G=(H.offsetHeight-G.offsetHeight)/2-k(H,"borderTopWidth");if(w)S.left=B>0?B+"px":"0";if(C)S.top=G>0?G+"px":"0"}function k(G,w){return parseInt(a.css(G,
w))||0}function e(){var G=s.isInViewport(),w=0;w=s.top();if(G.yTop==-1&&G.yBot==1||G.yTop==0&&G.yBot==0)w=G8.ax_jqxtnd.windowScrollTop();else if(G.yTop==0&&G.yBot==1||G.yTop==1&&G.yBot==1)w=s.top();else if(G.yTop==-1&&G.yBot==0||G.yTop==-1&&G.yBot==-1)w=s.top()+s.height()-G.viewportHeight;G=15;var C=G8.ax_jqxtnd.windowScrollTop();w=C+Math.round((w-C)/G);G8.ax_jqxtnd.windowScrollTop(w)}function l(){s&&u&&s.clonePos(u,{xOff:A,yOff:E})}a.blockUI=function(G){b(window,G)};a.unblockUI=function(G){f(window,
G)};a.fn.block=function(G){return this.each(function(){if(a.css(this,"position")=="static")this.style.position="relative";if(a.browser.msie)this.style.zoom=1;b(this,G)})};a.fn.unblock=function(G){return this.each(function(){f(this,G)})};a.blockUI.version=2.08;a.blockUI.defaults={css:{padding:0,margin:0,color:"#000",border:"3px solid #aaa",cursor:"default"},cssObj:{border:0,width:null},overlayCSS:{backgroundColor:"#000",opacity:"0.8"},baseZ:1E3,centerX:true,centerY:true,allowBodyStretch:true,constrainTabKey:true,
fadeOut:400,focusInput:true,applyPlatformOpacityRules:true,onUnblock:null,onMsgIn:null,msgFixed:true};var p=a.browser.msie&&a.browser.version<7,t=null,r=[],x=null,s=null,u=null,A=0,E=0})(jQuery);var Ca=function y(){function a(){(s=W.getDeviceConfig("metaBarDisabled"))||G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f)}function b(){if(L.isLogged()){var u="";u+=d({id:"PC_Cover",hid:true});u+=d({id:"UB",cl:"UB_bot",hid:true},d({id:"UB_FillOuter"},'<table id="UB_Table"><tr><td id="UB_TableMBLeft"></td><td id="UB_TableMBCenter">',
d({id:"MB_contentBox"},d({id:"MB_leftBox"},d({id:"MB_Relations"},d({id:"MB_FABtnWriteMS",cl:"MB_FABtn"},F("icon_mb_writemessage_lo.png","MB_btnWriteMS iFadeImg",n("TT_MB_writeMessage"))),d({id:"MB_FABtnAddAsFriend",cl:"MB_FABtn"},F("icon_mb_addasfriend_lo.png","MB_btnAddAsFriend iFadeImg",n("TT_MB_addAsFriend",Z.shortenText(m.parsedProfileUser.name,22)))),F("icon_mb_pending.png","iActObj MB_FABtn",n("TT_MB_friendshipPending"),"MB_FABtnPending")),d({id:"MB_PageMode"},F("icon_mb_modeview_lo.png","iActObj idView",
n("TT_MB_Mode_View"),"MB_PagemodeBtnView"),F("icon_mb_modeedit_lo.png","iActObj idEdit",n("TT_MB_Mode_Edit"),"MB_PagemodeBtnEdit"),F("icon_mb_add_lo.png","iActObj idAdd",n("TT_MB_Mode_Add"),"MB_PagemodeBtnAdd"),d({id:"MB_Pagemode_AddCBBox",hid:true},d({id:"MB_Pagemode_AddCBTop"},F("icon_pm_createcb_gallery_lo.png","idBtnNewGallery iActObj idAddIcon",n("TT_MB_createGalleryCB")),F("icon_pm_createcb_text_lo.png","idBtnNewText iActObj idAddIcon",n("TT_MB_createTextCB")),F("icon_pm_createcb_video_lo.png",
"idBtnNewVideo iActObj idAddIcon",n("TT_MB_createVideoCB")),F("icon_pm_createcb_blog_lo.png","idBtnNewBlog iActObj idAddIcon",n("TT_MB_createBlogCB"))),d({id:"MB_Pagemode_AddCBBot"}))),d({id:"MB_Settings"},F("icon_mb_settings_lo.png","idBtnSettings iActObj",n("TT_MB_ST")))),d({id:"MB_centerBox"},d({id:"MC_centerBoxInner"},d({id:"MB_logoutBtnBox"},F("icon_mb_logout_lo.png","idBtnLogout iActObj",n("TT_MB_logout"))),d({id:"MB_UserNameBox"},d({id:"MB_userNameNameBoxLeft"},d({id:"MBLoggedUserName"}),F("icon_mb_homebase_lo.png",
"iActObj",n("TT_MB_gotoOwnProfile"),"MB_LoggedUserArrow"),d({cl:"clr"})),d({id:"MB_userNameNameBoxRight"})),d({cl:"clr"}))),d({id:"MB_rightBox"},!m.brandedMode?F("icon_mb_world_lo.png","idBtnWorld iActObj",n("TT_gotoWorld_logged")):m.brandedMode=="adobe"?M("icon_mb_world_lo.png","idBtnWorld iActObj",n("TT_gotoAdobeWorld_logged")):"",F("icon_mb_newsfeed_lo.png","idBtnNewsfeed iActObj",n("TT_MB_NF")),F("icon_mb_messages_lo.png","idBtnMessages iActObj",n("TT_MB_MS")),Y({id:"MBTtlMessages",cl:"MBTtlCounter"}),
F("icon_mb_friends_lo.png","idBtnFRequests iActObj",n("TT_MB_FR")),Y({id:"MBTtlFRequests",cl:"MBTtlCounter"}),F("icon_mb_comments_lo.png","idBtnComments iActObj",n("TT_MB_CF")),Y({id:"MBTtlComments",cl:"MBTtlCounter"}),F("icon_gen_fix_close_lo.png","iActObj",n("TT_GEN_close"),"PC_ImgBtnClosePC"))),'</td><td id="UB_TableMBRight"></td></tr>','<tr id="PC"><td id="UB_TablePCLeft"><div id="PC_LeftMid"></div></td><td id="UB_TablePCCenter">',d({id:"PC_Contents"}),'</td><td id="UB_TablePC_Right"><div id="PC_RightMid"></div></td></tr></table>'));
if(L.isOwner())u+=d({id:"PM_CBDragThumbnails",pos:"absolute",hid:true},M("pm_thumbnail_video.png","idVideo hidden"),M("pm_thumbnail_gallery.png","idGallery hidden"),M("pm_thumbnail_text.png","idText hidden"),M("pm_thumbnail_blog.png","idBlog hidden"));J.appendGlobalDomString(u);sa.preloadSpecialImgs("fix",["icon_mb_modeedit_act.png"])}}function f(){if(L.isLogged()){var u=["PC_Cover","UB","PC","PC_Contents","MB_UserNameBox","MB_LoggedUserArrow","MB_Relations","MB_PageMode","MB_FABtnWriteMS","MB_FABtnAddAsFriend",
"MB_FABtnPending","MB_PageMode","MB_Pagemode_AddCBBox","PM_CBDragThumbnails"];J.setDOMReference(u);c.UB.find(".idBtnWorld").bindOnce("click",j).end().find(".idBtnNewsfeed").bindOnce("click",{mode:"Newsfeed"},o).end().find(".idBtnLogout").bindOnce("click",qa.clk_submitLogout).end().find(".idBtnSettings").bindOnce("click",{mode:"Settings"},o).end().find(".idBtnMessages").bindOnce("click",{mode:"Messages"},o).end().find(".idBtnFRequests").bindOnce("click",{mode:"FRequests"},o).end().find(".idBtnComments").bindOnce("click",
{mode:"Comments"},o).end().find("#PC_ImgBtnClosePC").bindOnce("click",ka.clk_closePC);c.MB_LoggedUserArrow.bindOnce("click",k);c.MB_FABtnWriteMS.find(".MB_btnWriteMS").bindOnce("click",q);c.MB_FABtnAddAsFriend.find(".MB_btnAddAsFriend").bindOnce("click",g);c.MB_PageMode.find(".idEdit,.idView").bindOnce("click",t).end().find(".idAdd").bindOnce("click",p).end().find(".idAddIcon").bindOnce("click",l);Q.extendFadeImgs(c.MB_Relations)}}function h(){if(!s)if(L.isLogged()){if(L.isOwner()){c.MB_UserNameBox.addClass("MBUserNameOwnPage");
c.MB_LoggedUserArrow.hide();c.MB_Relations.hide();c.MB_PageMode.isDisbld()?c.MB_PageMode.hide():c.MB_PageMode.show()}else{c.MB_UserNameBox.removeClass("MBUserNameOwnPage");c.MB_LoggedUserArrow.show();y.updateFriendRelationBtn();c.MB_PageMode.hide()}J.updateDisplayVal("MB_TotalMessages");J.updateDisplayVal("MB_TotalFRequests");J.updateDisplayVal("MB_TotalComments");J.updateDisplayVal("UserName");c.UB&&c.UB.fadeInXB(300)}else c.UB&&c.UB.fadeOutXB(300)}function j(){ea.gotoUrl(m.urlWorld)}function g(){var u=
"";la.showPopAddFriend(m.parsedProfileUser,u)}function q(){Fa.showWriteMSPop({userDataArr:[m.parsedProfileUser]})}function o(u){u=u.data.mode;if(ka.isVisible())ka.switchPCContents(u);else{c.UB.data("currPane",u);ka.tglPC(true)}}function k(){ea.gotoUrl("http://"+m.parsedLoggedUser.url)}function e(){var u=L.getRelation();if(u!="isOwner"&&u!="isNotLogged"){u=u=="isFriend"?c.MB_FABtnWriteMS:u=="isPending"?c.MB_FABtnPending:c.MB_FABtnAddAsFriend;c.MB_Relations.children().hide();u.show()}}function l(u){var A=
$(this);A=A.hasClass("idBtnNewGallery")?"Gallery":A.hasClass("idBtnNewVideo")?"Video":A.hasClass("idBtnNewText")?"Text":A.hasClass("idBtnNewBlog")?"Blog":"";ib.startDrag(u,A);c.MB_Pagemode_AddCBBox.setImgLo()}function p(){var u=$(this);u.isDisbld()||x(!c.MB_Pagemode_AddCBBox.data("expanded"))}function t(){var u=$(this).hasClass("idView")?"View":"Edit";if(u!=m.siteViewMode){m.siteViewMode=u;J.displayPage({keepLogStatus:true})}}function r(){if(!s)if(L.isOwner()){J.isInEditMode()?c.MB_PageMode.find(".idView").setImgLo().disbl(false).end().find(".idEdit").setImgAct().disbl(true).end().find(".idAdd").setImgLo().show():
c.MB_PageMode.find(".idView").setImgAct().disbl(true).end().find(".idEdit").setImgLo().disbl(false).end().find(".idAdd").hide();x(false);c.MB_PageMode.isDisbld()||c.MB_PageMode.fadeIn(300)}}function x(u){if(u){c.MB_Pagemode_AddCBBox.find(".idBtnNewBlog").tgl(!m.profileData.blogOrder.length);c.MB_Pagemode_AddCBBox.data("expanded",true).fadeIn(300)}else c.MB_Pagemode_AddCBBox.data("expanded",false).fadeOut(300)}var s;G8.globalSubscriber.bindOnce("initClasses",a);return{handleMetaBar:h,tglAddCBIcons:x,
updatePagemode:r,updateFriendRelationBtn:e}}(),T=function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f)}function b(){var l=d({id:"GEN_PopConfirm",hid:true});J.appendGlobalDomString(l);sa.preloadSpecialImgs("theme",["icon_hm_loggedout_hi.png"]);sa.preloadSpecialImgs("fixCSS",["input_bp_single_small_bg_lo.png","bp_bg.png","vali_tt_bg_left.png","vali_tt_bg_mid.png","vali_tt_bg_right.png"])}function f(){var l=["GEN_PopConfirm"];
J.setDOMReference(l);$(".Captcha_boxImg").bindOnce("click",e)}function h(){var l=d({cl:"Captcha"},d({cl:"Captcha_boxImg"},F("captcha_frame.png","Captcha_imgCaptchaFrame iActObj",n("TT_BP_refreshCaptcha")),F("trans.gif","Captcha_idImgCaptcha")),d({cl:"BP_boxInput"},ga({e:"inp",cl:"Captcha_inp idCaptcha Vali_captcha"})));return l}function j(l){l=l||{};var p=c.GEN_PopConfirm,t=l.headline?l.headline:"",r=l.msg?l.msg:"",x=n("TT_GEN_close");p.html(ia.makeBP({headline:t,content:d({cl:"BP_centered"},r),controls:F("icon_bp_ok_lo.png",
"idBtnOk iActObj",x)}));l.autoHide&&setTimeout(function(){q(false,p)},l.autoHide*1E3);Q.extendHoverAndTt(p);q(true,p)}function g(l){l=l||{};var p=c.GEN_PopConfirm,t=l.headline?l.headline:"",r=l.contentText?l.contentText:"",x=l.okTitle?l.okTitle:"",s=l.cancelTitle?l.cancelTitle:n("TT_GEN_cancel"),u=l.okAction?l.okAction:false;l=l.cancelAction?l.cancelAction:false;r=d({cl:"BP_centered"},r);p.html(ia.makeBP({headline:t,content:r,controls:F("icon_bp_ok_lo.png","idBtnOk iActObj",x)+F("icon_bp_cancel_lo.png",
"idBtnCancel iActObj",s)}));u&&$(".idBtnOk",p).bindOnce("click",u);l&&$(".idBtnCancel",p).bindOnce("click",l);Q.extendHoverAndTt(p);q(true,p)}function q(l,p,t){t=t||{};if(l){$(".idBtnOk,.idBtnCancel",p).unbind("click.autoClose").bindOnce("click.autoClose",function(){q(false,p)});p.setImgLo();p.parents().length||p.appendTo("body");$.blockUI({overlayCSS:{backgroundColor:null},message:p,onMsgIn:function(){p.fadeInXB(300);t.callback&&t.callback.call()}})}else{$(".idBtnOkVali",p).length&&ma.validationReset(p);
$.unblockUI({fadeOut:200,callback:t.callback,msgObj:p})}}function o(l){var p=c.Preloader;l?$.blockUI({overlayCSS:{backgroundColor:null},message:p,onMsgIn:function(){p.show()}}):$.unblockUI({fadeOut:200,msgObj:p})}function k(l){l=$Self(".Captcha_idImgCaptcha",l);var p=G8.isLocaltest?"dbressource/img/temp_captcha.jpg":m.scriptPathUserpage+"?action=38&reload="+parseInt(Math.random()*1E7);l.attr("src",p)}function e(){var l=$(this);k(l)}G8.globalSubscriber.bindOnce("initClasses",a);return{getCaptchaMaster:h,
alertt:j,confirmm:g,tglAlert:q,tglPreloader:o,refreshCaptcha:k}}(),Xa=function y(){function a(){(o=W.getDeviceConfig("notifyDisabled"))||G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f)}function b(){if(L.isLogged()){var k=d({id:"Notify",cl:"Note_TT",hid:true},d({cl:"Note_TTInner"},d({cl:"Note_TTContent"}),F("icon_gen_fix_close_mini_lo.png","Note_TTimgCloseBtn iActObj",n("TT_Note_close"))));J.appendGlobalDomString(k);sa.preloadSpecialImgs("fix",["note_bg.png",
"infoicon_gen_fix_comment.png","infoicon_gen_fix_friend.png","infoicon_gen_fix_message.png"])}}function f(){if(L.isLogged()){var k=["Notify"];J.setDOMReference(k);c.Notify.find(".Note_TTimgCloseBtn").bindOnce("click",g)}}function h(k){if(!o)if(k.messages||k.frequests||k.comments){var e=d({cl:"Note_TTHeadline"},n("HL_Note"));if(k.messages)e+=d({cl:"Note_TTItem idNoteItemMS"},F("infoicon_gen_fix_message.png","Note_imgInfoicon"),Y({cl:"Note_TTItemText"},"<b>"+m.loggedData.totalNewMessages+"</b> "+za("Text_Note_UnreadMessage",
m.loggedData.totalNewMessages)));if(k.frequests)e+=d({cl:"Note_TTItem idNoteItemFR"},F("infoicon_gen_fix_friend.png","Note_imgInfoicon"),Y({cl:"Note_TTItemText"},"<b>"+m.loggedData.totalFriendRequests+"</b> "+za("Text_Note_NewFriendRequest",m.loggedData.totalFriendRequests)));if(k.comments)e+=d({cl:"Note_TTItem idNoteItemCF"},F("infoicon_gen_fix_comment.png","Note_imgInfoicon"),Y({cl:"Note_TTItemText"},"<b>"+m.loggedData.totalNewComments+"</b> "+za("Text_Note_NewComment",m.loggedData.totalNewComments)));
c.Notify.find(".Note_TTContent").html(e).end().css("bottom",ka.isVisible()?5:32).slideDown(1E3).find(".Note_TTItem").bindTglHoverClass("Note_TTItemHi").bindOnce("click",j);m.Notify.autohideTimeout=setTimeout(q,m.Notify.autohideTime*1E3)}}function j(){var k=$(this).getIdFromClass("idNoteItem");if(k=="MS")c.UB.find(".idBtnMessages").trigger("click");else if(k=="FR")c.UB.find(".idBtnFRequests").trigger("click");else k=="CF"&&c.UB.find(".idBtnComments").trigger("click")}function g(){if(m.Notify.autohideTimeout){clearTimeout(m.Notify.autohideTimeout);
m.Notify.autohideTimeout=false}c.Notify.fadeOutXB(300)}function q(){m.Notify.autohideTimeout=false;c.Notify.fadeOutXB(1E3)}var o;G8.globalSubscriber.bindOnce("initClasses",a);return{doNotify:h}}(),J=function y(){function a(){G()}function b(w){$.each(w,function(C,H){c[H]=$("#"+H)})}function f(w,C){function H(B,v){return v?B!=0?"<b>"+n(v,B)+"</b>":n(v,B):B!=0?"<b>"+B+"</b>":B}function S(B,v){return v!=0?"<b>"+za(B,v)+"</b>":za(B,v)}if(w=="MB_TotalMessages")c.UB.find("#MBTtlMessages").html(H(m.loggedData.totalNewMessages));
else if(w=="MB_TotalFRequests")c.UB.find("#MBTtlFRequests").html(H(m.loggedData.totalFriendRequests));else if(w=="MB_TotalComments")c.UB.find("#MBTtlComments").html(H(m.loggedData.totalNewComments));else if(w=="UserName")c.UB.find("#MBLoggedUserName").html(Z.shortenText(m.parsedLoggedUser.name,22));else if(w=="DocTitle")document.title=Z.shortenText(G8.ax_jqxtnd.unescapeHtml(m.parsedLoggedUser.name),30)+n("DocTitle_Suffix");else if(w=="PCMS_DialogHL")C.dialogObj.find(".PCMS_DialogTotalMsgs").html(H(C.dialogObj.data("totalNewMessages"),
"HL_PC_Status_newMessages")+n("HL_PC_Status_TotalMessages",C.dialogObj.data("totalMessages")));else if(w=="PCMS_Subline")c.PC_Contents.find(".PC_contentsHeadSubline").html(H(m.loggedData.totalNewMessages,"HL_PC_Status_newMessages")+n("HL_PC_Status_TotalMessages",m.loggedData.totalMessages));else if(w=="PCFR_Subline")c.PC_Contents.find(".PC_contentsHeadSubline").html(S("HL_PC_Status_FriendRequests",m.loggedData.totalFriendRequests));else if(w=="PCNF_Subline")c.PC_Contents.find(".PC_contentsHeadSubline").html(za("HL_PC_Status_TotalFriends",
m.loggedData.totalFriends));else if(w=="PCST_Subline")c.PC_Contents.find(".PC_contentsHeadSubline").html("");else w=="PCCF_Subline"&&c.PC_Contents.find(".PC_contentsHeadSubline").html(za("HL_PC_Status_TotalFriends",m.loggedData.totalFriends))}function h(){return m.siteViewMode=="Edit"}function j(w){function C(S){if(m.brandedMode){if(m.brandedMode=="adobe"){c.PageStatusbar.hide();$("#adobeHeader").find(".idLinkLogin").tgl(!L.isLogged()).end().find(".idLinkLogout").tgl(L.isLogged()).end()}}else if(S.firstCall)L.isLogged()?
c.PageStatusbar.hide():c.PageStatusbar.show();else L.isLogged()?c.PageStatusbar.fadeOut(300):c.PageStatusbar.fadeIn(300)}function H(){if(h()){$("body").addClass("Act_inEditMode");$(".EE_CBGal").each(function(){Ha.tglBtnAdd(true,$(this))});$(".EE_CBBlog").each(function(){Ia.tglBtnAdd(true,$(this))});$(".EE_CBText").each(function(){Pa.tglBtnAdd(true,$(this))});ya.tglFirstrunHelp(true);Qa.tglControls(true);ha.tglAddBlog(true);Q.extendHoverAndTt(c.BENBtnAddBlog)}else{$("body").removeClass("Act_inEditMode");
$(".EE_CBGal").each(function(){Ha.tglBtnAdd(false,$(this))});$(".EE_CBText").each(function(){Pa.tglBtnAdd(false,$(this))});$(".EE_CBBlog").each(function(){Ia.tglBtnAdd(false,$(this))});ya.tglFirstrunHelp(false);Qa.tglControls(false);ha.tglAddBlog(false)}}w=w||{};if(!L.userEditAllowed()){m.siteViewMode="View";c.MB_PageMode&&c.MB_PageMode.disbl(true)}if(!L.isOwner())m.siteViewMode="View";H();if(!w.keepLogStatus){C(w);Ca.handleMetaBar();L.isLogged()||c.Notify&&c.Notify.hide()}A();la.updateFCBDesign();
Ca.updatePagemode();W.removeFlvPlugLinks();if(w.firstCall&&L.isLogged()){w={};if(m.loggedData.totalNewMessages>0)w.messages=true;if(m.loggedData.totalFriendRequests>0)w.frequests=true;if(m.loggedData.totalNewComments>0)w.comments=true;w!={}&&Xa.doNotify(w)}}function g(w,C){function H(v,D){v||(v=setInterval(D,B.intervalTime*1E3));return v}function S(v){v&&clearInterval(v);return false}var B=m.UserChronjob;if(w=="logged")B.intervalLogged=C?H(B.intervalLogged,q):S(B.intervalLogged);else if(w=="notLogged")B.intervalNotLogged=
C?H(B.intervalNotLogged,o):S(B.intervalNotLogged)}function q(){R.post({action:27},{afterSuccess:function(w){var C=z.readObj("json",w).loggedData;w=C.totalMessages;var H=C.totalNewMessages,S=C.totalFriendRequests;C=C.totalNewComments;var B={};if(H!=m.loggedData.totalNewMessages){if(H>m.loggedData.totalNewMessages)B.messages=true;xa.handleMsgChange("changeTotals",{totalNewMessages:H,totalMessages:w})}if(S!=m.loggedData.totalFriendRequests){if(S>m.loggedData.totalFriendRequests)B.frequests=true;la.handleFriendChange("changeTotalFriendRequests",
{totalFriendRequests:S})}if(C!=m.loggedData.totalNewComments){if(C>m.loggedData.totalNewComments)B.comments=true;Oa.handleTotalNewCommentsChange(C)}B!={}&&Xa.doNotify(B)}})}function o(){R.post({action:3})}function k(){G8.globalSubscriber.trigger("initClasses");G8.isLocaltest||sa.holdContentLoading();Ra.initLocalStrings();p();W.handleDetectCrossbrowser();t();$.event.trigger("extendEE",[ca]);j({firstCall:true});if(c.Profile.length)qa.handleLoginState();else{c.Log_Pop.find(".idDomain").val(m.parsedProfileUser.url);
qa.showLoginPop()}W.fixPNGs();r()}function e(w){if(!m.initDOMString)m.initDOMString="";m.initDOMString+=w}function l(){return m.initDOMString}function p(){$.extend(m.Feed,{intervalNF:false,intervalCF:false});$.extend(m.PCMS,{interval:false});$.extend(m.PCFR,{interval:false});va.mapCBObjVars();m.faviconSrc=$("link[rel='shortcut icon']").attr("href");if(!m.profileData.blogOrder)m.profileData.blogOrder=[];m.parsedProfileUser=z.readObj("user",m.profileData.user);m.parsedLoggedUser=z.readObj("user",m.loggedData.user);
var w=E(m.profileData.currThemeId);m.currHeaderImgs=z.readObj("themePV",w).headerImgs;$.extend(m.Preloading,{imgs:{},imgsEssential:{},collectEssentials:false});$.extend(m.UL,{selectWinFilterText:n("Swf_UL_ImgFilterDescription")});m.inDragGalImg=false;$.extend(m.UserChronjob,{intervalNotLogged:false,intervalLogged:false});$.extend(m.Notify,{autohideTimeout:false});m.adressList=[];m.latestMessageStamp=0;if(m.mainHostDomain=="adaagallery.com"||m.parsedProfileUser.url.hasStr("localman.com"))m.brandedMode=
"adobe";c.PageStatusbar=$("#Page_frmStatusbar");c.PageMaincontents=$("#Page_frmMaincontents");c.AllPageContents=$("#Page_frmHeader,#Page_frmProfile,#Page_frmMaincontents");c.Profile=$(".EE_CBProfile");m.brandedMode&&Wa.initPageVarsBranded()}function t(){c.Preloader=$(d({id:"Preloader",cl:"Preload_preloaderPage"},F("preloader_bg.png","Preload_imgPreloaderBg"),F("preloader.gif","Preload_imgPreloaderAni"))).hide().appendTo("body");!G8.isLocaltest&&!W.isIPhone()&&sa.startCollectEssentials();G8.globalSubscriber.trigger("initCreatePageDOMString");
$(d({id:"DOMContainer"},l())).appendTo("body");G8.globalSubscriber.trigger("initExtendPageDOM");Q.extendHoverAndTt($("#DOMContainer"));!G8.isLocaltest&&!W.isIPhone()&&sa.stopCollectEssentials()}function r(){function w(K){K=K.top()-20;$("html,body").animate({scrollTop:K},500)}function C(K){if(K.data("collapsed")){K=U("Contentblock",K);K.tglCB(true)}}function H(){var K=D.find(".CM_Box");K=U("CommentBox",K);K.tglComments()}var S=G8.ax_jqxtnd.getQueryVal("g8_eid"),B=G8.ax_jqxtnd.getQueryVal("g8_etype"),
v=G8.ax_jqxtnd.getQueryVal("g8_cid");if(S||B||v){var D;if(v)if(B=="Text"||B=="Video"){D=$("#db_"+S);if(D.length){C(D);w(D);H(D)}}else if(B=="GalImg"){D=$("#db_"+S);if(D.length){C(D.parents(".EE_CB"));w(D);D.find(".Act_idLB").trigger("click")}}else if(B=="Profile"){D=$(".EE_CBProfile");if(D.length){w(D);H(D)}}else{if(B=="BEntry"){D=$(".EE_CBBlog");if(D.length){C(D);w(D);B=U("Blog",D);B.switchBEntry(S)}}}else if(B=="Message")L.isLogged()?c.UB.find(".idBtnMessages").trigger("click"):qa.showLoginPop();
else if(B=="FRequest")L.isLogged()?c.UB.find(".idBtnFRequests").trigger("click"):qa.showLoginPop();else if(B=="Text"||B=="Video"||B=="Gallery"){D=$("#db_"+S);if(D.length){C(D);w(D)}}else if(B=="GalImg"){D=$("#db_"+S);if(D.length){C(D.parents(".EE_CB"));w(D);S=D.find(".Act_idLB");S.data("origSrc")&&S.attr("src",S.data("origSrc"));S.trigger("click")}}else if(B=="Profile"){D=$(".EE_CBProfile");D.length&&w(D)}else if(B=="BEntry"){D=$(".EE_CBBlog");if(D.length){C(D);w(D);B=U("Blog",D);B.switchBEntry(S)}}}}
function x(w){if(w.find(".idFlashVersionNotAvailable").length){w=$(d({cl:"BP_warningsBox"},d({cl:"BP_contHeadline"},n("HL_BP_flashDetect"))+d({cl:"BP_contCenter"},d({cl:"BP_centered"},n("Text_BP_flashDetect")))));s(w)}}function s(w){var C=$("body"),H=$("#Page_DetectWarnings");if(!H.length){H=$(d({id:"Page_DetectWarnings",cl:"BP"},d({cl:"BP_fullWidthContents"}),F("icon_gen_fix_close_lo.png","iActObj",n("TT_GEN_close"),"BP_ImgWarningsClose"))).prependTo(C);$("#BP_ImgWarningsClose").bindOnce("click",
u)}H.find(".BP_fullWidthContents").append(w);C.data("origBodyPaddingTop")||C.data("origBodyPaddingTop",parseInt(C.css("padding-top")));C.css("padding-top",C.data("origBodyPaddingTop")+H.height()-40+"px")}function u(){var w=$("body");$("#Page_DetectWarnings").slideUp(300,function(){$(this).remove()});w.animate({paddingTop:w.data("origBodyPaddingTop")},300)}function A(w){w=w||ca;$Self(".EE_CBGal",w).each(function(){$(this).find(".Act_idLB").lightBox()})}function E(w){var C;$.each(m.globalData.themeOrder,
function(H,S){if(S[0]==w){C=S;return false}});return C}function G(){if(m.profileData.hitCount>0){if(!$("#HitcounterBox").length){var w=$(d({id:"HitcounterBox"},M("infoicon_theme_hitcounter.png"),Y({cl:"hitcounterNumber"},n("Text_HitCount_totalVisitors",m.profileData.hitCount))));$(".EE_CBProfile").find(".Profile_keywords").after(w)}}else $("#HitcounterBox").remove()}G8.globalSubscriber.bindOnce("initExtendPageDOM",a);return{setDOMReference:b,updateDisplayVal:f,isInEditMode:h,displayPage:j,tglUserChronjob:g,
initPage:k,doFlashDetection:x,initLightbox:A,appendPageWarnings:s,reinitProfileHitcounter:G,appendGlobalDomString:e}}(),ka=function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initCreatePageDOMString",b)}function b(){L.isLogged()&&sa.preloadSpecialImgs("fixCSS",["pc_trennerfade_bg.png","pc_bg_left_top.png","pc_bg_center_top.png","pc_bg_right_top.png","pc_bg_left_mid.png","pc_bg_center_mid.png","pc_bg_right_mid.png"])}function f(){q(false)}function h(){return c.UB&&c.UB.data("expanded")}
function j(o){c.UB.data("currPane");c.UB.data("currPane",o);g(o);var k=d({cl:"PC_contentsHead"},d({cl:"PC_contentsHeadColLeft"}),d({cl:"PC_contentsHeadColRight"},d({cl:"PC_contentsHeadHL"}),d({cl:"PC_contentsHeadSubline"})),d({cl:"clr"})),e=d({cl:"PC_contentsBody"},d({cl:"PC_contentsBodyEmpty"},c.PreloaderFixMiniMaster,n("Text_GEN_loading")));c.PC_Contents.html(k+e);if(o=="FRequests")Va.fillPCFR();else if(o=="Messages")xa.fillPCMS();else if(o=="Newsfeed")Oa.fillPCNF();else if(o=="Settings")jb.fillPCST();
else o=="Comments"&&Oa.fillPCCF()}function g(o){c.UB.find(".idBtnNewsfeed,.idBtnSettings,.idBtnMessages,.idBtnFRequests,.idBtnComments").setImgLo();o&&c.UB.find(".idBtn"+o).setImgAct()}function q(o){var k=c.UB;if(o){k.data("expanded",true);k.data("origPageContentsYPos",wa.scrollTop());L.isOwner()&&!c.MB_PageMode.isDisbld()&&c.MB_PageMode.hide();c.PC_Cover.fadeIn(300,function(){c.Notify.css("bottom",5);wa.scrollLeft(0).scrollTop(0);var e=k.top();k.css("top")=="auto"&&k.css({top:e+"px"});k.data("origTop",
e);j(k.data("currPane"));c.PC.show();k.animate({top:20},600,function(){c.AllPageContents.add("#LB_Popup,#LB_Overlay").hide();$("#PC_ImgBtnClosePC").fadeInXB(300);k.switchClassF("UB_bot","UB_top")})})}else{k.data("expanded",false);g();$("#PC_ImgBtnClosePC").fadeOutXB(300);k.animate({top:k.data("origTop")},600,function(){k.css("top",null);k.switchClassF("UB_top","UB_bot");c.AllPageContents.add("#LB_Popup,#LB_Overlay").show();L.isOwner()&&!c.MB_PageMode.isDisbld()&&c.MB_PageMode.show();c.PC_Cover.fadeOut(300);
wa.scrollTop(k.data("origPageContentsYPos"));c.Notify.css("bottom",32)})}}G8.globalSubscriber.bindOnce("initClasses",a);return{clk_closePC:f,isVisible:h,switchPCContents:j,tglPC:q}}(),sa=function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initExtendPageDOM",b)}function b(){c.PreloaderThemeMiniMaster=d({cl:"preload_preloaderMini"},M("preloader_theme_mikro.gif"));c.PreloaderFixMiniMaster=d({cl:"preload_preloaderMini"},F("preloader_fix_mikro.gif"));c.PreloaderLBMiniMaster=d({cl:"preload_preloaderMini"},
F("preloader_lb_mikro.png"))}function f(t,r){if(t=="theme")$.each(r,function(x,s){M(s)});else if(t=="fixCSS")$.each(r,function(x,s){ia.makeImg("staticCSS",s)});else t=="fix"&&$.each(r,function(x,s){F(s)})}function h(){G8.pageVars.contentImgObjs=[];var t=G8.pageVars.profileData.resPath+"themes/profile/img/trans.gif";$(".FO_idImgFImg, .EE_blogImg .EE_OBJ, .EE_galImg .EE_OBJ, .EE_textCbImg .EE_OBJ").each(function(){var r=$(this);G8.pageVars.contentImgObjs.push(r);var x=r.attr("src");r.data("origSrc",
x).attr("src",t)})}function j(){if(m.contentImgObjs){var t=m.contentImgObjs.length;$.each(m.contentImgObjs,function(r,x){x.attr("src",x.data("origSrc"));r==t-1&&x.bindOnce("load",g)})}}function g(){$(".EE_CB").each(function(){var t=$(this);t=U("Contentblock",t);t.preloadPreviewImgs()})}function q(){m.Preloading.isRunning=true;m.Preloading.timeoutEssentials=setTimeout(k,m.Preloading.maxTime*1E3);m.Preloading.collectEssentials=true;T.tglPreloader(true)}function o(){m.Preloading.collectEssentials=false}
function k(){e()}function e(){if(m.Preloading.isRunning){m.Preloading.isRunning=false;clearTimeout(m.Preloading.timeoutEssentials);T.tglPreloader(false);j()}}function l(t){if(t!=""&&t.indexOf("script.php?")==-1){m.Preloading.imgsEssential[t]="loading";p(t,true)}}function p(t,r){function x(s){m.Preloading.imgsEssential[s]="loaded";var u=0,A=0;$.each(m.Preloading.imgsEssential,function(E,G){u++;G=="loaded"&&A++});A>u*m.Preloading.percentEssentialsLoadedBeforeContent&&e()}$.isArray(t)||(t=[t]);$.each(t,
function(s,u){u=ea.prefixSrc("theme",u);if(m.Preloading.imgs[u]==undefined){m.Preloading.imgs[u]="loading";$("<img/>").bindOnce("load",function(){m.Preloading.imgs[u]="loaded";r&&x(u);$(this).remove()}).srcF(u)}})}G8.globalSubscriber.bindOnce("initClasses",a);return{preloadSpecialImgs:f,preloadImgs:p,holdContentLoading:h,startCollectEssentials:q,stopCollectEssentials:o,addStackEssentialImg:l}}(),jb=function y(){function a(k,e){c.PC_Contents.find(".ST_idBox"+k).find(".ST_switchBox").removeClass("ST_switchBoxHi").end().find(".ST_idSwitch").disbl(false).setImgLo().end().find(".ST_val_"+
e).setImgHi().disbl(true).parents(".ST_switchBox").addClass("ST_switchBoxHi").end().end().find(".PCST_currVal").html(n("Text_ST_Val_"+k+"_"+e))}function b(){var k=$(this);if(!k.isDisbld()){var e=k.getIdFromClass("ST_val_"),l=e==1?0:1;a("World",e);R.post({action:7,worldstate:e},{afterError:function(){a("World",l)},afterSuccess:function(){m.loggedData.worldstate=e}})}}function f(){var k=$(this);if(!k.isDisbld()){k=k.getIdFromClass("ST_val_");var e=k==1?0:1;a("Hitcounter",k);R.post({action:57,toggle:"true",
reset:"false"},{afterError:function(){a("Hitcounter",e)},afterSuccess:function(l){l=z.readObj("json",l).hitCountVars;m.profileData.showHitCount=l.showHitCount;m.profileData.hitCount=l.hitCount;m.loggedData.ownHitCount=l.ownHitCount;J.reinitProfileHitcounter()}})}}function h(){var k=$(this);if(!k.isDisbld()){var e=k.parents(".ST_idBoxNotificationFriendrequest").length?"Friendrequest":k.parents(".ST_idBoxNotificationComment").length?"Comment":k.parents(".ST_idBoxNotificationMessage").length?"Message":
"",l=k.getIdFromClass("ST_val_"),p=k.parents(".ST_idBoxNotification"+e).find(".ST_switchBoxHi").find(".ST_idSwitch").getIdFromClass("ST_val_"),t=m.loggedData.notificationSettings;a("Notification"+e,l);var r=0;r+=e=="Comment"?parseInt(l):j("Comment");r+=e=="Friendrequest"?parseInt(l):j("Friendrequest");r+=e=="Message"?parseInt(l):j("Message");m.loggedData.notificationSettings=r;R.post({action:7,mailsetting:r},{afterError:function(){a("Notication"+e,p);m.loggedData.notificationSettings=t},afterSuccess:function(){m.loggedData.notificationSettings=
r}})}}function j(k){var e={Comment:1,Friendrequest:2,Message:4};return k=m.loggedData.notificationSettings%(e[k]*2)>=e[k]?e[k]:0}function g(){var k=$(this);if(!k.isDisbld()){k=k.getIdFromClass("ST_val_");var e=m.loggedData.lang;a("Language",k);R.post({action:7,lang:k},{afterError:function(){a("Language",e)},afterSuccess:function(){ea.gotoUrl("http://"+m.parsedProfileUser.url+"?reload="+parseInt(Math.random()*1E7))}})}}function q(){var k=$(this);if(!k.isDisbld()){k=k.getIdFromClass("ST_val_");var e=
m.profileData.currThemeId;a("Theme",k);T.tglPreloader(true);R.post({action:17,id:k},{afterError:function(){a("Theme",e)},afterSuccess:function(){ea.gotoUrl("http://"+m.parsedProfileUser.url+"?reload="+parseInt(Math.random()*1E7))}})}}function o(){var k=c.PC_Contents.find(".PC_contentsBody");c.PC_Contents.find(".PC_contentsHeadColLeft").empty().end().find(".PC_contentsHeadHL").html(n("HL_PC_ST")).end();J.updateDisplayVal("PCST_Subline");k.empty();if(!m.brandedMode){if(L.isOwner()){var e=$(d({cl:"PCST_SettingsBox ST_idBoxTheme"},
d({cl:"PC_colLeft"},"<b>"+n("HL_ST_Theme")+"</b><br />"+Y({cl:"PCST_currVal"})),d({cl:"PC_colRight"},d({cl:"ST_switchBox"},F("theme_preview_white_lo.png","ST_idSwitch ST_imgTheme ST_val_1 iActObj",n("TT_ST_ThemeName_1"))),d({cl:"ST_switchBox"},F("theme_preview_black_lo.png","ST_idSwitch ST_imgTheme ST_val_2 iActObj",n("TT_ST_ThemeName_2"))),d({cl:"ST_switchBox"},F("theme_preview_handmade_lo.png","ST_idSwitch ST_imgTheme ST_val_3 iActObj",n("TT_ST_ThemeName_3"))),d({cl:"ST_switchBox"},F("theme_preview_neon_lo.png",
"ST_idSwitch ST_imgTheme ST_val_4 iActObj",n("TT_ST_ThemeName_4"))),d({cl:"clr"})),d({cl:"clr"}),F("pc_trenner_big.png","PCST_trennerBot")));e.find(".ST_idSwitch").bindOnce("click",q)}else e=$(d({cl:"PCST_SettingsBox ST_idBoxTheme"},d({cl:"PC_colLeft"},"<b>"+n("HL_ST_Theme")+"</b><br />"+Y({cl:"PCST_currVal"})),d({cl:"PC_colRight"},n("Text_ST_themeNotChangable")),d({cl:"clr"}),F("pc_trenner_big.png","PCST_trennerBot")));k.append(e);L.isOwner()&&a("Theme",m.profileData.currThemeId)}if(!m.brandedMode){e=
$(d({cl:"PCST_SettingsBox ST_idBoxWorld"},d({cl:"PC_colLeft"},"<b>"+n("HL_ST_World")+"</b><br />"+Y({cl:"PCST_currVal"})+"<br />",d({cl:"Help_infoBtnReplace"})),d({cl:"PC_colRight"},d({cl:"ST_switchBox"},F("icon_gen_fix_world_on_lo.png","ST_idSwitch ST_imgWorld ST_val_1 iActObj",n("TT_ST_world_1"))),d({cl:"ST_switchBox"},F("icon_gen_fix_world_off_lo.png","ST_idSwitch ST_imgWorld ST_val_0 iActObj",n("TT_ST_world_0"))),d({cl:"clr"})),d({cl:"clr"}),F("pc_trenner_big.png","PCST_trennerBot")));e.find(".ST_idSwitch").bindOnce("click",
b);Ka.extendInfoBtn(e.find(".Help_infoBtnReplace"),"worldInfos","PC");k.append(e);a("World",m.loggedData.worldstate)}e=$(d({cl:"PCST_SettingsBox ST_idBoxHitcounter"},d({cl:"PC_colLeft"},"<b>"+n("HL_ST_Hitcounter")+"</b><br />"+Y({cl:"PCST_currVal"})),d({cl:"PC_colRight"},d({cl:"ST_switchBox"},F("icon_gen_fix_notification_on_lo.png","ST_idSwitch ST_imgHitcounter ST_val_1 iActObj",n("TT_ST_hitcounter_1"))),d({cl:"ST_switchBox"},F("icon_gen_fix_notification_off_lo.png","ST_idSwitch ST_imgHitcounter ST_val_0 iActObj",
n("TT_ST_hitcounter_0"))),d({cl:"clr"})),d({cl:"clr"}),F("pc_trenner_big.png","PCST_trennerBot")));e.find(".ST_idSwitch").bindOnce("click",f);k.append(e);a("Hitcounter",m.profileData.hitCount==0?0:1);e=$(d({cl:"PCST_SettingsBox ST_idBoxLanguage"},d({cl:"PC_colLeft"},"<b>"+n("HL_ST_Language")+"</b><br />"+Y({cl:"PCST_currVal"})),d({cl:"PC_colRight"},d({cl:"ST_switchBox"},F("icon_gen_fix_lang_de_lo.png","ST_idSwitch ST_imgLang ST_val_de iActObj",n("TT_ST_Lang_DE"))),d({cl:"ST_switchBox"},F("icon_gen_fix_lang_en_lo.png",
"ST_idSwitch ST_imgLang ST_val_en iActObj",n("TT_ST_Lang_EN"))),d({cl:"clr"})),d({cl:"clr"}),F("pc_trenner_big.png","PCST_trennerBot")));e.find(".ST_idSwitch").bindOnce("click",g);k.append(e);a("Language",m.loggedData.lang);e=$(d({cl:"PCST_SettingsBox"},d({cl:"PC_colLeft"},n("HL_ST_Notifications")),d({cl:"PC_colRight"},d({cl:"ST_notificationHeader"},n("Text_ST_Notifications")),d({cl:"ST_idBoxNotificationComment"},d({cl:"ST_switchLabel"},n("Label_ST_Notifications_Comment")),d({cl:"ST_switchBox"},F("icon_gen_fix_notification_on_lo.png",
"ST_idSwitch ST_imgNotification ST_val_1 iActObj",n("TT_ST_notification_1"))),d({cl:"ST_switchBox"},F("icon_gen_fix_notification_off_lo.png","ST_idSwitch ST_imgNotification ST_val_0 iActObj",n("TT_ST_notification_0"))),d({cl:"clr"})),d({cl:"ST_idBoxNotificationFriendrequest"},d({cl:"ST_switchLabel"},n("Label_ST_Notifications_FriendRequest")),d({cl:"ST_switchBox"},F("icon_gen_fix_notification_on_lo.png","ST_idSwitch ST_imgNotification ST_val_2 iActObj",n("TT_ST_notification_1"))),d({cl:"ST_switchBox"},
F("icon_gen_fix_notification_off_lo.png","ST_idSwitch ST_imgNotification ST_val_0 iActObj",n("TT_ST_notification_0"))),d({cl:"clr"})),d({cl:"ST_idBoxNotificationMessage"},d({cl:"ST_switchLabel"},n("Label_ST_Notifications_Message")),d({cl:"ST_switchBox"},F("icon_gen_fix_notification_on_lo.png","ST_idSwitch ST_imgNotification ST_val_4 iActObj",n("TT_ST_notification_1"))),d({cl:"ST_switchBox"},F("icon_gen_fix_notification_off_lo.png","ST_idSwitch ST_imgNotification ST_val_0 iActObj",n("TT_ST_notification_0"))),
d({cl:"clr"})),d({cl:"clr"})),F("pc_trenner_big.png","PCST_trennerBot")));e.find(".ST_idSwitch").bindOnce("click",h);k.append(e);a("NotificationComment",j("Comment"));a("NotificationFriendrequest",j("Friendrequest"));a("NotificationMessage",j("Message"));if(!m.brandedMode){e=$(d({cl:"PCST_SettingsBox ST_idBoxPC"},d({cl:"PC_colLeft"},"<b>"+n("HL_ST_PC")+"</b>"),d({cl:"PC_colRight"},d({cl:"ST_linkBoxPC"},da({cl:"ST_linkPC",name:n("Link_ST_gotoPC"),url:m.urlCenter}),F("infoicon_gen_fix_pclock.png","ST_imgLock"))),
d({cl:"clr"}),F("pc_trenner_big.png","PCST_trennerBot")));k.append(e)}Wa.createSpecialUserpageSettingsContents();Q.extendHoverAndTt(c.PC_Contents)}return{fillPCST:o}}(),ma=function y(){function a(q,o){var k=false;q.find(".Vali_notEmpty,.Vali_captcha").each(function(){var e=$(this);if(X.readFormVal(e)==""){k=true;f(e,"notEmpty")}});q.find(".Vali_email").each(function(){var e=$(this),l=/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/,p=/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;if(l.test(X.readFormVal(e))||
!p.test(X.readFormVal(e))){k=true;f(e,"email")}});q.find(".Vali_hasRecipient").each(function(){var e=$(this);if(!e.parents(".idSendToBoxes").find(".WriteMS_idAdressObj").length){k=true;f(e,"recipient")}});if(!k){q.find(".Vali_captcha").length?T.tglPreloader(true):T.tglAlert(false,q);o()}}function b(){return $('<table class="TTVali_TT"><tr><td class="TTVali_left"></td><td class="TTVali_mid">'+d({cl:"TTVali_contents"})+'</td><td class="TTVali_right"></td></tr></table>')}function f(q,o){function k(){var t=
$(this);h(t);t.unbind("focus",k)}if(!q.data("hasError")){var e=o=="notEmpty"?n("Vali_Message_NotEmpty"):o=="email"?n("Vali_Message_Email"):o=="recipient"?n("Vali_Message_Recipient"):o=="mailMatch"?n("Vali_Message_MailMatch"):o=="captcha"?n("Vali_Message_Captcha"):"",l=q.parents(".BP_boxInput"),p=o=="recipient"?l:q;b().find(".TTVali_contents").html(e).end().hide().appendTo(l).setPosTo(p,["RIGHT",-50],["TOP",20]).fadeInXB(300);o=="captcha"&&q.val("");l.addClass("Vali_inpHi");q.data("hasError",true).bindOnce("focus",
k)}}function h(q){var o=q.parents(".BP_boxInput");o.removeClass("Vali_inpHi").find(".TTVali_TT").fadeOutXB(300,function(){$(this).remove()});q.data("hasError",false)}function j(q){q.find(".Vali_notEmpty,.Vali_email,.Vali_hasRecipient,.Vali_captcha").each(function(){h($(this))})}function g(q){T.tglPreloader(false);T.tglAlert(false,q)}return{validateForm:a,markFieldError:f,validationReset:j,resetCaptchaError:g}}(),Ra=function y(){function a(){var j=arguments,g=j[0],q=h[m.loggedData.lang][g]?h[m.loggedData.lang][g]:
"";if(j.length>1){j=G8.ax_jqxtnd.arrayCutFirst(j);$.each(j,function(o,k){q=q.replace("#"+(o+1),k)})}return q}function b(j,g){return g==1?n(j+"1",g):n(j+"2",g)}function f(){h.de={TT_MB_logout:"ausloggen",TT_GEN_login:"einloggen",TT_GEN_delete:"l\u00f6schen",TT_BP_upload:"hochladen",TT_GEN_cancel:"abbrechen",TT_GEN_close:"schlie\u00dfen",TT_GEN_save:"speichern",TT_TAF_send:"senden",TT_GEN_sendMessage:"abschicken",TT_BP_sendComment:"eintragen",TT_MS_Tgl_reply:"antworten",TT_CB_Tgl_show:"ausklappen",
TT_CB_Tgl_hide:"einklappen",TT_CM_Tgl_show:"Kommentare zeigen",TT_CM_Tgl_hide:"Kommentare ausblenden",TT_MS_Reply_Tgl_show:"antworten",TT_MS_Reply_Tgl_hide:"ausblenden",Text_CM_Tgl_allComments:"alle Kommentare",Text_FCB_Tgl_allFriends:"alle zeigen",Text_CM_Tgl_comments:"Kommentare zeigen",Text_MS_Tgl_allMessages:"alle Nachrichten",Text_MS_Tgl_reply:"Antwort",Text_Gallery_Tgl_allGalImgs:"alle Bilder zeigen",Text_HitCount_totalVisitors:"#1 Besucher",Text_GEN_loading:"Lade...",TT_MB_NF:"Neuigkeiten:[br]Was machen meine Freunde",
TT_MB_ST:"Einstellungen",TT_MB_MS:"Nachrichten",TT_MB_FR:"Freundschaftsanfragen",TT_MB_CF:"Kommentare auf meiner Seite",TT_gotoWorld_logged:"neue Freunde in der eightpageworld finden",TT_gotoWorld_notLogged:"neue Seiten in der eightpageworld entdecken",TT_gotoAdobeWorld_logged:"neue Freunde in der Adobe Community finden",TT_gotoAdobeWorld_notLogged:"neue Seiten in der Adobe Community entdecken",TT_PC_MS_deleteMessage:"Nachricht l\u00f6schen",TT_Note_close:"ausblenden",TT_GEN_writeMessage:"Nachricht schreiben",
TT_BP_refreshCaptcha:"Nicht lesbar?[br]neuen Code anzeigen",HL_BP_UL_uploadImgs:"Bilder hochladen",TT_BP_cancelUpload:"Upload abbrechen",HL_BP_UL_selectImgToUpload:"neues Bild ausw\u00e4hlen",Text_BP_UL_selectImgToUpload:"Bitte ein neues Bild ausw\u00e4hlen",Label_TAF_to:"An (E-Mail Adresse)",Label_TAF_message:"Nachricht",Label_Login_domain:"Domain",Label_PwRestore_domain:"Domain",Label_PwRestore_email:"E-Mail Adresse",Label_Login_password:"Passwort",TT_GEN_iWantEightpage:"Will ich auch!",Link_Login_pwForgotten:"Passwort vergessen?",
HL_PwRestore_passwordForgotten:"Passwort vergessen",Text_PwRestore_passwordForgotten:"Bitte gib deine Domain und deine E-Mail Adresse an, Du erh\u00e4lst dann von uns eine Aktivierungsmail.",HL_PwRestore_passwordRestore:"Benutzer freischalten",Text_PwRestore_passwordRestore:"Bitte gib deine Domain und deine E-Mail Adresse an, Du erh\u00e4lst dann von uns eine Aktivierungsmail.",TT_PwRestore_requestPassword:"Passwort anfordern",TT_CB_moveCBDown:"Block nach unten verschieben",TT_CB_moveCBUp:"Block nach oben verschieben",
TT_CB_skipCBDown:"Block ganz nach unten verschieben",TT_CB_skipCBUp:"Block ganz nach oben verschieben",TT_CB_privacySelf:"nur f\u00fcr mich sichtbar",TT_CB_privacyFriends:"f\u00fcr meine Freunde sichtbar",TT_CB_privacyAll:"f\u00fcr alle sichtbar ",TT_CB_deleteCB:"Block l\u00f6schen",TT_changeFavicon:"Seitenlogo \u00e4ndern",TT_BlogImg_moveImgDown:"Bild nach unten verschieben",TT_BlogImg_moveImgUp:"Bild nach oben verschieben",TT_AddImg_uploadNewImgs:"Neue Bilder hochladen",TT_TextCbImg_moveImgDown:"Bild nach unten verschieben",
TT_TextCbImg_moveImgUp:"Bild nach oben verschieben",Text_Video_insertVideolink:"Video-Link hier einf\u00fcgen",TT_createBEntry:"neuen Blogeintrag erstellen",TT_prevBEntry:"vorheriger Blogeintrag",TT_nextBEntry:"n\u00e4chster Blogeintrag",TT_deleteBEntry:"Blogeintrag l\u00f6schen",TT_FCB_coverStartFriendship:"Freundschaft anfragen",TT_deleteFriendship:"Freundschaft beenden",TT_FCB_clearSearch:"Suche beenden",TT_FCB_TAF:"neue Leute einladen",TT_MB_createGalleryCB:"neue Bildgalerie hinzuf\u00fcgen",
TT_MB_createTextCB:"neuen Textblock hinzuf\u00fcgen",TT_MB_createVideoCB:"neues Video hinzuf\u00fcgen",TT_MB_createBlogCB:"neuen Blog hinzuf\u00fcgen",TT_MB_writeMessage:"schreibe eine private Nachricht",TT_MB_addAsFriend:"schlie\u00dfe Freundschaft mit #1",TT_MB_friendshipPending:"Freundschaft wurde angefragt",HL_BP_FR_friendRequest:"Freundschaftseinladung",Label_BP_FR_to:"An",Label_BP_FR_message:"Nachricht",TT_BP_FR_invite:"einladen",HL_BP_WriteMS_writeMessage:"Nachricht schreiben",Label_BP_WriteMS_to:"An",
Label_BP_WriteMS_subject:"Betreff",Label_BP_WriteMS_message:"Nachricht",HL_BP_CM_writeComment:"Kommentar schreiben",Label_BP_CM_commentText:"Text",TT_CM_deleteComment:"Kommentar l\u00f6schen",TT_CM_addComment:"Kommentar schreiben",Text_Login_problemCookie:"Es gibt ein Problem. Bitte melde dich neu an.",Text_Login_problemSession:"Deine Session ist abgelaufen. Bitte melde dich neu an.",Text_Login_problemPassword:"Du hast einen falschen Benutzernamen oder falsches Passwort eingegeben. Bitte probiere es noch einmal.",
Text_Login_problemLocked:"Dein Benutzername wurde tempor\u00e4r wegen zu vieler fehlerhafter Anmeldeversuche gesperrt. Bitte benutze die Passwort-Vergessen-Funktion, um ein neues Passwort zu erstellen.",Link_Login_unlockPassword:"Passwort freischalten",HL_BP_Success_mailSent:"Mail wurde versendet",Text_BP_Success_mailSent:"Es wurde eine Nachricht an #1 gesendet.",HL_BP_Success_passwordRequested:"Anfrage wurde abgeschickt",Text_BP_Success_passwordRequested:"Es wurde eine E-Mail an dich versendet. Folge einfach den darin enthaltenen Anweisungen",
HL_BP_Confirm_deleteMessage:"Nachricht l\u00f6schen?",HL_BP_Success_friendRequested:"Freund wurde angefragt",Text_BP_Success_friendRequested:"#1 wurde erfolgreich angefragt.",HL_BP_Confirm_deleteImg:"Bild l\u00f6schen?",HL_BP_Confirm_deleteBlog:"Ganzen Blog l\u00f6schen?",Text_BP_Confirm_deleteBlog:"Achtung: alle Blogeintr\u00e4ge werden gel\u00f6scht",HL_BP_Confirm_deleteGallery:"Galerie l\u00f6schen?",Text_BP_Confirm_deleteGallery:"Achtung: alle Bilder werden gel\u00f6scht",HL_BP_Confirm_deleteVideo:"Videoblock l\u00f6schen?",
HL_BP_Confirm_deleteText:"Textblock l\u00f6schen?",HL_BP_Confirm_deleteBlogentry:"Blogeintrag l\u00f6schen?",HL_BP_Confirm_deleteFriendship:"Freundschaft beenden?",Text_BP_Confirm_deleteFriendship:"Dein Gegen\u00fcber wird nicht benachrichtigt.",HL_BP_Confirm_deleteComment:"Kommentar l\u00f6schen?",TT_MB_gotoOwnProfile:"Zum eigenen Profil wechseln",HL_BP_friendAlreadyRequested:"Freund wurde schon angefragt",Text_BP_friendAlreadyRequested:"#1 wurde schon angefragt hat aber noch keine Antwort gegeben.",
Text_BP_CM_friendshipMandatory:"Um einen Kommentar schreiben zu k\u00f6nnen, musst Du befreundet sein. Schicke dazu eine Freundschaftseinladung.",Text_BP_CM_loginMandatory:"Um einen Kommentar schreiben zu k\u00f6nnen, logge dich bitte ein.",HL_BP_CM_friendshipPending:"Kommentar schreiben",Text_BP_CM_friendshipPending:"Kommentar schreiben momentan nicht m\u00f6glich. Freundschaftseinladung wurde versendet, aber noch nicht beantwortet.",HL_PC_MS:"Nachrichten",HL_BP_Success_messageSent:"Nachricht wurde versendet",
Text_BP_Success_messageSent:"Die Nachricht wurde erfolgreich versendet.",Text_MS_noMessages:"Momentan keine Nachrichten.",Text_CF_noComments:"Momentan keine Kommentare.",TT_MS_visitUser:"Besuchen",TT_FR_acceptFriendship:"Freundschaft akzeptieren",TT_FR_refuseFriendship:"Freundschaft ablehnen (anonym)",HL_PC_FR:"Freundesanfragen",HL_PC_NF:"Newsfeed",HL_PC_ST:"Einstellungen",Text_FR_noRequests:"Momentan keine Freundesanfragen.",Text_NF_noFeeds:"Momentan keine Aktivit\u00e4ten.",HL_CF_Main:"Kommentare",
HL_ST_Theme:"Theme",HL_ST_World:"eightpageworld",HL_ST_Hitcounter:"Besucherz\u00e4hler",HL_ST_PC:"Pers\u00f6nliche Daten",HL_ST_Language:"Sprache",HL_ST_Notifications:"<b>Benachrichtigung</b><br />per E-Mail",Text_ST_Notifications:"Ich m\u00f6chte benachrichtigt werden bei:",Label_ST_Notifications_Comment:"neuen Kommentaren auf meiner Seite",Label_ST_Notifications_FriendRequest:"neuen Freundschaftseinladungen an mich",Label_ST_Notifications_Message:"neuen Nachrichten an mich",Text_ST_Val_Language_de:"Deutsch",
Text_ST_Val_Language_en:"English",Text_ST_Val_Language_es:"Espa\u00f1ol",Text_ST_Val_Language_fr:"Fran\u00e7ais",Text_ST_Val_Theme_1:"Alabaster-Wei\u00df",Text_ST_Val_Theme_2:"Kriminal-Schwarz",Text_ST_Val_World_0:"unsichtbar",Text_ST_Val_World_1:"sichtbar",Text_ST_Val_Hitcounter_0:"nicht zeigen",Text_ST_Val_Hitcounter_1:"anzeigen",TT_ST_Lang_DE:"Deutsch",TT_ST_Lang_EN:"English",TT_ST_Lang_ES:"Espa\u00f1ol",TT_ST_Lang_FR:"Fran\u00e7ais",TT_ST_ThemeName_1:"Alabaster-Wei\u00df",TT_ST_ThemeName_2:"Kriminal-Schwarz",
TT_ST_ThemeName_3:"Handgemacht",TT_ST_ThemeName_4:"Flashy Neon",TT_ST_world_1:"in eightpageworld sichtbar sein",TT_ST_world_0:"nicht in eightpagworld erscheinen",TT_ST_hitcounter_1:"Besucherz\u00e4hler im Profil zeigen",TT_ST_hitcounter_0:"Besucherz\u00e4hler nicht im Profil zeigen",TT_ST_notification_1:"E-Mail erhalten",TT_ST_notification_0:"keine E-Mail erhalten",Link_ST_gotoPC:"Personal Center aufrufen (\u00fcber den Sicherheitsserver)",Text_ST_themeNotChangable:"Das Theme kannst Du nur von deiner eigenen eightpage aus \u00e4ndern.",
HL_BP_flashDetect:"Flash Player",Text_BP_flashDetect:"Zum Benutzen der Seite ist der kostenlose Flashplayer n\u00f6tig. Bitte lade dir die aktuelle Version "+da({name:"hier",url:"http://get.adobe.com/de/flashplayer"})+" herunter.",HL_BP_msieDetect:"Du benutzt Internet Explorer",Text_BP_msieDetect:"Internet Explorer schr\u00e4nkt deine Funktionen ein. Wechsel zu einem sicheren und schnelleren Browser, um dein Profil uneingeschr\u00e4nkt zu nutzen.",TT_BP_WriteMS_removeAdress:"Adresse entfernen",Text_NF_CreatedText:"hat den Text #1 erstellt.",
Text_NF_CreatedVideo:"hat das Video #1 erstellt.",Text_NF_CreatedGallery:"hat neue Bilder in die Galerie #1 hochgeladen.",Text_NF_CreatedBlogentry:"hat den Blogeintrag #1 verfasst.",Text_NF_MadeFriendship:"ist jetzt mit #1 befreundet.",Text_NF_ChangedProfileImg:"Profilbild hat sich ge\u00e4ndert.",Text_NF_CommentedBlogentry:"hat #1 Blogeintrag #2 kommentiert.",Text_NF_CommentedText:"hat #1 Text #2 kommentiert.",Text_NF_CommentedVideo:"hat #1 Video #2 kommentiert.",Text_NF_CommentedGalImg:"hat #1 Bild #2 kommentiert.",
Text_NF_CommentedProfile:"hat die Seite von #1 kommentiert.",Text_CF_CommentedBlogentry:"hat deinen Blogeintrag #1 kommentiert.",Text_CF_CommentedText:"hat deinen Text #1 kommentiert.",Text_CF_CommentedVideo:"hat dein Video #1 kommentiert.",Text_CF_CommentedGalImg:"hat dein Bild #1 kommentiert.",Text_CF_CommentedProfile:"hat deine Seite kommentiert.",HL_Note:"Es gibt Neuigkeiten",Text_Note_UnreadMessage1:"ungelesene Nachricht",Text_Note_UnreadMessage2:"ungelesene Nachrichten",Text_Note_NewFriendRequest1:"neue Freundschaftsanfrage",
Text_Note_NewFriendRequest2:"neue Freundschaftsanfragen",Text_Note_NewComment1:"neuer Kommentar",Text_Note_NewComment2:"neue Kommentare",Input_FR_message:"Hallo,\n\nIch habe deine eightpage gesehen und m\u00f6chte gerne mit dir befreundet sein..",Input_TAF_message:"Hey,\n\nIch habe jetzt meine eigene eightpage. Wirf mal einen Blick drauf!",HL_BP_ajaxError:"Fehler",Text_BP_ajaxError:"Das hat grad nicht geklappt. Bitte versuche es noch einmal.<br/>(Fehlercode: ##1)",Text_CM_noComments:"Momentan keine Kommentare.",
DocTitle_Suffix:"",HL_PC_Status_newMessages:"#1 neue",HL_PC_Status_TotalMessages:" / #1 insgesamt",HL_PC_Status_FriendRequests1:"#1 Anfrage",HL_PC_Status_FriendRequests2:"#1 Anfragen",HL_PC_Status_TotalFriends1:"#1 Freund",HL_PC_Status_TotalFriends2:"#1 Freunde",Format_dateLong:"DD.MM.JJJJ, HH:mm Uhr",Format_dateShort:"DD.MM.JJJJ",Vali_Message_NotEmpty:"Bitte ausf\u00fcllen",Vali_Message_Email:"Bitte g\u00fcltige E-Mail Adresse eintragen",Vali_Message_Captcha:"Die Zeichen waren falsch",Vali_Message_Recipient:"Bitte min. einen Empf\u00e4nger ausw\u00e4hlen",
Vali_Message_MailMatch:"Die E-Mail Adresse passt nicht zur Domain",HL_UL_Error_ajaxResolution:"Bildaufl\u00f6sung zu hoch",HL_UL_Error_fileSize:"Bilddatei zu gro\u00df",HL_UL_Error_ajaxFormat:"Dateiformat nicht unterst\u00fctzt",HL_UL_Error_ajaxTotalItems:"Galerie ist voll",HL_UL_Error_other:"Unbekannter Fehler (#1)",Text_UL_Helpinfo:"Wenn der Upload zu lange dauert, kannst Du "+da({name:"hier Tipps und L\u00f6sungen erfahren",url:"portal.eightpage.com?content=faq"})+".",Text_UL_Status_PleaseSelectSingle:"Bild ausw\u00e4hlen",
Text_UL_Status_PleaseSelectMulti:"mehrere Bilder ausw\u00e4hlen",Text_UL_Status_SelectCanceled:"Auswahl wurde abgebrochen",Text_UL_Status_NothingSelected:"Keine Bilder ausgew\u00e4hlt",Text_UL_Status_LoadingImg:"Lade Bild #1 von #2... (noch #3)",Text_UL_Status_ImgsProcessing:"Bilder werden bearbeitet...",Text_UL_Status_AllImgsUploadedSuccess:"Alle Bilder erfolgreich hochgeladen",Text_UL_Status_AllImgsUploadedError:"Nicht alle Bilder konnten hochgeladen werden. Es gab Fehler.",Swf_UL_ImgFilterDescription:"Bilder",
HL_UL_PreInfo_tooMuchImgsInBEntry:"Zu viele Bilder f\u00fcr diesen Blogeintrag",Text_UL_PreInfo_tooMuchImgsInBEntry:"Du kannst nur noch #1 Bilder hochladen. Trotzdem hochladen? Sonst erstelle einfach einen neuen Blogeintrag.",HL_UL_PreInfo_tooMuchImgsInGallery:"Zu viele Bilder f\u00fcr diese Galerie",Text_UL_PreInfo_tooMuchImgsInGallery:"Du kannst nur noch #1 Bilder hochladen. Trotzdem hochladen? Sonst erstelle einfach eine neue Gallerie.",TT_UL_PreInfo_upload:"hochladen",TT_UL_PreInfo_noUpload:"nicht hochladen",
TT_Help_moreInfo:"mehr Infos",Help_ajaxResolution:"Das Bild hat eine zu hohe Aufl\u00f6sung. Zul\u00e4ssig sind maximal 12 Megapixel, das entspricht etwa 4000 x 3000 Pixel.",Help_fileSize:"Die maximal zul\u00e4ssige Dateigr\u00f6\u00dfe ist 4 Megabyte.",Help_ajaxFormat:"Das Bildformat wird nicht unterst\u00fctzt. Bitte verwende '.jpg', '.jpeg', '.gif' oder '.png'.",Help_ajaxTotalItems:"Es sind maximal 100 Bilder pro Galerie m\u00f6glich. Bitte erstelle eine neue Galerie.",Help_other:"Es ist ein unbekannter Fehler aufgetreten. Bitte einfach sp\u00e4ter noch mal probieren.",
Help_FAQLink:"<br/><br/>Mehr Informationen findest Du in unserer "+da({name:"FAQ",url:"portal.eightpage.com?content=faq"})+".",Help_FAQImgUploadingLink:"<br/><br/>Tipps und Tricks zum Hochladen von Bildern findest Du "+da({name:"hier in unserer FAQ",url:"portal.eightpage.com?content=faq#functions8"})+".",Help_VideoEmbedding:'Kopiere den "Embed-Link" von Videoanbietern in das Feld.',Help_VideoProvider:"Du findest Videos bei folgenden Anbietern:<br/>"+da({name:"www.youtube.com"})+"<br/>"+da({name:"www.vimeo.com"})+
"<br/>"+da({name:"www.metacafe.com"})+"<br/>"+da({name:"www.dailymotion.com"})+"<br/>"+da({name:"www.veoh.com"})+"<br/>"+da({name:"vids.myspace.com"})+"<br/>und vielen anderen Plattformen",Help_WorldVisible:"In der "+da({name:"eightpageworld",url:"www.eightpageworld.com"})+" findest Du alle eightpage Nutzer weltweit.<br/><br/>Hier kannst Du \u00e4ndern, ob Du dort sichtbar sein willst oder nicht.",Text_Video_Status_Ok:"Ok. Video-Daten wurden erkannt.",Text_Video_Status_NotSupported:"Fehler: Video-Anbieter wird nicht unterst\u00fctzt.",
Text_Video_Status_NotRecognized:"Fehler: Konnte den Embed-Link nicht erkennen. Bitte versuche einen anderen Video-Link.",TT_MB_Mode_View:"in den Ansichtsmodus wechseln",TT_MB_Mode_Edit:"in den Bearbeitungsmodus wechseln",TT_MB_Mode_Add:"Inhalt hinzuf\u00fcgen",TT_LB_delete:"l\u00f6schen",TT_LB_prevImg:"vorheriges Bild",TT_LB_nextImg:"n\u00e4chstes Bild",TT_LB_startSlideShow:"Diashow starten",TT_LB_stopSlideShow:"Diashow stoppen",TT_LB_close:"schlie\u00dfen"};h.en={TT_MB_logout:"log out",TT_GEN_login:"log in",
TT_GEN_delete:"delete",TT_BP_upload:"upload",TT_GEN_cancel:"abort",TT_GEN_close:"close",TT_GEN_save:"save",TT_TAF_send:"send",TT_GEN_sendMessage:"send",TT_BP_sendComment:"enter",TT_MS_Tgl_reply:"reply",TT_CB_Tgl_show:"expand",TT_CB_Tgl_hide:"collapse",TT_CM_Tgl_show:"show comments",TT_CM_Tgl_hide:"hide comments",TT_MS_Reply_Tgl_show:"reply",TT_MS_Reply_Tgl_hide:"hide",Text_CM_Tgl_allComments:"all comments",Text_FCB_Tgl_allFriends:"show all",Text_CM_Tgl_comments:"show comments",Text_MS_Tgl_allMessages:"all messages",
Text_MS_Tgl_reply:"reply",Text_Gallery_Tgl_allGalImgs:"show all gallery images",Text_HitCount_totalVisitors:"#1 visitors",Text_GEN_loading:"loading...",TT_MB_NF:"News:[br]What are your friends up to?",TT_MB_ST:"Settings",TT_MB_MS:"Messages",TT_MB_FR:"Friendship requests",TT_MB_CF:"Comments on my page",TT_gotoWorld_logged:"find new friends in the eightpageworld",TT_gotoWorld_notLogged:"discover new pages in the eightpageworld",TT_gotoAdobeWorld_logged:"find new friends in the Adobe Community",TT_gotoAdobeWorld_notLogged:"discover new pages in the Adobe Community",
TT_PC_MS_deleteMessage:"delete message",TT_Note_close:"close",TT_GEN_writeMessage:"write message",TT_BP_refreshCaptcha:"illegible?[br]click for new code",HL_BP_UL_uploadImgs:"uploading images",TT_BP_cancelUpload:"abort upload",HL_BP_UL_selectImgToUpload:"select image",Text_BP_UL_selectImgToUpload:"Please select your new image",Label_TAF_to:"to (email adress)",Label_TAF_message:"message",Label_Login_domain:"domain",Label_PwRestore_domain:"domain",Label_PwRestore_email:"email adress",Label_Login_password:"password",
TT_GEN_iWantEightpage:"me too!",Link_Login_pwForgotten:"forgotten password?",HL_PwRestore_passwordForgotten:" Forgotten password ",Text_PwRestore_passwordForgotten:"Please provide your domain and email. You will receive an activation email.",HL_PwRestore_passwordRestore:"activate user",Text_PwRestore_passwordRestore:"Please provide your domain and email. You will receive an activation email.",TT_PwRestore_requestPassword:"request password",TT_CB_moveCBDown:"move block down",TT_CB_moveCBUp:"move block up",
TT_CB_skipCBDown:"move block to bottom",TT_CB_skipCBUp:"move block to top",TT_CB_privacySelf:"visible to me only",TT_CB_privacyFriends:"visible to my friends",TT_CB_privacyAll:"visible to everyone",TT_CB_deleteCB:"delete block",TT_changeFavicon:"change site-logo",TT_BlogImg_moveImgDown:"move image down",TT_BlogImg_moveImgUp:"move image up",TT_AddImg_uploadNewImgs:"upload images",TT_TextCbImg_moveImgDown:"move image down",TT_TextCbImg_moveImgUp:"move image up",Text_Video_insertVideolink:"insert video link here",
TT_createBEntry:"create new blog post",TT_prevBEntry:"previous blog p",TT_nextBEntry:"next blog post",TT_deleteBEntry:"delete blog post",TT_FCB_coverStartFriendship:"request friendship",TT_deleteFriendship:"cancel friendship",TT_FCB_clearSearch:"clear search",TT_FCB_TAF:"invite new people",TT_MB_createGalleryCB:"add image gallery",TT_MB_createTextCB:"add text block",TT_MB_createVideoCB:"add video",TT_MB_createBlogCB:"add blog",TT_MB_writeMessage:"write a private message",TT_MB_addAsFriend:"send a friendship request to #1",
TT_MB_friendshipPending:"friendship requested",HL_BP_FR_friendRequest:"friendship inivitation",Label_BP_FR_to:"to",Label_BP_FR_message:"message",TT_BP_FR_invite:"invite",HL_BP_WriteMS_writeMessage:"write message",Label_BP_WriteMS_to:"to",Label_BP_WriteMS_subject:"subject",Label_BP_WriteMS_message:"message",HL_BP_CM_writeComment:"write comment",Label_BP_CM_commentText:"text",TT_CM_deleteComment:"delete comment",TT_CM_addComment:"write comment",Text_Login_problemCookie:"A problem has occured. Please log in again.",
Text_Login_problemSession:"Your session has expired. Please log in again.",Text_Login_problemPassword:"You have provided an invalid username or password. Please try again.",Text_Login_problemLocked:'Your username has been locked due to too many failed login attempts. Please use the "forgot password" function to create a new password.',Link_Login_unlockPassword:"activate password",HL_BP_Success_mailSent:"Mail has been sent",Text_BP_Success_mailSent:"message has been sent to #1.",HL_BP_Success_passwordRequested:"Request was sent",
Text_BP_Success_passwordRequested:"An email has been sent to you. Just follow the included instructions",HL_BP_Confirm_deleteMessage:"Delete message?",HL_BP_Success_friendRequested:"Friend has been requested",Text_BP_Success_friendRequested:"#1 was requested successfully.",HL_BP_Confirm_deleteImg:"Delete image?",HL_BP_Confirm_deleteBlog:"Delete entire blog?",Text_BP_Confirm_deleteBlog:"Warning: all blog posts will be deleted",HL_BP_Confirm_deleteGallery:"Delete gallery?",Text_BP_Confirm_deleteGallery:"Warning: all images will be deleted",
HL_BP_Confirm_deleteVideo:"Delete video block?",HL_BP_Confirm_deleteText:"Delete text block?",HL_BP_Confirm_deleteBlogentry:"Delete blog post?",HL_BP_Confirm_deleteFriendship:"Cancel friendship?",Text_BP_Confirm_deleteFriendship:"There will be no notification to the other person.",HL_BP_Confirm_deleteComment:"Delete comment?",TT_MB_gotoOwnProfile:"Go to my profile",HL_BP_friendAlreadyRequested:"Friend has already been requested",Text_BP_friendAlreadyRequested:"#1 has already been requested but has yet to reply.",
Text_BP_CM_friendshipMandatory:"You have to be friends in order to be able to write a comment. Send a friendship inivitation first.",Text_BP_CM_loginMandatory:"You have to log in to comment.",HL_BP_CM_friendshipPending:"Write comment",Text_BP_CM_friendshipPending:"Commenting not yet possible. Friendship inivitation has been sent but not answered.",HL_PC_MS:"Messages",HL_BP_Success_messageSent:"Message has been sent",Text_BP_Success_messageSent:"The message has been sent successfully.",Text_MS_noMessages:"Currently no messages.",
Text_CF_noComments:"Currently no comments.",TT_MS_visitUser:"Visit",TT_FR_acceptFriendship:"accept friendship",TT_FR_refuseFriendship:"refuse friendship (anonymous)",HL_PC_FR:"Friendship requests",HL_PC_NF:"Newsfeed",HL_PC_ST:"Settings",Text_FR_noRequests:"Currently no friendship requests.",Text_NF_noFeeds:"Currently no activity.",HL_CF_Main:"Comments",HL_ST_Theme:"Theme",HL_ST_World:"eightpageworld",HL_ST_Hitcounter:"Hitcounter",HL_ST_PC:"Personal data",HL_ST_Language:"Language",HL_ST_Notifications:"<b>Notifications</b><br />by Email",
Text_ST_Notifications:"I want to be notified of:",Label_ST_Notifications_Comment:"new comments on my site",Label_ST_Notifications_FriendRequest:"new friendship requests for me",Label_ST_Notifications_Message:"new messages to me",Text_ST_Val_Language_de:"Deutsch",Text_ST_Val_Language_en:"English",Text_ST_Val_Language_es:"Espa\u00f1ol",Text_ST_Val_Language_fr:"Fran\u00e7ais",Text_ST_Val_Theme_1:"Alabaster-White",Text_ST_Val_Theme_2:"Criminal-Black",Text_ST_Val_World_0:"invisible",Text_ST_Val_World_1:"visible",
Text_ST_Val_Hitcounter_0:"don't show",Text_ST_Val_Hitcounter_1:"show",TT_ST_Lang_DE:"Deutsch",TT_ST_Lang_EN:"English",TT_ST_Lang_ES:"Espa\u00f1ol",TT_ST_Lang_FR:"Fran\u00e7ais",TT_ST_ThemeName_1:"Alabaster-White",TT_ST_ThemeName_2:"Criminal-Black",TT_ST_ThemeName_3:"Hand-Made",TT_ST_ThemeName_4:"Flashy-Neon",TT_ST_world_1:"visible in eightpageworld",TT_ST_world_0:"invisible in eightpageworld",TT_ST_hitcounter_1:"show hitcounter in profile",TT_ST_hitcounter_0:"don't show hitcounter in profile",TT_ST_notification_1:"notify by e-mail",
TT_ST_notification_0:"don't notify by e-mail",Link_ST_gotoPC:"Go to personal center (via secured connection)",Text_ST_themeNotChangable:"Themes can only be changed on your own eightpage.",HL_BP_flashDetect:"Flash Player",Text_BP_flashDetect:"You need the free flash player in order to use this site. Please get the current version "+da({name:"here",url:"http://get.adobe.com/de/flashplayer"})+" here.",HL_BP_msieDetect:"You are using Internet Explorer",Text_BP_msieDetect:"Internet Explorer restricts functionality on this profile. Switch to a more secure and faster browser, in order to fully use it.",
TT_BP_WriteMS_removeAdress:"remove recipient",Text_NF_CreatedText:"has created the Text #1.",Text_NF_CreatedVideo:"has created the video #1.",Text_NF_CreatedGallery:"has uploaded new images to the gallery #1.",Text_NF_CreatedBlogentry:"has created a new blog post #1.",Text_NF_MadeFriendship:"is now friends with #1.",Text_NF_ChangedProfileImg:"Profile picture has been changed.",Text_NF_CommentedBlogentry:"has commented on #1's blog post #2.",Text_NF_CommentedText:"has commented on #1's text #2.",Text_NF_CommentedVideo:"has commented on #1's video #2.",
Text_NF_CommentedGalImg:"has commented on #1's image #2.",Text_NF_CommentedProfile:"has commented on the site of #1.",Text_CF_CommentedBlogentry:"has commented on your blog post #1.",Text_CF_CommentedText:"has commented on your text #1.",Text_CF_CommentedVideo:"has commented on your video #1.",Text_CF_CommentedGalImg:"has commented on your image #1.",Text_CF_CommentedProfile:"has commented on your site.",HL_Note:"There are news",Text_Note_UnreadMessage1:"unread message",Text_Note_UnreadMessage2:"unread messages",
Text_Note_NewFriendRequest1:"new friendship request",Text_Note_NewFriendRequest2:"new friendship requests",Text_Note_NewComment1:"new comment",Text_Note_NewComment2:"new comments",Input_FR_message:"Hi,\n\nI have seen your eightpage and would like to be friends with you..",Input_TAF_message:"Hey,\n\nI have my own eightpage now. Have a look!",HL_BP_ajaxError:"Error",Text_BP_ajaxError:"That just did not quite work. Please try again.<br/>(Errorcode: ##1)",Text_CM_noComments:"Currently no comments.",DocTitle_Suffix:"",
HL_PC_Status_newMessages:"#1 new",HL_PC_Status_TotalMessages:" / #1 total",HL_PC_Status_FriendRequests1:"#1 request",HL_PC_Status_FriendRequests2:"#1 requests",HL_PC_Status_TotalFriends1:"#1 friend",HL_PC_Status_TotalFriends2:"#1 friends",Format_dateLong:"MM/DD/JJJJ, HH:mm h",Format_dateShort:"MM/DD/JJJJ",Vali_Message_NotEmpty:"Please fill in",Vali_Message_Email:"Please provide a valid email adress",Vali_Message_Captcha:"Wrong characters",Vali_Message_Recipient:"Please pick at least one recipient",
Vali_Message_MailMatch:"This email adress does not match with the domain",HL_UL_Error_ajaxResolution:"Image resolution too high",HL_UL_Error_fileSize:"Image file too big",HL_UL_Error_ajaxFormat:"File format not supported",HL_UL_Error_ajaxTotalItems:"Gallery is full",HL_UL_Error_other:"Unknown error (#1)",Text_UL_Helpinfo:"If the uploads takes too long you can "+da({name:"get tips and solutions in our FAQ",url:"portal.eightpage.com?content=faq"})+".",Text_UL_Status_PleaseSelectSingle:"select image",
Text_UL_Status_PleaseSelectMulti:"select multiple images",Text_UL_Status_SelectCanceled:"Selection cancelled",Text_UL_Status_NothingSelected:"No images selected",Text_UL_Status_LoadingImg:"Uploading images #1 of #2... (#3 to go)",Text_UL_Status_ImgsProcessing:"Images are being processed...",Text_UL_Status_AllImgsUploadedSuccess:"All images uploaded successfully",Text_UL_Status_AllImgsUploadedError:"Some images could not be uploaded. Errors have occurred",Swf_UL_ImgFilterDescription:"Images",HL_UL_PreInfo_tooMuchImgsInBEntry:"Too many images for this blog post",
Text_UL_PreInfo_tooMuchImgsInBEntry:"You can only upload another #1 images. Upload anyway? Otherwise just create a new blog post.",HL_UL_PreInfo_tooMuchImgsInGallery:"Too many images for this gallery",Text_UL_PreInfo_tooMuchImgsInGallery:"You can only upload another #1 images. Upload anyway? Otherwise just create a new gallery.",TT_UL_PreInfo_upload:"upload",TT_UL_PreInfo_noUpload:"don't upload",TT_Help_moreInfo:"more info",Help_ajaxResolution:"The image resolution is too high. The maximum valid is 12 megapixel, this is roughly 4000 x 3000 pixel.",
Help_fileSize:"The maximum valid file size is 4 megabyte.",Help_ajaxFormat:"this image format is not supported. Please use '.jpg', '.jpeg', '.gif' or '.png' format.",Help_ajaxTotalItems:"There is a maximum of a 100 images per gallery for now. Please create a new gallery.",Help_other:"An unknown error has occured. Please try again later.",Help_FAQLink:"<br/><br/>More information can be found in our "+da({name:"FAQ",url:"portal.eightpage.com?content=faq"})+".",Help_FAQImgUploadingLink:"<br/><br/>Tips and tricks for uploading images can be found "+
da({name:"in our FAQ",url:"portal.eightpage.com?content=faq#functions8"})+".",Help_VideoEmbedding:'Copy the "embed link" from your video provider in here.',Help_VideoProvider:"You can find videos at the following sites:<br/>"+da({name:"www.youtube.com"})+"<br/>"+da({name:"www.vimeo.com"})+"<br/>"+da({name:"www.metacafe.com"})+"<br/>"+da({name:"www.dailymotion.com"})+"<br/>"+da({name:"www.veoh.com"})+"<br/>"+da({name:"vids.myspace.com"})+"<br/>and many more platforms",Help_WorldVisible:"All eightpage users worldwide can be found in the  "+
da({name:"eightpageworld",url:"www.eightpageworld.com"})+".<br/><br/>You can set here whether you want to be visible in there or not.",Text_Video_Status_Ok:"Ok. Video data accepted.",Text_Video_Status_NotSupported:"Error: Video site is not supported.",Text_Video_Status_NotRecognized:"Error: Embed link could not be interpreted. Please try another embed code.",TT_MB_Mode_View:"switch to view mode",TT_MB_Mode_Edit:"switch to edit mode",TT_MB_Mode_Add:"add content",TT_LB_delete:"delete",TT_LB_prevImg:"previous image",
TT_LB_nextImg:"next image",TT_LB_startSlideShow:"Start slideshow",TT_LB_stopSlideShow:"Stop slideshow",TT_LB_close:"close"}}var h={};return{getLocalizedString:a,getLocalizedString12:b,initLocalStrings:f}}(),R=function y(){function a(e,l){if(q(e))l.afterSuccess&&l.afterSuccess(e);else{k(e,l.dontTrace);l.afterError&&l.afterError(e)}}function b(e,l){l=l||{};if(G8.isLocaltest){e=G8.ax_localTesting.getSimulatedAJAX(e);a(e,l)}else $.post(m.scriptPathUserpage,e,function(p){if(!p||!p.length)Ea("ERROR: Ajax return empty");
else{p=f(p);a(p,l)}})}function f(e){try{return eval("("+e+")")}catch(l){Ea("ERROR: malformed json string",e);return{}}}function h(e,l){var p={1:"TEXT",2:"VIDEO",3:"GALLERY",4:"BLOGENTRY",5:"FRIEND",6:"COMMENT",7:"PROFILEIMG"},t={0:"OK",1:"WRONG SESSION",2:"ELAPSED SESSION",3:"WRONG LOGIN",4:"LOCKED LOGIN"},r={SELF:1,ALL:2,FRIENDS:3};if(e=="STATE_ERROR")return t[l];else if(e=="PRIVACY_FLAGS")return r[l];else if(e=="FEED_ACTION")return p[l]}function j(e,l){T.tglPreloader(false);e=z.readObj("json",e);
e=e.actionError;if(e==1701){T.refreshCaptcha(l);ma.markFieldError(l.find(".Vali_captcha"),"captcha")}}function g(e,l){e=z.readObj("json",e);e=e.actionError;if(e==2){T.refreshCaptcha(l);ma.markFieldError(l.find(".Vali_email"),"mailMatch")}}function q(e){e=z.readObj("json",e);return e.success==1&&e.actionError==0&&e.actionException==0&&e.stateError==0}function o(e,l){var p=true;l&&$.each(l,function(t,r){if(e==r)return p=false});return p}function k(e,l){var p=z.readObj("json",e);e=p.actionError;var t=
p.stateError,r=p.authed;if(r==0){J.tglUserChronjob("logged",false);J.tglUserChronjob("notLogged",false);l=m.parsedProfileUser.url;ea.gotoUrl("http://"+l)}else if(p.action==27||p.action==3||p.authed!=m.loggedData.userAuthedStatus)if(p.authed<m.loggedData.userAuthedStatus){m.loggedData.userAuthedStatus=p.authed;m.loggedData.loginError=t;J.displayPage();qa.handleLoginState()}else{m.loggedData.userAuthedStatus=p.authed;m.loggedData.loginError=t}else if(o(e,l)){l=n("HL_BP_ajaxError");e=n("Text_BP_ajaxError",
e);T.alertt({headline:l,msg:e})}}return{post:b,jsonToObj:f,getAjaxConst:h,handleCaptchaError:j,handlePWRestoreEmailError:g,isSuccess:q,traceAjaxError:k}}(),na=function y(){function a(f,h,j){h.data("pMapping_"+f,j)}function b(f,h){return h.data("pMapping_"+f)}return{setJDomToObjMapping:a,getJDomToObjMapping:b}}(),ia=function y(){function a(){var k=arguments,e=k[0];k=k[1]!=undefined?G8.ax_jqxtnd.arrayCutFirst(k).join(""):"";var l=e.cl?' class="'+e.cl+'"':"",p=e.id?' id="'+e.id+'"':"",t=e.pos?"position:"+
e.pos+";":"";e=e.hid?"display:none;":"";e=t!=""||e!=0?' style="'+t+e+'"':"";return"<div"+p+l+e+">"+k+"</div>"}function b(k,e,l,p){return h("static",k,e,l,p)}function f(k,e,l,p){return h("theme",k,e,l,p)}function h(k,e,l,p,t){e=e?ea.prefixSrc(k,e):"";l=l?' class="'+l+'"':"";p=p?' alt="'+Z.strToAlt(p)+'"':"";t=t?' id="'+t+'"':"";m.Preloading.collectEssentials&&sa.addStackEssentialImg(e);return'<img src="'+e+'"'+l+p+t+" />"}function j(){var k=arguments,e=k[0];k=k[1]?G8.ax_jqxtnd.arrayCutFirst(k).join(""):
"";var l=e.cl?' class="'+e.cl+'"':"",p=e.id?' id="'+e.id+'"':"";if(e.e=="inp")return'<input type="text"'+l+p+" />";else if(e.e=="pw")return'<input type="password"'+l+p+" />";else if(e.e=="txt")return"<textarea"+l+p+"></textarea>";else if(e.e=="sp")return"<span"+l+p+">"+k+"</span>"}function g(){var k=arguments,e=k[0];k=k[1]?G8.ax_jqxtnd.arrayCutFirst(k).join(""):"";var l=e.id?' id="'+e.id+'"':"";e=e.cl?' class="'+e.cl+'"':"";return"<span"+l+e+">"+k+"</span>"}function q(k){if(!k.url)k.url=k.name;var e=
k.id?' id="'+k.id+'"':"",l=k.cl?' class="'+k.cl+'"':"";if(!k.url.hasStr("http://","https://"))k.url="http://"+k.url;return'<a href="'+k.url+'" target="_blank"'+e+l+">"+k.name+"</a>"}function o(k){k=k||{};if(!k.size)k.size="small";var e=k.size=="small"?"BP_layoutSmall":"BP_layoutBig",l=k.headline!=undefined?d({cl:"BP_contHeadline"},k.headline):"",p=k.content!=undefined?d({cl:"BP_contCenter"},k.content):"";k=k.controls!=undefined?d({cl:"BP_contControls"},k.controls):"";return e='<table class="'+e+' BP"><tr class="BPT"><td class="BPTL"></td><td class="BPTM"></td><td class="BPTR"></td></tr><tr><td class="BPL"></td><td class="BP_contents">'+
l+p+k+'</td><td class="BPR"></td></tr><tr class="BPB"><td class="BPBL"></td><td class="BPBM"></td><td class="BPBR"></td></tr></table>'}return{makeDiv:a,makeImageStatic:b,makeImageTheme:f,makeImg:h,makeElement:j,makeSpan:g,makeLink:q,makeBP:o}}(),X=function y(){function a(o,k){var e=k.index(o);o=e>0?z.getEEId(k.eq(e-1)):0;k=e<k.length-1?z.getEEId(k.eq(e+1)):0;return{poslast:o,posnext:k}}function b(o){var k=o.data.show,e=o.data.cssClass;o=o.data.parentSelector?$(this).parents(o.data.parentSelector).find(o.data.tglObjSelector):
$(this);o.tglClass(e,k)}function f(o,k){k=Math.round((o.length-1)*k);return $.isArray(o)?o[k]:o.eq(k)}function h(o,k){return{x:o.pageX-k.left(),y:o.pageY-k.top()}}function j(o){return{x:o.pageX-wa.scrollLeft(),y:o.pageY-wa.scrollTop()}}function g(o,k,e){var l=e.eq(0),p,t;e.each(function(){var r=$(this),x=r.top(),s=x+r.height();if(k>=x)l=r;t=k>s?true:false});if(t)l=false;else p=k<l.top()+l.height()/2?"before":"after";return{object:l,position:p}}function q(o,k){o=k?o.find(k):o;return $.trim(o.val())}
return{getNeighborIds:a,tglHoverClass:b,pickItemByPercent:f,getRelativeMouse:h,getViewportMouse:j,mouseOverObj:g,readFormVal:q}}(),Q=function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f)}function b(){var s=d({id:"TT_StandTT",pos:"absolute",hid:true},d({cl:"TT_content idContents"})+d({cl:"TT_ttTL"})+d({cl:"TT_ttTR"})+d({cl:"TT_ttBL"})+d({cl:"TT_ttBR"})+d({cl:"clr"}));J.appendGlobalDomString(s)}function f(){var s=["TT_StandTT"];
J.setDOMReference(s)}function h(s,u,A){if(A=="lightbox")u?$("#LBImg").stopp().fadeTo(500,0.3):$("#LBImg").stopp().fadeTo(500,1);else $.browser.msie||(u?s.stopp().fadeTo(500,0.3):s.stopp().fadeTo(500,1))}function j(s){var u=770;s=s.data.show;var A=$(this);A.find(".Act_idFadeImgLo");A=A.find(".Act_idFadeImgHi");s?A.tglFadeIn(u):A.tglFadeOut(u)}function g(s){var u=40,A="[...]",E=s.html().br2nl(),G=m.parsedProfileUser.url.match(/[a-z]+\.[a-z]+$/)[0],w=/\b((((http|https):\/\/)?www)|(http|https))\S+\b/g;
E=E.replace(w,function(C){C=!C.hasStr("http://","https://")?"http://"+C:C;var H=C.replace("http://","").replace("https://","");H=H.indexOf("www.")==0?C.replace("http://","").replace("https://",""):C;if(H.length>u)H=H.substr(0,u)+A;var S=C.hasStr(G)?"_self":"_blank";return'<a href="'+C+'" target="'+S+'">'+H+"</a>"});w=/\b\S+@\S+/g;E=E.replace(w,function(C){return'<a href="mailto:'+C+'">'+C+"</a>"});s.html(E.nl2br())}function q(s){function u(){$(this).addClass("linkHi")}function A(){$(this).removeClass("linkHi")}
s.bindOnce("mouseenter",u).bindOnce("mouseleave",A)}function o(s){return s=s.isChildOf("#UB,.BP,#LB_Popup,#Notify")?true:false}function k(s){var u=$(this),A=s.data&&s.data.mode||"standard",E=s.data&&s.data.imgObj?s.data.imgObj:u.hasClass("EE_galImg")?u.find(".EE_OBJ"):u,G=s.data&&s.data.imgObj!=undefined,w=c.TT_StandTT;w.tglClass("nonTheme",o(u));u=X.getRelativeMouse(s,E);if(!E.isDisbld())if(!($.browser.msie&&$.browser.version<8)){var C=E.getAltText();if(C&&C!=""){var H=$(".idContents",w);if(A=="imageTitle"&&
m.userCommentsAllowed)C+=" ("+M("infoicon_theme_comment_tt.png")+E.parent().getIdFromClass("tCmt_")+")";H.html(C);A=G?E.parent().parent():E.parent();w.prependTo(A).tglFadeInXB(300).cloneDim(H,{margin:true});A=H.width();H=H.height();s=X.getViewportMouse(s);G=wa.height();C=wa.width();A=s.x<C-(A+50)?10:-A-30;s=s.y<G-(H+50)?10:-H-30;w.setPosTo(E,["LEFTI",u.x+A],["TOPI",u.y+s]);ca.bindOnce("mousemove",{ttDiv:w,imgObj:E,xOff:A,yOff:s},e)}}}function e(s){var u=s.data.ttDiv,A=s.data.imgObj,E=s.data.xOff,
G=s.data.yOff;s=X.getRelativeMouse(s,A);u.setPosTo(A,["LEFTI",s.x+E],["TOPI",s.y+G])}function l(){$(this);if(!($.browser.msie&&$.browser.version<8)){var s=c.TT_StandTT;ca.unbind("mousemove",e);s.is(":visible")&&s.tglFadeOutXB(300,function(){$(this).hide()})}}function p(){var s=$(this);s.isDisbld()||s.isActImg()||s.setImgHi()}function t(){var s=$(this);s.isDisbld()||s.isActImg()||s.setImgLo()}function r(s){if(s==undefined)s=ca;$Self("img.iActObj, a.iActObj",s).addClass("iRollover").bindOnce("mouseenter",
k).bindOnce("mouseleave",l).bindOnce("mouseenter",p).bindOnce("mouseleave",t);s.setImgLo_HiOnly()}function x(s){function u(A){var E=$(this).find(".Act_idFadeImgLo");A.target!=E[0]&&E.trigger("click")}if(s==undefined)s=ca;$Self("img.iFadeImg",s).filter(function(){return $(this).parents(".Act_idImgCrossfader").length==0}).filter(function(){var A=$(this);if($.browser.msie&&A.hasClass(".noFadeMsie")){A.bindOnce("mouseenter",k).bindOnce("mouseleave",l);return false}else return this}).wrap(d({cl:"Act_idImgCrossfader"})).parent().bindOnce("mouseenter",
{show:true},j).bindOnce("mouseleave",{show:false},j).each(function(){var A=$(this),E=A.find(".iFadeImg");A.width(E.width()).height(E.height()).bindOnce("mouseenter",{imgObj:E},k).bindOnce("mouseleave",{imgObj:E},l).bindOnce("click",u)}).find(".iFadeImg").each(function(){var A=$(this);A.clone().hide().appendTo(A.parent()).addClass("Act_idFadeImgHi").switchSrc("_lo.","_hi.");A.addClass("Act_idFadeImgLo")})}G8.globalSubscriber.bindOnce("initClasses",a);return{bindLinkStyle:q,ent_tt:k,lea_tt:l,extendTextLinks:g,
extendHoverAndTt:r,extendFadeImgs:x,tglObjToDelete:h}}(),z=function y(){function a(j,g){var q;if(j=="elementJ")q=a("element",a("json",g).element);else if(j=="element")q={id:g[0],type:g[1],mode:g[2],privacy:g[3],view:g[4],totalComments:g[10],children:g[11],dom:g[12],value1:String(g[13])||false,line1:String(g[14])||false,line2:String(g[15])||false,text1:String(g[16])||false,date1:g[15]||false};else if(j=="feedElement"){var o=[];$.each(g[6],function(k,e){o.push(a("feedElement",e))});q={id:g[0],type:g[1],
mode:g[2],privacy:g[3],totalComments:g[5],children:o,value1:g[7]||false,line1:String(g[8])||false,line2:String(g[9])||false,text1:String(g[10])||false,date1:g[9]||false}}else if(j=="json")q={action:g.ACTION,stateError:g.STATE_ERROR,actionError:g.ACTION_ERROR,actionException:g.ACTION_EXCEPTION,success:g.SUCCESS,element:g.ELEMENT,authed:g.AUTHED,themeId:g.THEME?g.THEME.ID:null,faviconPath:g.PROFILE?h("share",g.PROFILE[4],"normal"):null,userImgPath:g.PROFILE?h("share",g.PROFILE[5],"normal"):null,loggedData:g.LOGGED_DATA,
hitCountVars:g.HITCOUNT,comment:g.COMMENT};else if(j=="friendsJ")q={totalFriends:g.FRIENDS.totalFriends,users:g.FRIENDS.users};else if(j=="user"){g=g||[];q={id:g[0],url:g[1],name:String(g[2]),imgId:g[3],lastUpdated:g[4],UPState:g[5],fState:g[6]}}else if(j=="dialogsJ")q={totalDialogs:g.DIALOGS.totalDialogs,dialogs:g.DIALOGS.dialogs,totalNewMessages:g.DIALOGS.totalNewMessages,totalMessages:g.DIALOGS.totalMessages};else if(j=="dialog")q={user:a("user",g.user),totalNewMessages:g.totalNewMessages,totalMessages:g.totalMessages,
messages:g.messages};else if(j=="message")q={mid:g[0],uidSend:g[1],uidReci:g[2],state:g[3],date:g[4],subject:String(g[5]),text:g[6]?String(g[6]):""};else if(j=="friendsfeedJ")q={totalNews:g.FRIENDSFEED.totalNews,news:g.FRIENDSFEED.news};else if(j=="news")q={nid:g[0],uid:g[1],content:g[2],contentType:g[3],feedAction:R.getAjaxConst("FEED_ACTION",g[4]),date:g[5]};else if(j=="cmtEntryObj")q={id:b(g),text:g.find(".CM_entryText").html(),userImgId:f(g.find(".CM_entryUserImg img")),userName:g.find(".CM_entryUsername").html()};
else if(j=="commentsJ")q={totalComments:g.COMMENTS.totalComments,totalCBComments:g.COMMENTS.totalCBComments,comment:g.COMMENTS.comment,comments:g.COMMENTS.comments};else if(j=="comment")q={id:g[0],userData:a("user",g[1]),date:g[2],text:String(g[3]),commentedElement:g[4]?a("feedElement",g[4]):false,commentedUser:g[5]?a("user",g[5]):false};else if(j=="CB")q={id:g[0],privacy:g[1],collapsed:g[2]==0,totalComments:g[3]};else if(j=="BEntry")q={id:g[0],date:g[1],headline:g[2],totalComments:g[3]};else if(j==
"themePV")q={id:g[0],name:g[1],path:g[2],headerImgs:g[3]};else if(j=="theme"){j=[];for(q=0;q<g[3];q++)j.push(g[4].replace(g[5]+".jpg",q+".jpg"));q={id:g[0],name:g[1],src:g[2],currImgPath:g[4],headerImgs:j}}else if(j=="themeJ")q=a("theme",g.THEME);else if(j=="headerImg")q={id:g[0],src:g[1]};else if(j=="friendshipJ")q={id:g.FRIENDSHIP[0],DOM:g.FRIENDSHIP[7]};else if(j=="FRequestsJ")q={totalRequests:g.REQUESTS.totalRequests,requests:g.REQUESTS.requests};else if(j=="FRequest")q={userData:a("user",g[0]),
text:g[1],date:g[2]};else if(j=="friendObj")q={id:b(g),imgId:f(g.find(".FO_idImgFImg")),url:g.find(".FO_idFUrl").html(),name:g.find(".FO_idFName").html(),fState:la.getFriendFlag(g)};else if(j=="auth")if(32>g&&g>=16)q="ownerLogged";else if(16>g&&g>=8)q="friendLogged";else if(8>g&&g>=4)q="visitorLogged";else if(4>g&&g>=0)q="notLogged";return q}function b(j){return j.attr("id").replace("db_","").replace("dbComment_","").replace("dbHeader_","").replace("dbFriend_","")}function f(j){j=j.srcF();var g=ea.getQueryParam(j,
"showimg");if(G8.isLocaltest)return j;return g}function h(j,g,q){j=j=="share"?m.scriptPathShare:m.scriptPathUserpage;j=j+"?action=8&showimg=IMGID&type=IMGTYPE";if(G8.isLocaltest)return g.replace("_normal.jpg","_"+q+".jpg").replace("_thumb.jpg","_"+q+".jpg").replace("_mini.jpg","_"+q+".jpg");return j.replace("IMGID",g).replace("IMGTYPE",q)}return{readObj:a,getEEId:b,getImgId:f,makeImgPathFromId:h}}();jQuery.fn.sortElements=function(){var y=[].sort;return function(a,b){b=b||function(){return this};
var f=this.map(function(){var h=b.call(this),j=h.parentNode,g=j.insertBefore(document.createTextNode(""),h.nextSibling);return function(){if(j===this)throw new Error("You can't sort elements if any one is a descendant of another.");j.insertBefore(this,g);j.removeChild(g)}});return y.call(this,a).each(function(h){f[h].call(b.call(this))})}}();var Z=function y(){function a(k){k=k||"";return k.replace(/\[/g,"<").replace(/\]/g,">")}function b(k){k=k||"";return k.replace(/</g,"[").replace(/>/g,"]")}function f(k,
e){function l(p){return p<10?"0"+p:p}k=new Date(k*1E3);e=e=="long"?n("Format_dateLong"):n("Format_dateShort");return e.replace("DD",l(k.getDate())).replace("MM",l(k.getMonth()+1)).replace("JJJJ",k.getFullYear()).replace("HH",l(k.getHours())).replace("mm",l(k.getMinutes()))}function h(k,e){var l=k.length>e?"...":"";return k.substr(0,e)+l}function j(k,e){if(k.width()>e)for(var l=k.html(),p=l,t=0;t<l.split(" ").length;t++){p=q(p);k.html(p);if(k.width()<=e)break}}function g(k){return"<b>"+h(k.name,25)+
"</b> ["+k.url+"]"}function q(k){var e=o(k),l=Math.round(e.length/2);return k=k.replace(e,e.slice(0,l)+" "+e.slice(l))}function o(k){k=k.split(" ").sort(function(e,l){return l.length-e.length});return k[0]}return{altToStr:a,strToAlt:b,formatDate:f,shortenText:h,forceLinebreak:j,formatUser:g}}(),ja=function y(){function a(f,h,j){if(f.data("expanded")){f.slideUp(300).data("expanded",false);b(j,h,false)}else{f.slideDown(300).data("expanded",true);b(j,h,true)}}function b(f,h,j){var g={CB:[n("TT_CB_Tgl_show"),
n("TT_CB_Tgl_hide")],allFriends:["",""],comments:[n("TT_CM_Tgl_show"),n("TT_CM_Tgl_hide")],allComments:["",""],PCMS_Reply:[n("TT_MS_Reply_Tgl_show"),n("TT_MS_Reply_Tgl_hide")],PCMS_FullDialog:["",""],PCMS_Dialog:["",""],PCMS_Message:["",""],UL_errorImgList:["",""]};j?h.switchSrc("collapsed_lo.","expanded_lo.").switchSrc("collapsed_hi.","expanded_hi.").setAltText(g[f][1]):h.switchSrc("expanded_lo.","collapsed_lo.").switchSrc("expanded_hi.","collapsed_hi.").setAltText(g[f][0])}return{tglBox:a,tglCollapseToggler:b}}(),
ea=function y(){function a(j,g){var q=false;if(j.hasStr("?")){j=j.substr(j.indexOf("?")+1);j=j.split("&");$.each(j,function(o,k){o=k.split("=");if(o[0]==g){q=o[1];return false}})}return q}function b(){return staticHost=m.staticResPaths[0]}function f(j,g){var q=j=="staticCSS"?m.staticResPaths[0]:b(g);j=j=="theme"?q+m.themeImgsPathSuffix:q+m.profileImgsPathSuffix;return g.hasStr("file://","http://",m.scriptPathUserpage+"?",m.scriptPathShare+"?","dbressource/",j)?g:j+g}function h(j,g){if(g)window.open(j);
else location.href=j}return{getQueryParam:a,getStaticHostBySrcName:b,prefixSrc:f,gotoUrl:h}}(),W=function y(){function a(){var e=new Date,l=setInterval(function(){if($("a.fvd_ytl").length){$("a.fvd_ytl").parent().remove();clearInterval(l)}else{var p=new Date;p-e>2E3&&clearInterval(l)}},100)}function b(e){var l;if(m.deviceConfig){if(q())if(m.deviceConfig.iPhone&&m.deviceConfig.iPhone[e]!=undefined)return m.deviceConfig.iPhone[e];else if(m.deviceConfig.allMobile&&m.deviceConfig.allMobile[e]!=undefined)return m.deviceConfig.allMobile[e];
if(o())if(m.deviceConfig.allMobile&&m.deviceConfig.allMobile[e]!=undefined)return m.deviceConfig.allMobile[e]}return l}function f(){if($.browser.msie&&$.browser.version<8){$("body").addClass("XB_msie");var e=$(d({cl:"BP_warningsBox"},d({cl:"BP_contHeadline"},n("HL_BP_msieDetect"))+d({cl:"BP_contCenter"},d({cl:"BP_centered"},n("Text_BP_msieDetect"),d({id:"Page_MsieBrowserIcons"},da({name:F("icon_get_ff.png","iActObj","Firefox"),url:"http://www.firefox.com"}),da({name:F("icon_get_gc.png","iActObj",
"Google Chrome"),url:"http://www.google.com/chrome"}),da({name:F("icon_get_sf.png","iActObj","Apple Safari"),url:"http://www.apple.com/safari"}))))));J.appendPageWarnings(e)}}function h(e){if($.browser.msie){e=e||ca;var l=ea.prefixSrc("static","blank.gif");e.find(".fixPNGImg").each(function(){var p=$(this),t=p.attr("src");p.attr("src",l).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+t+"',sizingMethod='scale')")});e.find(".fixPNGBg").each(function(){var p=$(this),t=p.css("background-image");
bgImgSrc=t.match(/[^(url\()]\S*[^\)]/);if(bgImgSrc!=""&&this.runtimeStyle)p.get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+bgImgSrc+"',sizingMethod='scale')"})}}function j(){return navigator.userAgent.indexOf("Chrome")!=-1}function g(){return navigator.userAgent.indexOf("Safari")!=-1}function q(){return navigator.userAgent.indexOf("iPhone")!=-1}function o(){return window.screen.height&&window.screen.width&&window.screen.height*window.screen.width<61440}function k(){if(navigator.userAgent.hasStr("Windows NT 7",
"Windows NT 6")){var e=$(".Profile_idSlogan").html();e&&e.indexOf('"')==0&&$(".Profile_idSlogan").html(e.substr(1,e.length-2))}}return{removeFlvPlugLinks:a,handleDetectCrossbrowser:f,fixPNGs:h,isChrome:j,isSafari:g,isIPhone:q,fixProfileSlogan:k,getDeviceConfig:b}}(),ra=function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initCreatePageDOMString",f).bindOnce("initExtendPageDOM",h).bindOnce("extendEE",b)}function b(B,v){L.isOwner()&&$Self(".EE_video",v).each(function(){new Ya($(this))})}
function f(){if(L.isOwner()){var B="";B+=d({id:"Video_Edit",hid:true},d({id:"Video_EditInfo"},d({id:"Video_EditInfoText"},n("Text_Video_insertVideolink"),d({cl:"Help_infoBtnReplace"})))+ga({e:"inp",id:"Video_Edit_Input"})+d({id:"Video_EditStatus"})+d({cl:"GEN_editControls"},M("icon_theme_ok_lo.png","idBtnOk iActObj",n("TT_GEN_save")),M("icon_theme_cancel_lo.png","idBtnCancel iActObj",n("TT_GEN_cancel"))));J.appendGlobalDomString(B)}}function h(){if(L.isOwner()){var B=["Video_Edit","Video_Edit_Input",
"Video_EditStatus"];J.setDOMReference(B);g()}}function j(B){S=B}function g(){Ka.extendInfoBtn(c.Video_Edit.find(".Help_infoBtnReplace"),"videoEmbedding","theme");c.Video_Edit_Input.bindOnce("click",A).bindOnce("change",r).bindOnce("keyup",x).bindOnce("focus",s).bindOnce("blur",u);c.Video_Edit.find(".idBtnOk").bindOnce("click",E).end().find(".idBtnCancel").bindOnce("click",G)}function q(){g();k();return c.Video_Edit}function o(){return c.Video_Edit}function k(){Ka.resetInfoTTs(c.Video_Edit);l();e(false);
c.Video_Edit_Input.val("")}function e(B){B?c.Video_Edit.find(".GEN_editControls").show():c.Video_Edit.find(".GEN_editControls").hide();S.setForceKeepOpen(B)}function l(B){B=B=="ok"?n("Text_Video_Status_Ok"):B=="notSupported"?n("Text_Video_Status_NotSupported"):B=="notRecognized"?n("Text_Video_Status_NotRecognized"):"";c.Video_EditStatus.html(B)}function p(){var B=S.getOrigUrl();S.changeVideoUrl(B)}function t(){var B=c.Video_Edit_Input.val();B=H(B);if(B.dataState=="ok"){l("ok");B=B.url;S.changeVideoUrl(B)}else if(B.dataState==
"notSupported"){p();l("notSupported")}else{p();l("notRecognized")}e(true)}function r(){t()}function x(){t()}function s(){e(true)}function u(){c.Video_Edit_Input.val()==""&&e(false)}function A(){$(this).select()}function E(){var B=c.Video_Edit_Input.val();B=H(B);if(B.dataState=="ok"){var v=S.getDbId(),D=B.url;S.changeVideoUrl(D);R.post({id:v,action:9,type:5,value1:D},{afterError:function(){p()},afterSuccess:function(){S.saveNewUrl(D)}})}w()}function G(){p();w()}function w(){k();c.Video_Edit_Input.val("")}
function C(B,v){var D={normal:{width:600,height:361},thumb:{width:216,height:130}},K={allowScriptAccess:"never",allowNetworking:"internal",wmode:"transparent",allowFullScreen:"true"},N=D[v].width;v=D[v].height;var O="",aa="";$.each(K,function(fa,V){O+=" "+fa+'="'+V+'"';aa+='<param name="'+fa+'" value="'+V+'" />'});K="";if(B.hasStr("vimeo.com/"))K+='<iframe src="'+B+'" width="'+N+'" height="'+v+'" frameborder="0" class="videoIframe"></iframe>';else{K+='<object width="'+N+'" height="'+v+'">';K+='<param name="movie" value="'+
B+'" />';K+=aa;K+='<embed src="'+B+'" width="'+N+'" height="'+v+'" type="application/x-shockwave-flash" '+O+"></embed>";K+="</object>"}return K}function H(B){var v=false;v=["www.youtube.com","www.youtube-nocookie.com","video.gmx.net","www.gmx.net","video.web.de","www.liveleak.com","www.metacafe.com","video.google.com","www.vimeo.com","vimeo.com","vids.myspace.com","mediaservices.myspace.com","www.break.com","embed.break.com","www.veoh.com","www.tudou.com","video.aol.com","www.cbs.com","www.dailymotion.com",
"www.viddler.com","juggling.tv"];var D="348",K="282",N,O,aa,fa,V=[],I="MarkupObj";if(typeof B=="string")B.hasStr("<")||(I="Url");if(I=="MarkupObj"){I=$(B);B=$Self("iframe",I);if(B.length){N=B.attr("src");O=B.attr("width");aa=B.attr("height")}B=$Self("embed",I);if(B.length){N=B.attr("src");O=B.attr("width");aa=B.attr("height");fa=B.attr("flashVars")}else{B=$Self("object",I);if(B.length){N=B.attr("data");O=B.attr("width");aa=B.attr("height");if(N=="")N=B.find("param[name='movie']").attr("value");fa=
B.find("param[name='FlashVars']").attr("value")}}if(!O&&B.css("width"))O=B.css("width").stripCssUnit();if(!aa&&B.css("height"))aa=B.css("height").stripCssUnit();O||(O=D);aa||(aa=K);if(N){N=N.replace("youtube-nocookie.com","youtube.com");if(N.hasStr("youtube.com")){B=N.hasStr("&")?N.slice(0,N.indexOf("&")).replace("http://www.youtube.com/v/",""):N.slice(0).replace("http://www.youtube.com/v/","");V.push("http://img.youtube.com/vi/"+B+"/1.jpg");V.push("http://img.youtube.com/vi/"+B+"/2.jpg");V.push("http://img.youtube.com/vi/"+
B+"/3.jpg");N="http://www.youtube.com/v/"+B+"&fs=1&rel=0&color1=0x464646&color2=0xCDCDCD"}}}else if(I=="Url"){O=B;O=O.stripNl();O.hasStr("http://")||(O="http://"+O);if(O.hasStr("www.youtube.com"))N=O.replace("www.youtube.com/watch?v=","www.youtube.com/v/");else if(O.hasStr("vimeo.com"))N=O.hasStr("www.vimeo.com/")?O.replace("www.vimeo.com/","player.vimeo.com/video/"):O.replace("vimeo.com/","player.vimeo.com/video/");else if(O.hasStr("video.gmx.net","www.gmx.net"))N=O.replace("www.gmx.net","video.gmx.net").replace("video.gmx.net/watch",
"video.gmx.net/movie");else if(O.hasStr("video.web.de"))N=O.replace("video.web.de/watch","video.web.de/movie");else if(O.hasStr("www.liveleak.com"))N=O.replace("www.liveleak.com/view?i=","www.liveleak.com/e/");else if(O.hasStr("vids.myspace.com")){if(B=O.match(/videoid=[^&]*/)){B=B[0].toString().replace("videoid=","");N="http://mediaservices.myspace.com/services/media/embed.aspx/m="+B}}else if(O.hasStr("www.veoh.com"))if(B=O.match(/\/watch\/\S*/)){B=B[0].toString().replace("/watch/","");N="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId="+
B}O=D;aa=K}if(N==undefined||N.hasStr(" ")||!N.hasStr("."))return{dataState:false};else{v=N.hasStr(v)?"ok":"notSupported";if(N.hasStr("www.youtube.com")&&!N.hasStr("fs="))N+="&fs=1";return{dataState:v,url:N,width:O,height:aa,flashVars:fa,thumbnailSrcs:V}}}var S;G8.globalSubscriber.bindOnce("initClasses",a);return{makeEmbedMarkup:C,getFreshControls:q,getControls:o,setCurrVideoObj:j,readEmbedVideo:H}}(),Ya=function(y){y.wrap('<div class="Video_editBox"></div>').bindOnce("mouseenter",{show:true,thiss:this},
this._hov_tglEditPane);this._glo_wrapBox=y.parent(".Video_editBox").bindOnce("mouseleave",{show:false,thiss:this},this._hov_tglEditPane).bindOnce("mouseenter",{show:true,thiss:this},this._hov_tglEditPane);this._glo_editPane=$('<div class="Video_editPane"></div>').hide().insertBefore(y);Q.extendHoverAndTt(y.add(this._glo_editPane));this._glo_jDomObj=y;this._glo_origUrl=ra.readEmbedVideo(y.outerHtml()).url;this._glo_dbId=z.getEEId(y);this._glo_contextMenuIsOpen=false};Ya.prototype={_hov_tglEditPane:function y(a){var b=
a.data.thiss;if(J.isInEditMode()){a=a.data.show;var f=b._glo_editPane;if(a){ra.setCurrVideoObj(b);if(f.is(":hidden")){ra.getFreshControls().appendTo(b._glo_wrapBox).show();f.tglFadeInXB(300)}}else if(!b._glo_contextMenuIsOpen){ra.setCurrVideoObj(false);ra.getControls().tglFadeOutXB(250);f.tglFadeOutXB(250)}}},saveNewUrl:function y(){this._glo_origUrl=ra.readEmbedVideo(this._glo_jDomObj.outerHtml()).url},_getVideoDomObj:function y(){var a=this._glo_jDomObj.find("object"),b=this._glo_jDomObj.find("embed"),
f=this._glo_jDomObj.find("iframe");return{objectObj:a,embedObj:b,iframeObj:f}},changeVideoUrl:function y(a){var b=this._getVideoDomObj(),f=a.hasStr("vimeo.com/"),h=b.iframeObj.length;if(this._glo_origUrl!=a)if(!f&&!h&&!$.browser.msie&&!W.isChrome()&&!W.isSafari()){b.objectObj&&b.objectObj.find("param[name=movie]").attr("value",a);b.embedObj&&b.embedObj.attr("src",a)}else if(f&&h)b.iframeObj&&b.iframeObj.attr("src",a);else{a=ra.makeEmbedMarkup(a,"normal");(b=b.objectObj.length?b.objectObj:b.iframeObj)&&
b.after(a).remove()}},getOrigUrl:function y(){return this._glo_origUrl},getDbId:function y(){return this._glo_dbId},setForceKeepOpen:function y(a){this._glo_contextMenuIsOpen=a}};var Ba=function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f)}function b(){if(L.isOwner()){var I="";I+=d({id:"UL_FlashUL",hid:true});I+=d({id:"PopUL_Status",hid:true},ia.makeBP({headline:n("HL_BP_UL_uploadImgs"),content:d({cl:"BP_centered"},d({id:"UL_Bar"},
d({id:"UL_BarMover"}),d({id:"UL_BarCover"})),d({id:"UL_Status"}),d({id:"UL_HelpInfo"},n("Text_UL_Helpinfo")),d({id:"UL_ErrorInfo"})),controls:F("icon_bp_ok_lo.png","idBtnOk iActObj",n("TT_GEN_close"))+F("icon_bp_cancel_lo.png","idBtnStop iActObj",n("TT_BP_cancelUpload"))}));I+=d({id:"UL_PopPredialog",hid:true},ia.makeBP({headline:n("HL_BP_UL_selectImgToUpload"),content:d({cl:"BP_centered"},n("Text_BP_UL_selectImgToUpload")),controls:F("icon_bp_upload_lo.png","idBtnUpload iActObj",n("TT_BP_upload"))+
F("icon_bp_cancel_lo.png","idBtnCancel iActObj",n("TT_GEN_cancel"))}));J.appendGlobalDomString(I)}}function f(){if(L.isOwner()){var I=["PopUL_Status","UL_PopPredialog","UL_FlashUL","UL_ErrorInfo","UL_Status","UL_Bar","UL_BarMover"];J.setDOMReference(I);c.UL_FlashUL.append(d({cl:"idFlashVersionNotAvailable"})).flashembed({src:m.profileData.resPath.replace("www."+m.mainHostDomain,m.parsedProfileUser.url)+"func/upload_applet.swf",allowScriptAccess:"always",allowNetworking:"all",wmode:"transparent",version:[m.flashVersion]});
fa=c.UL_FlashUL.find("object")[0];J.doFlashDetection(c.UL_FlashUL)}}function h(I){D=I;var P=c.UL_PopPredialog.find(".idBtnUpload");T.tglAlert(true,c.UL_PopPredialog,{callback:function(){c.UL_FlashUL.appendTo(P.parent()).setPosTo(P,"LEFTI","TOPI").cloneDim(P).show()}})}function j(){T.tglAlert(false,c.UL_PopPredialog)}function g(){var I=$(this);q(I)}function q(I){S||c.UL_FlashUL.appendTo(I).setPosTo(I,"LEFTI","TOPI").cloneDim(I).show()}function o(){S=true;var I;c.UL_PopPredialog.is(":visible")&&!$.browser.msie&&
c.UL_PopPredialog.opacity(0);if(D=="profileImg"){O="single";var P=z.getEEId(c.ProfileImg);I={action:9,id:P,value1:"Filedata"}}else if(D=="favicon"){O="single";I={action:7,icon:"Filedata"}}else if(c.UL_FlashUL.isOrIsChildOf(c.HeadImg_Upload)){O="single";D="headerImg";I={action:17,header:"Filedata"}}else if(c.UL_FlashUL.isChildOf(".EE_CBText")){O="multi";D="addTextImg";P=c.UL_FlashUL.parents(".EE_CBText");I=U("Contentblock",P);I=I.getId();I={action:10,type:4,parent:0,parentblock:I,poslast:0,posnext:0,
value1:"Filedata"};V=P}else if(c.UL_FlashUL.isChildOf(".EE_CBBlog")){O="multi";D="addBlogImg";P=c.UL_FlashUL.parents(".EE_CBBlog");I=U("Contentblock",P);I=I.getId();var ba=P.find(".BE_idBE");ba=z.getEEId(ba);I={action:10,type:4,parent:ba,parentblock:I,poslast:0,posnext:0,value1:"Filedata"};V=P}else if(c.UL_FlashUL.isChildOf(".EE_CBGal")){O="multi";D="addGalImg";P=c.UL_FlashUL.parents(".EE_CBGal");I=U("Contentblock",P);I=I.getId();I={action:10,type:4,parent:0,parentblock:I,poslast:0,posnext:0,value1:"Filedata"};
V=P}P=!G8.isLocaltest?G8.ax_jqxtnd.cookie("PREF"):"";O=="single"?C(n("Text_UL_Status_PleaseSelectSingle")):C(n("Text_UL_Status_PleaseSelectMulti"));aa=[];B=v=0;K=false;c.UL_ErrorInfo.html("").hide();c.UL_Bar.show();c.UL_BarMover.width(0);c.PopUL_Status.find(".idBtnOk,.idBtnStop").hide();return{multimode:O,ajaxParams:I,PREF:P,maxFileSize:m.UL.maxFileSize,selectWinFilterText:m.UL.selectWinFilterText,selectWinFilterExts:m.UL.selectWinFilterExts}}function k(){C(n("Text_UL_Status_SelectCanceled"));G()}
function e(I,P){function ba(){aa=P;v=I;if(v==0){var Aa=aa.join(", ");H("fileSize",{imageList:Aa});C(n("Text_UL_Status_NothingSelected"));E()}else if(aa.length>0){Aa=aa.join(", ");H("fileSize",{imageList:Aa})}T.tglAlert(true,c.PopUL_Status)}var oa=1;if(D=="addGalImg")oa=m.maxContents.totalImgsInGallery-V.find(".EE_galImg").length;else if(D=="addBlogImg")oa=m.maxContents.totalImgsInBentry-V.find(".EE_blogImg").length;else if(D=="addTextImg")oa=m.maxContents.totalImgsInTextCb-V.find(".EE_textCbImg").length;
oa<I?T.confirmm({headline:D=="addGalImg"?n("HL_UL_PreInfo_tooMuchImgsInGallery"):n("HL_UL_PreInfo_tooMuchImgsInBEntry"),contentText:D=="addGalImg"?n("Text_UL_PreInfo_tooMuchImgsInGallery",oa):n("Text_UL_PreInfo_tooMuchImgsInBEntry",oa),okTitle:n("TT_UL_PreInfo_upload"),okAction:function(){ba()},cancelTitle:n("TT_UL_PreInfo_noUpload"),cancelAction:function(){E()}}):ba()}function l(I,P,ba){if(I=="errorSecurity")ba="Flash Securtiy";else if(I=="errorHTTP")ba="Flash HTTP";else if(I=="errorIO")ba="Flash IO";
H("other",{imageList:P,errorDetails:ba})}function p(I){H("other",{imageList:I,errorDetails:"Flash General"});G()}function t(){r();C(n("Text_UL_Status_LoadingImg",1,v,""));O=="multi"&&c.PopUL_Status.find(".idBtnStop").show().bindOnce("click",w)}function r(){function I(){var P=new Date;P=P-N;var ba=B/v,oa=(v-B)/v;P=P/ba*oa;ba=B<v?B+1:B;m.UL.ULTimeLeft=P;C(n("Text_UL_Status_LoadingImg",ba,v,s(m.UL.ULTimeLeft)))}N=new Date;m.UL.timeCalcInterval=setInterval(I,500)}function x(){if(m.UL.timeCalcInterval){clearInterval(m.UL.timeCalcInterval);
m.UL.timeCalcInterval=false}}function s(I){var P=Math.round(I/1E3);I=Math.floor(P/3600);var ba=Math.floor((P-I*3600)/60);P=P-I*3600-ba*60;P=P+" sek";if(ba>0)P=ba+" min "+P;if(I>0)P=I+" h "+P;return P}function u(I,P){B=I;if(P==1){P=280;c.UL_BarMover.width(Math.round(P*(I/v)));if(I<v)C(n("Text_UL_Status_LoadingImg",I+1,v,s(m.UL.ULTimeLeft)));else{x();C(n("Text_UL_Status_ImgsProcessing"))}}}function A(I,P){I=unescape(I);I=R.jsonToObj(I);var ba=z.readObj("json",I);if(R.isSuccess(I))if(D=="profileImg"){P=
z.readObj("elementJ",I).value1;P=z.makeImgPathFromId("UP",P,"normal");Sa.changeUploadedProfileImg(P)}else if(D=="favicon"){P=ba.faviconPath;Sa.changeUploadedFavicon(P)}else if(D=="addGalImg"){P=z.readObj("elementJ",I).dom;I=U("Gallery",V);I.addUploadedGalImg(P)}else if(D=="addBlogImg"){P=z.readObj("elementJ",I).dom;I=U("Blog",V);I.addUploadedBlogImg(P)}else if(D=="addTextImg"){P=z.readObj("elementJ",I).dom;I=U("TextCb",V);I.addUploadedTextCbImg(P)}else{if(D=="headerImg"){P=z.readObj("themeJ",I).currImgPath;
Qa.changeUploadedHeaderImg(P)}}else{K=true;if(ba.authed!=0&&ba.action!=27){I=ba.actionError;if(I==1202||I==1203)ba="fileSize";else if(I==1204)ba="ajaxFormat";else if(I==3005){ba="ajaxTotalItems";w()}else ba=I==1205||I==1206?"ajaxResolution":"other";H(ba,{imageList:P,errorDetails:"Ajax "+I})}else R.traceAjaxError(I)}}function E(){x();c.PopUL_Status.find(".idBtnStop").hide();if(D=="addGalImg"){J.initLightbox(V);var I=U("Contentblock",V);I.updateCBTotalItems()}else D=="profileImg"&&Sa.handleProfileImgRatio();
if(K){c.UL_Bar.fadeOut(300);c.PopUL_Status.find(".idBtnOk").show();C(n("Text_UL_Status_AllImgsUploadedError"))}else{C(n("Text_UL_Status_AllImgsUploadedSuccess"));T.tglAlert(false,c.PopUL_Status)}G()}function G(){if(c.UL_PopPredialog.is(":visible")){c.UL_PopPredialog.opacity(1);j()}S=D=false}function w(){fa.JS_stopUL();E()}function C(I){c.UL_Status.html(I)}function H(I,P){function ba(Ta,pa){pa=pa.errorDetails?pa.errorDetails:"";pa=$(d({cl:"UL_errorBox UL_idErrorBox_"+Ta},F("icon_bp_toggle_collapsed_lo.png",
"iActObj UL_errorToggler UL_idImgListToggler"),n("HL_UL_Error_"+Ta,pa),d({cl:"Help_infoBtnReplace"}),d({cl:"UL_errorBoxImgList",hid:true})));Q.extendHoverAndTt(pa);var kb=pa.find(".UL_idImgListToggler"),lb=pa.find(".UL_errorBoxImgList");Ka.extendInfoBtn(pa.find(".Help_infoBtnReplace"),"ULError_"+Ta,"BP");pa.find(".UL_idImgListToggler").bindOnce("click",function(){ja.tglBox(lb,kb,"UL_errorImgList")});return pa}P=P||{};K=true;c.UL_ErrorInfo.show();var oa=P.imageList?P.imageList+", ":"",Aa=c.UL_ErrorInfo.find(".UL_idErrorBox_"+
I);if(!Aa.length){Aa=ba(I,P).appendTo(c.UL_ErrorInfo).fadeIn(300);I=c.PopUL_Status.parents(".blockMsg");I.top(I.intCss("top")-15)}Aa.find(".UL_errorBoxImgList").append(oa);if(O=="single"){G();c.PopUL_Status.find(".idBtnOk").show()}}var S,B,v,D,K,N,O,aa,fa,V;G8.globalSubscriber.bindOnce("initClasses",a);return{showULPredialog:h,ent_bindAddBtnFlashHover:g,swf_selectStart:o,swf_selectCanceled:k,swf_selectEnd:e,swf_error:l,swf_generalFail:p,swf_onStart:t,swf_onProgress:u,swf_onServerReturn:A,swf_onEnd:E}}(),
Za=function y(a){this._glo_jDomObj=a;a.bindOnceProxy("mouseenter",{show:true},this._hov_tglCover,this).bindOnceProxy("mouseleave",{show:false},this._hov_tglCover,this);Q.extendHoverAndTt(a)};Za.prototype={_hov_tglCover:function y(a){var b=this._glo_jDomObj;if(J.isInEditMode())if(a=a.data.show){c.TextCbImg_Cover.prependTo(b).setPosTo(b,"TOPI","LEFTI").tglFadeIn(300);Q.extendHoverAndTt(c.TextCbImg_Cover);a=b.parents(".TextCbImg_idDropzone").find(".EE_textCbImg");b=a.index(b);a=a.length;c.TextCbImg_Cover_Move.find(".idBtnDown").tgl(b<
a-1).end().find(".idBtnUp").tgl(b>0)}else c.TextCbImg_Cover.tglFadeOut(250)}};var Pa=function y(){function a(){(k=W.getDeviceConfig("textCBDisabled"))||G8.globalSubscriber.bindOnce("initCreatePageDOMString",f).bindOnce("initExtendPageDOM",h)}function b(e){e=$(e.target);if(J.isInEditMode())if(e.isChildOf(c.TextCbImg_Cover_Delete.find(".idBtnDelete"))){e=e.parents(".EE_textCbImg");j(e);return false}else if(e.isChildOf(c.TextCbImg_Cover_Move.find(".idBtnUp"))){e=e.parents(".EE_textCbImg");g(e,"up");
return false}else if(e.isChildOf(c.TextCbImg_Cover_Move.find(".idBtnDown"))){e=e.parents(".EE_textCbImg");g(e,"down");return false}}function f(){if(L.isOwner()){var e=d({id:"TextCbImg_Cover",cl:"fixPNGBg",hid:true,pos:"absolute"},d({id:"TextCbImg_Cover_Move"},M("icon_bbar_arrowdown_lo.png","idBtnDown iActObj",n("TT_TextCbImg_moveImgDown")),M("icon_bbar_arrowup_lo.png","idBtnUp iActObj",n("TT_TextCbImg_moveImgUp"))),d({id:"TextCbImg_Cover_Delete"},M("icon_bbar_delete_lo.png","idBtnDelete iActObj",
n("TT_GEN_delete"))));J.appendGlobalDomString(e)}}function h(){if(L.isOwner()){c.TextCbImgAddBtnMaster=$(d({cl:"TextCbImg_idBtnAdd"},M("btn_theme_addimg_imgblog_lo.png","iActObj",n("TT_AddImg_uploadNewImgs"))));var e=["TextCbImg_Cover","TextCbImg_Cover_Delete","TextCbImg_Cover_Move"];J.setDOMReference(e);ca.bindOnce("click",b)}}function j(e){e.find(".EE_OBJ");var l=z.getEEId(e);Q.tglObjToDelete(e,true);T.confirmm({headline:n("HL_BP_Confirm_deleteImg"),okAction:function(){e.removeAni(300);R.post({id:l,
action:12})},okTitle:n("TT_GEN_delete"),cancelAction:function(){Q.tglObjToDelete(e,false)}})}function g(e,l){if(l=="up"){var p=e.prevAll(".EE_textCbImg");p.length&&q(e,l,p.eq(0))}else{p=e.nextAll(".EE_textCbImg");p.length&&q(e,l,p.eq(0))}}function q(e,l,p){var t=z.getEEId(e),r=e.top()-ca.scrollTop();e.css("height");e.slideUp(300,function(){l=="up"?e.insertBefore(p):e.insertAfter(p);e.slideDown(300);$("html,body").animate({scrollTop:e.top()-r},120);var x=X.getNeighborIds(e,e.parent().children(".EE_textCbImg"));
if(x.poslast==0)x.poslast=z.getEEId(e.parents(".EE_CBText").find(".textCb_colCBLeft .EE_OBJ"));R.post({id:t,action:9,type:4,poslast:x.poslast,posnext:x.posnext})})}function o(e,l){if(!k){var p=l.find(".TextCbImg_idBtnAdd");if(e){if(!p.length){p=c.TextCbImgAddBtnMaster.clone();p.insertBefore($(".idClr",l)).fadeIn(250);Q.extendHoverAndTt(p);p.bindOnce("mouseenter",Ba.ent_bindAddBtnFlashHover)}}else p.removeAni(300)}}var k;G8.globalSubscriber.bindOnce("initClasses",a);return{tglBtnAdd:o}}();(function y(){function a(){(_glo_textCBDisabled=
W.getDeviceConfig("textCBDisabled"))||G8.globalSubscriber.bindOnce("extendEE",b)}function b(f,h){$Self(".EE_CBText",h).each(function(){new $a($(this))})}G8.globalSubscriber.bindOnce("initClasses",a);return{}})();var $a=function y(a){this._glo_jDomObj=a;na.setJDomToObjMapping("TextCb",a,this);this._glo_id=z.getEEId(a);this._extendTextCbImgs(a);G8.globalSubscriber.bindOnceProxy("extendEE",this._subscriber_cus_extendEE,this)};$a.prototype={_extendTextCbImgs:function y(a){if(L.isOwner()){var b=this;$Self(".EE_textCbImg",
a).each(function(){var f=$(this);new Za(f,b)})}},_subscriber_cus_extendEE:function y(a,b){a=this._glo_jDomObj;if(a.isOrIsChildOf(b)||b.isOrIsChildOf(a))this._extendTextCbImgs(b)},addUploadedTextCbImg:function y(a){var b=this._glo_jDomObj;U("Contentblock",b);b.find(".EE_textCbImg").each(function(){var f=$(this),h=f.find(".EE_OBJ");if(h.attr("src").hasStr("showimg=4-0")){f.remove();return false}});a=$(a);a.insertBefore($(".TextCbImg_idBtnAdd",b));this._extendTextCbImgs(a);Q.extendHoverAndTt(a)}};(function y(){function a(){W.isIPhone()||
G8.globalSubscriber.bindOnce("initCreatePageDOMString",f).bindOnce("initExtendPageDOM",h).bindOnce("extendEE",b)}function b(g,q){$Self(".EE_txtS,.EE_txtM",q).each(function(){new ab($(this))})}function f(){if(L.isOwner()){var g=d({id:"TextEdit",hid:true},ga({e:"txt",id:"TextEdit_Input"})+d({cl:"GEN_editControls"},F("icon_edit_ok_lo.png","idBtnOk iActObj",n("TT_GEN_save")),F("icon_edit_cancel_lo.png","idBtnCancel iActObj",n("TT_GEN_cancel"))));J.appendGlobalDomString(g)}}function h(){W.fixProfileSlogan();
if(L.isOwner()){var g=["TextEdit","TextEdit_Input"];J.setDOMReference(g);ca.bindOnce("click",j)}}function j(g){g=$(g.target);if(J.isInEditMode())if(g.isChildOf(".EE_txtS:not(.idClpsdHl)")){g=g.parentsSelf(".EE_txtS");g=na.getJDomToObjMapping("editableText",g);g.startTextEdit();return false}else if(g.isChildOf(".EE_txtM")){g=g.parentsSelf(".EE_txtM");g=na.getJDomToObjMapping("editableText",g);g.startTextEdit();return false}}G8.globalSubscriber.bindOnce("initClasses",a);return{}})();var ab=function y(a){this._glo_jDomObj=
a;na.setJDomToObjMapping("editableText",a,this);this._glo_lineMode=a.hasClass("EE_txtS")?"single":"multi";this._glo_elementMode=a.hasClass("BE_idHeader")?"blogEntryHeadline":a.hasClass("BE_idCopy")?"blogEntryCopy":a.hasClass("idGalImgTitle")?"galImgTitle":this._glo_lineMode=="single"?"textSingle":"textMulti";this._glo_isSpecialField=a.hasClass("Profile_idName")?"profileName":a.hasClass("Profile_idSlogan")?"profileSlogan":a.is("h1.EE_txtS")?"cbHeadline":"";this._glo_id=z.getEEId(a);L.isOwner()&&a.bindOnceProxy("mouseenter",
{show:true},this._hov_tglEEText,this).bindOnceProxy("mouseleave",{show:false},this._hov_tglEEText,this);this._glo_lineMode=="multi"&&Q.extendTextLinks(a)};ab.prototype={_hov_tglEEText:function y(a){var b=this._glo_jDomObj;if(J.isInEditMode()&&!b.hasClass("idClpsdHl")){a=a.data.show;if($.browser.msie)a?b.addClass("msieEditableTextHi"):b.removeClass("msieEditableTextHi");else a?b.stopp().delay(200).fadeTo(300,0.65):b.stopp().fadeTo(300,1)}},startTextEdit:function y(){c.TextEdit_Input.bindOnceProxy("keyup",
this._kyU_textEdit,this);c.TextEdit.find(".idBtnCancel").bindOnceProxy("click",this._clk_textEditCancel,this).end().find(".idBtnOk").bindOnceProxy("click",this._clk_textEditSave,this);var a=this._glo_jDomObj;this._glo_origText=a.html();a.find("a").each(function(){var f=$(this),h=f.attr("href");if(h.indexOf("http://")==0||h.indexOf("https://")==0){var j=h.replace("http://","").replace("https://","");j.indexOf("www.")==0?f.html(j):f.html(h)}});var b=G8.ax_jqxtnd.htmlToInput(a.html());c.TextEdit_Input.cloneAsForm(a,
{color:"#FFFFFF"}).val(b);$.blockUI({overlayCSS:{opacity:0.65},message:c.TextEdit,clonePosObj:a,onMsgIn:function(){c.TextEdit.slideDown(300)}})},_saveTextEdit:function y(){var a=this._glo_jDomObj,b="...",f=X.readFormVal(c.TextEdit_Input);if(f=="")f=b;if(this._glo_isSpecialField=="profileSlogan"){if(f.indexOf('"')!=0)f='"'+f;if(f.lastIndexOf('"')!=f.length-1)f+='"'}b=G8.ax_jqxtnd.inputToHtml(f);if(this._glo_elementMode=="galImgTitle"){var h=$("#LB_Popup").data("origImgDivObj");b=z.getEEId(h);function j(x){h.find(".EE_OBJ").setAltText(x)}
j(f);this._endTextEdit();R.post({action:9,type:4,id:b,line1:f},{afterError:function(){j(this._glo_origText)},afterSuccess:function(x){x=z.readObj("elementJ",x).line1;j(x)}})}else if(this._glo_elementMode=="blogEntryHeadline"){var g=a.parents(".EE_CBBlog"),q=z.getEEId(g.find(".BE_idBE")),o=z.getEEId(g);function k(x){a.html(x);ha.modBlogArr(o,"changeEntry",{entryId:q,headline:x});x=U("Blog",g);x.updateBESelector(g.data("currEntryId"))}k(b);this._endTextEdit();R.post({action:9,type:6,id:q,line1:f},{afterError:function(){k(this._glo_origText)},
afterSuccess:function(x){x=z.readObj("elementJ",x).line1;k(x)}})}else if(this._glo_elementMode=="blogEntryCopy"){q=z.getEEId(a.parents(".BE_idBE"));function e(x){a.html(x);Q.extendTextLinks(a)}e(b);this._endTextEdit();R.post({action:9,type:6,id:q,value1:f},{afterError:function(){e(this._glo_origText)},afterSuccess:function(x){x=z.readObj("elementJ",x).value1;e(x)}})}else{var l=this._glo_elementMode=="textSingle"?2:3,p=this._glo_id,t=this;function r(x){a.html(x);if(t._glo_isSpecialField=="profileName"){L.updateUserName(x);
ya.resetFirstrunTooltip("profileName")}t._glo_isSpecialField=="profileSlogan"&&W.fixProfileSlogan();t._glo_elementMode=="textMulti"&&Q.extendTextLinks(a)}r(b);this._endTextEdit();R.post({id:p,action:9,type:l,value1:f},{afterError:function(){r(this._glo_origText)},afterSuccess:function(x){x=z.readObj("elementJ",x).value1;r(x)}})}},_endTextEdit:function y(){var a=this._glo_jDomObj;this._glo_isSpecialField=="cbHeadline"&&a.data("originalText",a.html());$.unblockUI({fadeOut:200,msgObj:c.TextEdit});c.TextEdit_Input.unbind("keyup",
this._kyU_textEdit);c.TextEdit.find(".idBtnCancel").unbind("click",this._clk_textEditCancel).end().find(".idBtnOk").unbind("click",this._clk_textEditSave)},_kyU_textEdit:function y(){var a=this._glo_jDomObj,b=c.TextEdit_Input;this._glo_elementMode=="galImgTitle"&&$("#LB_Bar_Meta").show();this._glo_lineMode=="single"&&b.val(b.val().stripNl());a.html(G8.ax_jqxtnd.inputToHtml(b.val())+"&nbsp;");b.clonePos(a).cloneDim(a,{offHeight:27,offWidth:6})},_clk_textEditSave:function y(){this._saveTextEdit()},
_clk_textEditCancel:function y(){var a=this._glo_jDomObj;a.html(this._glo_origText);this._endTextEdit()}};var Sa=function y(){function a(){G8.globalSubscriber.bindOnce("initCreatePageDOMString",f).bindOnce("initExtendPageDOM",h)}function b(l){l=$(l.target);if(J.isInEditMode())if(l.isChildOf(c.ProfImg_FaviconThumb)){q();return false}else if(l.isChildOf(c.ProfileImg)){g();return false}}function f(){if(L.isOwner()){var l=d({id:"ProfImg_Cover",cl:"iActObj fixPNGBg"},d({id:"ProfImg_FaviconThumb"},M(m.faviconSrc,
"iActObj",n("TT_changeFavicon"),"ProfImg_imgProfImg_FaviconThumb")));J.appendGlobalDomString(l)}}function h(){c.ProfileImg=$(".Profile_idUserImg");j();if(L.isOwner()){var l=["ProfImg_FaviconThumb","ProfImg_Cover"];J.setDOMReference(l);c.ProfileImg.bindOnce("mouseenter",{show:true},o).bindOnce("mouseleave",{show:false},o).find(".EE_OBJ").after(c.ProfImg_Cover.hide());c.ProfImg_FaviconThumb.bindTglHoverClass("ProfImg_faviconThumbBgHi");Q.extendHoverAndTt(c.ProfileImg);ca.bindOnce("click",b)}}function j(){function l(t){var r=
c.ProfileImg;t.attr("width")>t.attr("height")&&t.attr("width")>0?r.addClass("SHAF_userNormal_Landscape").removeClass("SHAF_userNormal_Portrait"):r.addClass("SHAF_userNormal_Portrait").removeClass("SHAF_userNormal_Landscape")}var p=c.ProfileImg.find(".EE_OBJ");l(p);$("<img />").bindOnce("load",function(){var t=$(this);l(t);t.remove()}).attr("src",p.attr("src"))}function g(){Ba.showULPredialog("profileImg")}function q(){Ba.showULPredialog("favicon")}function o(l){if(J.isInEditMode())(l=l.data.show)?
c.ProfImg_Cover.stopp().delay(200).tglFadeIn(300):c.ProfImg_Cover.stopp().tglFadeOut(300)}function k(l){var p=c.ProfileImg;p=p.find(".EE_OBJ");p.srcF(l);ya.resetFirstrunTooltip("profilePic")}function e(l){m.faviconSrc=l;$("link[rel='shortcut icon']").remove();$("<link>").attr({type:"image/x-icon",rel:"shortcut icon",href:m.faviconSrc}).appendTo("head");$("#ProfImg_imgProfImg_FaviconThumb").srcF(m.faviconSrc)}G8.globalSubscriber.bindOnce("initClasses",a);return{handleProfileImgRatio:j,changeUploadedProfileImg:k,
changeUploadedFavicon:e}}(),Qa=function y(){function a(){(l=W.getDeviceConfig("headerImgDisabled"))||G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f)}function b(){if(L.isOwner()){var p=d({id:"HeadImg_Cover",pos:"absolute",hid:true},M("cover_theme_header_up.png","","","HeadImg_imgCoverArrowUp"),M("cover_theme_header_down.png","","","HeadImg_imgCoverArrowDown"),d({id:"HeadImg_CoverUp",cl:"iActObj"}),d({id:"HeadImg_CoverDown",cl:"iActObj"}),d({id:"HeadImg_Upload",
cl:"iActObj",hid:true}));J.appendGlobalDomString(p)}}function f(){if(L.isOwner()){var p=["HeadImg_Cover","HeadImg_CoverUp","HeadImg_CoverDown","HeadImg_Upload","HeadImg_imgCoverArrowDown","HeadImg_imgCoverArrowUp","HeadImg_idHeaderImgs"];J.setDOMReference(p);e=q(m.profileData.currHeaderImgId,m.currHeaderImgs);var t="";$.each(m.currHeaderImgs,function(r,x){r=z.readObj("headerImg",x);t+=M(r.src.replace("img/",""),"HeadImg_idSlideImg","","dbHeader_"+r.id)});c.HeadImg_idHeaderImgs.html(t);c.HeadImg_idHeaderImgs.find(".HeadImg_idSlideImg").hide();
$("#dbHeader_"+m.profileData.currHeaderImgId).addClass("idSelectedHeader").show();o();c.HeadImg_Cover.appendTo($("#HeadImg_idShadow")).show();c.HeadImg_imgCoverArrowDown.hide();c.HeadImg_imgCoverArrowUp.hide();c.HeadImg_CoverDown.bindOnce("mouseenter",{show:true,dir:"down"},g).bindOnce("mouseleave",{show:false,dir:"down"},g).bindOnce("click",{dir:"prev"},j);c.HeadImg_CoverUp.bindOnce("mouseenter",{show:true,dir:"up"},g).bindOnce("mouseleave",{show:false,dir:"up"},g).bindOnce("click",{dir:"next"},
j);c.HeadImg_Upload.bindOnce("mouseenter",Ba.ent_bindAddBtnFlashHover)}}function h(p){if(!l&&c.HeadImg_Cover)p?c.HeadImg_Cover.show():c.HeadImg_Cover.hide()}function j(p){p=p.data.dir;var t=300,r=c.HeadImg_idHeaderImgs,x=$(".HeadImg_idSlideImg",r),s=x.length,u=e;$(".idSelectedHeader",r).removeClass("idSelectedHeader");if(p=="next")if(u<s-1){x.eq(u+1).addClass("idSelectedHeader").top(200).show().animate({top:"-=200px"},t,function(){x.filter(":not(.idSelectedHeader)").top(200)});e++}else{x.eq(0).addClass("idSelectedHeader").top(0).show().clone().appendTo(r).removeClass("idSelectedHeader").top(200).show().animate({top:"-=200px"},
t,function(){x.filter(":not(:first)").top(200);var A=$(this);A.fadeOut(200,function(){A.remove()})});e=0}else if(p=="prev")if(u>0){x.eq(u-1).addClass("idSelectedHeader").show().top(0);x.eq(u).animate({top:"+=200px"},t);e--}else{x.eq(s-1).addClass("idSelectedHeader");x.show().top(0);x.eq(0).clone().appendTo(r).top(0).show().animate({top:"+=200px"},t,function(){$(this).remove()});e=s-1}o();ya.resetFirstrunTooltip("headerImg");p=z.getEEId($(".idSelectedHeader",r));R.post({action:17,img:p})}function g(p){if(J.isInEditMode()){var t=
p.data.show,r=p.data.dir;p=r=="down"?c.HeadImg_imgCoverArrowDown:c.HeadImg_imgCoverArrowUp;r=r=="down"?c.HeadImg_imgCoverArrowUp:c.HeadImg_imgCoverArrowDown;if(t){p.tglFadeInXB(300);r.stopp().fadeOutXB(100)}else p.tglFadeOutXB(300)}}function q(p,t){for(var r=0;r<t.length;r++)if(t[r][0]==p)break;return r}function o(){var p=G8.isLocaltest?"header03":"showimg=";c.HeadImg_idHeaderImgs.find(".idSelectedHeader").attr("src").indexOf(p)!=-1?c.HeadImg_Upload.fadeInXB(300):c.HeadImg_Upload.fadeOutXB(300)}function k(p){p=
z.makeImgPathFromId("UP",p,"normal");c.HeadImg_idHeaderImgs.find(".idSelectedHeader").attr("src",p);ya.resetFirstrunTooltip("headerImg")}var e,l;G8.globalSubscriber.bindOnce("initClasses",a);return{changeUploadedHeaderImg:k,tglControls:h}}(),Ha=function y(){function a(){(k=W.getDeviceConfig("galleryDisabled"))||G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f)}function b(){if(L.isOwner()){var e="";e+=d({id:"GalImg_Cover",cl:"iActObj fixPNGBg",pos:"absolute",
hid:true},d({id:"GalImg_Cover_Drag"},M("icon_bbar_drag_mini_lo.png","iActObj"))+d({id:"GalImg_Cover_Delete"},M("icon_bbar_delete_mini_lo.png","idBtnDelete iActObj",n("TT_GEN_delete"))));e+=d({id:"GalImg_DragSpacer",hid:true});J.appendGlobalDomString(e)}}function f(){if(L.isOwner()){c.GalImgAddBtnMaster=$(d({cl:"GalImg_idBtnAdd"},M("btn_theme_addimg_imggal_lo.png","iActObj",n("TT_AddImg_uploadNewImgs"))));c.DragSpacer=$("#GalImg_DragSpacer");var e=["GalImg_Cover","GalImg_Cover_Delete","GalImg_Cover_Drag"];
J.setDOMReference(e)}ca.bindOnce("click",j);L.isOwner()&&ca.bindOnce("mousedown",h)}function h(e){var l=$(e.target);if(l.isChildOf(c.GalImg_Cover_Drag)){o.startDrag(e);e.stopPropagation()}}function j(e){e=$(e.target);if(J.isInEditMode())if(e.isChildOf(c.GalImg_Cover_Delete.find(".idBtnDelete"))){o.confirmDeleteImg();return false}else if(e.isChildOf(".EE_galImg")){o.openLightbox();return false}else if(e.isChildOf(".GalImg_idBtnAdd"))return false}function g(e){o=e}function q(e,l){if(!k){var p=l.find(".GalImg_idBtnAdd");
if(e){if(!p.length){p=c.GalImgAddBtnMaster.clone();p.insertBefore($(".idClr",l)).fadeIn(250);Q.extendHoverAndTt(p);p.bindOnce("mouseenter",Ba.ent_bindAddBtnFlashHover)}}else p.removeAni(300)}}var o,k;G8.globalSubscriber.bindOnce("initClasses",a);return{tglBtnAdd:q,setCurrGalImgObj:g}}(),mb=function y(){function a(x,s,u){s.parents(".EE_CB").trigger("mouseleave");m.inDragGalImg=true;u=u||{};g=s;q=U("GalImg",s);o=g.parent();k=".EE_galImg";e=u.dropTargets||o;l=u.cloneObj||g;p=o;t=p.children(k);r=X.getRelativeMouse(x,
g);c.DragSpacer.insertBefore(g).show();l.appendTo("body").top(x.pageY-r.y).left(x.pageX-r.x).unbind();$.browser.msie||l.opacity(0.8);g.hide();l.bindOnce("mouseup",f);ca.bindOnce("mousemove",b)}function b(x){var s=x.pageX,u=x.pageY;l.top(u-r.y).left(s-r.x);e.each(function(A,E){A=$(E);if(h(A,s,u)){if(p[0]!=A[0]){p=A;t=p.children(k+",.GalImg_idBtnAdd")}E=j(t,s,u);if(E=="NoSiblings")c.DragSpacer.prependTo(A);else if(E!==false)E>0&&t.eq(E-1).hasClass(".GalImg_invisible")?c.DragSpacer.insertAfter(t.not(".GalImg_invisible,.GalImg_idBtnAdd").filter(":last")):
c.DragSpacer.insertBefore(t.eq(E));return false}})}function f(){ca.unbind("mousemove",b);g.insertBefore(c.DragSpacer).show(300,function(){l.animate({left:g.left(),top:g.top()},300,function(){l.remove()})});c.DragSpacer.remove();t=p.children(k);var x=X.getNeighborIds(g,t);q.saveDrag({poslast:x.poslast,posnext:x.posnext});m.inDragGalImg=false}function h(x,s,u){var A=15;return s>=x.left()-A&&s<=x.left()+x.width()+A&&u>=x.top()-A&&u<=x.top()+x.height()+A}function j(x,s,u){var A=false;if(x.length)x.each(function(E,
G){if(h($(G),s,u)){A=E;return false}});else A="NoSiblings";return A}var g,q,o,k,e,l,p,t,r;return{startDrag:a}}(),bb=function y(a,b){this._glo_jDomObj=a;this._glo_p_GalleryObj=b;this._glo_totalComments=parseInt(a.getIdFromClass("tCmt_"));this._glo_dbId=z.getEEId(a);na.setJDomToObjMapping("GalImg",a,this);L.isOwner()&&a.bindOnceProxy("mouseenter",{show:true},this._hov_tglCover,this).bindOnceProxy("mouseleave",{show:false},this._hov_tglCover,this);a.bindOnce("mouseenter",{mode:"imageTitle"},Q.ent_tt).bindOnce("mouseleave",
{mode:"imageTitle"},Q.lea_tt);this._glo_totalComments>0&&m.userCommentsAllowed&&a.prepend(d({cl:"GalImg_commentMarker"}));Q.extendHoverAndTt(a);this._glo_p_GalleryObj.handleDirectGalImgVisibility(a)};bb.prototype={openLightbox:function y(){var a=this;a=a._glo_jDomObj;a.find(".EE_OBJ").trigger("click")},startDrag:function y(a){var b=this;imgDivObj=b._glo_jDomObj;mb.startDrag(a,imgDivObj,{cloneObj:$("<div>").addClass("GalImg_dragClone").append($(".EE_OBJ",imgDivObj).clone().removeAttr("id")),dropTargets:$(".EE_CBGal .CB_cont")})},
confirmDeleteImg:function y(){var a=this,b=a._glo_jDomObj;Q.tglObjToDelete(b,true);T.confirmm({headline:n("HL_BP_Confirm_deleteImg"),okAction:function f(){var h=a._glo_jDomObj,j=h.parents(".EE_CBGal");h.removeAni(300,function(){J.initLightbox(j);var g=U("Contentblock",j);g.updateCBTotalItems();a._glo_p_GalleryObj.updateGalleryDesign()});R.post({id:a._glo_dbId,action:12})},okTitle:n("TT_GEN_delete"),cancelAction:function(){Q.tglObjToDelete(b,false)}})},_hov_tglCover:function y(a){if(J.isInEditMode()){a=
a.data.show;var b=this._glo_jDomObj;if(a){Ha.setCurrGalImgObj(this);c.GalImg_Cover_Delete.add(c.GalImg_Cover_Drag).tgl(b.siblings(".EE_galImg").length);c.GalImg_Cover.prependTo(b).setPosTo(b,"TOPI","LEFTI").tglFadeIn(300);Q.extendHoverAndTt(c.GalImg_Cover)}else{Ha.setCurrGalImgObj(false);c.GalImg_Cover.tglFadeOut(250)}}},saveDrag:function y(a){var b=this,f=b._glo_jDomObj,h=b._glo_p_GalleryObj,j=U("Gallery",f.parents(".EE_CBGal")),g=h._glo_jDomObj,q=j._glo_jDomObj;f=b._glo_dbId;if(a.poslast==0)a.poslast=
z.getEEId(q.find("h1.EE_OBJ"));R.post({id:f,action:9,type:4,poslast:a.poslast,posnext:a.posnext},{afterSuccess:function(){if(h!=j){j.updateCBTotalItems();j.updateGalleryDesign();J.initLightbox(q);b._glo_p_GalleryObj=j}h.updateCBTotalItems();h.updateGalleryDesign();J.initLightbox(g)}})}};(function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("extendEE",b)}function b(f,h){$Self(".EE_CBGal",h).each(function(){new cb($(this))})}G8.globalSubscriber.bindOnce("initClasses",a);return{}})();
var cb=function y(a){this._glo_jDomObj=a;na.setJDomToObjMapping("Gallery",a,this);this._updateToggler();this._extendGalImgs(a);G8.globalSubscriber.bindOnceProxy("extendEE",this._subscriber_cus_extendEE,this)};cb.prototype={_updateToggler:function y(){var a=this._glo_jDomObj,b=a.find(".EE_galImg");if(b.filter(".GalImg_invisible").length){if(!a.find(".GalImg_Tgl_showAllGalImgs").length){b=$(d({cl:"GalImg_Tgl_showAllGalImgs"},M("icon_gen_theme_toggle_collapsed_lo.png","tgl_idBtnTgl iActObj"),d({cl:"tgl_togglerText"},
n("Text_Gallery_Tgl_allGalImgs"))));b.insertAfter(a.find(".idClr")).bindOnceProxy("click",this._clk_tglAllGalImgs,this)}}else a.find(".GalImg_Tgl_showAllGalImgs").length&&a.find(".GalImg_Tgl_showAllGalImgs").remove()},_extendGalImgs:function y(a){var b=this;$Self(".EE_galImg",a).each(function(){var f=$(this);new bb(f,b)});this._glo_firstGalleryImgsAlreadyExtended=true},_subscriber_cus_extendEE:function y(a,b){a=this._glo_jDomObj;if(a.isOrIsChildOf(b)||b.isOrIsChildOf(a))this._extendGalImgs(b)},_clk_tglAllGalImgs:function y(){var a=
this,b=this._glo_jDomObj;b.find(".GalImg_invisible").each(function(){var f=$(this);a._makeGalImgVisible(f)});b.find(".GalImg_Tgl_showAllGalImgs").remove()},_makeGalImgVisible:function y(a){a.hasClass("GalImg_invisible")&&a.removeClass("GalImg_invisible").find(".EE_OBJ").attr("src",a.find(".EE_OBJ").attr("longdesc")).removeAttr("longdesc")},handleDirectGalImgVisibility:function y(a){var b=this._glo_jDomObj.find(".EE_galImg");if(this._glo_firstGalleryImgsAlreadyExtended)this._glo_jDomObj.find(".GalImg_Tgl_showAllGalImgs").trigger("click");
else if(b.index(a)>m.maxDirectGalImgs&&!a.hasClass("GalImg_invisible")){a.addClass("GalImg_invisible").find(".EE_OBJ").attr("longdesc",a.find(".EE_OBJ").attr("src"));this._updateToggler()}},updateGalleryDesign:function y(){var a=this,b=this._glo_jDomObj;b=b.find(".EE_galImg");if(b.length>m.maxDirectGalImgs){b=b.filter(":lt("+m.maxDirectGalImgs+")");b.each(function(){var f=$(this);a._makeGalImgVisible(f)})}},updateCBTotalItems:function y(){var a=U("Contentblock",this._glo_jDomObj);a.updateCBTotalItems()},
addUploadedGalImg:function y(a){var b=this._glo_jDomObj,f=U("Contentblock",b);b.find(".EE_galImg").each(function(){var h=$(this),j=h.find(".EE_OBJ");if(j.attr("src").hasStr("showimg=3-0")){h.remove();return false}});a=$(a);a.insertBefore($(".GalImg_idBtnAdd",b));this._extendGalImgs(a);f.preloadPreviewImgs();Q.extendHoverAndTt(a)}};(function y(a){a.fn.lightBox=function(b){function f(v){v.stopPropagation();La.onOpen();g(this,B)}function h(v){v=a(v);v=v.attr("longdesc")?v.attr("longdesc"):v.attr("src");
return G8.isLocaltest?v.replace("_thumb","_normal"):v.replace(/type=thumb/,"type=normal")}function j(v){v=a(v);return v.attr("alt")}function g(v,D){a("embed, object, select").css({visibility:"hidden"});o();a("#LB_Popup").data("CBObj",D.parents(".EE_CBGal"));b.imageArray.length=0;b.activeImage=0;if(D.length==1)b.imageArray.push([h(v),j(v),v]);else for(var K=0;K<D.length;K++)b.imageArray.push([h(D[K]),j(D[K]),D[K]]);for(;b.imageArray[b.activeImage][2]!=v;)b.activeImage++;q();l()}function q(){var v=
[],D=G8.isLocaltest?"":"http://"+m.parsedProfileUser.url+"/",K=G8.isLocaltest?"":"&PREF="+G8.ax_jqxtnd.cookie("PREF");a.each(b.imageArray,function(N,O){N=O[0]+K;N=N.indexOf("http://www."+m.mainHostDomain+"/")==-1?D+N:N.replace("http://www."+m.mainHostDomain+"/",D);v.push({src:N,alt:O[1]})});a("#LB_Popup").data("imgRessources",v).data("currImgRessourceIndex",b.activeImage)}function o(){var v=d({id:"LB_Overlay"})+d({id:"LB_Popup"},d({id:"LB_PopInner"},d({id:"LB_ImgBox"},d({id:"LB_Loading"},d({cl:"Preload_preloaderLB"},
F("Preload_preloader_lightbox.gif","Preload_imgPreloaderAni"))),d({id:"LB_ImgBoxInner"},d({id:"LB_ImgBoxImgBox"},'<img id="LBImg">',d({id:"LB_Bar_Delete"},d({id:"LB_Bar_DeleteInner"},F("icon_bbar_delete_lo.png","iActObj",n("TT_LB_delete"),"LB_DeleteBtn"))),d({id:"LB_Bar_Meta"},d({id:"LB_Bar_MetaInner"},'<table id="LB_Bar_MetaTable"><tr><td>',d({id:"LB_ImgdetailsCaption"}),'</td><td id="LB_ImgdetailsCurrNumber">',"</td></tr></table>"))))),d({id:"LB_ControlBox"},d({id:"LBExtCtrls",hid:true},d({cl:"idRemoveImg"}),
d({cl:"idStopSlideshow"}),d({cl:"idUpdateFullscreenData"})),'<table id="LB_Tab_Controls"><tr><td id="LB_Tab_Controls_CM">','</td><td id="LB_Tab_Controls_Navi">',d({id:"LB_Area_Navi"},F("icon_lb_arrow_prev_lo.png","iActObj",n("TT_LB_prevImg"),"LB_BtnPrev"),d({id:"LB_PlayNavi"},F("icon_lb_play_lo.png","iActObj",n("TT_LB_startSlideShow"),"LB_BtnPlay"),d({id:"LB_BtnPause",hid:true},F("icon_lb_pause_lo.png","iActObj idImgBtnPause",n("TT_LB_stopSlideShow")))),F("icon_lb_arrow_next_lo.png","iActObj",n("TT_LB_nextImg"),
"LB_BtnNext")),'</td><td id="LB_Tab_Controls_Close">',F("icon_lb_close_lo.png","iActObj",n("TT_LB_close"),"LB_BtnClose"),"</td></tr></table>")));a("body").append(v);Q.extendHoverAndTt(a("#LB_Popup"));a("#LB_PlayNavi").flashembed({src:m.profileData.resPath.replace("www."+m.mainHostDomain,m.parsedProfileUser.url)+"func/gallery.swf",allowScriptAccess:"always",allowNetworking:"all",wmode:"transparent",version:[m.flashVersion]});a("#LB_Overlay").css({backgroundColor:b.overlayBgColor,opacity:b.overlayOpacity}).fadeIn();
b.calcMarginTop=k();a("#LB_Popup").top(b.calcMarginTop).show();a("#LB_Loading,#LB_BtnClose").bindOnce("click",S);a("#LB_BtnPlay").bindOnce("click",x);a("#LB_BtnPause").bindOnce("click",s);a(window).bindOnce("resize",e);a("#LB_ImgBoxImgBox").bindOnce("mouseenter",function(){b.mouseIsOverImg=true}).bindOnce("mouseleave",function(){b.mouseIsOverImg=false});a("#LB_DeleteBtn").bindOnce("click",La.clk_Delete)}function k(){var v=a(window).height();return v>500?(v-300)/10+5:5}function e(){b.calcMarginTop=
k();a("#LB_Popup").top(b.calcMarginTop);var v=a("#LBImg");if(v.is(":visible")){var D=v.data("origDimensions");D=p(D.realImgWidth,D.realImgHeight);v.add("#LB_ImgBoxImgBox").css({width:D.zielImgWidth,height:D.zielImgHeight});a("#LB_ImgBox").css({width:D.zielBoxWidth,height:D.zielBoxHeight});a("#LB_ControlBox").css({width:D.zielControlboxWidth})}}function l(){a("#LB_ImgBoxImgBox").unbind("mouseenter",A).unbind("mouseleave",E);a("#LB_Loading").show();a("#LB_ImgBox").bindOnce("click",S);a("#LBImg,#LB_ControlBox,#LB_ImgdetailsCurrNumber,#LB_Bar_Meta,#LB_Bar_Delete,#LB_Area_Navi").hide();
a("<img />").bindOnce("load",function(){var v=a(this);a("#LBImg").attr("src",b.imageArray[b.activeImage][0]);t(v.attr("width"),v.attr("height"));v.remove()}).attr("src",b.imageArray[b.activeImage][0])}function p(v,D){var K=26,N=50,O=a(window).height()-K-b.calcMarginTop*2-N-b.containerBorderSize*2,aa=a(window).width()-b.containerBorderSize*2,fa=aa/O,V=v/D;K=v;N=D;if(V>fa){if(v>aa){K=aa;N=D*(K/v)}}else if(D>O){N=O;K=v*(N/D)}v=K+b.containerBorderSize*2;D=N+b.containerBorderSize*2;O=K<300?300:K;return{zielImgHeight:N,
zielImgWidth:K,zielBoxWidth:v,zielBoxHeight:D,zielControlboxWidth:O}}function t(v,D){var K=p(v,D);a("#LBImg").data("origDimensions",{realImgWidth:v,realImgHeight:D}).add("#LB_ImgBoxImgBox").css({width:K.zielImgWidth,height:K.zielImgHeight});a("#LB_ImgBox").animate({width:K.zielBoxWidth,height:K.zielBoxHeight},b.containerResizeSpeed,function(){r()});a("#LB_ControlBox").css({width:K.zielControlboxWidth})}function r(){a("#LB_Popup").data("currImgRessourceIndex",b.activeImage);a("#LB_ImgBox").unbind("click",
S);a("#LB_Loading").hide();a("#LBImg").fadeIn(function(){u();G();a("#LB_ControlBox").fadeIn(300)});if(b.slideshowRunning)b.slideshowTimeout=window.setTimeout(C,b.slideshowTime*1E3);H()}function x(){a("#LB_BtnPlay").hide();a("#LB_BtnPause").show();b.slideshowRunning=true;b.slideshowTimeout=window.setTimeout(C,b.slideshowTime*1E3)}function s(){a("#LB_BtnPause").hide();b.imageArray.length>1&&a("#LB_BtnPlay").show();window.clearTimeout(b.slideshowTimeout);b.slideshowRunning=false}function u(){var v=b.activeImage;
b.imageArray[v][1]=j(B[v]);a("#LB_ImgdetailsCaption").html(b.imageArray[v][1]);Z.forceLinebreak(a("#LB_ImgdetailsCaption"),a("#LBImg").width()-100);a("#LB_Popup").data("origImgDivObj",B.eq(v).parents(".EE_galImg"));if(m.userCommentsAllowed){a("#LB_Popup").data("commentsExtended",false);new Da(a("#LB_Popup"),"Lightbox")}if(J.isInEditMode()){a("#LB_ImgdetailsCaption").addClass("EE_txtS EE_OBJ idGalImgTitle").bindOnce("click",s);a.event.trigger("extendEE",[a("#LB_ImgdetailsCaption")])}if(b.imageArray.length>
1){a("#LB_ImgdetailsCurrNumber").html("<b>"+(v+1)+"</b> / "+b.imageArray.length).show();a("#LB_Area_Navi").show();b.slideshowRunning||a("#LB_BtnPlay").show()}a("#LB_ImgBoxImgBox").bindOnce("mouseenter",A).bindOnce("mouseleave",E);b.mouseIsOverImg&&A()}function A(){a("#LB_Bar_Meta").tglFadeIn(300);J.isInEditMode()&&b.imageArray.length>1&&a("#LB_Bar_Delete").tglFadeIn(300)}function E(){a("#LB_Bar_Meta").tglFadeOut(300);a("#LB_Bar_Delete").is(":visible")&&a("#LB_Bar_Delete").tglFadeOut(300)}function G(){a("#LBExtCtrls").find(".idRemoveImg").unbind("click").bindOnce("click",
function(){if(b.imageArray.length==1){b.imageArray.splice(b.activeImage,1);S()}else{if(b.activeImage==b.imageArray.length-1){b.imageArray.splice(b.activeImage,1);B=B.not(B.eq(b.activeImage));b.activeImage--}else{b.imageArray.splice(b.activeImage,1);B=B.not(B.eq(b.activeImage))}l()}}).end().find(".idStopSlideshow").unbind().bind("click",s).end().find(".idUpdateFullscreenData").unbind().bind("click",function(){q()});if(b.imageArray.length){a("#LB_BtnPrev").unbind("click").bind("click",function(){b.slideshowRunning&&
s();w();return false});a("#LB_BtnNext").unbind("click").bind("click",function(){b.slideshowRunning&&s();C();return false})}}function w(){b.activeImage=b.activeImage==0?b.imageArray.length-1:b.activeImage-1;l()}function C(){b.activeImage=b.activeImage==b.imageArray.length-1?0:b.activeImage+1;l()}function H(){if(b.imageArray.length-1>b.activeImage){var v=new Image;v.src=b.imageArray[b.activeImage+1][0]}if(b.activeImage>0){v=new Image;v.src=b.imageArray[b.activeImage-1][0]}}function S(){s();J.initLightbox(a("#LB_Popup").data("CBObj"));
a(window).unbind("resize",e);a("#LB_Popup").remove();a("#LB_Overlay").fadeOut(300,function(){a("#LB_Overlay").remove()});a("embed, object, select").css({visibility:"visible"});La.onClose()}b=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,imageBlank:ea.prefixSrc("static","trans.gif"),containerBorderSize:2,containerResizeSpeed:400,slideshowTimeout:false,slideshowRunning:false,slideshowTime:5,imageArray:[],activeImage:0},b);var B=this;this.unbind("click.lightbox").bind("click.lightbox",f);return this}})(jQuery);
var La=function y(){function a(){$("#LBExtCtrls").find(".idUpdateFullscreenData").trigger("click");var j={imgRessources:$("#LB_Popup").data("imgRessources"),currImgRessourceIndex:$("#LB_Popup").data("currImgRessourceIndex"),fadeTime:m.fullscreenGallery.fadeTime,holdTime:m.fullscreenGallery.holdTime};return j}function b(){c.MB_PageMode&&c.MB_PageMode.find(".idAdd").disbl(true);c.MB_Pagemode_AddCBBox&&c.MB_Pagemode_AddCBBox.data("expanded")&&Ca.tglAddCBIcons(false)}function f(){c.MB_PageMode&&c.MB_PageMode.find(".idAdd").disbl(false)}
function h(){var j=$("#LB_Popup");$("#LBExtCtrls").find(".idStopSlideshow").trigger("click");var g=j.data("origImgDivObj"),q=z.getEEId(g);g.find(".EE_OBJ");Q.tglObjToDelete(j,true,"lightbox");T.confirmm({headline:n("HL_BP_Confirm_deleteImg"),okAction:function(){var o=g.parents(".EE_CBGal");g.removeAni(300);$("#LBExtCtrls").find(".idRemoveImg").trigger("click");Q.tglObjToDelete($("#LB_Popup"),false,"lightbox");J.initLightbox(o);o=U("Contentblock",o);o.updateCBTotalItems();R.post({id:q,action:12})},
okTitle:n("TT_GEN_delete"),cancelAction:function(){Q.tglObjToDelete($("#LB_Popup"),false,"lightbox")}})}return{swf_getFullscreenInit:a,onOpen:b,onClose:f,clk_Delete:h}}(),va=function y(){function a(){W.isIPhone()||G8.globalSubscriber.bindOnce("initCreatePageDOMString",h).bindOnce("initExtendPageDOM",j).bindOnce("extendEE",f)}function b(t){var r=$(t.target);if(J.isInEditMode())if(r.isChildOf(c.CB_Bar_Privacy.add(c.CB_BarMini_Privacy))){t=r.hasClass("idBtnPrivacy1")?1:r.hasClass("idBtnPrivacy2")?2:
r.hasClass("idBtnPrivacy3")?3:1;r=r.parents(".EE_CB");r=U("Contentblock",r);r.changePrivacy(t);return false}else if(r.isChildOf(c.CB_Bar_Move.add(c.CB_BarMini_Move))){t=r.hasClass("idBtnDown")?"down":r.hasClass("idBtnUp")?"up":r.hasClass("idBtnSkipDown")?"skipdown":r.hasClass("idBtnSkipUp")?"skipup":"";r=r.parents(".EE_CB");r=U("Contentblock",r);r.moveCB(t);return false}else if(r.isChildOf(c.CB_Bar_Delete.add(c.CB_BarMini_Delete))){r=r.parents(".EE_CB");r=U("Contentblock",r);r.deleteCB();return false}else{if(r.isChildOf(".CLPS_cbToggler,.CB_head h1")&&
!r.isChildOf(".EE_txtS:not(.idClpsdHl)")){r=r.parents(".EE_CB");r=U("Contentblock",r);r.tglCB();return false}}else if(r.isChildOf(".CLPS_cbToggler,.CB_head h1")){r=r.parents(".EE_CB");r=U("Contentblock",r);r.tglCB();return false}}function f(t,r){$Self(".EE_CB",r).each(function(){new db($(this))})}function h(){if(L.isOwner()){var t="";t+=d({id:"CB_Bar",cl:"fixPNGBg",pos:"absolute",hid:true},d({id:"CB_Bar_Move"},M("icon_gen_theme_arrowdown_lo.png","idBtnDown iActObj",n("TT_CB_moveCBDown")),M("icon_gen_theme_arrowup_lo.png",
"idBtnUp iActObj",n("TT_CB_moveCBUp")),M("icon_gen_theme_skipdown_lo.png","idBtnSkipDown iActObj",n("TT_CB_skipCBDown")),M("icon_gen_theme_skipup_lo.png","idBtnSkipUp iActObj",n("TT_CB_skipCBUp")))+d({id:"CB_Bar_Privacy"},M("icon_gen_theme_privacy1_lo.png","idBtnPrivacy1 iActObj",n("TT_CB_privacySelf")),M("icon_gen_theme_privacy3_lo.png","idBtnPrivacy3 iActObj",n("TT_CB_privacyFriends")),M("icon_gen_theme_privacy2_lo.png","idBtnPrivacy2 iActObj",n("TT_CB_privacyAll")))+d({id:"CB_Bar_Delete"},M("icon_theme_cbar_delete_lo.png",
"iActObj",n("TT_CB_deleteCB")))+d({id:"CB_Bar_ShadowZone"}));t+=d({id:"CB_BarMini",pos:"absolute",hid:true},d({id:"CB_BarMini_Move"},M("icon_gen_theme_arrowdown_lo.png","idBtnDown iActObj",n("TT_CB_moveCBDown")),M("icon_gen_theme_arrowup_lo.png","idBtnUp iActObj",n("TT_CB_moveCBUp")),M("icon_gen_theme_skipdown_lo.png","idBtnSkipDown iActObj",n("TT_CB_skipCBDown")),M("icon_gen_theme_skipup_lo.png","idBtnSkipUp iActObj",n("TT_CB_skipCBUp")))+d({id:"CB_BarMini_Privacy"},M("icon_gen_theme_privacy1_lo.png",
"idBtnPrivacy1 iActObj",n("TT_CB_privacySelf")),M("icon_gen_theme_privacy3_lo.png","idBtnPrivacy3 iActObj",n("TT_CB_privacyFriends")),M("icon_gen_theme_privacy2_lo.png","idBtnPrivacy2 iActObj",n("TT_CB_privacyAll")))+d({id:"CB_BarMini_Delete"},M("icon_theme_cbar_delete_lo.png","iActObj",n("TT_CB_deleteCB"))));J.appendGlobalDomString(t)}}function j(){if(L.isOwner()){var t=["CB_Bar","CB_Bar_Privacy","CB_Bar_Move","CB_Bar_Delete","CB_Bar_ShadowZone","CB_BarMini","CB_BarMini_Privacy","CB_BarMini_Move",
"CB_BarMini_Delete"];J.setDOMReference(t)}ca.bindOnce("click",b)}function g(t){T.tglPreloader(true);var r=t.category,x=r=="Video"?1:r=="Text"?2:r=="Gallery"?3:r=="Blog"?4:1;r=c.PageMaincontents.find(".EE_CB");var s=X.mouseOverObj(t.mx,t.my,r);t=s.object;s=s.position;var u=o("insert",t,r,s);R.post({action:10,type:1,mode:x,parent:0,parentblock:0,poslast:u.poslast,posnext:u.posnext},{afterSuccess:function(A){A=z.readObj("elementJ",A);var E=$(A.dom),G=$("#db_"+u.poslast);G.parents("#Page_frmProfile").length?
E.prependTo(c.PageMaincontents):E.insertAfter(G);la.fcbPositionChanged();q("add",{id:A.id,privacy:A.privacy,view:A.view,totalComments:A.totalComments,prevId:u.poslast,nextId:u.posnext});l(A.id);if(x==4){var w=A.id;ha.modBlogArr(w,"addBlog");$.each(A.children,function(C,H){C=z.readObj("element",H);C.type==6&&ha.modBlogArr(w,"addEntry",{entryId:C.id,date:C.date1,headline:C.line1})});Ia.tglBtnAdd(true,E)}else if(x==2)Pa.tglBtnAdd(true,E);else if(x==3){J.initLightbox(E);Ha.tglBtnAdd(true,E)}$.event.trigger("extendEE",
[E]);$("html,body").animate({scrollTop:E.top()},300);E.hide().slideDown(300);T.tglPreloader(false);ya.resetFirstrunTooltip("contentblock")}})}function q(t,r){if(t=="add"){var x=r.prevId,s=k(r.id,r.privacy,r.view,r.totalComments);$.each(m.profileData.cbOrder,function(A,E){if(z.readObj("CB",E).id==x){m.profileData.cbOrder.splice(A,0,s);return false}})}else if(t=="delete"){var u=r.id;$.each(m.profileData.cbOrder,function(A,E){if(z.readObj("CB",E).id==u){m.profileData.cbOrder.splice(A,1);return false}})}else t==
"change"&&e(r.id,r)}function o(t,r,x,s){if(t=="standard"){r=X.getNeighborIds(r,x);var u=r.poslast,A=r.posnext;if(u==0)u=z.getEEId(c.Profile)}else if(t=="insert"){u=x.index($(".EE_CBFriends"))==0&&x.length>1;t=x.length;if(u)if(r){A=x.index(r);if(r.hasClass(".EE_CBFriends")){u=z.getEEId(r);A=A<t-1?z.getEEId(x.eq(A+1)):0}else if(s=="before"){u=A>0?z.getEEId(x.eq(A-1)):0;A=z.getEEId(r)}else{u=z.getEEId(r);A=A<t-1?z.getEEId(x.eq(A+1)):0}}else{u=z.getEEId(x.filter(":last"));A=0}else{if(r){A=x.index(r);
if(s=="before"){u=A>0?z.getEEId(x.eq(A-1)):0;A=z.getEEId(r)}else{u=z.getEEId(r);A=A<t-1?z.getEEId(x.eq(A+1)):0}}else A=u=0;if(A==0)A=z.getEEId(x.filter(".EE_CBFriends"))}if(u==0)u=z.getEEId(c.Profile)}return{poslast:u,posnext:A}}function k(t,r,x,s){return[t,r,x,s]}function e(t,r){t=p(t);if(r.privacy!=undefined)t[1]=r.privacy;if(r.view!=undefined)t[2]=r.view;if(r.totalComments!=undefined)t[3]=r.totalComments}function l(t){function r(x){x=z.readObj("CB",x);$("#db_"+x.id).data("privacy",x.privacy).data("collapsed",
x.collapsed).data("totalComments",x.totalComments)}t?r(p(t)):$.each(m.profileData.cbOrder,function(x,s){r(s)})}function p(t){var r=t instanceof jQuery?z.getEEId(t):t,x;$.each(m.profileData.cbOrder,function(s,u){if(u[0]==r){x=u;return false}});return x}G8.globalSubscriber.bindOnce("initClasses",a);return{getCBNeighborIds:o,callAddCB:g,modCBArr:q,mapCBObjVars:l,getArrCB:p}}(),db=function y(a){this._glo_jDomObj=a;na.setJDomToObjMapping("Contentblock",a,this);this._glo_id=z.getEEId(a);if(!a.data("CLPS_clpsExtended")){va.getArrCB(a);
var b,f="",h="";if(a.hasClass("EE_CBBlog")){this._glo_cbType="blog";b="infoicon_theme_blog.png";f=ha.getBlogEntriesArr(z.getEEId(a)).length;h=d({cl:"CLPS_preview"},d({cl:"CLPS_previewInner"}))}else if(a.hasClass("EE_CBGal")){this._glo_cbType="gallery";b="infoicon_theme_gallery.png";f=a.find(".EE_galImg").length;h=d({cl:"CLPS_preview"},d({cl:"CLPS_previewInner"},d({cl:"CLPS_previewThumb"},F("preview_gal_mini.png","CLPS_idImgPreview"))))}else if(a.hasClass("EE_CBText")){this._glo_cbType="text";b="infoicon_theme_text.png";
h=d({cl:"CLPS_preview"},d({cl:"CLPS_previewInner"}))}else if(a.hasClass("EE_CBVideo")){this._glo_cbType="video";b="infoicon_theme_video.png";h=d({cl:"CLPS_preview"},d({cl:"CLPS_previewInner"},d({cl:"CLPS_previewThumb"},F("preview_video_mini.png","CLPS_idImgPreview"))))}else if(a.hasClass("EE_CBFriends")){this._glo_cbType="friends";b="infoicon_theme_friend.png";f=a.find(".EE_friend").length;h=d({cl:"CLPS_preview"},d({cl:"CLPS_previewInner"},d({cl:"CLPS_previewThumb SHA_userMini"},F("preview_user_mini.png",
"CLPS_idImgPreview SHA_imgUserMini"))))}var j=a.data("totalComments"),g=d({cl:"CLPS_clpsCBCmts",hid:true},M("infoicon_theme_comment.png"),d({cl:"CLPS_clpsCBCmtsTotalComments"},j));if(this._glo_cbType=="friends")g="";var q=M("icon_gen_theme_toggle_expanded_lo.png","CLPS_cbToggler iActObj"),o=a.find(".CB_head");j=a.find("h1.EE_txtS");j.data("originalText",j.html());b=d({cl:"CLPS_clpsCBType"},M(b),d({cl:"CLPS_clpsCBTypeTotalItems"},f));f=d({cl:"CLPS_clpsFooterLine"});o.prepend(q).append(h);j.bindOnceProxy("mouseenter",
{show:true},this._hov_tglHeadlineHover,this).bindOnceProxy("mouseleave",{show:false},this._hov_tglHeadlineHover,this);a.find(".CB_foot").html(f+b+g);h=a.data("collapsed");ja.tglCollapseToggler("CB",a.find(".CLPS_cbToggler"),!h);a.data("CLPS_clpsExtended",true);h&&a.addClass("CB_clpsd");a.find(".CLPS_preview").hide().end().find(".CB_cont").tgl(!h).end().find(".CB_foot").tgl(h);j.tglClass("idClpsdHl",h).html(h?Z.shortenText(j.data("originalText"),35):j.data("originalText"));h=$("<div />").addClass("CBContentWrap");
h.prependTo(a).append(a.find(".CB_head")).append(a.find(".CB_cont")).append(a.find(".CB_foot"))}this.preloadPreviewImgs();if(this._glo_cbType=="blog")c.BEN.isChildOf(a)||c.BEN.insertBefore(a.find(".BE_idBE")).show();a.bindOnceProxy("mouseenter",{show:true},this._hov_tglHover,this).bindOnceProxy("mouseleave",{show:false},this._hov_tglHover,this);Q.extendHoverAndTt(a)};db.prototype={getId:function y(){return this._glo_id},_hov_tglHeadlineHover:function y(a){var b=$(a.currentTarget),f=this._glo_jDomObj;
if(f=f.data("collapsed"))if(a=a.data.show){this._tglPreview(true);m.userCommentsAllowed&&this._tglTotalComments(true);b.bindOnceProxy("mousemove",this._mov_clpsHeadline,this)}else{this._tglPreview(false);m.userCommentsAllowed&&this._tglTotalComments(false);b.unbind("mousemove",this._mov_clpsHeadline)}},_mov_clpsHeadline:function y(a){var b=this._glo_jDomObj,f=this._glo_cbType,h=$(a.currentTarget),j=h.width();a=X.getRelativeMouse(a,h).x/j;if(f=="gallery"){f=this._getPreviewSrcs();f=X.pickItemByPercent(f,
a);b.find(".CLPS_idImgPreview").srcF(f)}else if(f=="friends"){f=this._getPreviewSrcs();f=X.pickItemByPercent(f,a);b.find(".CLPS_idImgPreview").srcF(f)}else if(f=="video"){f=this._getPreviewSrcs();f.length||(f=[ea.prefixSrc("static","preview_video_mini.png")]);f=X.pickItemByPercent(f,a);b.find(".CLPS_idImgPreview").srcF(f)}else if(f=="text"){f=b.find(".CB_cont .EE_txtM").text();f=Z.shortenText(f,70);f=f.substr(Math.round(f.length*a)-1,35);b.find(".CLPS_previewInner").html(f)}else if(f=="blog"){f=ha.getBlogEntriesArr(z.getEEId(b));
f=Z.formatDate(z.readObj("BEntry",f[f.length-1]).date);b.find(".CLPS_previewInner").html(f)}},_tglTotalComments:function y(a){var b=this._glo_jDomObj;b=b.find(".CLPS_clpsCBCmts");a?b.tglFadeIn(300):b.tglFadeOut(300)},_tglPreview:function y(a){var b=this._glo_jDomObj,f=b.find(".CLPS_preview"),h=this._glo_cbType;if(!(h=="friends"&&b.find(".EE_friend").length==0)&&!(h=="video"&&!m.videoThumbsVisible)){a&&f.left(b.find("h1").width());a?f.tglFadeInXB(300):f.tglFadeOutXB(300)}},updateCBTotalItems:function y(){var a=
this._glo_jDomObj,b=this._glo_cbType,f;if(b=="gallery")f=a.find(".EE_galImg").length;else if(b=="blog")f=ha.getBlogEntriesArr(z.getEEId(a)).length;else if(b=="friends")f=m.profileData.friendOrder?m.profileData.friendOrder.length:0;f&&a.find(".CLPS_clpsCBTypeTotalItems").html(f)},_hov_tglHover:function y(a){if(L.isOwner()){var b=this._glo_jDomObj,f=this._glo_cbType;if(J.isInEditMode()&&!m.inDragGalImg)if(a=a.data.show)if(b.data("collapsed"))this._tglCBBarMini(true);else{this._tglCBBar(true);if(f==
"blog"){b=U("Blog",b);b.tglBtnDeleteBEntry(true)}}else if(b.data("collapsed"))this._tglCBBarMini(false);else{this._tglCBBar(false);if(f=="blog"){b=U("Blog",b);b.tglBtnDeleteBEntry(false)}}}},tglCB:function y(a){var b=this._glo_jDomObj,f=this._glo_cbType;if(b.data("collapsed")){f=="friends"&&la.hideAllFriends();b.removeClass("CB_clpsd");if(!a){var h=b.find(".CB_cont"),j=h.show().top();h.hide();a=b.find(".CB_head").top();h=j-ca.scrollTop()+h.height()-wa.height();if(h>0){h=ca.scrollTop()+h+40;if(h>a)h=
a;$("html,body").animate({scrollTop:h},200)}}b.find(".CLPS_preview").fadeOut(300).end().find("h1.EE_txtS").html(b.find("h1.EE_txtS").data("originalText")).end().find(".CB_cont").slideDown(300,function(){b.find("h1.EE_txtS").removeClass("idClpsdHl")}).end().find(".CB_foot").slideUp(300).end().data("collapsed",false);if(J.isInEditMode()){c.CB_BarMini.hide();this._tglClpsHoverFooter(false);this._tglCBBar(true);if(f=="blog"){f=U("Blog",b);f.tglBtnDeleteBEntry(true)}}}else{b.addClass("CB_clpsd").find("h1.EE_txtS").addClass("idClpsdHl").html(Z.shortenText(b.find("h1.EE_txtS").data("originalText"),
35)).end().find(".CB_cont").slideUp(300).end().find(".CB_foot").slideDown(300).end().data("collapsed",true);if(J.isInEditMode()){c.CB_Bar.hide();this._tglCBBarMini(true);this._tglLayer(false);if(f=="blog"){f=U("Blog",b);f.tglBtnDeleteBEntry(false)}}}ja.tglCollapseToggler("CB",b.find(".CLPS_cbToggler"),!b.data("collapsed"));f=z.getEEId(b);a=b.data("collapsed")?0:1;va.modCBArr("change",{id:f,view:a});va.mapCBObjVars(f);L.isOwner()&&R.post({id:f,action:9,type:1,view:a})},_tglCBBar:function y(a){var b=
this._glo_jDomObj;if(a){this._tglLayer(true);this._updateCBBars(c.CB_Bar);c.CB_Bar.prependTo(b).setPosTo(b,["TOPI",-61],"LEFTI").tglFadeIn(300);c.CB_Bar_ShadowZone.one("mouseenter",function(){b.trigger("mouseleave")})}else c.CB_Bar.stopp().opacity(1).fadeOut(300,$.proxy(function(){this._tglLayer(false)},this))},_tglCBBarMini:function y(a){var b=this._glo_jDomObj;if(a){this._updateCBBars(c.CB_BarMini);c.CB_BarMini.appendTo(b).setPosTo(b,"RIGHTI","TOPI").tglFadeIn(150);this._tglClpsHoverFooter(true)}else{c.CB_BarMini.hide();
this._tglClpsHoverFooter(false)}},_tglClpsHoverFooter:function y(a){var b=this._glo_jDomObj;b=b.find(".CLPS_clpsFooterLine");b.data("origWidth")||b.data("origWidth",b.width());var f=b.data("origWidth"),h=f+278;a=a?h:f;b.stopp().animate({width:a+"px"},300)},deleteCB:function y(){var a=this._glo_jDomObj,b=this._glo_cbType,f=z.getEEId(a);Q.tglObjToDelete(a,true);var h="",j;if(b=="blog"){j=n("HL_BP_Confirm_deleteBlog");h=n("Text_BP_Confirm_deleteBlog")}else if(b=="gallery"){j=n("HL_BP_Confirm_deleteGallery");
h=n("Text_BP_Confirm_deleteGallery")}else if(b=="video")j=n("HL_BP_Confirm_deleteVideo");else if(b=="text")j=n("HL_BP_Confirm_deleteText");T.confirmm({headline:j,contentText:h,okAction:ta(this,function(){a.removeAni(300,ta(this,function(){la.fcbPositionChanged()}));this._updateCBBars(c.CB_Bar);this._updateCBBars(c.CB_BarMini);R.post({id:f,action:12},{afterSuccess:ta(this,function(){va.modCBArr("delete",{id:f});if(b=="blog"){ha.modBlogArr(f,"deleteBlog");Ca.updatePagemode()}})})}),okTitle:n("TT_GEN_delete"),
cancelAction:ta(this,function(){Q.tglObjToDelete(a,false)})})},_updateCBBars:function y(a){var b=this._glo_jDomObj,f=this._glo_cbType;if(a==c.CB_Bar)var h=c.CB_Bar_Delete,j=c.CB_Bar_Move;else{h=c.CB_BarMini_Delete;j=c.CB_BarMini_Move}this._hilitePrivacyIcon(b.data("privacy"));Q.extendHoverAndTt(a);var g=c.PageMaincontents.find(".EE_CB"),q=g.filter(":not(.EE_CBFriends)");a=q.length;if(f=="friends"){b=g.index(b);h.hide();j.find(".idBtnDown,.idBtnUp").hide().end().find(".idBtnSkipDown").tgl(b==0&&a>
0).end().find(".idBtnSkipUp").tgl(b!=0&&a>0)}else{b=q.index(b);h.show();j.find(".idBtnSkipDown,.idBtnSkipUp").hide().end().find(".idBtnDown").tgl(b<a-1).end().find(".idBtnUp").tgl(b>0)}},_switchCB:function y(a,b){var f=this._glo_jDomObj,h=z.getEEId(f);this._tglCBBar(false);var j=f.top()-ca.scrollTop(),g=f.height(),q=a=="skipdown"||a=="skipup";q&&$(".FO_idFriendTrenner").remove();var o=300+g/3;f.animate({height:0,paddingBottom:0},o,$.proxy(function(){this._tglLayer(false);a=="up"||a=="skipup"?f.insertBefore(b):
f.insertAfter(b);$("html,body").animate({scrollTop:f.top()-j},120);q&&la.fcbPositionChanged();f.show().animate({height:g},o,$.proxy(function(){f.css("height","")},this));var k=va.getCBNeighborIds("standard",f,c.PageMaincontents.find(".EE_CB"));R.post({id:h,action:9,type:1,poslast:k.poslast,posnext:k.posnext})},this))},_hilitePrivacyIcon:function y(a){var b=c.CB_BarMini_Privacy.add(c.CB_Bar_Privacy);$(".idBtnPrivacy"+a,b).hiliteSingleImg($("img[class*='idBtnPrivacy']",b))},_getPreviewSrcs:function y(){var a=
this._glo_jDomObj,b=this._glo_cbType,f=[];if(b=="gallery")a.find(".EE_galImg > .EE_OBJ").each(function(h){if(h<m.maxGalPreviews){h=$(this);h.attr("longdesc")?f.push(h.attr("longdesc")):f.push(h.attr("src"))}});else if(b=="friends")a.find(".FO_idImgFImg").each(function(){f.push(z.makeImgPathFromId("share",z.getImgId($(this)),"mini"))});else if(b=="video"){a=ra.readEmbedVideo(a.find(".EE_video"));if(a.thumbnailSrcs.length)f=a.thumbnailSrcs}return f},_tglLayer:function y(a){var b=this._glo_jDomObj;b=
$(".CBContentWrap",b);a?b.addClass("CB_hover"):b.removeClass("CB_hover")},changePrivacy:function y(a){var b=this._glo_jDomObj,f=z.getEEId(b);this._hilitePrivacyIcon(a);R.post({id:f,action:9,type:1,privacy:a},{afterSuccess:$.proxy(function(h){h=z.readObj("elementJ",h).privacy;va.modCBArr("change",{id:f,privacy:h});va.mapCBObjVars(f)},this)})},moveCB:function y(a){var b=this._glo_jDomObj,f;if(a=="up")f=b.prevAll(".EE_CB").eq(0);else if(a=="down")f=b.nextAll(".EE_CB").eq(0);else if(a=="skipup")f=c.PageMaincontents.find(".EE_CB").eq(0);
else if(a=="skipdown")f=c.PageMaincontents.find(".EE_CB").filter(":last");this._switchCB(a,f)},preloadPreviewImgs:function y(){sa.preloadImgs(this._getPreviewSrcs())}};var eb=function y(a){this._glo_jDomObj=a;a.bindOnceProxy("mouseenter",{show:true},this._hov_tglCover,this).bindOnceProxy("mouseleave",{show:false},this._hov_tglCover,this);Q.extendHoverAndTt(a)};eb.prototype={_hov_tglCover:function y(a){var b=this._glo_jDomObj;if(J.isInEditMode())if(a=a.data.show){c.BlogImg_Cover.prependTo(b).setPosTo(b,
"TOPI","LEFTI").tglFadeIn(300);Q.extendHoverAndTt(c.BlogImg_Cover);a=b.parents(".BlogImg_idDropzone").find(".EE_blogImg");b=a.index(b);a=a.length;c.BlogImg_Cover_Move.find(".idBtnDown").tgl(b<a-1).end().find(".idBtnUp").tgl(b>0)}else c.BlogImg_Cover.tglFadeOut(250)}};var Ia=function y(){function a(){(k=W.getDeviceConfig("blogDisabled"))||G8.globalSubscriber.bindOnce("initCreatePageDOMString",f).bindOnce("initExtendPageDOM",h)}function b(e){e=$(e.target);if(J.isInEditMode())if(e.isChildOf(c.BlogImg_Cover_Delete.find(".idBtnDelete"))){e=
e.parents(".EE_blogImg");j(e);return false}else if(e.isChildOf(c.BlogImg_Cover_Move.find(".idBtnUp"))){e=e.parents(".EE_blogImg");g(e,"up");return false}else if(e.isChildOf(c.BlogImg_Cover_Move.find(".idBtnDown"))){e=e.parents(".EE_blogImg");g(e,"down");return false}}function f(){if(L.isOwner()){var e=d({id:"BlogImg_Cover",cl:"fixPNGBg",hid:true,pos:"absolute"},d({id:"BlogImg_Cover_Move"},M("icon_bbar_arrowdown_lo.png","idBtnDown iActObj",n("TT_BlogImg_moveImgDown")),M("icon_bbar_arrowup_lo.png",
"idBtnUp iActObj",n("TT_BlogImg_moveImgUp"))),d({id:"BlogImg_Cover_Delete"},M("icon_bbar_delete_lo.png","idBtnDelete iActObj",n("TT_GEN_delete"))));J.appendGlobalDomString(e)}}function h(){if(L.isOwner()){c.BlogImgAddBtnMaster=$(d({cl:"BlogImg_idBtnAdd"},M("btn_theme_addimg_imgblog_lo.png","iActObj",n("TT_AddImg_uploadNewImgs"))));var e=["BlogImg_Cover","BlogImg_Cover_Move","BlogImg_Cover_Delete"];J.setDOMReference(e);ca.bindOnce("click",b)}}function j(e){e.find(".EE_OBJ");var l=z.getEEId(e);Q.tglObjToDelete(e,
true);T.confirmm({headline:n("HL_BP_Confirm_deleteImg"),okAction:function(){e.removeAni(300);R.post({id:l,action:12})},okTitle:n("TT_GEN_delete"),cancelAction:function(){Q.tglObjToDelete(e,false)}})}function g(e,l){if(l=="up"){var p=e.prevAll(".EE_blogImg");p.length&&q(e,l,p.eq(0))}else{p=e.nextAll(".EE_blogImg");p.length&&q(e,l,p.eq(0))}}function q(e,l,p){var t=z.getEEId(e),r=e.top()-ca.scrollTop();e.css("height");e.slideUp(300,function(){l=="up"?e.insertBefore(p):e.insertAfter(p);e.slideDown(300);
$("html,body").animate({scrollTop:e.top()-r},120);var x=X.getNeighborIds(e,e.parent().children(".EE_blogImg"));R.post({id:t,action:9,type:4,poslast:x.poslast,posnext:x.posnext})})}function o(e,l){if(!k){var p=l.find(".BlogImg_idBtnAdd");if(e){if(!p.length){p=c.BlogImgAddBtnMaster.clone();p.insertBefore($(".idClr",l)).fadeIn(250);Q.extendHoverAndTt(p);p.bindOnce("mouseenter",Ba.ent_bindAddBtnFlashHover)}}else p.removeAni(300)}}var k;G8.globalSubscriber.bindOnce("initClasses",a);return{tglBtnAdd:o}}(),
ha=function y(){function a(){(p=W.getDeviceConfig("blogDisabled"))||G8.globalSubscriber.bindOnce("extendEE",b).bindOnce("initCreatePageDOMString",e).bindOnce("initExtendPageDOM",l)}function b(t,r){$Self(".EE_CBBlog",r).each(function(){new fb($(this))})}function f(t){var r;$.each(m.profileData.blogOrder,function(x,s){if(s[0]==t){r=s[1];return false}});return r||[]}function h(t){if(!p&&c.BENBtnAddBlog)t?c.BENBtnAddBlog.tglFadeIn(300):c.BENBtnAddBlog.tglFadeOut(300)}function j(t,r,x){x=x||{};var s=f(t);
if(r=="removeEntry"){r=k(t,x.entryId);s.splice(r,1);return s.length==0?false:r>=s.length?z.readObj("BEntry",s[s.length-1]).id:z.readObj("BEntry",s[r]).id}else if(r=="addEntry")s[s.length]=g(x.entryId,x.date,x.headline);else if(r=="changeEntry")q(x.entryId,x.headline);else if(r=="deleteBlog")$.each(m.profileData.blogOrder,function(u,A){if(A[0]==t){m.profileData.blogOrder.splice(u,1);return false}});else r=="addBlog"&&m.profileData.blogOrder.push([t,[]])}function g(t,r,x){return[t,r,x]}function q(t,
r){t=o(t);t[2]=r}function o(t){var r;$.each(m.profileData.blogOrder,function(x,s){$.each(s[1],function(u,A){if(A[0]==t){r=A;return false}});if(r)return false});return r}function k(t,r){var x;$.each(f(t),function(s,u){if(u[0]==r){x=s;return false}});return x}function e(){var t="";t+=d({id:"BESel_Pane",pos:"absolute",hid:true},d({id:"BESel_PaneBot"})+d({id:"BESel_PaneInner"}));t+=d({id:"BEN",hid:true},d({id:"BENBtnAddBlog",hid:true},M("icon_gen_theme_addbentry_lo.png","idBtnAdd iActObj",n("TT_createBEntry"))),
d({id:"BEN_Center"},d({id:"BEN_BtnPrev"},M("icon_gen_theme_bentryprev_lo.png","idBtnPrev iActObj",n("TT_prevBEntry")),M("icon_gen_theme_bentryprev_lo.png","idBtnPrevDisbl")),d({id:"BENSelector"}),d({id:"BEN_BtnNext"},M("icon_gen_theme_bentrynext_lo.png","idBtnNext iActObj",n("TT_nextBEntry")),M("icon_gen_theme_bentrynext_lo.png","idBtnNextDisbl"))));if(L.isOwner())t+=d({id:"BE_BtnDelete",hid:true},M("icon_gen_theme_delete_lo.png","iActObj idBtnDelete",n("TT_deleteBEntry")));J.appendGlobalDomString(t)}
function l(){var t=["BEN","BENBtnAddBlog","BENSelector","BESel_Pane","BE_BtnDelete"];J.setDOMReference(t);c.BEN.find(".idBtnPrevDisbl,.idBtnNextDisbl").opacity(0.5)}var p;G8.globalSubscriber.bindOnce("initClasses",a);return{getBlogEntriesArr:f,modBlogArr:j,getArrBEntry:o,getIndexBEntry:k,tglAddBlog:h}}(),fb=function y(a){this._glo_jDomObj=a;na.setJDomToObjMapping("Blog",a,this);this._glo_id=z.getEEId(a);this._extendBlogImgs(a);this.updateBESelector();G8.globalSubscriber.bindOnceProxy("extendEE",this._subscriber_cus_extendEE,
this);ca.bindOnceProxy("click",this._delegator_clk_document,this)};fb.prototype={_subscriber_cus_extendEE:function y(a,b){a=this._glo_jDomObj;if(a.isOrIsChildOf(b)||b.isOrIsChildOf(a))this._extendBlogImgs(b)},_delegator_clk_document:function y(a){a=$(a.target);if(c.BESel_Pane.is(":hidden")&&a.isChildOf(c.BENSelector)){this._BESel_tglPane(true);return false}else if(c.BESel_Pane.is(":visible")&&(!a.isChildOf(c.BENSelector)||!a.isChildOf(c.BESel_Pane)))this._BESel_tglPane(false);else if(a.isChildOf(c.BEN.find(".idBtnPrev"))){this._BEN_prevBEntry();
return false}else if(a.isChildOf(c.BEN.find(".idBtnNext"))){this._BEN_nextBEntry();return false}if(J.isInEditMode())if(a.isChildOf(c.BENBtnAddBlog)){a=a.parents(".EE_CBBlog");this._addBEntry(a);return false}else if(a.isChildOf(c.BE_BtnDelete)){a.parents(".EE_CBBlog");this._deleteBEntry();return false}},_extendBlogImgs:function y(a){if(L.isOwner()){var b=this;$Self(".EE_blogImg",a).each(function(){var f=$(this);new eb(f,b)})}},addUploadedBlogImg:function y(a){var b=this._glo_jDomObj;U("Contentblock",
b);b.find(".EE_blogImg").each(function(){var f=$(this),h=f.find(".EE_OBJ");if(h.attr("src").hasStr("showimg=4-0")){f.remove();return false}});a=$(a);a.insertBefore($(".BlogImg_idBtnAdd",b));this._extendBlogImgs(a);Q.extendHoverAndTt(a)},_BESel_tglPane:function y(a){if(a){$("#imgBENSelectorArrow").setImgHi();c.BESel_Pane.appendTo(c.BENSelector.parent()).setPosTo(c.BENSelector,"LEFTI","BOTTOM").slideDown(300)}else{$("#imgBENSelectorArrow").setImgLo();c.BESel_Pane.slideUp(300)}},updateBESelector:function y(a){var b=
this._glo_jDomObj,f=this._glo_id;c.BENSelector.data("BENSelectorExtd")||c.BENSelector.data("BENSelectorExtd",true).addClass("iActObj").html(d({id:"BENSelectorHL"})+M("bentry_selector_icon_toggle_lo.png","iActObj","","imgBENSelectorArrow")).bindOnceProxy("mouseenter",{show:true},this._BESel_tglArrow,this).bindOnceProxy("mouseleave",{show:false},this._BESel_tglArrow,this);f=ha.getBlogEntriesArr(f);var h;if(f.length){a||(a=z.getEEId(b.find(".BE_idBE")));var j=z.readObj("BEntry",ha.getArrBEntry(a));c.BENSelector.find("#BENSelectorHL").html(Z.formatDate(j.date));
b.data("currEntryId",a);$.each(f,function(g,q){g=z.readObj("BEntry",q);q=g.id==a?"BESel_paneEntrySelected ":"";g=$(d({cl:q+"BESel_idPaneEntry iActObj"},d({cl:"BESel_idPaneEntryDate"},Z.formatDate(g.date)),d({cl:"BESel_idPaneEntryHeadline"},Z.shortenText(g.headline,35)))).data("entryId",g.id);h=!h?g:h.add(g)})}else $("#BENSelectorHL").empty();$("#BESel_PaneInner").empty().append(h).find(".BESel_idPaneEntry").bindOnceProxy("click",this._BESel_clickEntry,this).bindTglHoverClass("BESel_paneEntryHi");
this._BESkip_update()},_BESel_clickEntry:function y(a){a=$(a.currentTarget);a=a.data("entryId");this._BESel_tglPane(false);this.switchBEntry(a)},_BESel_tglArrow:function y(a){a=a.data.show;var b=$("#imgBENSelectorArrow");a?b.setImgHi():b.setImgLo()},tglBtnDeleteBEntry:function y(a){var b=this._glo_jDomObj,f=this._glo_id;if(a){a=ha.getBlogEntriesArr(f).length;a>1?c.BE_BtnDelete.prependTo(b.find(".BE_idBE")).setPosTo(b.find(".BE_idHeader"),"TOPI").tglFadeIn(300):c.BE_BtnDelete.hide();Q.extendHoverAndTt(c.BE_BtnDelete)}else c.BE_BtnDelete.tglFadeOut(300)},
_BESkip_update:function y(){var a=this._getIdsBEntry();c.BEN.find(".idBtnPrev").tgl(a.prevId).end().find(".idBtnPrevDisbl").tgl(!a.prevId).end().find(".idBtnNext").tgl(a.nextId).end().find(".idBtnNextDisbl").tgl(!a.nextId)},switchBEntry:function y(a){var b=this._glo_jDomObj;T.tglPreloader(true);$(".BlogImg_idDropzone",b);R.post({action:11,id:a},{afterSuccess:ta(this,function(f){f=$(z.readObj("elementJ",f).dom);var h=b.find(".BE_idBE");h.attr("id",$Self(".BE_idBE",f).attr("id")).find(".BE_idHeader").html(f.find(".BE_idHeader").html()).end().find(".BE_idCopy").html(f.find(".BE_idCopy").html()).end().find(".BlogImg_idDropzone").html(f.find(".BlogImg_idDropzone").html()).end().find(".CM_Box").remove();
h.data("commentsExtended",false);$.event.trigger("extendEE",[h]);Q.extendHoverAndTt(h);this.updateBESelector(a);J.isInEditMode()&&Ia.tglBtnAdd(true,b);T.tglPreloader(false)})})},_getIdsBEntry:function y(){var a=this._glo_jDomObj,b=this._glo_id;a=a.data("currEntryId");var f=ha.getIndexBEntry(b,a),h=ha.getBlogEntriesArr(b);b=f>0?z.readObj("BEntry",h[f-1]).id:false;f=f<h.length-1?z.readObj("BEntry",h[f+1]).id:false;return{currentId:a,prevId:b,nextId:f}},_addBEntry:function y(){var a=this._glo_jDomObj,
b=this._glo_id;T.tglPreloader(true);var f=ha.getBlogEntriesArr(b);f=f.length?z.readObj("BEntry",f[f.length-1]).id:0;R.post({action:10,type:6,parent:0,parentblock:b,poslast:f,posnext:0},{afterSuccess:ta(this,function(h){h=z.readObj("elementJ",h);var j=$(h.dom);ha.modBlogArr(b,"addEntry",{entryId:h.id,date:h.date1,headline:h.line1});var g=a.find(".BE_idBE");g.attr("id","db_"+h.id).find(".BE_idHeader").html(h.line1).end().find(".BE_idCopy").html(h.value1).end().find(".BlogImg_idDropzone").html(j.find(".BlogImg_idDropzone").html()).end().find(".CM_Box").remove();
g.data("commentsExtended",false);Ia.tglBtnAdd(true,a);$.event.trigger("extendEE",[a]);Q.extendHoverAndTt(a);this.updateBESelector(h.id);h=U("Contentblock",a);h.updateCBTotalItems();T.tglPreloader(false)})})},_deleteBEntry:function y(){var a=this._glo_jDomObj,b=this._glo_id,f=a.find(".BE_idBE"),h=z.getEEId(f);z.readObj("BEntry",ha.getArrBEntry(h));Q.tglObjToDelete(f,true);T.confirmm({headline:n("HL_BP_Confirm_deleteBlogentry"),okAction:ta(this,function(){var j=false;R.post({action:12,id:h},{afterSuccess:ta(this,
function(){var g=ha.modBlogArr(b,"removeEntry",{entryId:h});this.updateBESelector(g);var q=U("Contentblock",a);q.updateCBTotalItems();if(g){Q.tglObjToDelete(f,false);this.switchBEntry(g)}else{f.removeAni(300);j=true}})})}),okTitle:n("TT_GEN_delete"),cancelAction:ta(this,function(){Q.tglObjToDelete(f,false)})})},_BEN_nextBEntry:function y(){var a=this._getIdsBEntry();a=a.nextId;this.switchBEntry(a)},_BEN_prevBEntry:function y(){var a=this._getIdsBEntry();a=a.prevId;this.switchBEntry(a)}};G8.DOM={};
var m=G8.pageVars,c=G8.DOM,d=ia.makeDiv,F=ia.makeImageStatic,M=ia.makeImageTheme,ga=ia.makeElement,Y=ia.makeSpan,da=ia.makeLink,n=Ra.getLocalizedString,za=Ra.getLocalizedString12,U=na.getJDomToObjMapping;G8.Export={Lightbox_sx:La,Upload_sx:Ba,AdaaRemote_sx:hb};$(function(){J.initPage()})})();

