/*
 G8 Profile: Version 4.0.15
*/
(function(){window.G8=window.G8||{};var aa=$(document),ua=$(window),Da=G8.ax_jqxtnd.dbg,ra=G8.ax_jqxtnd.prxy;jQuery.fn.extend({bindTglHoverClass:function(w,a,b){return this.bindOnce("mouseenter",{show:true,cssClass:w,parentSelector:a,tglObjSelector:b},X.tglHoverClass).bindOnce("mouseleave",{show:false,cssClass:w,parentSelector:a,tglObjSelector:b},X.tglHoverClass)},setAltText:function(w){return this.attr("alt",Z.strToAlt(w))},getAltText:function(){return Z.altToStr(this.attr("alt"))},disbl:function(w){return w?
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(w){w.not(this).setImgLo();this.setImgAct()}});(function w(){var a=G8.pageVars;a.mainHostDomain="eightpage.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.profileData.resPath.replace("www."+a.mainHostDomain,
"static1."+a.mainHostDomain),a.profileData.resPath.replace("www."+a.mainHostDomain,"static2."+a.mainHostDomain),a.profileData.resPath.replace("www."+a.mainHostDomain,"static3."+a.mainHostDomain),a.profileData.resPath.replace("www."+a.mainHostDomain,"static4."+a.mainHostDomain),a.profileData.resPath.replace("www."+a.mainHostDomain,"static5."+a.mainHostDomain)];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})();G8.globalSubscriber=$({});var ja=function w(){function a(){s("CBPosition")}function b(t){t=$(t.target);if(t.isChildOf(d.FO_BarToggleAll)){r();return false}else if(t.isChildOf(d.FO_CoverAdd)){t=d.FO_CoverAdd.parents(".EE_friend");F(t);return false}else if(t.isChildOf(d.FO_CoverMsg)){t=
d.FO_CoverMsg.parents(".EE_friend");y(t);return false}if(J.isInEditMode())if(t.isChildOf(d.FO_BarDelete)){t=d.FO_BarDelete.parents(".EE_friend");t.trigger("delete");B(t);return false}if(t.isChildOf(".FO_idFInfo")){t=t.parents(".EE_friend");da.gotoUrl("http://"+z.readObj("friendObj",t).url);return false}}function f(t,E){$Self(".EE_friend",E).each(function(){new Sa($(this))})}function g(){var t="";t+=e({id:"TAF_Pop",hid:true},e({cl:"TAF_contents"},e({cl:"BP_contHeadline"},"Tell a friend about my eightpage"),
e({cl:"TAF_contCenter"},e({cl:"BP_label"},o("Label_TAF_to")),e({cl:"BP_boxInput"},ea({e:"inp",cl:"TAF_inpBig idSendTo Vali_email"})),e({cl:"BP_label"},o("Label_TAF_message")),e({cl:"BP_boxInput"},ea({e:"txt",cl:"TAF_inptxtBig idMsg Vali_notEmpty"})),S.getCaptchaMaster()),e({cl:"BP_contControls"},C("icon_taf_send_lo.png","idBtnOkVali iActObj",o("TT_TAF_send")),C("icon_taf_cancel_lo.png","idBtnCancel iActObj",o("TT_GEN_cancel")))));if(K.isLogged()){t+=e({id:"FO_CoverMsg",pos:"absolute",hid:true},L("cover_theme_userthumb_msg.png",
"iActObj fixPNGImg",o("TT_GEN_writeMessage")));t+=e({id:"FO_CoverAdd",pos:"absolute",hid:true},L("cover_theme_userthumb_add.png","iActObj fixPNGImg",o("TT_FCB_coverStartFriendship")));t+=e({id:"FO_BarDelete",pos:"absolute",hid:true},L("icon_gen_theme_delete_mini_lo.png","idBtnDelete iActObj",o("TT_deleteFriendship")))}t+=e({id:"FO_BarFriendsNavigator",hid:true},e({id:"FO_FriendSearch"},ea({e:"inp",id:"FO_FriendSearch_Input"}),L("infoicon_theme_search.png","FO_idBtnDoSearch"),L("icon_gen_theme_close_mini_lo.png",
"FO_idBtnClearSearch iActObj hidden",o("TT_FCB_clearSearch"))),L("icon_gen_theme_world_lo.png","idBtnNewFriends iActObj",!n.brandedMode?K.isLogged()?o("TT_gotoWorld_logged"):o("TT_gotoWorld_notLogged"):n.brandedMode=="adobe"?K.isLogged()?o("TT_gotoAdobeWorld_logged"):o("TT_gotoAdobeWorld_notLogged"):""),!n.brandedMode?L("icon_gen_theme_tellafriend_lo.png","idBtnTellafriend iActObj",o("TT_FCB_TAF")):"",e({cl:"clr"}));t+=e({id:"FO_BarToggleAll",cl:"iActObj",hid:true},L("icon_gen_theme_toggle_collapsed_lo.png",
"tgl_idBtnTgl iActObj"),e({cl:"tgl_togglerText"},o("Text_FCB_Tgl_allFriends")));t+=e({id:"BoxMoreFriends",hid:true});t+=e({id:"BoxVisibleFriends"});if(K.isLogged())t+=e({id:"FR_PopAddFriend",hid:true},ga.makeBP({size:"small",headline:o("HL_BP_FR_friendRequest"),content:e({cl:"idRequestMsg BP_infoText BP_centered"})+e({cl:"BP_label"},o("Label_BP_FR_to"))+e({cl:"BP_divSmallInp idUsername"})+e({cl:"BP_label"},o("Label_BP_FR_message"))+e({cl:"BP_boxInput"},ea({e:"txt",cl:"BP_inptxtSmall idMsg Vali_notEmpty"}))+
S.getCaptchaMaster(),controls:C("icon_bp_send_lo.png","idBtnOkVali iActObj",o("TT_BP_FR_invite"))+C("icon_bp_cancel_lo.png","idBtnCancel iActObj",o("TT_GEN_cancel"))}));n.initDOMString+=t}function k(){var t=["TAF_Pop","FO_CoverMsg","FO_CoverAdd","FO_BarDelete","FO_BarFriendsNavigator","FO_BarToggleAll","BoxMoreFriends","BoxVisibleFriends","FR_PopAddFriend"];J.setDOMReference(t);d.TAF_Pop.find(".idBtnOkVali").bindOnce("click",j);d.FO_BarFriendsNavigator.find(".idBtnNewFriends").bindOnce("click",m).end().find(".idBtnTellafriend").bindOnce("click",
h).end().find("#FO_FriendSearch_Input").bindOnce("focus",{focus:true},l).bindOnce("blur",{focus:false},l).end().find(".FO_idBtnClearSearch").bindOnce("click",p);d.FR_PopAddFriend.find(".idBtnOkVali").bindOnce("click",q);$(".EE_CBFriends").find(".CB_cont>.idClr").before(d.FO_BarFriendsNavigator).before(d.BoxVisibleFriends).before(d.FO_BarToggleAll).before(d.BoxMoreFriends);aa.bindOnce("click",b)}function j(){ka.validateForm(d.TAF_Pop,function(){var t=X.readFormVal(d.TAF_Pop,".idCaptcha"),E=X.readFormVal(d.TAF_Pop,
".idSendTo"),D=X.readFormVal(d.TAF_Pop,".idMsg");P.post({action:37,captcha:t,mail:E,text:D,lang:n.loggedData.lang},{dontTrace:[1701],afterError:function(R){P.handleCaptchaError(R,d.TAF_Pop)},afterSuccess:function(){ka.resetCaptchaError(d.TAF_Pop);S.alertt({autoHide:n.alertAutohideTime,headline:o("HL_BP_Success_mailSent"),msg:o("Text_BP_Success_mailSent",E)})}})})}function m(){da.gotoUrl(n.urlWorld)}function h(){S.refreshCaptcha(d.TAF_Pop);d.TAF_Pop.find(".idCaptcha,.idSendTo").val("").end().find(".idMsg").val(o("Input_TAF_message"));
S.tglAlert(true,d.TAF_Pop)}function l(t){t=t.data.focus;var E=$(this);t?E.bindOnce("keyup",c):E.unbind("keyup",c)}function c(){var t=v($(this).val());d.FO_BarFriendsNavigator.find(".FO_idBtnClearSearch").tgl(t!="");d.FO_BarFriendsNavigator.find(".FO_idBtnDoSearch").tgl(t=="");$(".EE_CBFriends").find(".EE_friend").each(function(){var E=$(this),D=z.readObj("friendObj",E),R=v(D.name);D=v(D.url);R.hasStr(t)||D.hasStr(t)?E.show():E.hide()});s("totalFriends")}function p(){$(this).hide();$("#FO_FriendSearch_Input").val("");
c()}function q(){ka.validateForm(d.FR_PopAddFriend,function(){var t=d.FR_PopAddFriend.data("friendData"),E=X.readFormVal(d.FR_PopAddFriend,".idMsg"),D=X.readFormVal(d.FR_PopAddFriend,".idCaptcha");P.post({action:13,id:t.id,request:E,captcha:D},{dontTrace:[1701],afterError:function(R){P.handleCaptchaError(R,d.FR_PopAddFriend)},afterSuccess:function(){ka.resetCaptchaError(d.FR_PopAddFriend);var R=$("dbFriend_"+t.id);R.length&&I(R,"Requested");S.alertt({autoHide:n.alertAutohideTime,headline:o("HL_BP_Success_friendRequested"),
msg:o("Text_BP_Success_friendRequested",Z.formatUser(t))});d.FR_PopAddFriend.removeData("friendData");Ta.handleFriendRelationChange(t.id,2)}})})}function r(){if(d.BoxMoreFriends.data("expanded")){d.BoxMoreFriends.slideUp(300).data("expanded",false);ha.tglCollapseToggler("allFriends",$("#FO_BarToggleAll").find(".tgl_idBtnTgl"),false)}else{d.BoxMoreFriends.slideDown(300).data("expanded",true);ha.tglCollapseToggler("allFriends",$("#FO_BarToggleAll").find(".tgl_idBtnTgl"),true)}}function x(){d.BoxMoreFriends.slideUp(300).data("expanded",
false);ha.tglCollapseToggler("allFriends",$("#FO_BarToggleAll").find(".tgl_idBtnTgl"),false)}function s(t){var E=$(".EE_CBFriends");if(E.length){d.FO_BarFriendsNavigator.show();if(t=="totalFriends"||!t){var D=E.find(".EE_friend"),R=D.filter(function(){return $(this).css("display")!="none"}),O=d.BoxVisibleFriends.find(">.idClr").length?d.BoxVisibleFriends.find(">.idClr"):e({cl:"idClr"});d.BoxVisibleFriends.append(R.filter(":lt("+n.maxDirectFriends+")")).append(O);if(R.length>n.maxDirectFriends){O=
d.BoxMoreFriends.find(">.idClr").length?d.BoxMoreFriends.find(">.idClr"):e({cl:"idClr"});d.BoxMoreFriends.append(R.filter(":gt("+(n.maxDirectFriends-1)+")")).append(O);d.FO_BarToggleAll.fadeIn(300)}else d.FO_BarToggleAll.fadeOut(300);D.length>n.maxDirectFriends?d.FO_BarFriendsNavigator.find("#FO_FriendSearch").fadeIn(300):d.FO_BarFriendsNavigator.find("#FO_FriendSearch").fadeOut(300);D=T("Contentblock",E);D.updateCBTotalItems()}if(t=="CBPosition"||!t){$(".FO_idFriendTrenner").remove();D=d.PageMaincontents.find(".EE_CB");
if(D.filter(":not(.EE_CBFriends)").length)D.index(E)==0?E.after($("<div>").addClass("FO_idFriendTrenner")):E.before($("<div>").addClass("FO_idFriendTrenner"))}if(!t&&n.sortFriendsAlphabetically){D=E.find(".EE_friend");D.sortElements(function(M,U){return $(M).find(".FO_idFUrl").text()>$(U).find(".FO_idFUrl").text()?1:-1})}}else $(".FO_idFriendTrenner").remove()}function u(t,E){S.refreshCaptcha(d.FR_PopAddFriend);d.FR_PopAddFriend.data("friendData",t).find(".idRequestMsg").html(E).end().find(".idUsername").html(Z.formatUser(t)).end().find(".idCaptcha").val("").end().find(".idMsg").val(o("Input_FR_message"));
S.tglAlert(true,d.FR_PopAddFriend)}function A(t,E){if(t=="add"){t=$(E.DOM);E=$(".EE_CBFriends");E.find(".CB_cont").prepend(t);$.event.trigger("extendEE",[t]);t=T("Contentblock",E);t.preloadPreviewImgs();s("totalFriends")}else if(t=="delete"){t=E.id;t=$("#dbFriend_"+t);n.loggedData.totalFriends--;t.removeAni(300,function(){s("totalFriends")})}else if(t=="changeTotalFriendRequests"){t=E.totalFriendRequests;n.loggedData.totalFriendRequests=t;J.updateDisplayVal("MB_TotalFRequests");if(ia.isVisible()&&
d.UB.data("currPane")=="FRequests"){J.updateDisplayVal("PCFR_Subline");n.loggedData.totalFriendRequests==0&&d.PC_Contents.find(".PC_contentsBody").html(e({cl:"PC_contentsBodyEmpty"},o("Text_FR_noRequests")))}}}function B(t){N.tglObjToDelete(t,true);var E=z.readObj("friendObj",t);S.confirmm({headline:o("HL_BP_Confirm_deleteFriendship"),contentText:o("Text_BP_Confirm_deleteFriendship"),okAction:function(){A("delete",{id:E.id});P.post({id:E.id,action:14,state:0})},okTitle:o("TT_GEN_delete"),cancelAction:function(){N.tglObjToDelete(t,
false)}})}function F(t){t=z.readObj("friendObj",t);if(t.fState=="Requested")S.alertt({headline:o("HL_BP_friendAlreadyRequested"),msg:o("Text_BP_friendAlreadyRequested",Z.formatUser(t))});else{var E="";u(t,E)}}function y(t){t=z.readObj("friendObj",t);Ea.showWriteMSPop({userDataArr:[t]})}function v(t){return $.trim(t.toLowerCase().replace("www.",""))}function H(t){return t=t.hasClass("idFstate_1")?"Friends":t.hasClass("idFstate_2")?"Requested":false}function I(t,E){E=E=="Requested"?2:1;t.removeClass("idFstate_1").removeClass("idFstate_2").addClass("idFstate_"+
E)}G8.globalSubscriber.bindOnce("initCreatePageDOMString",g).bindOnce("initExtendPageDOM",k).bindOnce("extendEE",f);return{hideAllFriends:x,showPopAddFriend:u,handleFriendChange:A,getFriendFlag:H,fcbPositionChanged:a,updateFCBDesign:s}}(),Ta=function w(){function a(){K.isLogged()&&aa.bindOnce("click",b)}function b(c){c=$(c.target);if(c.isChildOf(d.PC.find(".PCFR_requestBox .idBtnAccept"))){c=c.parents(".PCFR_requestBox");g(c);return false}else if(c.isChildOf(d.PC.find(".PCFR_requestBox .idBtnRefuse"))){c=
c.parents(".PCFR_requestBox");k(c);return false}else if(c.isChildOf(d.PC.find(".PCFR_requestBox").find(".PC_userUrl,.PC_userName,.SHAF_imgUserThumb"))){c=c.parents(".PCFR_requestBox").data("userData").url;da.gotoUrl("http://"+c);return false}}function f(c){var p=$(e({cl:"PCFR_requestBox"},e({cl:"PC_colLeft"},e({cl:"SHAF_userThumb"},C(z.makeImgPathFromId("share",c.userData.imgId,"thumb"),"SHAF_imgUserThumb"))),e({cl:"PC_colRight"},e({cl:"PC_userName PCFR_UserName"},Z.shortenText(c.userData.name,30)),
e({cl:"PCFR_date"},C("infoicon_gen_fix_updated.png","PC_imgDate"),Z.formatDate(c.date)),e({cl:"clr"}),e({cl:"PC_userUrl"},c.userData.url),e({cl:"PCFR_Msg"},c.text),e({cl:"PCFR_Actions"},C("icon_gen_fix_ok_lo.png","iActObj idBtnAccept",o("TT_FR_acceptFriendship")),C("icon_gen_fix_cancel_lo.png","iActObj idBtnRefuse",o("TT_FR_refuseFriendship")))),e({cl:"clr"}),C("pc_trenner_big.png")));p.data("userData",c.userData).data("requestDate",c.date).find(".PC_userUrl,.PC_userName,.SHAF_imgUserThumb").bindTglHoverClass("GEN_domainHi",
".PCFR_requestBox",".PC_userUrl");return p}function g(c){c.removeAni(300);var p=c.data("userData");P.post({id:p.id,action:14,state:1},{afterSuccess:function(q){q=z.readObj("friendshipJ",q).DOM;j(p.id,1);ja.handleFriendChange("changeTotalFriendRequests",{totalFriendRequests:n.loggedData.totalFriendRequests-1});ja.handleFriendChange("add",{DOM:q})}})}function k(c){c.removeAni(300);var p=c.data("userData");P.post({id:p.id,action:14,state:0},{afterSuccess:function(){j(p.id,0);ja.handleFriendChange("changeTotalFriendRequests",
{totalFriendRequests:n.loggedData.totalFriendRequests-1})}})}function j(c,p){if(c==n.parsedProfileUser.id){n.loggedData.upRelation=p;Ba.updateFriendRelationBtn()}}function m(){if(ia.isVisible()&&d.UB.data("currPane")=="FRequests"){var c=d.PC_Contents.find(".PC_contentsBody"),p=c.find(".PCFR_requestBox:first"),q=p.length?p.data("requestDate"):0;P.post({action:15,fromTime:q},{afterSuccess:function(r){r=z.readObj("FRequestsJ",r);r.totalRequests!=n.loggedData.totalFriendRequests&&ja.handleFriendChange("changeTotalFriendRequests",
{totalFriendRequests:r.totalRequests});J.updateDisplayVal("PCFR_Subline");if(r.requests){p.length||c.empty();$.each(r.requests,function(x,s){x=z.readObj("FRequest",s);f(x).appendTo(c)})}N.extendHoverAndTt(d.PC_Contents)}})}else{clearInterval(n.PCFR.interval);n.PCFR.interval=false}}function h(){var c=d.PC_Contents.find(".PC_contentsBody");d.PC_Contents.find(".PC_contentsHeadColLeft").html(n.brandedMode=="adobe"?L("icon_pcbig_world_lo.png","iActObj idBtnWorld",o("TT_gotoAdobeWorld_logged")):C("icon_pcbig_world_lo.png",
"iActObj idBtnWorld",o("TT_gotoWorld_logged"))).end().find(".PC_contentsHeadHL").html(o("HL_PC_FR")).end().find(".idBtnWorld").bindOnce("click",l);J.updateDisplayVal("PCFR_Subline");P.post({action:15},{afterSuccess:function(p){p=z.readObj("FRequestsJ",p);p.totalRequests!=n.loggedData.totalFriendRequests&&ja.handleFriendChange("changeTotalFriendRequests",{totalFriendRequests:p.totalRequests});J.updateDisplayVal("PCFR_Subline");c.empty();p.requests?$.each(p.requests,function(q,r){q=z.readObj("FRequest",
r);f(q).appendTo(c)}):c.html(e({cl:"PC_contentsBodyEmpty"},o("Text_FR_noRequests")));N.extendHoverAndTt(d.PC_Contents);n.PCFR.interval=setInterval(m,n.PCFR.intervalTime*1E3)}})}function l(){da.gotoUrl(n.urlWorld)}G8.globalSubscriber.bindOnce("initExtendPageDOM",a);return{handleFriendRelationChange:j,fillPCFR:h}}(),Sa=function w(a){var b=this;K.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(L("infoicon_theme_updated.png")).end().find(".FO_idFName").each(function(){var f=$(this);f.html(Z.shortenText(f.html(),25))});N.extendHoverAndTt(a)};Sa.prototype={_hov_tglBar:function w(a){a=a.data.show;var b=$(this);if(J.isInEditMode())a?d.FO_BarDelete.appendTo(b).setPosTo(b.find(".FO_idFName"),["BOTTOMI",-3],["RIGHT",5]).tglFadeIn(300):
d.FO_BarDelete.tglFadeOut(300)},_hov_tglCover:function w(a){if(K.isLogged()){a=a.data.show;var b=$(this),f=b.parents(".EE_friend"),g=K.isLoggedId(z.getEEId(f));if(!g){f=(f=K.isOwner()?true:ja.getFriendFlag(f)=="Friends"?true:false)?d.FO_CoverMsg:d.FO_CoverAdd;a?f.appendTo(b).delay(200).tglFadeIn(300):f.tglFadeOut(250)}}}};var sa=function w(){function a(k){var j=false;if(K.isLogged()&&k==n.parsedLoggedUser.id)j=n.parsedLoggedUser;else $.each(n.adressList,function(m,h){if(h.id==k){j=h;return false}});
return j}function b(k,j){var m=this,h=false;$.each(k,function(l,c){if(c!=undefined)if(!a(c)){h=true;return false}});h?m.updateAdressList(j):j.call()}function f(k){P.post({action:16,id:n.parsedLoggedUser.id},{afterSuccess:function(j){var m=[];$.each(z.readObj("friendsJ",j).users,function(h,l){h=z.readObj("user",l);m.push(h)});n.adressList=m;k&&k.call()}})}function g(k){if(n.adressList.length){var j=true;$.each(n.adressList,function(m,h){m=h;if(m.id==k.id)j=false});n.adressList.push(k)}else n.adressList=
[k]}return{getUserDataByIdFromList:a,handleAdressListUpdate:b,updateAdressList:f,addToAdresssList:g}}(),K=function w(){function a(m){n.loggedData.user[2]=n.profileData.user[2]=m;n.parsedLoggedUser=z.readObj("user",n.loggedData.user);n.parsedProfileUser=z.readObj("user",n.profileData.user);J.updateDisplayVal("DocTitle");J.updateDisplayVal("UserName")}function b(){return z.readObj("auth",n.loggedData.userAuthedStatus)!="notLogged"}function f(){return z.readObj("auth",n.loggedData.userAuthedStatus)==
"ownerLogged"}function g(m){return m==n.parsedLoggedUser.id}function k(){var m=n.loggedData.upRelation;return m=b()?f()?"isOwner":m==1?"isFriend":m==2?"isPending":"isNoFriend":"isNotLogged"}function j(){return retVal=true}return{updateUserName:a,isLogged:b,isOwner:f,isLoggedId:g,getRelation:k,userEditAllowed:j}}(),oa=function w(){function a(){var s="";s+=e({id:"Log_Pop",hid:true},ga.makeBP({headline:"Login",content:e({cl:"idLoginMsg BP_centered BP_infoText"})+e({cl:"idPasswordForm"},e({cl:"BP_label idLabelDomain"},
o("Label_Login_domain")),e({cl:"BP_boxInput"},ea({e:"inp",cl:"BP_inpSmall idDomain"})),e({cl:"BP_label idLabelPassword"},o("Label_Login_password")),e({cl:"BP_boxInput"},ea({e:"pw",cl:"BP_inpSmall idPW"})))+e({cl:"extLinks"},e({cl:"link idLinkPWForgot"},o("Link_Login_pwForgotten")))+(!n.brandedMode?e({cl:"Log_eightpageBadge"},C("badge_loginpop_lo.png","iFadeImg noFadeMsie idBtnBadge",o("TT_GEN_iWantEightpage"))):"")+e({cl:"BP_contControls"},C("icon_bp_ok_lo.png","idBtnOk iActObj",o("TT_GEN_login"))+
C("icon_bp_cancel_lo.png","idBtnCancel iActObj",o("TT_GEN_cancel")))}));s+=e({id:"Log_PopPWRestore",hid:true},ga.makeBP({headline:"",content:e({cl:"BP_centered BP_infoText idInfoText"})+e({cl:"BP_label"},o("Label_PwRestore_domain"))+e({cl:"BP_boxInput"},ea({e:"inp",cl:"BP_inpSmall idDomain Vali_notEmpty"}))+e({cl:"BP_label"},o("Label_PwRestore_email"))+e({cl:"BP_boxInput"},ea({e:"inp",cl:"BP_inpSmall idEmail Vali_email"}))+S.getCaptchaMaster()+(!n.brandedMode?e({cl:"Log_eightpageBadge"},C("badge_loginpop_lo.png",
"iFadeImg noFadeMsie idBtnBadge",o("TT_GEN_iWantEightpage"))):"")+e({cl:"BP_contControls"},C("icon_bp_ok_lo.png","idBtnOkVali iActObj",o("TT_PwRestore_requestPassword"))+C("icon_bp_cancel_lo.png","idBtnCancel iActObj",o("TT_GEN_cancel")))}));n.initDOMString+=s}function b(){var s=["Log_Pop","Log_PopPWRestore"];J.setDOMReference(s);G8.isLocaltest||d.Log_Pop.find(".idPasswordForm").empty().append($("#Page_hiddenLoginForm").find(".idLabelDomain").html(o("Label_Login_domain")).end().find(".idLabelPassword").html(o("Label_Login_password")).end().find("input[name='UP']").val(n.parsedProfileUser.url).end().show());
d.Log_Pop.find(".idDomain,.idPW").bindOnce("focus",{start:true},k).bindOnce("blur",{start:false},k).end().find(".idBtnOk").bindOnce("click",m).end().find(".idLinkPWForgot").bindOnce("click",c).end().find(".idBtnBadge").bindOnce("click",l);N.bindLinkStyle(d.Log_Pop.find(".idLinkPWForgot"));N.extendFadeImgs(d.Log_Pop);d.Log_PopPWRestore.find(".idBtnOkVali").bindOnce("click",r).end().find(".idBtnBadge").bindOnce("click",l);N.extendFadeImgs(d.Log_PopPWRestore)}function f(s){n.brandedMode&&d.Log_Pop.find(".idDomain").val()==
""&&d.Log_Pop.find(".idDomain").val(n.parsedProfileUser.url);s?d.Log_Pop.find(".idLoginMsg").html(s).show():d.Log_Pop.find(".idLoginMsg").hide();S.tglAlert(true,d.Log_Pop)}function g(){f();return false}function k(s){(s=s.data.start)?d.Log_Pop.bindOnce("keypress",j):d.Log_Pop.unbind("keypress",j)}function j(s){s.which==13&&d.Log_Pop.find(".idBtnOk").trigger("click")}function m(){S.tglPreloader(true);d.Log_Pop.find(".idPW").val(X.readFormVal(d.Log_Pop,".idPW"));d.Log_Pop.find(".idDomain").val(X.readFormVal(d.Log_Pop,
".idDomain").replace("www.","").replace("http://","").replace("/",""));X.readFormVal(d.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 h(){function s(){P.post({action:4},{afterSuccess:function(u){u=z.readObj("json",u);n.loggedData.userAuthedStatus=u.authed;n.loggedData.loginError=u.stateError;n.loggedData.user=false;n.parsedLoggedUser=false;n.siteViewMode="View";$(".EE_CB").each(function(){var A=
$(this);if(A.data("privacy")!=P.getAjaxConst("PRIVACY_FLAGS","ALL")){A.removeAni(300);A.hasClass(".EE_CBFriends")&&$(".FO_idFriendTrenner").remove()}});J.displayPage();x()}})}if(ia.isVisible()){d.UB.fadeOut(300);d.PC_Cover.fadeOut(300,function(){s()});d.UB.data("expanded",false);d.AllPageContents.add("#LB_Popup,#LB_Overlay").show()}else s()}function l(){da.gotoUrl(n.urlEightpage)}function c(){q("forgot")}function p(){q("restore")}function q(s){if(s=="forgot"){s=o("HL_PwRestore_passwordForgotten");
var u=o("Text_PwRestore_passwordForgotten")}else{s=o("HL_PwRestore_passwordRestore");u=o("Text_PwRestore_passwordRestore")}S.tglAlert(false,d.Log_Pop);S.refreshCaptcha(d.Log_PopPWRestore);d.Log_PopPWRestore.find(".BP_contHeadline").html(s).end().find(".idInfoText").html(u).end().find(".idDomain").val("").end().find(".idCaptcha").val("");S.tglAlert(true,d.Log_PopPWRestore)}function r(){ka.validateForm(d.Log_PopPWRestore,function(){var s=X.readFormVal(d.Log_PopPWRestore,".idDomain"),u=X.readFormVal(d.Log_PopPWRestore,
".idEmail");s.hasStr("www.")||(s="www."+s);var A=X.readFormVal(d.Log_PopPWRestore,".idCaptcha");P.post({action:35,domain:s,mail:u,captcha:A,lang:n.loggedData.lang},{dontTrace:[1701,2],afterError:function(B){P.handleCaptchaError(B,d.Log_PopPWRestore);P.handlePWRestoreEmailError(B,d.Log_PopPWRestore)},afterSuccess:function(){ka.resetCaptchaError(d.Log_PopPWRestore);S.alertt({autoHide:true,headline:o("HL_BP_Success_passwordRequested"),msg:o("Text_BP_Success_passwordRequested")})}})})}function x(){var s=
n.loggedData.loginError;if(s==1)f(o("Text_Login_problemCookie"));else if(s==2&&K.isLogged())f(o("Text_Login_problemSession"));else if(s==3)f(o("Text_Login_problemPassword"));else if(s==4){f(o("Text_Login_problemLocked")+e({cl:"link idLinkPWRestore"},o("Link_Login_unlockPassword")));d.Log_Pop.find(".idLinkPWRestore").bindOnce("click",p);N.bindLinkStyle(d.Log_Pop.find(".idLinkPWRestore"))}if(K.isLogged()){J.tglUserChronjob("logged",true);J.tglUserChronjob("notLogged",false)}else{J.tglUserChronjob("logged",
false);J.tglUserChronjob("notLogged",true)}}G8.globalSubscriber.bindOnce("initCreatePageDOMString",a).bindOnce("initExtendPageDOM",b);return{showLoginPop:f,clk_showLoginPop:g,clk_submitLogout:h,handleLoginState:x}}();(function w(){function a(){if(K.isLogged()){var g="";g+=e({id:"PCMS_CoverUserThumbMsg",pos:"absolute",hid:true},C("cover_fix_userthumb_msg.png","iActObj",o("TT_GEN_writeMessage")));n.initDOMString+=g}}function b(){if(K.isLogged()){var g=["PCMS_CoverUserThumbMsg"];J.setDOMReference(g)}aa.bindOnce("click",
f)}function f(g){g=$(g.target);if(ia.isVisible())if(g.isChildOf(".PCMS_ToggleFullDialog")){g=g.parents(".PCMS_DialogBox");g=T("Dialog",g);g.tglFullDialog();return false}else if(g.isChildOf(".PCMS_ToggleDialog")){g=g.parents(".PCMS_DialogBox");g=T("Dialog",g);g.tglDialog();return false}else if(g.isChildOf(d.PCMS_CoverUserThumbMsg)){g=g.parents(".PCMS_DialogBox");g=T("Dialog",g);g.writeMessageToUser();return false}else if(g.isChildOf(".PCMS_userDialogPartner,.PC_userTitleRow")){g=g.parents(".PCMS_DialogBox");
g=T("Dialog",g);g.gotoDialogUser();return false}}G8.globalSubscriber.bindOnce("initCreatePageDOMString",a).bindOnce("initExtendPageDOM",b);return{}})();var wa=function w(){function a(m){var h=m.messageData,l=m.totalMessages,c=m.totalNewMessages,p=m.totalMessagesDialog,q=m.totalNewMessagesDialog;g("changeTotals",{totalNewMessages:c,totalMessages:l});var r=K.isLoggedId(h.uidReci)?h.uidSend:h.uidReci;d.PC_Contents.find(".PC_contentsBodyEmpty").remove();var x=false,s=false;d.PC_Contents.find(".PCMS_DialogBox").each(function(){var u=
$(this);s=u.data("dialogUserData");if(s.id==r){x=u;return false}});sa.handleAdressListUpdate([r],function(){if(!x){var u={user:sa.getUserDataByIdFromList(r),totalNewMessages:0,totalMessages:0,messages:[]};s=u.user;u=new La(u);x=u.getJDomObj();x.data("dialogUserData",s);d.PC_Contents.find(".PC_contentsBody").prepend(x);N.extendHoverAndTt(x)}var A=x.find(".PCMS_DirectMessagesBox");h.userDataSend=K.isLoggedId(h.uidSend)?n.parsedLoggedUser:s;A.prepend((new Ma(h,u)).getJDomObj());f(x);n.loggedData.totalMessages=
l;n.loggedData.totalNewMessages=c;x.data("totalMessages",p);x.data("totalNewMessages",q);J.updateDisplayVal("PCMS_DialogHL",{dialogObj:x});J.updateDisplayVal("PCMS_Subline")})}function b(){if(ia.isVisible()&&d.UB.data("currPane")=="Messages"){var m=d.PC_Contents.find(".PC_contentsBody");m.find(".PCMS_MsgBox:first");m=n.latestMessageStamp;P.post({action:40,showDetails:true,lengthDialog:100,fromTime:m},{afterSuccess:function(h){var l=z.readObj("dialogsJ",h);$.each(l.dialogs,function(c,p){var q=z.readObj("dialog",
p);$.each(q.messages,function(r,x){r={messageData:z.readObj("message",x),totalMessages:l.totalMessages,totalNewMessages:l.totalNewMessages,totalMessagesDialog:q.totalMessages,totalNewMessagesDialog:q.totalNewMessages};a(r)})})}})}else{clearInterval(n.PCMS.interval);n.PCMS.interval=false}}function f(m){var h=m.find(".PCMS_MsgBox"),l=m.find(".PCMS_DirectMessagesBox"),c=m.find(".PCMS_FullDialogBox");if(h.length){m=m.find(".PCMS_ToggleFullDialog");h.filter(":lt("+n.maxDirectMessages+")").appendTo(l);
if(h.length>n.maxDirectMessages){m.show();h.filter(":gt("+(n.maxDirectMessages-1)+")").appendTo(c);h.filter(":last").find(".PCMS_imgTrennerSmall").remove()}else m.add(c).hide()}else m.removeAni(300)}function g(m,h){if(m=="changeTotals"){if(h.totalNewMessages!=undefined)n.loggedData.totalNewMessages=h.totalNewMessages;if(h.totalMessages!=undefined)n.loggedData.totalMessages=h.totalMessages;J.updateDisplayVal("MB_TotalMessages");if(ia.isVisible()&&d.UB.data("currPane")=="Messages"){J.updateDisplayVal("PCMS_Subline");
n.loggedData.totalMessages==0&&d.PC_Contents.find(".PC_contentsBody").html(e({cl:"PC_contentsBodyEmpty"},o("Text_MS_noMessages")))}}}function k(){n.parsedLoggedUser&&n.parsedLoggedUser.url=="www.eightpageteam.com"&&n.parsedProfileUser.url=="www.eightpageteam.com"?Ea.showWriteMSPop({writeToAllFriends:true}):Ea.showWriteMSPop()}function j(){var m=d.PC_Contents.find(".PC_contentsBody");d.PC_Contents.find(".PC_contentsHeadColLeft").html(C("icon_pcbig_writemsg_lo.png","iActObj idBtnWriteNew",o("TT_GEN_writeMessage"))).end().find(".PC_contentsHeadHL").html(o("HL_PC_MS")).end().find(".idBtnWriteNew").bindOnce("click",
k);J.updateDisplayVal("PCMS_Subline");P.post({action:40,showDetails:true,lengthDialog:100},{afterSuccess:function(h){m.empty();h=z.readObj("dialogsJ",h);g("changeTotals",{totalNewMessages:h.totalNewMessages,totalMessages:h.totalMessages});if(h.dialogs){$.each(h.dialogs,function(l,c){l=z.readObj("dialog",c);c=(new La(l)).getJDomObj();m.append(c);f(c);sa.addToAdresssList(l.user)});N.extendHoverAndTt(d.PC_Contents)}else m.html(e({cl:"PC_contentsBodyEmpty"},o("Text_MS_noMessages")));n.PCMS.interval=setInterval(b,
n.PCMS.intervalTime*1E3)}})}return{fillPCMS:j,addMessage:a,handleMsgChange:g,updatePCMSDesign:f}}();(function w(){function a(g){g=$(g.target);if(ia.isVisible())if(g.isChildOf(".PCMS_ToggleReply")){g=g.parents(".PCMS_MsgBox");g=T("Message",g);g.tglReply();return false}else if(g.isChildOf(".PCMS_Subject")){g=g.parents(".PCMS_MsgBox");g=T("Message",g);g.tglMessage();return false}else if(g.isChildOf(".idBtnReply")){g=g.parents(".PCMS_MsgBox");g=T("Message",g);g.submitReply();return false}}function b(){if(K.isLogged()){var g=
"";g+=e({id:"PCMS_BtnMsgDelete",hid:true},C("icon_gen_fix_delete_mini_lo.png","idBtnDelete iActObj",o("TT_PC_MS_deleteMessage")));n.initDOMString+=g}}function f(){if(K.isLogged()){var g=["PCMS_BtnMsgDelete"];J.setDOMReference(g);aa.bindOnce("click",a)}}G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f);return{}})();var Ea=function w(){function a(){if(K.isLogged()){var u="";u+=e({id:"WriteMS_Pop",hid:true},ga.makeBP({size:"big",headline:o("HL_BP_WriteMS_writeMessage"),
content:e({cl:"BP_label"},o("Label_BP_WriteMS_to"))+e({cl:"idSendToBoxes BP_boxInput"},e({cl:"BP_divBigInp WriteMS_adressInputBox"},ea({e:"inp",cl:"BP_inpInvisible idSendTo Vali_hasRecipient"})))+e({cl:"BP_label"},o("Label_BP_WriteMS_subject"))+e({cl:"BP_boxInput"},ea({e:"inp",cl:"BP_inpBig idSubject Vali_notEmpty"}))+e({cl:"BP_label"},o("Label_BP_WriteMS_message"))+e({cl:"BP_boxInput"},ea({e:"txt",cl:"BP_inptxtBig idMsg Vali_notEmpty"})),controls:C("icon_bp_send_lo.png","idBtnOkVali iActObj",o("TT_GEN_sendMessage"))+
C("icon_bp_cancel_lo.png","idBtnCancel iActObj",o("TT_GEN_cancel"))}));u+=e({id:"WriteMS_AdressList",hid:true},e({hid:true,id:"WriteMS_AdressListPreview"},e({cl:"SHA_userMini"},C("preview_user_mini.png","SHA_imgUserMini idPreviewImg"))),e({cl:"WriteMS_adressListTop"}),e({cl:"WriteMS_adressListContents"}),e({cl:"WriteMS_adressListBot"}));n.initDOMString+=u}}function b(){if(K.isLogged()){var u=["WriteMS_Pop","WriteMS_AdressList","WriteMS_AdressListPreview"];J.setDOMReference(u);d.WriteMS_Pop.find(".idBtnOkVali").bindOnce("click",
f).end().find(".idSendTo").bindOnce("blur",k).bindOnce("focus",g)}}function f(){ka.validateForm(d.WriteMS_Pop,function(){var u=[];d.WriteMS_Pop.data("writeToAllFriends")?$(".EE_friend").each(function(){var y=$(this);u.push({id:z.getEEId(y)})}):d.WriteMS_Pop.find(".WriteMS_idAdressObj").each(function(){u.push($(this).data("userData"))});var A=X.readFormVal(d.WriteMS_Pop,".idSubject"),B=X.readFormVal(d.WriteMS_Pop,".idMsg"),F=[];$.each(u,function(y,v){F.push(v.id)});P.post({action:19,"id[]":F,subject:A,
text:B},{afterSuccess:function(y){S.alertt({autoHide:n.alertAutohideTime,headline:o("HL_BP_Success_messageSent"),msg:o("Text_BP_Success_messageSent")});var v=z.readObj("dialogsJ",y);$.each(v.dialogs,function(H,I){H=z.readObj("dialog",I);H={messageData:z.readObj("message",H.messages[0]),totalMessages:v.totalMessages,totalNewMessages:v.totalNewMessages,totalMessagesDialog:H.totalMessages,totalNewMessagesDialog:H.totalNewMessages};wa.addMessage(H)})}})})}function g(){$(this).bindOnce("keyup",j)}function k(){$(this).unbind("keyup",
j).val("");d.WriteMS_AdressList.fadeOut(300)}function j(u){c(X.readFormVal(d.WriteMS_Pop.find(".idSendTo")));if(u.which==38)l("up");else if(u.which==40)l("down");else u.which==13&&h()}function m(){var u=$(this);u=u.data("userData");p(u)}function h(){var u=d.WriteMS_AdressList.find(".WriteMS_adressListEntryHi");if(u.length){u=u.data("userData");p(u)}}function l(u){if(d.WriteMS_AdressList.is(":visible")){var A=d.WriteMS_AdressList.find(".WriteMS_idAdressListEntry:visible"),B=A.index(d.WriteMS_AdressList.find(".WriteMS_adressListEntryHi"));
if(u=="down"&&B<A.length-1){A.eq(B).removeClass("WriteMS_adressListEntryHi").end().eq(B+1).addClass("WriteMS_adressListEntryHi");x(true,A.eq(B+1))}else if(u=="up"&&B>0){A.eq(B).removeClass("WriteMS_adressListEntryHi").end().eq(B-1).addClass("WriteMS_adressListEntryHi");x(true,A.eq(B-1))}}}function c(u){function A(v){var H=false;d.WriteMS_Pop.find(".WriteMS_idAdressObj").each(function(){if($(this).data("userData").id==v.id)H=true});return H}var B=d.WriteMS_Pop.find(".idSendTo"),F=n.adressList,y=d.WriteMS_AdressList.find(".WriteMS_adressListContents");
if(d.WriteMS_AdressList.is(":hidden")){y.empty();$.each(F,function(v,H){$(e({cl:"WriteMS_idAdressListEntry"},e({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",m).appendTo(y)});d.WriteMS_AdressList.setPosTo(B,"LEFTI","BOTTOM").fadeIn(300)}d.WriteMS_AdressList.find(".WriteMS_idAdressListEntry").each(function(){var v=
$(this),H=v.find(".WriteMS_idAdressEntryName"),I=v.find(".WriteMS_idAdressEntryUrl");if((H.text().hasStr(u)||I.text().hasStr(u))&&!A(v.data("userData"))){v.show();v=new RegExp(u,"i");H.html(H.text().replace(v,ea({e:"sp",cl:"WriteMS_adressEntryMatch"},u)));I.html(I.text().replace(v,ea({e:"sp",cl:"WriteMS_adressEntryMatch"},u)))}else{v.removeClass("WriteMS_adressListEntryHi").hide();x(false,v)}})}function p(u){var A=d.WriteMS_Pop.find(".idSendToBoxes"),B=A.find(".idSendTo"),F=B.parent();u=$(e({cl:"WriteMS_idAdressObj"},
Z.formatUser(u))).data("userData",u);var y=$(e({cl:"BP_divBigInp WriteMS_adressInputBox"})),v=$(C("icon_gen_fix_delete_mini_lo.png","WriteMS_imgBtnDeleteAdress iActObj",o("TT_BP_WriteMS_removeAdress")));F.append(u).append(v);A.append(y.append(B));N.extendHoverAndTt(v);v.bindOnce("click",q)}function q(){var u=$(this);u=u.parent();u.remove()}function r(u){u=u.data.show;var A=$(this),B=d.WriteMS_AdressList.find(".WriteMS_idAdressListEntry");if(u){B.filter(function(){return this!=A.get(0)}).removeClass("WriteMS_adressListEntryHi");
A.addClass("WriteMS_adressListEntryHi");x(true,A)}else{B.removeClass("WriteMS_adressListEntryHi");x(false,A)}}function x(u,A){u?d.WriteMS_AdressListPreview.find(".idPreviewImg").attr("src",z.makeImgPathFromId("share",A.data("userData").imgId,"mini")).end().setPosTo(A,["RIGHTI",-20],"BOTTOMI").tglFadeIn(300):d.WriteMS_AdressListPreview.tglFadeOut(300)}function s(u){u=u||{};d.WriteMS_Pop.find(".idSendTo,.idSubject,.idMsg").val("");d.WriteMS_Pop.find(".WriteMS_idAdressObj").each(function(){$(this).parent().remove()});
sa.updateAdressList();u.userDataArr&&$.each(u.userDataArr,function(A,B){p(B)});u.writeToAllFriends?d.WriteMS_Pop.data("writeToAllFriends",true).find(".idSendTo").val("MESSAGE ALL FRIENDS!!!").removeClass("Vali_hasRecipient"):d.WriteMS_Pop.data("writeToAllFriends",false).find(".idSendTo").addClass("Vali_hasRecipient");S.tglAlert(true,d.WriteMS_Pop)}G8.globalSubscriber.bindOnce("initCreatePageDOMString",a).bindOnce("initExtendPageDOM",b);return{showWriteMSPop:s}}(),La=function w(a){var b=this,f=a.user,
g=$(e({cl:"PCMS_DialogBox"},e({cl:"PC_colLeft"},e({cl:"SHAF_userThumb idDialogUser"},C(z.makeImgPathFromId("share",f.imgId,"thumb"),"SHAF_imgUserThumb"))),e({cl:"PC_colRight"},e({cl:"PC_userTitleRow"},e({cl:"PC_userName"},Z.shortenText(f.name,30)),e({cl:"PC_userUrl PCMS_UserUrl"},f.url)),e({cl:"PCMS_ToggleDialog"},C("icon_gen_fix_toggle_collapsed_lo.png","iActObj PCMS_imgToggler idTogglerDialog"),e({cl:"PCMS_DialogTotalMsgs tgl_togglerText"})),e({cl:"PCMS_DialogContents"},e({cl:"PCMS_DirectMessagesBox"}),
e({cl:"PCMS_ToggleFullDialog"},C("icon_gen_fix_toggle_collapsed_lo.png","iActObj PCMS_imgToggler idTogglerFullDialog"),o("Text_MS_Tgl_allMessages")),e({cl:"PCMS_FullDialogBox"}))),e({cl:"clr"}),C("pc_trenner_big.png")));g.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:g});var k=g.find(".PCMS_FullDialogBox").empty();$.each(a.messages,function(j,m){j=z.readObj("message",m);j.userDataSend=K.isLoggedId(j.uidSend)?n.parsedLoggedUser:f;k.append((new Ma(j,b)).getJDomObj())});b._glo_jDomObj=g;la.setJDomToObjMapping("Dialog",g,b)};La.prototype={getJDomObj:function w(){var a=this;return a._glo_jDomObj},
tglFullDialog:function w(){var a=this,b=a._glo_jDomObj;a=b.find(".PCMS_FullDialogBox");b=b.find(".idTogglerFullDialog");ha.tglBox(a,b,"PCMS_FullDialog")},tglDialog:function w(){var a=this,b=a._glo_jDomObj;a=b.find(".PCMS_DialogContents");b=b.find(".idTogglerDialog");ha.tglBox(a,b,"PCMS_Dialog")},_hov_tglCoverDialogUser:function w(a){a=a.data.show;var b=$(this);a?d.PCMS_CoverUserThumbMsg.appendTo(b).tglFadeIn(300):d.PCMS_CoverUserThumbMsg.tglFadeOut(250)},writeMessageToUser:function w(){var a=this;
a=a._glo_jDomObj.data("dialogUserData");Ea.showWriteMSPop({userDataArr:[a]})},gotoDialogUser:function w(){var a=this;a=a._glo_jDomObj.data("dialogUserData");da.gotoUrl("http://"+a.url)}};var Ma=function w(a,b){var f=this;f._glo_parentDialogObj=b;if(a.date>n.latestMessageStamp)n.latestMessageStamp=a.date;b=K.isLoggedId(a.uidSend);var g=$(e({cl:"PCMS_MsgBox"},e({cl:"SHAF_userMini PCMS_UserMini PC_userMiniLeft"},C(z.makeImgPathFromId("share",a.userDataSend.imgId,"mini"),"SHAF_imgUserMini")),e({cl:"PCMS_subjectRow"},
e({cl:"PCMS_Subject"},C("icon_gen_fix_toggle_collapsed_lo.png","iActObj PCMS_imgToggler idTogglerMessage"),a.subject),e({cl:"PCMS_date"},C("infoicon_gen_fix_updated.png","PC_imgDate"),Z.formatDate(a.date,"long")),e({cl:"clr"})),e({cl:"PCMS_MsgContents"},e({cl:"PCMS_Msg"},a.text),b?"":e({cl:"PCMS_ReplyBox"},e({cl:"PCMS_ToggleReply"},C("icon_gen_fix_toggle_collapsed_lo.png","iActObj PCMS_imgToggler idTogglerReply",o("TT_MS_Tgl_reply")),o("Text_MS_Tgl_reply")),e({cl:"PCMS_ReplayForm"}))),C("pc_trenner_small.png",
"PCMS_imgTrennerSmall")));g.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)&&g.find(".PCMS_Subject").addClass("PCMS_Unread");b||g.find(".PCMS_UserMini").addClass("PCMS_userDialogPartner").find(".SHAF_imgUserMini").addClass("iActObj").setAltText(o("TT_MS_visitUser"));N.extendTextLinks(g.find(".PCMS_Msg"));N.extendHoverAndTt(g);
f._glo_jDomObj=g;la.setJDomToObjMapping("Message",g,f)};Ma.prototype={getJDomObj:function w(){var a=this;return a._glo_jDomObj},_isUnread:function w(a){return a.state==1},submitReply:function w(){var a=this;msgBox=a._glo_jDomObj;ka.validateForm(msgBox,function(){var b=msgBox.data("messageData").userDataSend,f=X.readFormVal(msgBox,".PCMS_ReplyFieldSubject"),g=X.readFormVal(msgBox,".PCMS_ReplyFieldMsg");b=[b.id];a.tglReply();P.post({action:19,"id[]":b,subject:f,text:g},{afterSuccess:function(k){S.alertt({autoHide:n.alertAutohideTime,
headline:o("HL_BP_Success_messageSent"),msg:o("Text_BP_Success_messageSent")});var j=z.readObj("dialogsJ",k);$.each(j.dialogs,function(m,h){m=z.readObj("dialog",h);m={messageData:z.readObj("message",m.messages[0]),totalMessages:j.totalMessages,totalNewMessages:j.totalNewMessages,totalMessagesDialog:m.totalMessages,totalNewMessagesDialog:m.totalNewMessages};wa.addMessage(m)})}})})},tglMessage:function w(){var a=this,b=a._glo_jDomObj,f=b.find(".idTogglerMessage"),g=b.find(".PCMS_MsgContents");g.data("expanded")||
a._isUnread(b.data("messageData"))&&a._markRead(b);ha.tglBox(g,f,"PCMS_Message")},_markRead:function w(a){a.find(".PCMS_Subject").removeClass("PCMS_Unread");a.data("messageData").state=2;var b=a,f=a.parents(".PCMS_DialogBox");P.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(g){g=z.readObj("dialogsJ",g);var k=z.readObj("dialog",g.dialogs[0]);f.data("totalMessages",k.totalMessages);
f.data("totalNewMessages",k.totalNewMessages);wa.handleMsgChange("changeTotals",{totalMessages:g.totalMessages,totalNewMessages:g.totalNewMessages});J.updateDisplayVal("PCMS_DialogHL",{dialogObj:f})}})},tglReply:function w(){var a=this;msgObj=a._glo_jDomObj;a=msgObj.find(".idTogglerReply");var b=msgObj.find(".PCMS_ReplayForm");if(!b.data("expanded")){var f=e({cl:"BP_boxInput"},ea({e:"inp",cl:"PCMS_ReplyFieldSubject Vali_notEmpty"}))+e({cl:"BP_boxInput"},ea({e:"txt",cl:"PCMS_ReplyFieldMsg Vali_notEmpty"}))+
e({cl:"PCMS_ReplyActions"},C("icon_gen_fix_send_lo.png","iActObj idBtnReply",o("TT_GEN_sendMessage")));b.html(f);b.find(".PCMS_ReplyFieldSubject").val("RE: "+G8.ax_jqxtnd.unescapeHtml(msgObj.data("messageData").subject));N.extendHoverAndTt(b)}ha.tglBox(b,a,"PCMS_Reply")},_clk_btnDelete:function w(a){a=a.data.thiss;var b=a._glo_jDomObj,f=b.data("messageData");N.tglObjToDelete(b,true);S.confirmm({headline:o("HL_BP_Confirm_deleteMessage"),okTitle:o("TT_GEN_delete"),okAction:function(){var g=b.parents(".PCMS_DialogBox");
b.removeAni(300,function(){wa.updatePCMSDesign(g)});P.post({id:f.mid,action:20,state:0},{afterSuccess:function(k){k=z.readObj("dialogsJ",k);var j=z.readObj("dialog",k.dialogs[0]);g.data("totalMessages",j.totalMessages);g.data("totalNewMessages",j.totalNewMessages);wa.handleMsgChange("changeTotals",{totalMessages:k.totalMessages,totalNewMessages:k.totalNewMessages});J.updateDisplayVal("PCMS_DialogHL",{dialogObj:g})}})},cancelAction:function(){N.tglObjToDelete(b,false)}});return false},_hov_tglBtnDelete:function w(a){var b=
a.data.thiss,f=b._glo_jDomObj;if(a=a.data.show){d.PCMS_BtnMsgDelete.bindOnce("click",{thiss:b},b._clk_btnDelete).appendTo(f).tglFadeInXB(300);N.extendHoverAndTt(d.PCMS_BtnMsgDelete)}else d.PCMS_BtnMsgDelete.tglFadeOutXB(300)}};(function w(){function a(){aa.bindOnce("click",b)}function b(f){f=$(f.target);if(ia.isVisible())if(f.isChildOf(".PCFeed_userInfo, .PCFeed_idImgNewsUser")){f=f.parents(".PCFeed_box");p_feedObj=T("FeedEntry",f);p_feedObj.gotoFeedUser();return false}else if(f.isChildOf(".PCNF_box .PCFeed_commentedUserHL,.PCNF_box .PC_userMiniLeft")){f=
f.parents(".PCFeed_box");p_feedObj=T("FeedEntry",f);p_feedObj.gotoCommentedUser();return false}else if(f.isChildOf(".PCFeed_commentText")){f=f.parents(".PCFeed_box");p_feedObj=T("FeedEntry",f);p_feedObj.gotoComment();return false}else if(f.isChildOf(".PCFeed_descHL,.PCFeed_itemBEntry,.PCFeed_itemText,.PCFeed_itemVideo,.PCFeed_itemGallery,.PCFeed_userMiniFriend,.PCFeed_itemProfile")){f=f.parents(".PCFeed_box");p_feedObj=T("FeedEntry",f);p_feedObj.gotoElement();return false}}G8.globalSubscriber.bindOnce("initExtendPageDOM",
a);return{}})();var Na=function w(){function a(){if(ia.isVisible()&&d.UB.data("currPane")=="Comments"){var j=d.PC_Contents.find(".PC_contentsBody"),m=j.find(".PCFeed_box:first"),h=m.length?T("FeedEntry",m).getTimestamp():0;P.post({action:41,fromTime:h},{afterSuccess:function(l){var c=z.readObj("commentsJ",l);if(c.comments.length){m.length||j.empty();var p=[];$.each(c.comments,function(q,r){p.push(z.readObj("comment",r).userData.uid)});sa.handleAdressListUpdate(p,function(){$.each(c.comments,function(q,
r){q=z.readObj("comment",r);q=(new Fa("commentfeed",q)).getJDomObj();m.length?m.before(q):j.append(q)})})}}})}else{clearInterval(n.Feed.intervalCF);n.Feed.intervalCF=false}}function b(){if(ia.isVisible()&&d.UB.data("currPane")=="Newsfeed"){var j=d.PC_Contents.find(".PC_contentsBody"),m=j.find(".PCFeed_box:first"),h=m.length?T("FeedEntry",m).getTimestamp():0;P.post({action:42,withComments:true,fromTime:h},{afterSuccess:function(l){var c=z.readObj("friendsfeedJ",l);if(c.news.length){m.length||j.empty();
var p=[];$.each(c.news,function(q,r){p.push(z.readObj("news",r).uid)});sa.handleAdressListUpdate(p,function(){$.each(c.news,function(q,r){q=z.readObj("news",r);if(q.feedAction!="FRIEND"){q=(new Fa("newsfeed",q)).getJDomObj();m.length?m.before(q):j.append(q)}})})}}})}else{clearInterval(n.Feed.intervalNF);n.Feed.intervalNF=false}}function f(){var j=d.PC_Contents.find(".PC_contentsBody");d.PC_Contents.find(".PC_contentsHeadColLeft").empty().end().find(".PC_contentsHeadHL").html(o("HL_PC_NF")).end();
J.updateDisplayVal("PCNF_Subline");P.post({action:42,withComments:true},{afterSuccess:function(m){var h=z.readObj("friendsfeedJ",m);j.empty();if(h.news.length){var l=[];$.each(h.news,function(c,p){l.push(z.readObj("news",p).uid)});sa.handleAdressListUpdate(l,function(){$.each(h.news,function(c,p){c=z.readObj("news",p);if(c.feedAction!="FRIEND"){c=(new Fa("newsfeed",c)).getJDomObj();j.append(c)}})})}else j.html(e({cl:"PC_contentsBodyEmpty"},o("Text_NF_noFeeds")));N.extendHoverAndTt(d.PC_Contents);
n.Feed.intervalNF=setInterval(b,n.Feed.intervalTime*1E3)}})}function g(j){n.loggedData.totalNewComments=j;J.updateDisplayVal("MB_TotalComments")}function k(){var j=d.PC_Contents.find(".PC_contentsBody");d.PC_Contents.find(".PC_contentsHeadColLeft").empty().end().find(".PC_contentsHeadHL").html(o("HL_CF_Main")).end();J.updateDisplayVal("PCCF_Subline");P.post({action:41},{afterSuccess:function(m){var h=z.readObj("commentsJ",m);g(0);j.empty();if(h.comments.length){var l=[];$.each(h.comments,function(c,
p){l.push(z.readObj("comment",p).userData.uid)});sa.handleAdressListUpdate(l,function(){$.each(h.comments,function(c,p){c=z.readObj("comment",p);c=(new Fa("commentfeed",c)).getJDomObj();j.append(c)})})}else j.html(e({cl:"PC_contentsBodyEmpty"},o("Text_CF_noComments")));N.extendHoverAndTt(d.PC_Contents);n.Feed.intervalCF=setInterval(a,n.Feed.intervalTime*1E3)}})}return{fillPCNF:f,fillPCCF:k,handleTotalNewCommentsChange:g}}(),Fa=function w(a,b){var f,g=this._makeFeedMarkup;if(a=="newsfeed"){f=b;b=sa.getUserDataByIdFromList(f.uid);
var k;if(f.feedAction=="TEXT"){k=z.readObj("feedElement",f.content);f.itemId=k.id;k=k.children;var j=k[0].value1;k=g("newsUser",b)+e({cl:"PCFeed_description"},o("Text_NF_CreatedText",Y({cl:"PCFeed_descHL"},j)))+g("newsDate",f)+g("itemText",k)}else if(f.feedAction=="VIDEO"){k=z.readObj("feedElement",f.content);f.itemId=k.id;k=k.children;j=k[0].value1;k=g("newsUser",b)+e({cl:"PCFeed_description"},o("Text_NF_CreatedVideo",Y({cl:"PCFeed_descHL"},j)))+g("newsDate",f)+g("itemVideo",k)}else if(f.feedAction==
"GALLERY"){k=z.readObj("feedElement",f.content);f.itemId=k.id;k=k.children;j=k[0].value1;k=g("newsUser",b)+e({cl:"PCFeed_description"},o("Text_NF_CreatedGallery",Y({cl:"PCFeed_descHL"},j)))+g("newsDate",f)+g("itemGallery",k)}else if(f.feedAction=="BLOGENTRY"){k=z.readObj("feedElement",f.content);f.itemId=k.id;j=k.line1;k=g("newsUser",b)+e({cl:"PCFeed_description"},o("Text_NF_CreatedBlogentry",Y({cl:"PCFeed_descHL"},j)))+g("newsDate",f)+g("itemBlogEntry",k)}else if(f.feedAction=="FRIEND"){var m=z.readObj("user",
f.content);f.friendData=m;k=Z.shortenText(m.name,25);k=g("newsUser",b)+e({cl:"PCFeed_description"},o("Text_NF_MadeFriendship",Y({cl:"PCFeed_descHL"},k)))+g("newsDate",f)+g("itemFriends",b,m)}else if(f.feedAction=="PROFILEIMG")k=g("newsUser",b)+e({cl:"PCFeed_description"},o("Text_NF_ChangedProfileImg"))+g("newsDate",f);else if(f.feedAction=="COMMENT"){k=z.readObj("comment",f.content);m=k.commentedUser;var h=k.commentedElement,l=h.type,c=h.mode,p=this._getCommentedItemType(l,c);l=k.text;var q;c=Y({cl:"PCFeed_commentedUserHL"},
Z.shortenText(m.name,22)+"'s");f.commentedData={cid:k.id,userData:m,itemType:p,itemId:h.id};if(p=="BEntry"){q=h;j=q.line1;j=o("Text_NF_CommentedBlogentry",c,Y({cl:"PCFeed_descHL"},j));q=g("commentedUserImg",m)+g("itemBlogEntry",q)}else if(p=="Text"){q=h.children;j=q[0].value1;j=o("Text_NF_CommentedText",c,Y({cl:"PCFeed_descHL"},j));q=g("commentedUserImg",m)+g("itemText",q)}else if(p=="Video"){q=h.children;j=q[0].value1;j=o("Text_NF_CommentedVideo",c,Y({cl:"PCFeed_descHL"},j));q=g("commentedUserImg",
m)+g("itemVideo",q)}else if(p=="GalImg"){q=h;j=q.line1;j=o("Text_NF_CommentedGalImg",c,Y({cl:"PCFeed_descHL"},j));q=g("commentedUserImg",m)+g("itemGalImg",q)}else if(p=="Profile"){k=Z.shortenText(m.name,30);j=o("Text_NF_CommentedProfile",Y({cl:"PCFeed_descHL PCFeed_commentedUserHL"},k));q=g("commentedUserImg",m)+g("itemProfile",m)}k=e({cl:"PC_bubble"},e({cl:"PC_bubbleTop"},g("newsUser",b),e({cl:"PCFeed_description"},j),g("newsDate",f),e({cl:"PCFeed_commentText"},l)),e({cl:"PC_bubbleBot"}))+e({cl:"PC_commentedItems"},
q)}k=$(e({cl:"PCNF_box PCFeed_box"},e({cl:"PC_colLeft"},e({cl:"SHAF_userThumb"},C(z.makeImgPathFromId("share",b.imgId,"thumb"),"SHAF_imgUserThumb PCFeed_idImgNewsUser"))),e({cl:"PC_colRight"},k),e({cl:"clr PCFeed_clr"})));f.userData=b;k.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=k}else if(a=="commentfeed"){k=b;b=k.userData;m=n.parsedLoggedUser;h=k.commentedElement;l=h.type;c=h.mode;p=this._getCommentedItemType(l,c);l=k.text;k.itemType=p;if(p=="BEntry"){q=h;j=q.line1;j=o("Text_CF_CommentedBlogentry",Y({cl:"PCFeed_descHL"},j));q=g("itemBlogEntry",q)}else if(p=="Text"){q=h.children;
j=q[0].value1;j=o("Text_CF_CommentedText",Y({cl:"PCFeed_descHL"},j));q=g("itemText",q)}else if(p=="Video"){q=h.children;j=q[0].value1;j=o("Text_CF_CommentedVideo",Y({cl:"PCFeed_descHL"},j));q=g("itemVideo",q)}else if(p=="GalImg"){q=h;j=q.line1;j=o("Text_CF_CommentedGalImg",Y({cl:"PCFeed_descHL"},j));q=g("itemGalImg",q)}else if(p=="Profile"){Z.shortenText(m.name,30);j=o("Text_CF_CommentedProfile");q=g("itemProfile",m)}f=e({cl:"PC_bubble"},e({cl:"PC_bubbleTop"},g("newsUser",b),e({cl:"PCFeed_description"},
j),g("newsDate",k),e({cl:"PCFeed_commentText"},l)),e({cl:"PC_bubbleBot"}))+e({cl:"PC_commentedItems"},q);b=$(e({cl:"PCFeed_box PCCF_box"},e({cl:"PC_colLeft"},e({cl:"SHAF_userThumb"},C(z.makeImgPathFromId("share",b.imgId,"thumb"),"SHAF_imgUserThumb PCFeed_idImgNewsUser"))),e({cl:"PC_colRight"},f),e({cl:"clr PCFeed_clr"})));b.find(".PCFeed_userInfo,.PCFeed_idImgNewsUser").bindTglHoverClass("GEN_domainHi",".PCFeed_box",".PCNF_idUserUrl").end();this._glo_commentData=k;f=b}N.extendHoverAndTt(f);this._glo_jDomObj=
f;this._glo_feedMode=a;la.setJDomToObjMapping("FeedEntry",f,this)};Fa.prototype={_makeFeedMarkup:function w(a,b,f){var g;if(a=="newsUser")g=e({cl:"PCFeed_userInfo"},e({cl:"PC_userName"},Z.shortenText(b.name,30))+e({cl:"PC_userUrl PCNF_idUserUrl"},b.url));else if(a=="newsDate")g=e({cl:"PCFeed_date"},C("infoicon_gen_fix_updated.png","PC_imgDate")+Z.formatDate(b.date,"long"));else if(a=="itemText")g=e({cl:"PCFeed_itemText"},b[1].value1);else if(a=="itemGallery"){var k="";$.each(b,function(j,m){if(j!=
0){m=m;k+=e({cl:"PCFeed_itemGalImg SHAF_galThumb"},C(z.makeImgPathFromId("UP",m.value1,"thumb"),"SHAF_imgGalThumb",m.line1))}if(j>n.Feed.maxGalImgs)return false});g=e({cl:"PCFeed_itemGallery"},k)}else if(a=="itemGalImg"){b=e({cl:"PCFeed_itemGalImg SHAF_galThumb"},C(z.makeImgPathFromId("UP",b.value1,"thumb"),"SHAF_imgGalThumb"));g=e({cl:"PCFeed_itemGallery"},b)}else if(a=="itemBlogEntry"){a=b.value1;b=b.children.length?e({cl:"SHAF_blogThumbmb PCFeed_itemBEntryImg"},e({cl:"SHAF_blogThumbmbBot"}),C(z.makeImgPathFromId("UP",
b.children[0].value1,"normal"),"SHAF_imgBlogThumb")):"";g=e({cl:"PCFeed_itemBEntry"},e({cl:"PCFeed_itemBEntryText"},a),b,e({cl:"clr"}))}else if(a=="itemVideo"){a=pa.readEmbedVideo(b[1].value1).url;f=pa.makeEmbedMarkup(a,"thumb");a=b[2].value1;g=e({cl:"PCFeed_itemVideo SHA_videoThumb"},f,e({cl:"Video_ThumbVideoCover"}))}else if(a=="itemFriends")g=e({cl:"PCFeed_itemFriendship"},e({cl:"SHAF_userMini PC_userMiniLeft"},C(z.makeImgPathFromId("share",b.imgId,"mini"),"SHAF_imgUserMini PCFeed_idImgNewsUser")),
e({cl:"SHAF_userMini PCFeed_userMiniFriend"},C(z.makeImgPathFromId("share",f.imgId,"mini"),"SHAF_imgUserMini PCFeed_idImgFriendUser")),C("infoicon_gen_fix_befriend.png","PCNF_friendshipIcon"));else if(a=="commentedUserImg")g=e({cl:"SHAF_userMini PC_userMiniLeft"},C(z.makeImgPathFromId("share",b.imgId,"mini"),"SHAF_imgUserMini PCFeed_idImgCommentedUser"));else if(a=="itemProfile")g=e({cl:"PCFeed_itemProfile"},e({cl:"PC_userName"},Z.shortenText(b.name,30))+e({cl:"PC_userUrl"},b.url));return g},_getCommentedItemType:function w(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 w(){return this._glo_jDomObj},getTimestamp:function w(){var a=this._glo_feedMode=="newsfeed"?this._glo_newsData.date:this._glo_commentData.date;return a},gotoFeedUser:function w(){var a=this._glo_feedMode=="newsfeed"?this._glo_newsData.userData:this._glo_commentData.userData;da.gotoUrl("http://"+a.url)},gotoCommentedUser:function w(){var a=this._glo_newsData.commentedData.userData;
da.gotoUrl("http://"+a.url)},gotoComment:function w(){if(this._glo_feedMode=="newsfeed"){var a=this._glo_newsData,b=a.commentedData;a=b.userData.url;var f=b.cid,g=b.itemId;b=b.itemType;this._jumpToUserElement({url:a,elementId:g,elementType:b,commentId:f})}else if(this._glo_feedMode=="commentfeed"){b=this._glo_commentData;a=n.parsedLoggedUser.url;f=b.id;g=b.commentedElement.id;b=b.itemType;this._jumpToUserElement({url:a,elementId:g,elementType:b,commentId:f})}},gotoElement:function w(){if(this._glo_feedMode==
"newsfeed"){var a=this._glo_newsData,b,f,g=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:g,elementId:b,elementType:f})}else if(this._glo_feedMode=="commentfeed"){a=this._glo_commentData;g=n.parsedLoggedUser.url;b=a.commentedElement.id;f=a.itemType;this._jumpToUserElement({url:g,elementId:b,elementType:f})}},_jumpToUserElement:function w(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+"&";da.gotoUrl(b)}};var eb=function w(){function a(m,
h){if(n.userCommentsAllowed){d.Profile.isChildOf(h)&&new Ca(d.Profile,"Profile");m=$Self(".BE_idBE",h);m.length&&new Ca(m,"BEntry");$Self(".EE_CBText",h).each(function(){new Ca($(this),"CBText")});$Self(".EE_CBVideo",h).each(function(){new Ca($(this),"CBVideo")});N.extendHoverAndTt(h)}}function b(){if(K.isLogged()&&n.userCommentsAllowed){var m="";m+=e({id:"CM_PopWriteCmt",hid:true},ga.makeBP({size:"small",headline:o("HL_BP_CM_writeComment"),content:e({cl:"BP_label"},o("Label_BP_CM_commentText"))+
e({cl:"BP_boxInput"},ea({e:"txt",cl:"BP_inptxtSmall idMsg Vali_notEmpty"}))+S.getCaptchaMaster(),controls:C("icon_bp_send_lo.png","idBtnOkVali iActObj",o("TT_BP_sendComment"))+C("icon_bp_cancel_lo.png","idBtnCancel iActObj",o("TT_GEN_cancel"))}));n.initDOMString+=m}}function f(){if(K.isLogged()&&n.userCommentsAllowed){var m=["CM_PopWriteCmt"];J.setDOMReference(m);d.CM_PopWriteCmt.find(".idBtnOkVali").bindOnce("click",k)}aa.bindOnce("click",g)}function g(m){m=$(m.target);if(m.isChildOf(".CM_togglerShowCmts,#LB_btnCloseCMBox")){m=
m.parents(".CM_Box");m=T("CommentBox",m);m.tglComments();return false}else if(m.isChildOf(".CM_togglerMoreEntries")){m=m.parents(".CM_Box");m=T("CommentBox",m);m.tglAllComments();return false}else if(m.isChildOf(".CM_BtnWriteCmt")){m=m.parents(".CM_Box");m=T("CommentBox",m);m.writeComment();return false}}function k(){ka.validateForm(d.CM_PopWriteCmt,function(){var m=d.CM_PopWriteCmt.data("cmtBox"),h=T("CommentBox",m),l=m.isChildOf("#LB_Popup"),c=m.data("elmtId"),p=X.readFormVal(d.CM_PopWriteCmt,".idMsg"),
q=X.readFormVal(d.CM_PopWriteCmt,".idCaptcha");P.post({action:24,id:c,text1:p,captcha:q},{dontTrace:[1701],afterError:function(r){P.handleCaptchaError(r,d.CM_PopWriteCmt)},afterSuccess:function(r){ka.resetCaptchaError(d.CM_PopWriteCmt);r=z.readObj("commentsJ",r);var x=z.readObj("comment",r.comment);h.handleCommentsChange({mode:"add",cmtEntryObj:(new Ia(x,l)).getJDomObj(),totalComments:r.totalComments,totalCBComments:r.totalCBComments});m.find(".CM_EntriesBox").data("expanded")||h.tglComments()}})})}
function j(m){S.refreshCaptcha(d.CM_PopWriteCmt);d.CM_PopWriteCmt.data("cmtBox",m).find(".idMsg,.idCaptcha").val("");S.tglAlert(true,d.CM_PopWriteCmt)}G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f).bindOnce("extendEE",a);return{showPopWriteCmt:j}}();(function w(){function a(){if(K.isOwner()){var k="";k+=e({id:"CM_BarCmtDelete",pos:"absolute",hid:true},L("icon_gen_theme_delete_mini_lo.png","idBtnStandard iActObj",o("TT_CM_deleteComment")),C("icon_gen_fix_delete_mini_lo.png",
"idBtnLightbox iActObj",o("TT_CM_deleteComment")));n.initDOMString+=k}}function b(){if(K.isOwner()){var k=["CM_BarCmtDelete"];J.setDOMReference(k)}aa.bindOnce("click",f)}function f(k){k=$(k.target);if(k.isChildOf(".CM_entryUsername,.CM_entryUserImg")){k=k.parents(".CM_entry").find(".CM_entryUserImg img").getAltText();da.gotoUrl("http://"+k);return false}if(J.isInEditMode())if(k.isChildOf(d.CM_BarCmtDelete)){k=d.CM_BarCmtDelete.parents(".CM_entry");g(k);return false}}function g(k){N.tglObjToDelete(k,
true);var j=k.parents(".CM_Box"),m=T("CommentBox",j),h=z.readObj("cmtEntryObj",k);S.confirmm({headline:o("HL_BP_Confirm_deleteComment"),okAction:function(){P.post({id:h.id,action:25},{afterSuccess:function(l){l=z.readObj("commentsJ",l);m.handleCommentsChange({mode:"delete",id:h.id,totalComments:l.totalComments,totalCBComments:l.totalCBComments})}})},okTitle:o("TT_GEN_delete"),cancelAction:function(){N.tglObjToDelete(k,false)}})}G8.globalSubscriber.bindOnce("initCreatePageDOMString",a).bindOnce("initExtendPageDOM",
b);return{}})();var Ca=function w(a,b){var f=this;if(!a.data("commentsExtended")){var g=f._getCmtBoxMaster(b);N.extendHoverAndTt(g);var k,j;if(b=="CBText"){a.find(".CB_cont").append(g);k=z.getEEId(a);j=a.data("totalComments")}else if(b=="CBVideo"){a.find(".CB_cont").append(g);k=z.getEEId(a);j=a.data("totalComments")}else if(b=="Profile"){a.find(".Profile_infoBox").append(g);k=z.getEEId(a);j=a.data("totalComments")}else if(b=="BEntry"){a.find(".B_colCBLeft").append(g);k=z.getEEId(a);j=z.readObj("BEntry",
fa.getArrBEntry(k)).totalComments}else if(b=="Lightbox"){$("#LB_Tab_Controls_CM").empty().append(g);k=f._getLightboxImgDbId();j=0}a.data("commentsExtended",true);g.data("elmtId",k).data("mode",b).find(".CM_TotalCmts").html(j);b=="Lightbox"&&f._updateLightboxComments();f._glo_jDomObj=g;la.setJDomToObjMapping("CommentBox",g,f)}};Ca.prototype={_updateCmtBoxDesign:function w(a){var b=this,f=b._glo_jDomObj;b=f.find(".CM_entry");var g=f.find(".CM_DirectEntriesBox"),k=f.find(".CM_MoreEntriesBox");f=f.find(".CM_togglerMoreEntries");
b.filter(":lt("+n.maxDirectComments+")").appendTo(g);b.length>n.maxDirectComments&&b.filter(":gt("+(n.maxDirectComments-1)+")").appendTo(k);a>n.maxDirectComments?f.show():f.hide();a>0?g.find(".CM_statusInfo").remove():!g.find(".CM_statusInfo").length&&g.append(Y({cl:"CM_statusInfo"},o("Text_CM_noComments")))},_updateCBItemTotalComments:function w(a,b){var f=this;f=f._glo_jDomObj;var g=f.data("mode");f.find(".CM_TotalCmts").html(a);if(g=="CBText")f.parents(".EE_CBText").find(".CLPS_clpsCBCmtsTotalComments").html(a);
else if(g=="CBVideo")f.parents(".EE_CBVideo").find(".CLPS_clpsCBCmtsTotalComments").html(a);else if(g=="BEntry")f.parents(".EE_CBBlog").find(".CLPS_clpsCBCmtsTotalComments").html(b);else g=="Lightbox"&&f.parents(".EE_CBText").find(".CLPS_clpsCBCmtsTotalComments").html(b)},_updateLightboxComments:function w(){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 w(){var a=$("#LB_Popup");a=a.data("origImgDivObj");return a=z.getEEId(a)},_getCmtBoxMaster:function w(a){return a=a=="Lightbox"?$(e({cl:"CM_Box"},e({cl:"CM_Bar"},C("icon_lb_gen_cmt_collapsed_lo.png","iActObj CM_togglerShowCmts",o("Text_CM_Tgl_comments")),e({cl:"CM_TotalCmts"}),C("icon_lb_gen_cmt_add_lo.png","iActObj CM_BtnWriteCmt",o("TT_CM_addComment"))),e({id:"LB_CmtFreeBox",hid:true},C("icon_bbar_close_mini_lo.png","iActObj",o("TT_GEN_close"),"LB_btnCloseCMBox"),e({id:"LB_CmtFreeBoxInner"},
e({cl:"CM_EntriesBox",hid:true},e({cl:"CM_DirectEntriesBox"}),e({cl:"CM_togglerMoreEntries",hid:true},C("icon_bbar_toggle_collapsed_lo.png","tgl_idBtnTgl iActObj"),e({cl:"tgl_togglerText"},o("Text_CM_Tgl_allComments"))),e({cl:"CM_MoreEntriesBox",hid:true})))))):a=="Profile"?$(e({cl:"CM_Box"},e({cl:"CM_Bar"},L("icon_theme_cmtbig_collapsed_lo.png","iActObj CM_togglerShowCmts",o("Text_CM_Tgl_comments")),e({cl:"CM_TotalCmts"}),L("icon_theme_cmtbig_add_lo.png","iActObj CM_BtnWriteCmt",o("TT_CM_addComment"))),
e({cl:"CM_EntriesBox",hid:true},e({cl:"CM_DirectEntriesBox"}),e({cl:"CM_togglerMoreEntries",hid:true},L("icon_gen_theme_toggle_collapsed_lo.png","tgl_idBtnTgl iActObj"),e({cl:"tgl_togglerText"},o("Text_CM_Tgl_allComments"))),e({cl:"CM_MoreEntriesBox",hid:true})))):$(e({cl:"CM_Box"},e({cl:"CM_Bar"},L("icon_gen_theme_cmt_collapsed_lo.png","iActObj CM_togglerShowCmts",o("Text_CM_Tgl_comments")),e({cl:"CM_TotalCmts"}),L("icon_gen_theme_cmt_add_lo.png","iActObj CM_BtnWriteCmt",o("TT_CM_addComment"))),
e({cl:"CM_EntriesBox",hid:true},e({cl:"CM_DirectEntriesBox"}),e({cl:"CM_togglerMoreEntries",hid:true},L("icon_gen_theme_toggle_collapsed_lo.png","tgl_idBtnTgl iActObj"),e({cl:"tgl_togglerText"},o("Text_CM_Tgl_allComments"))),e({cl:"CM_MoreEntriesBox",hid:true}))))},handleCommentsChange:function w(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 w(){var a=this,b=a._glo_jDomObj,f=b.find(".CM_togglerShowCmts"),g=b.find(".CM_EntriesBox"),k=b.find(".CM_MoreEntriesBox"),j=b.find(".CM_DirectEntriesBox"),m=b.parents("#LB_Popup").length;if(g.data("expanded")){g.data("expanded",false).slideUp(300);ha.tglCollapseToggler("comments",f,false);m&&b.find("#LB_CmtFreeBox").fadeOut(300)}else{var h=m?d.PreloaderLBMiniMaster:d.PreloaderThemeMiniMaster;j.empty().html(Y({cl:"CM_statusInfo"},
h+o("Text_GEN_loading")));b.find(".CM_togglerMoreEntries").hide();g.slideDown(300);m&&b.find("#LB_CmtFreeBox").fadeIn(300);b.find(".CM_togglerMoreEntries");k.data("expanded",false).hide();ha.tglCollapseToggler("allComments",b.find(".tgl_idBtnTgl"),false);g.data("expanded",true);ha.tglCollapseToggler("comments",f,true);b=b.data("elmtId");var l=g.isChildOf("#LB_Popup");P.post({action:23,id:b,start:0,length:n.maxDirectComments},{afterError:function(){},afterSuccess:function(c){c=z.readObj("commentsJ",
c);j.add(k).empty();c.comments.length?$.each(c.comments,function(p,q){p=z.readObj("comment",q);j.append((new Ia(p,l)).getJDomObj())}):j.append(Y({cl:"CM_statusInfo"},o("Text_CM_noComments")));a._updateCBItemTotalComments(c.totalComments,c.totalCBComments);a._updateCmtBoxDesign(c.totalComments)}})}},tglAllComments:function w(){var a=this,b=a._glo_jDomObj,f=b.find(".CM_MoreEntriesBox"),g=b.find(".CM_DirectEntriesBox"),k=b.find(".tgl_idBtnTgl"),j=b.parents("#LB_Popup").length;if(f.data("expanded")){f.data("expanded",
false).slideUp(300);ha.tglCollapseToggler("allComments",k,false)}else{j=j?d.PreloaderLBMiniMaster:d.PreloaderThemeMiniMaster;f.empty().html(Y({cl:"CM_statusInfo"},j+o("Text_GEN_loading"))).slideDown(300).data("expanded",true);ha.tglCollapseToggler("allComments",k,true);k=b.data("elmtId");var m=b.isChildOf("#LB_Popup");P.post({action:23,id:k,start:0},{afterSuccess:function(h){h=z.readObj("commentsJ",h);f.add(g).empty();$.each(h.comments,function(l,c){l=z.readObj("comment",c);g.append((new Ia(l,m)).getJDomObj())});
a._updateCBItemTotalComments(h.totalComments,h.totalCBComments);a._updateCmtBoxDesign(h.totalComments)}})}},writeComment:function w(){var a=this;a=a._glo_jDomObj;var b=K.getRelation();if(b=="isFriend"||b=="isOwner")eb.showPopWriteCmt(a);else if(b=="isPending")S.alertt({headline:o("HL_BP_CM_friendshipPending"),msg:o("Text_BP_CM_friendshipPending")});else if(b=="isNoFriend")ja.showPopAddFriend(n.parsedProfileUser,o("Text_BP_CM_friendshipMandatory"));else b=="isNotLogged"&&oa.showLoginPop(o("Text_BP_CM_loginMandatory"))}};
var Ia=function w(a,b){var f=this,g=b?"CM_entryUserImg":"CM_entryUserImg SHAF_userMini";a=$(e({cl:"CM_entry",id:"dbComment_"+a.id},e({cl:"CM_entryLeftCol"},e({cl:g},C(z.makeImgPathFromId("share",a.userData.imgId,"mini"),"",a.userData.url))),e({cl:"CM_entryRightCol"},'<a href="http://'+a.userData.url+'" target="_blank" class="CM_entryUsername">'+Z.shortenText(a.userData.name,25)+"</a>",e({cl:"CM_entryDate"},b?C("infoicon_bbar_updated.png"):L("infoicon_theme_updated.png"),Z.formatDate(a.date,"long")),
e({cl:"CM_entryText"},a.text)),e({cl:"clr"})));N.extendTextLinks(a.find(".CM_entryText"));a.bindOnce("mouseenter",{show:true},f._hov_tglBarCmtEntry).bindOnce("mouseleave",{show:false},f._hov_tglBarCmtEntry);f._glo_jDomObj=a};Ia.prototype={_hov_tglBarCmtEntry:function w(a){a=a.data.show;var b=$(this);if(J.isInEditMode())if(a){d.CM_BarCmtDelete.appendTo(b).setPosTo(b.find(".CM_entryUsername"),["BOTTOMI",-1],["RIGHT",5]).tglFadeIn(300);N.extendHoverAndTt(d.CM_BarCmtDelete)}else d.CM_BarCmtDelete.tglFadeOut(300)},
getJDomObj:function w(){var a=this;return a._glo_jDomObj}};var fb=function w(){function a(h,l,c){var p=5;Da("received from filler",h);var q=z.getEEId($(".Profile_idName")),r=h.name;P.post({id:q,action:9,type:2,value1:r},{afterError:function(){c("changing profile name")},afterSuccess:function(){p--;p==0&&l()}});q=z.getEEId($(".Profile_idSlogan"));r=m[h.school];P.post({id:q,action:9,type:3,value1:r},{afterError:function(){c("changing profile slogan")},afterSuccess:function(){p--;p==0&&l()}});q=z.getEEId($(".Profile_keywords"));
r="Category: "+k[h.category]+"\nWork title: "+h.title+"\nCountry: "+j[h.country];P.post({id:q,action:9,type:3,value1:r},{afterError:function(){c("changing profile keywords")},afterSuccess:function(){p--;p==0&&l()}});h={action:7,realname:h.name,title:h.title,category:h.category,year:h.year,school:h.school,country:h.country,winner:h.winner,type:h.type,additional:"Venue: "+h.venue};P.post(h,{afterError:function(){c("changing metadata")},afterSuccess:function(){p--;p==0&&l()}});P.post({action:17,id:5},
{afterError:function(){c("changing theme")},afterSuccess:function(){p--;p==0&&l()}})}function b(h,l){Da("called update submission img data for user",n.parsedLoggedUser.id);P.post({action:31,complete:true,id:n.parsedLoggedUser.id},{afterSuccess:function(c){c=f(c.USER);c=c.additional;var p={};if(c.hasStr("[","{"))p=P.jsonToObj(c);else if(c.hasStr("Venue:")){c=c.replace("Venue: ","");p.venue=c}c=$(".EE_CBGal:first").find(".EE_galImg:lt(3)").find(".EE_OBJ");p.submissionImgs=[];c.each(function(){var q=
$(this).attr("src");p.submissionImgs.push(q)});c=g(p);c={action:7,additional:c};P.post(c,{afterError:function(){l("changing metadata")},afterSuccess:function(){h()}})},afterError:function(){l("reading metadata")}})}function f(h){h=h||{};return h={id:h[0],url:h[1],name:String(h[2]),imgId:h[3],lastUpdated:h[4],UPState:h[5],fState:h[6],contentImgStack:h[9],winner:h[10],year:h[11],category:h[12],realname:h[13],school:h[14],country:h[15],title:h[16],type:h[17],additional:h[18]}}function g(){var h={"\u0008":"b",
"\t":"t","\n":"n","\u000c":"f","\r":"r",'"':'"',"\\":"\\","/":"/"},l=function(y){return y<10?"0".concat(y):y},c=function(y,v,H){return 1*y.substr(v,H)},p=["","000","00","0",""],q=/(\x5c|\x2F|\x22|[\x0c-\x0d]|[\x08-\x0a])/g,r=/([\x00-\x07]|\x0b|[\x0e-\x1f])/g,x=function(y,v){return"\\".concat(h[v])},s=function(y,v){y=v.charCodeAt(0).toString(16);return"\\u".concat(p[y.length],y)};c={"boolean":function(){return Boolean},"function":function(){return Function},number:function(){return Number},object:function(y){return y instanceof
y.constructor?y.constructor:null},string:function(){return String},undefined:function(){return null}};var u=arguments.length?arguments[0]:this,A,B;if(u===null)A="null";else if(u!==undefined&&(B=c[typeof u](u)))switch(B){case Array:A=[];l=c=0;for(q=u.length;l<q;l++)if(u[l]!==undefined&&(B=g(u[l])))A[c++]=B;A="[".concat(A.join(","),"]");break;case Boolean:A=String(u);break;case Date:A='"'.concat(u.getFullYear(),"-",l(u.getMonth()+1),"-",l(u.getDate()),"T",l(u.getHours()),":",l(u.getMinutes()),":",l(u.getSeconds()),
'"');break;case Function:break;case Number:A=isFinite(u)?String(u):"null";break;case String:A='"'.concat(u.replace(q,x).replace(r,s),'"');break;default:c=0;var F;A=[];for(F in u)if(u[F]!==undefined&&(B=g(u[F])))A[c++]='"'.concat(F.replace(q,x).replace(r,s),'":',B);A="{".concat(A.join(","),"}");break}return A}var k={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"},j={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"},m={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}}(),J=function w(){function a(){B()}function b(F){$.each(F,function(y,v){d[v]=$("#"+v)})}function f(F,y){function v(I,t){return t?I!=0?"<b>"+o(t,I)+"</b>":o(t,I):I!=0?"<b>"+I+"</b>":I}function H(I,t){return t!=0?"<b>"+xa(I,t)+"</b>":xa(I,t)}if(F==
"MB_TotalMessages")d.UB.find("#MBTtlMessages").html(v(n.loggedData.totalNewMessages));else if(F=="MB_TotalFRequests")d.UB.find("#MBTtlFRequests").html(v(n.loggedData.totalFriendRequests));else if(F=="MB_TotalComments")d.UB.find("#MBTtlComments").html(v(n.loggedData.totalNewComments));else if(F=="UserName")d.UB.find("#MBLoggedUserName").html(Z.shortenText(n.parsedLoggedUser.name,22));else if(F=="DocTitle")document.title=Z.shortenText(G8.ax_jqxtnd.unescapeHtml(n.parsedLoggedUser.name),30)+o("DocTitle_Suffix");
else if(F=="PCMS_DialogHL")y.dialogObj.find(".PCMS_DialogTotalMsgs").html(v(y.dialogObj.data("totalNewMessages"),"HL_PC_Status_newMessages")+o("HL_PC_Status_TotalMessages",y.dialogObj.data("totalMessages")));else if(F=="PCMS_Subline")d.PC_Contents.find(".PC_contentsHeadSubline").html(v(n.loggedData.totalNewMessages,"HL_PC_Status_newMessages")+o("HL_PC_Status_TotalMessages",n.loggedData.totalMessages));else if(F=="PCFR_Subline")d.PC_Contents.find(".PC_contentsHeadSubline").html(H("HL_PC_Status_FriendRequests",
n.loggedData.totalFriendRequests));else if(F=="PCNF_Subline")d.PC_Contents.find(".PC_contentsHeadSubline").html(xa("HL_PC_Status_TotalFriends",n.loggedData.totalFriends));else if(F=="PCST_Subline")d.PC_Contents.find(".PC_contentsHeadSubline").html("");else F=="PCCF_Subline"&&d.PC_Contents.find(".PC_contentsHeadSubline").html(xa("HL_PC_Status_TotalFriends",n.loggedData.totalFriends))}function g(){return n.siteViewMode=="Edit"}function k(F){function y(){if(K.isLogged()){if(K.isOwner()){d.MB_UserNameBox.addClass("MBUserNameOwnPage");
d.MB_LoggedUserArrow.hide();d.MB_Relations.hide();d.MB_PageMode.isDisbld()?d.MB_PageMode.hide():d.MB_PageMode.show()}else{d.MB_UserNameBox.removeClass("MBUserNameOwnPage");d.MB_LoggedUserArrow.show();Ba.updateFriendRelationBtn();d.MB_PageMode.hide()}f("MB_TotalMessages");f("MB_TotalFRequests");f("MB_TotalComments");f("UserName");d.UB&&d.UB.fadeInXB(300)}else d.UB&&d.UB.fadeOutXB(300)}function v(I){if(n.brandedMode){if(n.brandedMode=="adobe"){d.PageStatusbar.hide();$("#adobeHeader").find(".idLinkLogin").tgl(!K.isLogged()).end().find(".idLinkLogout").tgl(K.isLogged()).end()}}else if(I.firstCall)K.isLogged()?
d.PageStatusbar.hide():d.PageStatusbar.show();else K.isLogged()?d.PageStatusbar.fadeOut(300):d.PageStatusbar.fadeIn(300)}function H(){if(g()){$("body").addClass("Act_inEditMode");$(".EE_CBGal").each(function(){Ga.tglBtnAdd(true,$(this))});$(".EE_CBBlog").each(function(){Ha.tglBtnAdd(true,$(this))});$(".EE_CBText").each(function(){Oa.tglBtnAdd(true,$(this))});ya.tglFirstrunHelp(true);d.HeadImg_Cover.show();d.BENBtnAddBlog.tglFadeIn(300);N.extendHoverAndTt(d.BENBtnAddBlog)}else{$("body").removeClass("Act_inEditMode");
$(".EE_CBGal").each(function(){Ga.tglBtnAdd(false,$(this))});$(".EE_CBText").each(function(){Oa.tglBtnAdd(false,$(this))});$(".EE_CBBlog").each(function(){Ha.tglBtnAdd(false,$(this))});ya.tglFirstrunHelp(false);d.HeadImg_Cover&&d.HeadImg_Cover.hide();d.BENBtnAddBlog&&d.BENBtnAddBlog.tglFadeOut(300)}}F=F||{};if(!K.userEditAllowed()){n.siteViewMode="View";d.MB_PageMode&&d.MB_PageMode.disbl(true)}if(!K.isOwner())n.siteViewMode="View";H();if(!F.keepLogStatus){v(F);y();K.isLogged()||d.Notify&&d.Notify.hide()}u();
ja.updateFCBDesign();Ba.updatePagemode();va.removeFlvPlugLinks();if(F.firstCall&&K.isLogged()){F={};if(n.loggedData.totalNewMessages>0)F.messages=true;if(n.loggedData.totalFriendRequests>0)F.frequests=true;if(n.loggedData.totalNewComments>0)F.comments=true;F!={}&&Ua.doNotify(F)}}function j(F,y){function v(t,E){t||(t=setInterval(E,I.intervalTime*1E3));return t}function H(t){t&&clearInterval(t);return false}var I=n.UserChronjob;if(F=="logged")I.intervalLogged=y?v(I.intervalLogged,m):H(I.intervalLogged);
else if(F=="notLogged")I.intervalNotLogged=y?v(I.intervalNotLogged,h):H(I.intervalNotLogged)}function m(){P.post({action:27},{afterSuccess:function(F){var y=z.readObj("json",F).loggedData;F=y.totalMessages;var v=y.totalNewMessages,H=y.totalFriendRequests;y=y.totalNewComments;var I={};if(v!=n.loggedData.totalNewMessages){if(v>n.loggedData.totalNewMessages)I.messages=true;wa.handleMsgChange("changeTotals",{totalNewMessages:v,totalMessages:F})}if(H!=n.loggedData.totalFriendRequests){if(H>n.loggedData.totalFriendRequests)I.frequests=
true;ja.handleFriendChange("changeTotalFriendRequests",{totalFriendRequests:H})}if(y!=n.loggedData.totalNewComments){if(y>n.loggedData.totalNewComments)I.comments=true;Na.handleTotalNewCommentsChange(y)}I!={}&&Ua.doNotify(I)}})}function h(){P.post({action:3})}function l(){G8.isLocaltest||qa.holdContentLoading();Pa.initLocalStrings();c();va.handleDetectCrossbrowser();p();$.event.trigger("extendEE",[aa]);k({firstCall:true});if(d.Profile.length)oa.handleLoginState();else{d.Log_Pop.find(".idDomain").val(n.parsedProfileUser.url);
oa.showLoginPop()}va.fixPNGs();q()}function c(){n.initDOMString="";$.extend(n.Feed,{intervalNF:false,intervalCF:false});$.extend(n.PCMS,{interval:false});$.extend(n.PCFR,{interval:false});ta.mapCBObjVars();n.faviconSrc=$("link[rel='shortcut icon']").attr("href");if(!n.profileData.blogOrder)n.profileData.blogOrder=[];n.parsedProfileUser=z.readObj("user",n.profileData.user);n.parsedLoggedUser=z.readObj("user",n.loggedData.user);var F=A(n.profileData.currThemeId);n.currHeaderImgs=z.readObj("themePV",
F).headerImgs;$.extend(n.Preloading,{imgs:{},imgsEssential:{},collectEssentials:false});$.extend(n.UL,{selectWinFilterText:o("Swf_UL_ImgFilterDescription")});n.inDragGalImg=false;$.extend(n.UserChronjob,{intervalNotLogged:false,intervalLogged:false});$.extend(n.Notify,{autohideTimeout:false});n.adressList=[];n.latestMessageStamp=0;if(n.mainHostDomain=="adaagallery.com"||n.parsedProfileUser.url.hasStr("localman.com"))n.brandedMode="adobe";d.PageStatusbar=$("#Page_frmStatusbar");d.PageMaincontents=
$("#Page_frmMaincontents");d.AllPageContents=$("#Page_frmHeader,#Page_frmProfile,#Page_frmMaincontents");d.Profile=$(".EE_CBProfile");n.brandedMode&&Va.initPageVarsBranded()}function p(){d.Preloader=$(e({id:"Preloader",cl:"Preload_preloaderPage"},C("preloader_bg.png","Preload_imgPreloaderBg"),C("preloader.gif","Preload_imgPreloaderAni"))).hide().appendTo("body");G8.isLocaltest||qa.startCollectEssentials();G8.globalSubscriber.trigger("initCreatePageDOMString");$(e({id:"DOMContainer"},n.initDOMString)).appendTo("body");
G8.globalSubscriber.trigger("initExtendPageDOM");N.extendHoverAndTt($("#DOMContainer"));n.initDOMString=null;G8.isLocaltest||qa.stopCollectEssentials()}function q(){function F(D){D=D.top()-20;$("html,body").animate({scrollTop:D},500)}function y(D){if(D.data("collapsed")){D=T("Contentblock",D);D.tglCB(true)}}function v(){var D=E.find(".CM_Box");D=T("CommentBox",D);D.tglComments()}var H=G8.ax_jqxtnd.getQueryVal("g8_eid"),I=G8.ax_jqxtnd.getQueryVal("g8_etype"),t=G8.ax_jqxtnd.getQueryVal("g8_cid");if(H||
I||t){var E;if(t)if(I=="Text"||I=="Video"){E=$("#db_"+H);if(E.length){y(E);F(E);v(E)}}else if(I=="GalImg"){E=$("#db_"+H);if(E.length){y(E.parents(".EE_CB"));F(E);E.find(".Act_idLB").trigger("click")}}else if(I=="Profile"){E=$(".EE_CBProfile");if(E.length){F(E);v(E)}}else{if(I=="BEntry"){E=$(".EE_CBBlog");if(E.length){y(E);F(E);I=T("Blog",E);I.switchBEntry(H)}}}else if(I=="Message")K.isLogged()?d.UB.find(".idBtnMessages").trigger("click"):oa.showLoginPop();else if(I=="FRequest")K.isLogged()?d.UB.find(".idBtnFRequests").trigger("click"):
oa.showLoginPop();else if(I=="Text"||I=="Video"||I=="Gallery"){E=$("#db_"+H);if(E.length){y(E);F(E)}}else if(I=="GalImg"){E=$("#db_"+H);if(E.length){y(E.parents(".EE_CB"));F(E);H=E.find(".Act_idLB");H.data("origSrc")&&H.attr("src",H.data("origSrc"));H.trigger("click")}}else if(I=="Profile"){E=$(".EE_CBProfile");E.length&&F(E)}else if(I=="BEntry"){E=$(".EE_CBBlog");if(E.length){y(E);F(E);I=T("Blog",E);I.switchBEntry(H)}}}}function r(F){if(F.find(".idFlashVersionNotAvailable").length){F=$(e({cl:"BP_warningsBox"},
e({cl:"BP_contHeadline"},o("HL_BP_flashDetect"))+e({cl:"BP_contCenter"},e({cl:"BP_centered"},o("Text_BP_flashDetect")))));x(F)}}function x(F){var y=$("body"),v=$("#Page_DetectWarnings");if(!v.length){v=$(e({id:"Page_DetectWarnings",cl:"BP"},e({cl:"BP_fullWidthContents"}),C("icon_gen_fix_close_lo.png","iActObj",o("TT_GEN_close"),"BP_ImgWarningsClose"))).prependTo(y);$("#BP_ImgWarningsClose").bindOnce("click",s)}v.find(".BP_fullWidthContents").append(F);y.data("origBodyPaddingTop")||y.data("origBodyPaddingTop",
parseInt(y.css("padding-top")));y.css("padding-top",y.data("origBodyPaddingTop")+v.height()-40+"px")}function s(){var F=$("body");$("#Page_DetectWarnings").slideUp(300,function(){$(this).remove()});F.animate({paddingTop:F.data("origBodyPaddingTop")},300)}function u(F){F=F||aa;$Self(".EE_CBGal",F).each(function(){$(this).find(".Act_idLB").lightBox()})}function A(F){var y;$.each(n.globalData.themeOrder,function(v,H){if(H[0]==F){y=H;return false}});return y}function B(){if(n.profileData.hitCount>0){if(!$("#HitcounterBox").length){var F=
$(e({id:"HitcounterBox"},L("infoicon_theme_hitcounter.png"),Y({cl:"hitcounterNumber"},o("Text_HitCount_totalVisitors",n.profileData.hitCount))));$(".EE_CBProfile").find(".Profile_keywords").after(F)}}else $("#HitcounterBox").remove()}G8.globalSubscriber.bindOnce("initExtendPageDOM",a);return{setDOMReference:b,updateDisplayVal:f,isInEditMode:g,displayPage:k,tglUserChronjob:j,initPage:l,doFlashDetection:r,initLightbox:u,appendPageWarnings:x,reinitProfileHitcounter:B}}(),gb=function w(){function a(l,
c){d.PC_Contents.find(".ST_idBox"+l).find(".ST_switchBox").removeClass("ST_switchBoxHi").end().find(".ST_idSwitch").disbl(false).setImgLo().end().find(".ST_val_"+c).setImgHi().disbl(true).parents(".ST_switchBox").addClass("ST_switchBoxHi").end().end().find(".PCST_currVal").html(o("Text_ST_Val_"+l+"_"+c))}function b(){var l=$(this);if(!l.isDisbld()){var c=l.getIdFromClass("ST_val_"),p=c==1?0:1;a("World",c);P.post({action:7,worldstate:c},{afterError:function(){a("World",p)},afterSuccess:function(){n.loggedData.worldstate=
c}})}}function f(){var l=$(this);if(!l.isDisbld()){l=l.getIdFromClass("ST_val_");var c=l==1?0:1;a("Hitcounter",l);P.post({action:57,toggle:"true",reset:"false"},{afterError:function(){a("Hitcounter",c)},afterSuccess:function(p){p=z.readObj("json",p).hitCountVars;n.profileData.showHitCount=p.showHitCount;n.profileData.hitCount=p.hitCount;n.loggedData.ownHitCount=p.ownHitCount;J.reinitProfileHitcounter()}})}}function g(){var l=$(this);if(!l.isDisbld()){var c=l.parents(".ST_idBoxNotificationFriendrequest").length?
"Friendrequest":l.parents(".ST_idBoxNotificationComment").length?"Comment":l.parents(".ST_idBoxNotificationMessage").length?"Message":"",p=l.getIdFromClass("ST_val_"),q=l.parents(".ST_idBoxNotification"+c).find(".ST_switchBoxHi").find(".ST_idSwitch").getIdFromClass("ST_val_"),r=n.loggedData.notificationSettings;a("Notification"+c,p);var x=0;x+=c=="Comment"?parseInt(p):k("Comment");x+=c=="Friendrequest"?parseInt(p):k("Friendrequest");x+=c=="Message"?parseInt(p):k("Message");n.loggedData.notificationSettings=
x;P.post({action:7,mailsetting:x},{afterError:function(){a("Notication"+c,q);n.loggedData.notificationSettings=r},afterSuccess:function(){n.loggedData.notificationSettings=x}})}}function k(l){var c={Comment:1,Friendrequest:2,Message:4};return l=n.loggedData.notificationSettings%(c[l]*2)>=c[l]?c[l]:0}function j(){var l=$(this);if(!l.isDisbld()){l=l.getIdFromClass("ST_val_");var c=n.loggedData.lang;a("Language",l);P.post({action:7,lang:l},{afterError:function(){a("Language",c)},afterSuccess:function(){da.gotoUrl("http://"+
n.parsedProfileUser.url+"?reload="+parseInt(Math.random()*1E7))}})}}function m(){var l=$(this);if(!l.isDisbld()){l=l.getIdFromClass("ST_val_");var c=n.profileData.currThemeId;a("Theme",l);S.tglPreloader(true);P.post({action:17,id:l},{afterError:function(){a("Theme",c)},afterSuccess:function(){da.gotoUrl("http://"+n.parsedProfileUser.url+"?reload="+parseInt(Math.random()*1E7))}})}}function h(){var l=d.PC_Contents.find(".PC_contentsBody");d.PC_Contents.find(".PC_contentsHeadColLeft").empty().end().find(".PC_contentsHeadHL").html(o("HL_PC_ST")).end();
J.updateDisplayVal("PCST_Subline");l.empty();if(!n.brandedMode){if(K.isOwner()){var c=$(e({cl:"PCST_SettingsBox ST_idBoxTheme"},e({cl:"PC_colLeft"},"<b>"+o("HL_ST_Theme")+"</b><br />"+Y({cl:"PCST_currVal"})),e({cl:"PC_colRight"},e({cl:"ST_switchBox"},C("theme_preview_white_lo.png","ST_idSwitch ST_imgTheme ST_val_1 iActObj",o("TT_ST_ThemeName_1"))),e({cl:"ST_switchBox"},C("theme_preview_black_lo.png","ST_idSwitch ST_imgTheme ST_val_2 iActObj",o("TT_ST_ThemeName_2"))),e({cl:"ST_switchBox"},C("theme_preview_handmade_lo.png",
"ST_idSwitch ST_imgTheme ST_val_3 iActObj",o("TT_ST_ThemeName_3"))),e({cl:"ST_switchBox"},C("theme_preview_neon_lo.png","ST_idSwitch ST_imgTheme ST_val_4 iActObj",o("TT_ST_ThemeName_4"))),e({cl:"clr"})),e({cl:"clr"}),C("pc_trenner_big.png","PCST_trennerBot")));c.find(".ST_idSwitch").bindOnce("click",m)}else c=$(e({cl:"PCST_SettingsBox ST_idBoxTheme"},e({cl:"PC_colLeft"},"<b>"+o("HL_ST_Theme")+"</b><br />"+Y({cl:"PCST_currVal"})),e({cl:"PC_colRight"},o("Text_ST_themeNotChangable")),e({cl:"clr"}),C("pc_trenner_big.png",
"PCST_trennerBot")));l.append(c);K.isOwner()&&a("Theme",n.profileData.currThemeId)}if(!n.brandedMode){c=$(e({cl:"PCST_SettingsBox ST_idBoxWorld"},e({cl:"PC_colLeft"},"<b>"+o("HL_ST_World")+"</b><br />"+Y({cl:"PCST_currVal"})+"<br />",e({cl:"Help_infoBtnReplace"})),e({cl:"PC_colRight"},e({cl:"ST_switchBox"},C("icon_gen_fix_world_on_lo.png","ST_idSwitch ST_imgWorld ST_val_1 iActObj",o("TT_ST_world_1"))),e({cl:"ST_switchBox"},C("icon_gen_fix_world_off_lo.png","ST_idSwitch ST_imgWorld ST_val_0 iActObj",
o("TT_ST_world_0"))),e({cl:"clr"})),e({cl:"clr"}),C("pc_trenner_big.png","PCST_trennerBot")));c.find(".ST_idSwitch").bindOnce("click",b);Ja.extendInfoBtn(c.find(".Help_infoBtnReplace"),"worldInfos","PC");l.append(c);a("World",n.loggedData.worldstate)}c=$(e({cl:"PCST_SettingsBox ST_idBoxHitcounter"},e({cl:"PC_colLeft"},"<b>"+o("HL_ST_Hitcounter")+"</b><br />"+Y({cl:"PCST_currVal"})),e({cl:"PC_colRight"},e({cl:"ST_switchBox"},C("icon_gen_fix_notification_on_lo.png","ST_idSwitch ST_imgHitcounter ST_val_1 iActObj",
o("TT_ST_hitcounter_1"))),e({cl:"ST_switchBox"},C("icon_gen_fix_notification_off_lo.png","ST_idSwitch ST_imgHitcounter ST_val_0 iActObj",o("TT_ST_hitcounter_0"))),e({cl:"clr"})),e({cl:"clr"}),C("pc_trenner_big.png","PCST_trennerBot")));c.find(".ST_idSwitch").bindOnce("click",f);l.append(c);a("Hitcounter",n.profileData.hitCount==0?0:1);c=$(e({cl:"PCST_SettingsBox ST_idBoxLanguage"},e({cl:"PC_colLeft"},"<b>"+o("HL_ST_Language")+"</b><br />"+Y({cl:"PCST_currVal"})),e({cl:"PC_colRight"},e({cl:"ST_switchBox"},
C("icon_gen_fix_lang_de_lo.png","ST_idSwitch ST_imgLang ST_val_de iActObj",o("TT_ST_Lang_DE"))),e({cl:"ST_switchBox"},C("icon_gen_fix_lang_en_lo.png","ST_idSwitch ST_imgLang ST_val_en iActObj",o("TT_ST_Lang_EN"))),e({cl:"clr"})),e({cl:"clr"}),C("pc_trenner_big.png","PCST_trennerBot")));c.find(".ST_idSwitch").bindOnce("click",j);l.append(c);a("Language",n.loggedData.lang);c=$(e({cl:"PCST_SettingsBox"},e({cl:"PC_colLeft"},o("HL_ST_Notifications")),e({cl:"PC_colRight"},e({cl:"ST_notificationHeader"},
o("Text_ST_Notifications")),e({cl:"ST_idBoxNotificationComment"},e({cl:"ST_switchLabel"},o("Label_ST_Notifications_Comment")),e({cl:"ST_switchBox"},C("icon_gen_fix_notification_on_lo.png","ST_idSwitch ST_imgNotification ST_val_1 iActObj",o("TT_ST_notification_1"))),e({cl:"ST_switchBox"},C("icon_gen_fix_notification_off_lo.png","ST_idSwitch ST_imgNotification ST_val_0 iActObj",o("TT_ST_notification_0"))),e({cl:"clr"})),e({cl:"ST_idBoxNotificationFriendrequest"},e({cl:"ST_switchLabel"},o("Label_ST_Notifications_FriendRequest")),
e({cl:"ST_switchBox"},C("icon_gen_fix_notification_on_lo.png","ST_idSwitch ST_imgNotification ST_val_2 iActObj",o("TT_ST_notification_1"))),e({cl:"ST_switchBox"},C("icon_gen_fix_notification_off_lo.png","ST_idSwitch ST_imgNotification ST_val_0 iActObj",o("TT_ST_notification_0"))),e({cl:"clr"})),e({cl:"ST_idBoxNotificationMessage"},e({cl:"ST_switchLabel"},o("Label_ST_Notifications_Message")),e({cl:"ST_switchBox"},C("icon_gen_fix_notification_on_lo.png","ST_idSwitch ST_imgNotification ST_val_4 iActObj",
o("TT_ST_notification_1"))),e({cl:"ST_switchBox"},C("icon_gen_fix_notification_off_lo.png","ST_idSwitch ST_imgNotification ST_val_0 iActObj",o("TT_ST_notification_0"))),e({cl:"clr"})),e({cl:"clr"})),C("pc_trenner_big.png","PCST_trennerBot")));c.find(".ST_idSwitch").bindOnce("click",g);l.append(c);a("NotificationComment",k("Comment"));a("NotificationFriendrequest",k("Friendrequest"));a("NotificationMessage",k("Message"));if(!n.brandedMode){c=$(e({cl:"PCST_SettingsBox ST_idBoxPC"},e({cl:"PC_colLeft"},
"<b>"+o("HL_ST_PC")+"</b>"),e({cl:"PC_colRight"},e({cl:"ST_linkBoxPC"},ba({cl:"ST_linkPC",name:o("Link_ST_gotoPC"),url:n.urlCenter}),C("infoicon_gen_fix_pclock.png","ST_imgLock"))),e({cl:"clr"}),C("pc_trenner_big.png","PCST_trennerBot")));l.append(c)}Va.createSpecialUserpageSettingsContents();N.extendHoverAndTt(d.PC_Contents)}return{fillPCST:h}}(),ka=function w(){function a(m,h){var l=false;m.find(".Vali_notEmpty,.Vali_captcha").each(function(){var c=$(this);if(X.readFormVal(c)==""){l=true;f(c,"notEmpty")}});
m.find(".Vali_email").each(function(){var c=$(this),p=/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/,q=/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;if(p.test(X.readFormVal(c))||!q.test(X.readFormVal(c))){l=true;f(c,"email")}});m.find(".Vali_hasRecipient").each(function(){var c=$(this);if(!c.parents(".idSendToBoxes").find(".WriteMS_idAdressObj").length){l=true;f(c,"recipient")}});if(!l){m.find(".Vali_captcha").length?S.tglPreloader(true):S.tglAlert(false,m);h()}}function b(){return $('<table class="TTVali_TT"><tr><td class="TTVali_left"></td><td class="TTVali_mid">'+
e({cl:"TTVali_contents"})+'</td><td class="TTVali_right"></td></tr></table>')}function f(m,h){function l(){var r=$(this);g(r);r.unbind("focus",l)}if(!m.data("hasError")){var c=h=="notEmpty"?o("Vali_Message_NotEmpty"):h=="email"?o("Vali_Message_Email"):h=="recipient"?o("Vali_Message_Recipient"):h=="mailMatch"?o("Vali_Message_MailMatch"):h=="captcha"?o("Vali_Message_Captcha"):"",p=m.parents(".BP_boxInput"),q=h=="recipient"?p:m;b().find(".TTVali_contents").html(c).end().hide().appendTo(p).setPosTo(q,
["RIGHT",-50],["TOP",20]).fadeInXB(300);h=="captcha"&&m.val("");p.addClass("Vali_inpHi");m.data("hasError",true).bindOnce("focus",l)}}function g(m){var h=m.parents(".BP_boxInput");h.removeClass("Vali_inpHi").find(".TTVali_TT").fadeOutXB(300,function(){$(this).remove()});m.data("hasError",false)}function k(m){m.find(".Vali_notEmpty,.Vali_email,.Vali_hasRecipient,.Vali_captcha").each(function(){g($(this))})}function j(m){S.tglPreloader(false);S.tglAlert(false,m)}return{validateForm:a,markFieldError:f,
validationReset:k,resetCaptchaError:j}}(),Va=function w(){function a(){if(n.brandedMode=="adobe"){d.PageStatusbar.hide();x=$(e({id:"adobeHeader"},e({id:"ahmLogo"},'<a target="_blank" href="http://www.adobe.com">'+L("brand_adobe_logo.png")+"</a>"),e({id:"ahmStripe"},e({id:"ahmQuicklinks"},'<a class="iActObj" href="http://adaa.adobe.com" target="_blank" alt="Adobe Design Achievement Awards">'+L("brand_adobe_cube_lo.png","iActObj")+"</a>",'<a class="iActObj" href="http://www.das-labor.net" target="_blank" alt="powered by Das LABOR">'+
L("brand_adobe_star_lo.png","iActObj")+"</a>"),e({id:"ahmMenu"},'<a class="iActObj idLinkPrev" href="">'+L("brand_adobe_arrow-prev_lo.png","iActObj")+"</a>",'<a class="iActObj ahmWorld" href="'+n.urlAdobeWorld+'" alt="back to ADAA World">'+L("brand_adobe_worldlogo_lo.png","iActObj")+"</a>",'<a class="iActObj idLinkNext" href="">'+L("brand_adobe_arrow-next_lo.png","iActObj")+"</a>"),e({id:"ahmRightCol"},e({id:"ahmDisplaying"},'Displaying <span class="currProfile">12</span> / 214'),e({id:"ahmLogin"},
'<a class="iActObj idLinkLogin" href="" alt="Login">Login</a>','<a class="iActObj idLinkLogout" href="" alt="Logout">Logout</a>'),e({cl:"clr"})))));k();x.find(".idLinkLogin").bindOnce("click",b).end().find(".idLinkLogout").bindOnce("click",f).end();N.extendHoverAndTt(x);x.find("#ahmLogin").tgl(G8.ax_jqxtnd.getQueryVal("brandedShowLogin"));d.PageStatusbar.before(x)}}function b(B){B.preventDefault();oa.showLoginPop()}function f(B){B.preventDefault();oa.clk_submitLogout(B)}function g(){if(n.brandedMode==
"adobe"){var B={"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"}},F={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"},y={1:"Winner",2:"Finalist",3:"Winner Most Creative",4:"Finalist Most Creative",5:"Winner Most Professional",6:"Finalist Most Professional"},v={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"},I=d.PC_Contents.find(".PC_contentsBody"),t=$(e({cl:"PCST_SettingsBox ST_idBoxMetadata"},e({cl:"PC_colLeft"},"<b>ADAA Metadata</b><br />"+Y({cl:"PCST_currVal"})),e({cl:"PC_colRight"},e({},"<label>Realname<label>",'<input class="fieldStandard" type="text" name="realname" />'),e({},"<label>Title<label>",
'<input class="fieldStandard" type="text" name="title" />'),e({},"<label>Category<label>",'<select class="fieldStandard" name="category" ></select>'),e({},"<label>Year<label>",'<select class="fieldStandard" name="year" ></select>'),e({},"<label>School<label>",'<select class="fieldStandard" name="school" ></select>'),e({},"<label>Country<label>",'<select class="fieldStandard" name="country" ></select>'),e({},"<label>Winner<label>",'<select class="fieldStandard" name="winner" ></select>'),e({},"<label>Type<label>",
'<select class="fieldStandard" name="type" ></select>'),e({},"<label>Additional<label>",'<textarea class="fieldStandard" name="additional" /></textarea>'),e({},"<label><label>",C("icon_gen_fix_notification_on_lo.png","iActObj idBtnSave","Save changes"))),e({cl:"clr"}),C("pc_trenner_big.png","PCST_trennerBot"))),E=t.find("select[name=country]");E.append($("<option>--- NONE ---</option>").val(0));$.each(F,function(V,G){E.append($("<option></option>").val(V).html(G))});var D=t.find("select[name=school]");
D.append($("<option>--- NONE ---</option>").val(0));$.each(v,function(V,G){D.append($("<option></option>").val(V).html(G))});var R=t.find("select[name=category]");R.append($("<option>--- NONE ---</option>").val(0));$.each(B,function(V,G){G=G;var Q=$("<optgroup></optgroup>").attr("label",V).appendTo(R);$.each(G,function(W,ma){Q.append($("<option></option>").val(W).html(ma))})});var O=t.find("select[name=type]");O.append($("<option>--- NONE ---</option>").val(0));$.each(H,function(V,G){O.append($("<option></option>").val(V).html(G))});
var M=t.find("select[name=winner]");M.append($("<option>--- NONE ---</option>").val(0));$.each(y,function(V,G){M.append($("<option></option>").val(V).html(G))});var U=t.find("select[name=year]");U.append($("<option>--- NONE ---</option>").val(0));for(var ca=2001;ca<=2010;ca++)U.append($("<option></option>").val(ca).html(ca));t.find(".idBtnSave").bindOnce("click",p);I.append(t);P.post({action:31,complete:true,id:n.parsedLoggedUser.id},{afterSuccess:function(V){V=l(V.USER);t.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 k(){$.each(r,function(v,H){if(H.id==n.parsedProfileUser.id){x.find(".ahmWorld").attr("href",n.urlAdobeWorld+"?showYear="+H.year);return false}});var B=x.find("#ahmMenu").find(".idLinkPrev"),F=x.find("#ahmMenu").find(".idLinkNext"),y=x.find("#ahmDisplaying");B.hide();F.hide();y.hide();P.post({action:61},{dontTrace:[4002],afterSuccess:function(v){v=v.VAR.searchResultIds;if(v!==undefined&&v!="false"){var H;$.each(v,function(E,D){if(D==n.parsedProfileUser.id)H=E});if(H!==undefined){var I,t;if(v.length>
1){I=H>0?v[H-1]:v[v.length-1];t=H<v.length-1?v[H+1]:v[0]}y.html('Displaying <span class="currProfile">'+(H+1)+"</span> / "+v.length).show();s=I;u=t;h(j)}}}});P.post({action:60,key:"hilightedId","var":n.parsedProfileUser.id},{afterSuccess:function(){}})}function j(){var B=x.find("#ahmMenu").find(".idLinkPrev"),F=x.find("#ahmMenu").find(".idLinkNext");if(s){var y=m(s).url;B.attr("href","http://"+y).attr("alt",y).show()}if(u){B=m(u).url;F.attr("href","http://"+B).attr("alt",B).show()}}function m(B){var F=
{};$.each(A,function(y,v){if(v.id==B)F=v});return F}function h(B){P.post({action:26,complete:true},{afterSuccess:function(F){A=[];$.each(F.USERS.users,function(y,v){y=l(v);A.push(y)});B()}})}function l(B){B=B||{};return B={id:B[0],url:B[1],name:String(B[2]),imgId:B[3],lastUpdated:B[4],UPState:B[5],fState:B[6],contentImgStack:B[9],winner:B[10],year:B[11],category:B[12],realname:B[13],school:B[14],country:B[15],title:B[16],type:B[17],additional:B[18]}}function c(B,F){var y=B;if(!y.is("form")&&!y.is(":input"))y=
B.find(":input");B=y.serializeArray();y={};for(var v in B)y[B[v].name]=B[v].value;F&&$.extend(y,F);return y}function p(){var B=d.PC_Contents.find(".ST_idBoxMetadata"),F=c(B,{action:7});$.each(F,function(y,v){v||delete F[y]});P.post(F,{afterError:function(y){Da("ajax error",y)},afterSuccess:function(){S.alertt({headline:"Success",msg:"Metadata saved successfully",autoHide:1})}})}function q(){if(n.brandedMode=="adobe"){n.urlAdobeWorld="http://www.adaagallery.com";n.brandedMode="adobe";n.urlWorld=n.urlAdobeWorld;
n.sortFriendsAlphabetically=true;n.userCommentsAllowed=false;n.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("initExtendPageDOM",a);return{createSpecialUserpageSettingsContents:g,initPageVarsBranded:q}}(),hb=function w(){function a(m,h){g=d.PM_CBDragThumbnails;k=h;Ba.tglAddCBIcons(false);h=m.pageX;
m=m.pageY;var l=j={x:40,y:40};$("img",g).hide();if(k=="Video")$(".idVideo",g).show();else if(k=="Gallery")$(".idGallery",g).show();else if(k=="Text")$(".idText",g).show();else k=="Blog"&&$(".idBlog",g).show();g.left(h-l.x).top(m-l.y).opacity(0).show().fadeTo(300,0.85);aa.bindOnce("mousemove",b);g.unbind("click").bindOnce("click",f)}function b(m){var h=m.pageX;m=m.pageY;var l=j;g.top(m-l.y).left(h-l.x)}function f(m){aa.unbind("mousemove",b);g.fadeOut(300,function(){ta.callAddCB({category:k,mx:m.pageX,
my:m.pageY})})}var g,k,j;return{startDrag:a}}(),ya=function w(){function a(){if(K.isLogged()){var k;if($(".Profile_idUserImg").hasClass("idFirstRun")){k=b("Profilbild hochladen");k.appendTo(".Profile_idUserImg")}if($(".Profile_idName").hasClass("idFirstRun")){k=b("Profilnamen \u00e4ndern");k.appendTo($(".Profile_idName").parent())}if($(".EE_CB").length<2){k=b("Contentblock hinzuf\u00fcgen");k.prependTo("#MB_PageMode")}if($("#HeadImg_idHeaderImgs").hasClass("idFirstRun")){k=b("Header-Bild \u00e4ndern");
k.appendTo("#HeadImg_idShadow")}}}function b(k){return k=$(e({cl:"idFirstrunHelpTT"},e({cl:"firstrunHelpTTLeft"}),e({cl:"firstrunHelpTTMid"},e({cl:"firstrunHelpTTMidInner"},k)),e({cl:"firstrunHelpTTRight"}),e({cl:"clr"})))}function f(k){k?$(".idFirstrunHelpTT").fadeInXB(300):$(".idFirstrunHelpTT").fadeOutXB(300)}function g(k){if(k=="profilePic")$(".Profile_idUserImg").removeClass("idFirstRun").find(".idFirstrunHelpTT").remove();else if(k=="profileName")$(".Profile_idName").removeClass("idFirstRun").parent().find(".idFirstrunHelpTT").remove();
else if(k=="contentblock")$("#MB_PageMode").find(".idFirstrunHelpTT").remove();else if(k=="headerImg"){$("#HeadImg_idHeaderImgs").removeClass("idFirstRun");$("#HeadImg_idShadow").find(".idFirstrunHelpTT").remove()}}G8.globalSubscriber.bindOnce("initExtendPageDOM",a);return{tglFirstrunHelp:f,resetFirstrunTooltip:g}}();(function w(){function a(){var g=$(L("icon_hm_loggedout_lo.png","iFadeImg idBtnLogin",o("TT_GEN_login"))).bindOnce("click",oa.clk_showLoginPop),k=$(L("icon_hm_head_lo.png","iFadeImg idBtnDotcom",
o("TT_GEN_iWantEightpage"))).bindOnce("click",f),j=$(L("icon_hm_world_lo.png","iFadeImg idBtnWorld",K.isLogged()?o("TT_gotoWorld_logged"):o("TT_gotoWorld_notLogged"))).bindOnce("click",b);$("#HM_Personal").append(g);$("#HM_Dotcom").append(k);$("#HM_World").append(j);N.extendHoverAndTt(d.PageStatusbar);N.extendFadeImgs(d.PageStatusbar)}function b(){da.gotoUrl(n.urlWorld)}function f(){da.gotoUrl(n.urlEightpage,true)}G8.globalSubscriber.bindOnce("initExtendPageDOM",a);return{}})();var Ja=function w(){function a(m,
h,l){l=l=="BP"?C("icon_bp_info_lo.png","iActObj Help_imgInfoBtn",o("TT_Help_moreInfo")):l=="PC"?C("icon_gen_fix_info_lo.png","iActObj Help_imgInfoBtn",o("TT_Help_moreInfo")):l=="edit"?C("icon_edit_info_lo.png","iActObj Help_imgInfoBtn",o("TT_Help_moreInfo")):l=="theme"?L("icon_theme_info_lo.png","iActObj Help_imgInfoBtn",o("TT_Help_moreInfo")):"";l=$(e({cl:"Help_infoBtn"},l));l.data("infoKey",h).find(".Help_imgInfoBtn").bindOnce("click",b);m.before(l).remove();N.extendHoverAndTt(l)}function b(){var m=
$(this).parents(".Help_infoBtn");if(m.data("helpExpanded"))g(m);else{var h=m.data("infoKey");h=k(h).appendTo(m).tglFadeIn(300).find(".Help_ttCloseBtn").bindOnce("click",f);m.data("helpExpanded",true);N.extendHoverAndTt(h)}}function f(){g($(this).parents(".Help_infoBtn"))}function g(m){m.data("helpExpanded",false).find(".Help_tt").tglFadeOut(300,function(){$(this).remove()})}function k(m){var h={};h.ULError_ajaxResolution=o("Help_ajaxResolution")+o("Help_FAQImgUploadingLink");h.ULError_fileSize=o("Help_fileSize")+
o("Help_FAQImgUploadingLink");h.ULError_ajaxFormat=o("Help_ajaxFormat")+o("Help_FAQImgUploadingLink");h.ULError_ajaxTotalItems=o("Help_ajaxTotalItems");h.ULError_other=o("Help_other")+o("Help_FAQLink");h.videoEmbedding=o("Help_VideoEmbedding")+"<br/>"+C("infocont_embedding.png","Help_ttContImg")+"<br/><br/>"+o("Help_VideoProvider")+o("Help_FAQLink");h.worldInfos=o("Help_WorldVisible");return $(e({cl:"Help_tt",pos:"absolute"},e({cl:"Help_ttTop"}),e({cl:"Help_ttMid"},C("icon_gen_fix_close_mini_lo.png",
"Help_ttCloseBtn iActObj",o("TT_GEN_close")),e({cl:"Help_ttContents"},h[m])),e({cl:"Help_ttBot"})))}function j(m){m.find(".Help_infoBtn").each(function(){$(this).data("helpExpanded",false).find(".Help_tt").remove()})}return{extendInfoBtn:a,resetInfoTTs:j}}(),Ba=function w(){function a(){if(K.isLogged()){var x="";x+=e({id:"PC_Cover",hid:true});x+=e({id:"UB",cl:"UB_bot",hid:true},e({id:"UB_FillOuter"},'<table id="UB_Table"><tr><td id="UB_TableMBLeft"></td><td id="UB_TableMBCenter">',e({id:"MB_contentBox"},
e({id:"MB_leftBox"},e({id:"MB_Relations"},e({id:"MB_FABtnWriteMS",cl:"MB_FABtn"},C("icon_mb_writemessage_lo.png","MB_btnWriteMS iFadeImg",o("TT_MB_writeMessage"))),e({id:"MB_FABtnAddAsFriend",cl:"MB_FABtn"},C("icon_mb_addasfriend_lo.png","MB_btnAddAsFriend iFadeImg",o("TT_MB_addAsFriend",Z.shortenText(n.parsedProfileUser.name,22)))),C("icon_mb_pending.png","iActObj MB_FABtn",o("TT_MB_friendshipPending"),"MB_FABtnPending")),e({id:"MB_PageMode"},C("icon_mb_modeview_lo.png","iActObj idView",o("TT_MB_Mode_View"),
"MB_PagemodeBtnView"),C("icon_mb_modeedit_lo.png","iActObj idEdit",o("TT_MB_Mode_Edit"),"MB_PagemodeBtnEdit"),C("icon_mb_add_lo.png","iActObj idAdd",o("TT_MB_Mode_Add"),"MB_PagemodeBtnAdd"),e({id:"MB_Pagemode_AddCBBox",hid:true},e({id:"MB_Pagemode_AddCBTop"},C("icon_pm_createcb_gallery_lo.png","idBtnNewGallery iActObj idAddIcon",o("TT_MB_createGalleryCB")),C("icon_pm_createcb_text_lo.png","idBtnNewText iActObj idAddIcon",o("TT_MB_createTextCB")),C("icon_pm_createcb_video_lo.png","idBtnNewVideo iActObj idAddIcon",
o("TT_MB_createVideoCB")),C("icon_pm_createcb_blog_lo.png","idBtnNewBlog iActObj idAddIcon",o("TT_MB_createBlogCB"))),e({id:"MB_Pagemode_AddCBBot"}))),e({id:"MB_Settings"},C("icon_mb_settings_lo.png","idBtnSettings iActObj",o("TT_MB_ST")))),e({id:"MB_centerBox"},e({id:"MC_centerBoxInner"},e({id:"MB_logoutBtnBox"},C("icon_mb_logout_lo.png","idBtnLogout iActObj",o("TT_MB_logout"))),e({id:"MB_UserNameBox"},e({id:"MB_userNameNameBoxLeft"},e({id:"MBLoggedUserName"}),C("icon_mb_homebase_lo.png","iActObj",
o("TT_MB_gotoOwnProfile"),"MB_LoggedUserArrow"),e({cl:"clr"})),e({id:"MB_userNameNameBoxRight"})),e({cl:"clr"}))),e({id:"MB_rightBox"},!n.brandedMode?C("icon_mb_world_lo.png","idBtnWorld iActObj",o("TT_gotoWorld_logged")):n.brandedMode=="adobe"?L("icon_mb_world_lo.png","idBtnWorld iActObj",o("TT_gotoAdobeWorld_logged")):"",C("icon_mb_newsfeed_lo.png","idBtnNewsfeed iActObj",o("TT_MB_NF")),C("icon_mb_messages_lo.png","idBtnMessages iActObj",o("TT_MB_MS")),Y({id:"MBTtlMessages",cl:"MBTtlCounter"}),
C("icon_mb_friends_lo.png","idBtnFRequests iActObj",o("TT_MB_FR")),Y({id:"MBTtlFRequests",cl:"MBTtlCounter"}),C("icon_mb_comments_lo.png","idBtnComments iActObj",o("TT_MB_CF")),Y({id:"MBTtlComments",cl:"MBTtlCounter"}),C("icon_gen_fix_close_lo.png","iActObj",o("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">',e({id:"PC_Contents"}),'</td><td id="UB_TablePC_Right"><div id="PC_RightMid"></div></td></tr></table>'));
if(K.isOwner())x+=e({id:"PM_CBDragThumbnails",pos:"absolute",hid:true},L("pm_thumbnail_video.png","idVideo hidden"),L("pm_thumbnail_gallery.png","idGallery hidden"),L("pm_thumbnail_text.png","idText hidden"),L("pm_thumbnail_blog.png","idBlog hidden"));n.initDOMString+=x;qa.preloadSpecialImgs("fix",["icon_mb_modeedit_act.png"])}}function b(){if(K.isLogged()){var x=["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(x);d.UB.find(".idBtnWorld").bindOnce("click",f).end().find(".idBtnNewsfeed").bindOnce("click",{mode:"Newsfeed"},j).end().find(".idBtnLogout").bindOnce("click",oa.clk_submitLogout).end().find(".idBtnSettings").bindOnce("click",{mode:"Settings"},j).end().find(".idBtnMessages").bindOnce("click",{mode:"Messages"},j).end().find(".idBtnFRequests").bindOnce("click",{mode:"FRequests"},j).end().find(".idBtnComments").bindOnce("click",
{mode:"Comments"},j).end().find("#PC_ImgBtnClosePC").bindOnce("click",ia.clk_closePC);d.MB_LoggedUserArrow.bindOnce("click",m);d.MB_FABtnWriteMS.find(".MB_btnWriteMS").bindOnce("click",k);d.MB_FABtnAddAsFriend.find(".MB_btnAddAsFriend").bindOnce("click",g);d.MB_PageMode.find(".idEdit,.idView").bindOnce("click",p).end().find(".idAdd").bindOnce("click",c).end().find(".idAddIcon").bindOnce("click",l);N.extendFadeImgs(d.MB_Relations)}}function f(){da.gotoUrl(n.urlWorld)}function g(){var x="";ja.showPopAddFriend(n.parsedProfileUser,
x)}function k(){Ea.showWriteMSPop({userDataArr:[n.parsedProfileUser]})}function j(x){x=x.data.mode;if(ia.isVisible())ia.switchPCContents(x);else{d.UB.data("currPane",x);ia.tglPC(true)}}function m(){da.gotoUrl("http://"+n.parsedLoggedUser.url)}function h(){var x=K.getRelation();if(x!="isOwner"&&x!="isNotLogged"){x=x=="isFriend"?d.MB_FABtnWriteMS:x=="isPending"?d.MB_FABtnPending:d.MB_FABtnAddAsFriend;d.MB_Relations.children().hide();x.show()}}function l(x){var s=$(this);s=s.hasClass("idBtnNewGallery")?
"Gallery":s.hasClass("idBtnNewVideo")?"Video":s.hasClass("idBtnNewText")?"Text":s.hasClass("idBtnNewBlog")?"Blog":"";hb.startDrag(x,s);d.MB_Pagemode_AddCBBox.setImgLo()}function c(){var x=$(this);x.isDisbld()||r(!d.MB_Pagemode_AddCBBox.data("expanded"))}function p(){var x=$(this).hasClass("idView")?"View":"Edit";if(x!=n.siteViewMode){n.siteViewMode=x;J.displayPage({keepLogStatus:true})}}function q(){if(K.isOwner()){J.isInEditMode()?d.MB_PageMode.find(".idView").setImgLo().disbl(false).end().find(".idEdit").setImgAct().disbl(true).end().find(".idAdd").setImgLo().show():
d.MB_PageMode.find(".idView").setImgAct().disbl(true).end().find(".idEdit").setImgLo().disbl(false).end().find(".idAdd").hide();r(false);d.MB_PageMode.isDisbld()||d.MB_PageMode.fadeIn(300)}}function r(x){if(x){d.MB_Pagemode_AddCBBox.find(".idBtnNewBlog").tgl(!n.profileData.blogOrder.length);d.MB_Pagemode_AddCBBox.data("expanded",true).fadeIn(300)}else d.MB_Pagemode_AddCBBox.data("expanded",false).fadeOut(300)}G8.globalSubscriber.bindOnce("initCreatePageDOMString",a).bindOnce("initExtendPageDOM",b);
return{tglAddCBIcons:r,updatePagemode:q,updateFriendRelationBtn:h}}(),S=function w(){function a(){var c=e({id:"GEN_PopConfirm",hid:true});n.initDOMString+=c;qa.preloadSpecialImgs("theme",["icon_hm_loggedout_hi.png"]);qa.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 b(){var c=["GEN_PopConfirm"];J.setDOMReference(c);$(".Captcha_boxImg").bindOnce("click",l)}function f(){var c=e({cl:"Captcha"},e({cl:"Captcha_boxImg"},
C("captcha_frame.png","Captcha_imgCaptchaFrame iActObj",o("TT_BP_refreshCaptcha")),C("trans.gif","Captcha_idImgCaptcha")),e({cl:"BP_boxInput"},ea({e:"inp",cl:"Captcha_inp idCaptcha Vali_captcha"})));return c}function g(c){c=c||{};var p=d.GEN_PopConfirm,q=c.headline?c.headline:"",r=c.msg?c.msg:"",x=o("TT_GEN_close");p.html(ga.makeBP({headline:q,content:e({cl:"BP_centered"},r),controls:C("icon_bp_ok_lo.png","idBtnOk iActObj",x)}));c.autoHide&&setTimeout(function(){j(false,p)},c.autoHide*1E3);N.extendHoverAndTt(p);
j(true,p)}function k(c){c=c||{};var p=d.GEN_PopConfirm,q=c.headline?c.headline:"",r=c.contentText?c.contentText:"",x=c.okTitle?c.okTitle:"",s=c.cancelTitle?c.cancelTitle:o("TT_GEN_cancel"),u=c.okAction?c.okAction:false;c=c.cancelAction?c.cancelAction:false;r=e({cl:"BP_centered"},r);p.html(ga.makeBP({headline:q,content:r,controls:C("icon_bp_ok_lo.png","idBtnOk iActObj",x)+C("icon_bp_cancel_lo.png","idBtnCancel iActObj",s)}));u&&$(".idBtnOk",p).bindOnce("click",u);c&&$(".idBtnCancel",p).bindOnce("click",
c);N.extendHoverAndTt(p);j(true,p)}function j(c,p,q){q=q||{};if(c){$(".idBtnOk,.idBtnCancel",p).unbind("click.autoClose").bindOnce("click.autoClose",function(){j(false,p)});p.setImgLo();p.parents().length||p.appendTo("body");$.blockUI({overlayCSS:{backgroundColor:null},message:p,onMsgIn:function(){p.fadeInXB(300);q.callback&&q.callback.call()}})}else{$(".idBtnOkVali",p).length&&ka.validationReset(p);$.unblockUI({fadeOut:200,callback:q.callback,msgObj:p})}}function m(c){var p=d.Preloader;c?$.blockUI({overlayCSS:{backgroundColor:null},
message:p,onMsgIn:function(){p.show()}}):$.unblockUI({fadeOut:200,msgObj:p})}function h(c){c=$Self(".Captcha_idImgCaptcha",c);var p=G8.isLocaltest?"dbressource/img/temp_captcha.jpg":n.scriptPathUserpage+"?action=38&reload="+parseInt(Math.random()*1E7);c.attr("src",p)}function l(){var c=$(this);h(c)}G8.globalSubscriber.bindOnce("initCreatePageDOMString",a).bindOnce("initExtendPageDOM",b);return{getCaptchaMaster:f,alertt:g,confirmm:k,tglAlert:j,tglPreloader:m,refreshCaptcha:h}}(),Ua=function w(){function a(){if(K.isLogged()){var m=
e({id:"Notify",cl:"Note_TT",hid:true},e({cl:"Note_TTInner"},e({cl:"Note_TTContent"}),C("icon_gen_fix_close_mini_lo.png","Note_TTimgCloseBtn iActObj",o("TT_Note_close"))));n.initDOMString+=m;qa.preloadSpecialImgs("fix",["note_bg.png","infoicon_gen_fix_comment.png","infoicon_gen_fix_friend.png","infoicon_gen_fix_message.png"])}}function b(){if(K.isLogged()){var m=["Notify"];J.setDOMReference(m);d.Notify.find(".Note_TTimgCloseBtn").bindOnce("click",k)}}function f(m){if(m.messages||m.frequests||m.comments){var h=
e({cl:"Note_TTHeadline"},o("HL_Note"));if(m.messages)h+=e({cl:"Note_TTItem idNoteItemMS"},C("infoicon_gen_fix_message.png","Note_imgInfoicon"),Y({cl:"Note_TTItemText"},"<b>"+n.loggedData.totalNewMessages+"</b> "+xa("Text_Note_UnreadMessage",n.loggedData.totalNewMessages)));if(m.frequests)h+=e({cl:"Note_TTItem idNoteItemFR"},C("infoicon_gen_fix_friend.png","Note_imgInfoicon"),Y({cl:"Note_TTItemText"},"<b>"+n.loggedData.totalFriendRequests+"</b> "+xa("Text_Note_NewFriendRequest",n.loggedData.totalFriendRequests)));
if(m.comments)h+=e({cl:"Note_TTItem idNoteItemCF"},C("infoicon_gen_fix_comment.png","Note_imgInfoicon"),Y({cl:"Note_TTItemText"},"<b>"+n.loggedData.totalNewComments+"</b> "+xa("Text_Note_NewComment",n.loggedData.totalNewComments)));d.Notify.find(".Note_TTContent").html(h).end().css("bottom",ia.isVisible()?5:32).slideDown(1E3).find(".Note_TTItem").bindTglHoverClass("Note_TTItemHi").bindOnce("click",g);n.Notify.autohideTimeout=setTimeout(j,n.Notify.autohideTime*1E3)}}function g(){var m=$(this).getIdFromClass("idNoteItem");
if(m=="MS")d.UB.find(".idBtnMessages").trigger("click");else if(m=="FR")d.UB.find(".idBtnFRequests").trigger("click");else m=="CF"&&d.UB.find(".idBtnComments").trigger("click")}function k(){if(n.Notify.autohideTimeout){clearTimeout(n.Notify.autohideTimeout);n.Notify.autohideTimeout=false}d.Notify.fadeOutXB(300)}function j(){n.Notify.autohideTimeout=false;d.Notify.fadeOutXB(1E3)}G8.globalSubscriber.bindOnce("initCreatePageDOMString",a).bindOnce("initExtendPageDOM",b);return{doNotify:f}}(),ia=function w(){function a(){K.isLogged()&&
qa.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 b(){j(false)}function f(){return d.UB&&d.UB.data("expanded")}function g(m){d.UB.data("currPane");d.UB.data("currPane",m);k(m);var h=e({cl:"PC_contentsHead"},e({cl:"PC_contentsHeadColLeft"}),e({cl:"PC_contentsHeadColRight"},e({cl:"PC_contentsHeadHL"}),e({cl:"PC_contentsHeadSubline"})),e({cl:"clr"})),l=
e({cl:"PC_contentsBody"},e({cl:"PC_contentsBodyEmpty"},d.PreloaderFixMiniMaster,o("Text_GEN_loading")));d.PC_Contents.html(h+l);if(m=="FRequests")Ta.fillPCFR();else if(m=="Messages")wa.fillPCMS();else if(m=="Newsfeed")Na.fillPCNF();else if(m=="Settings")gb.fillPCST();else m=="Comments"&&Na.fillPCCF()}function k(m){d.UB.find(".idBtnNewsfeed,.idBtnSettings,.idBtnMessages,.idBtnFRequests,.idBtnComments").setImgLo();m&&d.UB.find(".idBtn"+m).setImgAct()}function j(m){var h=d.UB;if(m){h.data("expanded",
true);h.data("origPageContentsYPos",ua.scrollTop());K.isOwner()&&!d.MB_PageMode.isDisbld()&&d.MB_PageMode.hide();d.PC_Cover.fadeIn(300,function(){d.Notify.css("bottom",5);ua.scrollLeft(0).scrollTop(0);var l=h.top();h.css("top")=="auto"&&h.css({top:l+"px"});h.data("origTop",l);g(h.data("currPane"));d.PC.show();h.animate({top:20},600,function(){d.AllPageContents.add("#LB_Popup,#LB_Overlay").hide();$("#PC_ImgBtnClosePC").fadeInXB(300);h.switchClassF("UB_bot","UB_top")})})}else{h.data("expanded",false);
k();$("#PC_ImgBtnClosePC").fadeOutXB(300);h.animate({top:h.data("origTop")},600,function(){h.css("top",null);h.switchClassF("UB_top","UB_bot");d.AllPageContents.add("#LB_Popup,#LB_Overlay").show();K.isOwner()&&!d.MB_PageMode.isDisbld()&&d.MB_PageMode.show();d.PC_Cover.fadeOut(300);ua.scrollTop(h.data("origPageContentsYPos"));d.Notify.css("bottom",32)})}}G8.globalSubscriber.bindOnce("initCreatePageDOMString",a);return{clk_closePC:b,isVisible:f,switchPCContents:g,tglPC:j}}(),qa=function w(){function a(){d.PreloaderThemeMiniMaster=
e({cl:"preload_preloaderMini"},L("preloader_theme_mikro.gif"));d.PreloaderFixMiniMaster=e({cl:"preload_preloaderMini"},C("preloader_fix_mikro.gif"));d.PreloaderLBMiniMaster=e({cl:"preload_preloaderMini"},C("preloader_lb_mikro.png"))}function b(q,r){if(q=="theme")$.each(r,function(x,s){L(s)});else if(q=="fixCSS")$.each(r,function(x,s){ga.makeImg("staticCSS",s)});else q=="fix"&&$.each(r,function(x,s){C(s)})}function f(){G8.pageVars.contentImgObjs=[];var q=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",q)})}function g(){if(n.contentImgObjs){var q=n.contentImgObjs.length;$.each(n.contentImgObjs,function(r,x){x.attr("src",x.data("origSrc"));r==q-1&&x.bindOnce("load",k)})}}function k(){$(".EE_CB").each(function(){var q=$(this);q=T("Contentblock",q);q.preloadPreviewImgs()})}function j(){n.Preloading.isRunning=
true;n.Preloading.timeoutEssentials=setTimeout(h,n.Preloading.maxTime*1E3);n.Preloading.collectEssentials=true;S.tglPreloader(true)}function m(){n.Preloading.collectEssentials=false}function h(){l()}function l(){if(n.Preloading.isRunning){n.Preloading.isRunning=false;clearTimeout(n.Preloading.timeoutEssentials);S.tglPreloader(false);g()}}function c(q){if(q!=""&&q.indexOf("script.php?")==-1){n.Preloading.imgsEssential[q]="loading";p(q,true)}}function p(q,r){function x(s){n.Preloading.imgsEssential[s]=
"loaded";var u=0,A=0;$.each(n.Preloading.imgsEssential,function(B,F){u++;F=="loaded"&&A++});A>u*n.Preloading.percentEssentialsLoadedBeforeContent&&l()}$.isArray(q)||(q=[q]);$.each(q,function(s,u){u=da.prefixSrc("theme",u);if(n.Preloading.imgs[u]==undefined){n.Preloading.imgs[u]="loading";$("<img/>").bindOnce("load",function(){n.Preloading.imgs[u]="loaded";r&&x(u);$(this).remove()}).srcF(u)}})}G8.globalSubscriber.bindOnce("initExtendPageDOM",a);return{preloadSpecialImgs:b,preloadImgs:p,holdContentLoading:f,
startCollectEssentials:j,stopCollectEssentials:m,addStackEssentialImg:c}}(),Pa=function w(){function a(){var k=arguments,j=k[0],m=g[n.loggedData.lang][j]?g[n.loggedData.lang][j]:"";if(k.length>1){k=G8.ax_jqxtnd.arrayCutFirst(k);$.each(k,function(h,l){m=m.replace("#"+(h+1),l)})}return m}function b(k,j){return j==1?o(k+"1",j):o(k+"2",j)}function f(){g.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 "+ba({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 "+ba({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 "+ba({name:"FAQ",url:"portal.eightpage.com?content=faq"})+".",Help_FAQImgUploadingLink:"<br/><br/>Tipps und Tricks zum Hochladen von Bildern findest Du "+ba({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/>"+ba({name:"www.youtube.com"})+"<br/>"+ba({name:"www.vimeo.com"})+
"<br/>"+ba({name:"www.metacafe.com"})+"<br/>"+ba({name:"www.dailymotion.com"})+"<br/>"+ba({name:"www.veoh.com"})+"<br/>"+ba({name:"vids.myspace.com"})+"<br/>und vielen anderen Plattformen",Help_WorldVisible:"In der "+ba({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"};g.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 "+ba({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 "+ba({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 "+ba({name:"FAQ",url:"portal.eightpage.com?content=faq"})+".",Help_FAQImgUploadingLink:"<br/><br/>Tips and tricks for uploading images can be found "+
ba({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/>"+ba({name:"www.youtube.com"})+"<br/>"+ba({name:"www.vimeo.com"})+"<br/>"+ba({name:"www.metacafe.com"})+"<br/>"+ba({name:"www.dailymotion.com"})+"<br/>"+ba({name:"www.veoh.com"})+"<br/>"+ba({name:"vids.myspace.com"})+"<br/>and many more platforms",Help_WorldVisible:"All eightpage users worldwide can be found in the  "+
ba({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 g={};return{getLocalizedString:a,getLocalizedString12:b,initLocalStrings:f}}();(function w(a){function b(y,v){v=v||{};s&&clearInterval(s);var H=y==window,I=v.message!==undefined?v.message:undefined,t=I?typeof I=="object"?"obj":"string":"noMsg";t=="obj"&&a.extend(true,a.blockUI.defaults.css,a.blockUI.defaults.cssObj);t=v.msgFixed!==false?true:false;B=v.xOff||0;F=v.yOff||0;
v=a.extend(true,{},a.blockUI.defaults,v);var E=v.css,D=v.clonePosObj;if(D)t=false;var R=v.onMsgIn;if(I&&typeof I!="string"&&(I.parentNode||I.jquery)){var O=I.jquery?I[0]:I,M={};a(I).data("blockUI.history",M);M.el=O;M.parent=O.parentNode;M.display=O.style.display;M.position=O.style.position;M.parent.removeChild(O)}var U=v.baseZ,ca=a("<div>").addClass("idBlockUIContainer");O=a.browser.msie?a('<iframe class="blockUI" style="z-index:'+U++ +';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>');M=a('<div class="blockUI" style="z-index:'+U++ +';cursor:wait;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');M.hide();if(!v.applyPlatformOpacityRules||!(a.browser.mozilla&&/Linux/.test(navigator.platform)))M.css(v.overlayCSS);M.css("position",H?"fixed":"absolute");a.browser.msie&&O.css("opacity","0.0");ca.append(O).append(M).appendTo(H?"body":y);M.fadeIn(400);U=H?!t?a('<div class="blockUI blockMsg blockPage" style="z-index:'+
U++ +';position:absolute;"></div>'):a('<div class="blockUI blockMsg blockPage" style="z-index:'+U++ +';position:fixed;"></div>'):a('<div class="blockUI blockMsg blockElement" style="z-index:'+U++ +';display:none;position:absolute;"></div>');if(I)u=U;I&&U.css(E).hide();ca.append(U);if(q){H&&v.allowBodyStretch&&a.boxModel&&a("html,body").css("height","100%");if((q||!a.boxModel)&&!H){E=l(y,"borderTopWidth");ca=l(y,"borderLeftWidth");var V=E?"(0 - "+E+")":0,G=ca?"(0 - "+ca+")":0}a.each([O,M,U],function(Q,
W){W=W[0].style;W.position="absolute";if(Q<2){H?W.setExpression("height",'document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px"'):W.setExpression("height",'this.parentNode.offsetHeight + "px"');H?W.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):W.setExpression("width",'this.parentNode.offsetWidth + "px"');G&&W.setExpression("left",G);V&&W.setExpression("top",V)}else if(v.centerY){H&&
W.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');W.marginTop=0}})}k(1,y,v);a(window).bindOnce("resize",p);if(H){U.append(I).show();if(t)if(D)U.clonePos(D,{windowFixed:true});else{if(v.centerX&&v.centerY)if(I)if(I.not(":visible")){I.show();U.setPosTo(a(window),"CENTERX","CENTERY");I.hide()}else U.setPosTo(a(window),
"CENTERX","CENTERY")}else{if(D){U.clonePos(D,{xOff:B,yOff:F});A=D}if(u)s=window.setInterval(c,20)}if(I&&(I.jquery||I.nodeType))R&&R();r=U[0];x=a(":input:enabled:visible",r);v.focusInput&&setTimeout(m,20)}else{h(U[0],v.centerX,v.centerY);U.append(I).show()}}function f(y,v){var H=y==window,I=a(v.msgObj).data("blockUI.history");s&&clearInterval(s);A=u=null;F=B=0;v=a.extend({},a.blockUI.defaults,v||{});k(0,y,v);var t=H?a("body").find(".idBlockUIContainer"):a(".idBlockUIContainer",y);if(v.msgObj)t=v.msgObj.parents(".idBlockUIContainer");
if(H)r=x=null;if(v.fadeOut){t.find(".blockMsg").fadeOutXB(v.fadeOut);t.fadeOutXB(v.fadeOut,function(){g(t,I,v,y);v.callback&&v.callback.call()})}else{g(t,I,v,y);v.callback&&v.callback.call()}}function g(y,v,H,I){y.each(function(){this.parentNode&&this.parentNode.removeChild(this)});if(v&&v.el){v.el.style.display=v.display;v.el.style.position=v.position;v.parent.appendChild(v.el);a(v.el).removeData("blockUI.history")}typeof H.onUnblock=="function"&&H.onUnblock(I,H)}function k(y,v,H){var I=v==window;
v=a(v);if(!(!y&&(I&&!r||!I&&!v.data("blockUI.isBlocked")))){I||v.data("blockUI.isBlocked",y);I="mousedown mouseup keydown keypress click";y?a(document).bind(I,H,j):a(document).unbind(I,j)}}function j(y){if(y.which&&y.which==9)if(r&&y.data.constrainTabKey){var v=x,H=!y.shiftKey&&y.target==v[v.length-1],I=y.shiftKey&&y.target==v[0];if(H||I){setTimeout(function(){m(I)},10);return false}}if(a(y.target).parents("div.blockMsg").length>0)return true;return a(y.target).parents().children().filter("div.blockUI").length==
0}function m(y){if(x)(y=x[y===true?x.length-1:0])&&y.focus()}function h(y,v,H){var I=y.parentNode,t=y.style,E=(I.offsetWidth-y.offsetWidth)/2-l(I,"borderLeftWidth");y=(I.offsetHeight-y.offsetHeight)/2-l(I,"borderTopWidth");if(v)t.left=E>0?E+"px":"0";if(H)t.top=y>0?y+"px":"0"}function l(y,v){return parseInt(a.css(y,v))||0}function c(){var y=u.isInViewport(),v=0;v=u.top();if(y.yTop==-1&&y.yBot==1||y.yTop==0&&y.yBot==0)v=G8.ax_jqxtnd.windowScrollTop();else if(y.yTop==0&&y.yBot==1||y.yTop==1&&y.yBot==
1)v=u.top();else if(y.yTop==-1&&y.yBot==0||y.yTop==-1&&y.yBot==-1)v=u.top()+u.height()-y.viewportHeight;y=15;var H=G8.ax_jqxtnd.windowScrollTop();v=H+Math.round((v-H)/y);G8.ax_jqxtnd.windowScrollTop(v)}function p(){u&&A&&u.clonePos(A,{xOff:B,yOff:F})}a.blockUI=function(y){b(window,y)};a.unblockUI=function(y){f(window,y)};a.fn.block=function(y){return this.each(function(){if(a.css(this,"position")=="static")this.style.position="relative";if(a.browser.msie)this.style.zoom=1;b(this,y)})};a.fn.unblock=
function(y){return this.each(function(){f(this,y)})};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 q=a.browser.msie&&a.browser.version<7,r=null,x=[],s=null,u=null,
A=null,B=0,F=0})(jQuery);var P=function w(){function a(c,p){if(m(c))p.afterSuccess&&p.afterSuccess(c);else{l(c,p.dontTrace);p.afterError&&p.afterError(c)}}function b(c,p){p=p||{};if(G8.isLocaltest){c=G8.ax_localTesting.getSimulatedAJAX(c);a(c,p)}else $.post(n.scriptPathUserpage,c,function(q){if(!q||!q.length)Da("ERROR: Ajax return empty");else{q=f(q);a(q,p)}})}function f(c){try{return eval("("+c+")")}catch(p){Da("ERROR: malformed json string",c);return{}}}function g(c,p){var q={1:"TEXT",2:"VIDEO",
3:"GALLERY",4:"BLOGENTRY",5:"FRIEND",6:"COMMENT",7:"PROFILEIMG"},r={0:"OK",1:"WRONG SESSION",2:"ELAPSED SESSION",3:"WRONG LOGIN",4:"LOCKED LOGIN"},x={SELF:1,ALL:2,FRIENDS:3};if(c=="STATE_ERROR")return r[p];else if(c=="PRIVACY_FLAGS")return x[p];else if(c=="FEED_ACTION")return q[p]}function k(c,p){S.tglPreloader(false);c=z.readObj("json",c);c=c.actionError;if(c==1701){S.refreshCaptcha(p);ka.markFieldError(p.find(".Vali_captcha"),"captcha")}}function j(c,p){c=z.readObj("json",c);c=c.actionError;if(c==
2){S.refreshCaptcha(p);ka.markFieldError(p.find(".Vali_email"),"mailMatch")}}function m(c){c=z.readObj("json",c);return c.success==1&&c.actionError==0&&c.actionException==0&&c.stateError==0}function h(c,p){var q=true;p&&$.each(p,function(r,x){if(c==x)return q=false});return q}function l(c,p){var q=z.readObj("json",c);c=q.actionError;var r=q.stateError,x=q.authed;if(x==0){J.tglUserChronjob("logged",false);J.tglUserChronjob("notLogged",false);p=n.parsedProfileUser.url;da.gotoUrl("http://"+p)}else if(q.action==
27||q.action==3||q.authed!=n.loggedData.userAuthedStatus)if(q.authed<n.loggedData.userAuthedStatus){n.loggedData.userAuthedStatus=q.authed;n.loggedData.loginError=r;J.displayPage();oa.handleLoginState()}else{n.loggedData.userAuthedStatus=q.authed;n.loggedData.loginError=r}else if(h(c,p)){p=o("HL_BP_ajaxError");c=o("Text_BP_ajaxError",c);S.alertt({headline:p,msg:c})}}return{post:b,jsonToObj:f,getAjaxConst:g,handleCaptchaError:k,handlePWRestoreEmailError:j,isSuccess:m,traceAjaxError:l}}(),la=function w(){function a(f,
g,k){g.data("pMapping_"+f,k)}function b(f,g){return g.data("pMapping_"+f)}return{setJDomToObjMapping:a,getJDomToObjMapping:b}}(),ga=function w(){function a(){var l=arguments,c=l[0];l=l[1]!=undefined?G8.ax_jqxtnd.arrayCutFirst(l).join(""):"";var p=c.cl?' class="'+c.cl+'"':"",q=c.id?' id="'+c.id+'"':"",r=c.pos?"position:"+c.pos+";":"";c=c.hid?"display:none;":"";c=r!=""||c!=0?' style="'+r+c+'"':"";return"<div"+q+p+c+">"+l+"</div>"}function b(l,c,p,q){return g("static",l,c,p,q)}function f(l,c,p,q){return g("theme",
l,c,p,q)}function g(l,c,p,q,r){c=c?da.prefixSrc(l,c):"";p=p?' class="'+p+'"':"";q=q?' alt="'+Z.strToAlt(q)+'"':"";r=r?' id="'+r+'"':"";n.Preloading.collectEssentials&&qa.addStackEssentialImg(c);return'<img src="'+c+'"'+p+q+r+" />"}function k(){var l=arguments,c=l[0];l=l[1]?G8.ax_jqxtnd.arrayCutFirst(l).join(""):"";var p=c.cl?' class="'+c.cl+'"':"",q=c.id?' id="'+c.id+'"':"";if(c.e=="inp")return'<input type="text"'+p+q+" />";else if(c.e=="pw")return'<input type="password"'+p+q+" />";else if(c.e=="txt")return"<textarea"+
p+q+"></textarea>";else if(c.e=="sp")return"<span"+p+q+">"+l+"</span>"}function j(){var l=arguments,c=l[0];l=l[1]?G8.ax_jqxtnd.arrayCutFirst(l).join(""):"";var p=c.id?' id="'+c.id+'"':"";c=c.cl?' class="'+c.cl+'"':"";return"<span"+p+c+">"+l+"</span>"}function m(l){if(!l.url)l.url=l.name;var c=l.id?' id="'+l.id+'"':"",p=l.cl?' class="'+l.cl+'"':"";if(!l.url.hasStr("http://","https://"))l.url="http://"+l.url;return'<a href="'+l.url+'" target="_blank"'+c+p+">"+l.name+"</a>"}function h(l){l=l||{};if(!l.size)l.size=
"small";var c=l.size=="small"?"BP_layoutSmall":"BP_layoutBig",p=l.headline!=undefined?e({cl:"BP_contHeadline"},l.headline):"",q=l.content!=undefined?e({cl:"BP_contCenter"},l.content):"";l=l.controls!=undefined?e({cl:"BP_contControls"},l.controls):"";return c='<table class="'+c+' 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">'+p+q+l+'</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:g,makeElement:k,makeSpan:j,makeLink:m,makeBP:h}}(),X=function w(){function a(h,l){var c=l.index(h);h=c>0?z.getEEId(l.eq(c-1)):0;l=c<l.length-1?z.getEEId(l.eq(c+1)):0;return{poslast:h,posnext:l}}function b(h){var l=h.data.show,c=h.data.cssClass;h=h.data.parentSelector?$(this).parents(h.data.parentSelector).find(h.data.tglObjSelector):$(this);h.tglClass(c,l)}function f(h,l){l=Math.round((h.length-1)*l);return $.isArray(h)?h[l]:h.eq(l)}function g(h,
l){return{x:h.pageX-l.left(),y:h.pageY-l.top()}}function k(h){return{x:h.pageX-ua.scrollLeft(),y:h.pageY-ua.scrollTop()}}function j(h,l,c){var p=c.eq(0),q,r;c.each(function(){var x=$(this),s=x.top(),u=s+x.height();if(l>=s)p=x;r=l>u?true:false});if(r)p=false;else q=l<p.top()+p.height()/2?"before":"after";return{object:p,position:q}}function m(h,l){h=l?h.find(l):h;return $.trim(h.val())}return{getNeighborIds:a,tglHoverClass:b,pickItemByPercent:f,getRelativeMouse:g,getViewportMouse:k,mouseOverObj:j,
readFormVal:m}}(),z=function w(){function a(k,j){var m;if(k=="elementJ")m=a("element",a("json",j).element);else if(k=="element")m={id:j[0],type:j[1],mode:j[2],privacy:j[3],view:j[4],totalComments:j[10],children:j[11],dom:j[12],value1:String(j[13])||false,line1:String(j[14])||false,line2:String(j[15])||false,text1:String(j[16])||false,date1:j[15]||false};else if(k=="feedElement"){var h=[];$.each(j[6],function(l,c){h.push(a("feedElement",c))});m={id:j[0],type:j[1],mode:j[2],privacy:j[3],totalComments:j[5],
children:h,value1:j[7]||false,line1:String(j[8])||false,line2:String(j[9])||false,text1:String(j[10])||false,date1:j[9]||false}}else if(k=="json")m={action:j.ACTION,stateError:j.STATE_ERROR,actionError:j.ACTION_ERROR,actionException:j.ACTION_EXCEPTION,success:j.SUCCESS,element:j.ELEMENT,authed:j.AUTHED,themeId:j.THEME?j.THEME.ID:null,faviconPath:j.PROFILE?g("share",j.PROFILE[4],"normal"):null,userImgPath:j.PROFILE?g("share",j.PROFILE[5],"normal"):null,loggedData:j.LOGGED_DATA,hitCountVars:j.HITCOUNT,
comment:j.COMMENT};else if(k=="friendsJ")m={totalFriends:j.FRIENDS.totalFriends,users:j.FRIENDS.users};else if(k=="user"){j=j||[];m={id:j[0],url:j[1],name:String(j[2]),imgId:j[3],lastUpdated:j[4],UPState:j[5],fState:j[6]}}else if(k=="dialogsJ")m={totalDialogs:j.DIALOGS.totalDialogs,dialogs:j.DIALOGS.dialogs,totalNewMessages:j.DIALOGS.totalNewMessages,totalMessages:j.DIALOGS.totalMessages};else if(k=="dialog")m={user:a("user",j.user),totalNewMessages:j.totalNewMessages,totalMessages:j.totalMessages,
messages:j.messages};else if(k=="message")m={mid:j[0],uidSend:j[1],uidReci:j[2],state:j[3],date:j[4],subject:String(j[5]),text:j[6]?String(j[6]):""};else if(k=="friendsfeedJ")m={totalNews:j.FRIENDSFEED.totalNews,news:j.FRIENDSFEED.news};else if(k=="news")m={nid:j[0],uid:j[1],content:j[2],contentType:j[3],feedAction:P.getAjaxConst("FEED_ACTION",j[4]),date:j[5]};else if(k=="cmtEntryObj")m={id:b(j),text:j.find(".CM_entryText").html(),userImgId:f(j.find(".CM_entryUserImg img")),userName:j.find(".CM_entryUsername").html()};
else if(k=="commentsJ")m={totalComments:j.COMMENTS.totalComments,totalCBComments:j.COMMENTS.totalCBComments,comment:j.COMMENTS.comment,comments:j.COMMENTS.comments};else if(k=="comment")m={id:j[0],userData:a("user",j[1]),date:j[2],text:String(j[3]),commentedElement:j[4]?a("feedElement",j[4]):false,commentedUser:j[5]?a("user",j[5]):false};else if(k=="CB")m={id:j[0],privacy:j[1],collapsed:j[2]==0,totalComments:j[3]};else if(k=="BEntry")m={id:j[0],date:j[1],headline:j[2],totalComments:j[3]};else if(k==
"themePV")m={id:j[0],name:j[1],path:j[2],headerImgs:j[3]};else if(k=="theme"){k=[];for(m=0;m<j[3];m++)k.push(j[4].replace(j[5]+".jpg",m+".jpg"));m={id:j[0],name:j[1],src:j[2],currImgPath:j[4],headerImgs:k}}else if(k=="themeJ")m=a("theme",j.THEME);else if(k=="headerImg")m={id:j[0],src:j[1]};else if(k=="friendshipJ")m={id:j.FRIENDSHIP[0],DOM:j.FRIENDSHIP[7]};else if(k=="FRequestsJ")m={totalRequests:j.REQUESTS.totalRequests,requests:j.REQUESTS.requests};else if(k=="FRequest")m={userData:a("user",j[0]),
text:j[1],date:j[2]};else if(k=="friendObj")m={id:b(j),imgId:f(j.find(".FO_idImgFImg")),url:j.find(".FO_idFUrl").html(),name:j.find(".FO_idFName").html(),fState:ja.getFriendFlag(j)};else if(k=="auth")if(32>j&&j>=16)m="ownerLogged";else if(16>j&&j>=8)m="friendLogged";else if(8>j&&j>=4)m="visitorLogged";else if(4>j&&j>=0)m="notLogged";return m}function b(k){return k.attr("id").replace("db_","").replace("dbComment_","").replace("dbHeader_","").replace("dbFriend_","")}function f(k){k=k.srcF();var j=da.getQueryParam(k,
"showimg");if(G8.isLocaltest)return k;return j}function g(k,j,m){k=k=="share"?n.scriptPathShare:n.scriptPathUserpage;k=k+"?action=8&showimg=IMGID&type=IMGTYPE";if(G8.isLocaltest)return j.replace("_normal.jpg","_"+m+".jpg").replace("_thumb.jpg","_"+m+".jpg").replace("_mini.jpg","_"+m+".jpg");return k.replace("IMGID",j).replace("IMGTYPE",m)}return{readObj:a,getEEId:b,getImgId:f,makeImgPathFromId:g}}(),Z=function w(){function a(l){l=l||"";return l.replace(/\[/g,"<").replace(/\]/g,">")}function b(l){l=
l||"";return l.replace(/</g,"[").replace(/>/g,"]")}function f(l,c){function p(q){return q<10?"0"+q:q}l=new Date(l*1E3);c=c=="long"?o("Format_dateLong"):o("Format_dateShort");return c.replace("DD",p(l.getDate())).replace("MM",p(l.getMonth()+1)).replace("JJJJ",l.getFullYear()).replace("HH",p(l.getHours())).replace("mm",p(l.getMinutes()))}function g(l,c){var p=l.length>c?"...":"";return l.substr(0,c)+p}function k(l,c){if(l.width()>c)for(var p=l.html(),q=p,r=0;r<p.split(" ").length;r++){q=m(q);l.html(q);
if(l.width()<=c)break}}function j(l){return"<b>"+g(l.name,25)+"</b> ["+l.url+"]"}function m(l){var c=h(l),p=Math.round(c.length/2);return l=l.replace(c,c.slice(0,p)+" "+c.slice(p))}function h(l){l=l.split(" ").sort(function(c,p){return p.length-c.length});return l[0]}return{altToStr:a,strToAlt:b,formatDate:f,shortenText:g,forceLinebreak:k,formatUser:j}}(),ha=function w(){function a(f,g,k){if(f.data("expanded")){f.slideUp(300).data("expanded",false);b(k,g,false)}else{f.slideDown(300).data("expanded",
true);b(k,g,true)}}function b(f,g,k){var j={CB:[o("TT_CB_Tgl_show"),o("TT_CB_Tgl_hide")],allFriends:["",""],comments:[o("TT_CM_Tgl_show"),o("TT_CM_Tgl_hide")],allComments:["",""],PCMS_Reply:[o("TT_MS_Reply_Tgl_show"),o("TT_MS_Reply_Tgl_hide")],PCMS_FullDialog:["",""],PCMS_Dialog:["",""],PCMS_Message:["",""],UL_errorImgList:["",""]};k?g.switchSrc("collapsed_lo.","expanded_lo.").switchSrc("collapsed_hi.","expanded_hi.").setAltText(j[f][1]):g.switchSrc("expanded_lo.","collapsed_lo.").switchSrc("expanded_hi.",
"collapsed_hi.").setAltText(j[f][0])}return{tglBox:a,tglCollapseToggler:b}}(),da=function w(){function a(k,j){var m=false;if(k.hasStr("?")){k=k.substr(k.indexOf("?")+1);k=k.split("&");$.each(k,function(h,l){h=l.split("=");if(h[0]==j){m=h[1];return false}})}return m}function b(k){function j(m,h){var l=0;for(i=0;i<m.length;++i)l+=m.charCodeAt(i);return Math.ceil(l/m.length%1*h)}return k=n.staticResPaths[j(k,3)+1]}function f(k,j){var m=k=="staticCSS"?n.staticResPaths[0]:b(j);k=k=="theme"?m+n.themeImgsPathSuffix:
m+n.profileImgsPathSuffix;return j.hasStr("file://","http://",n.scriptPathUserpage+"?",n.scriptPathShare+"?","dbressource/",k)?j:k+j}function g(k,j){if(j)window.open(k);else location.href=k}return{getQueryParam:a,getStaticHostBySrcName:b,prefixSrc:f,gotoUrl:g}}(),va=function w(){function a(){var h=new Date,l=setInterval(function(){if($("a.fvd_ytl").length){$("a.fvd_ytl").parent().remove();clearInterval(l)}else{var c=new Date;c-h>2E3&&clearInterval(l)}},100)}function b(){if($.browser.msie&&$.browser.version<
8){$("body").addClass("XB_msie");var h=$(e({cl:"BP_warningsBox"},e({cl:"BP_contHeadline"},o("HL_BP_msieDetect"))+e({cl:"BP_contCenter"},e({cl:"BP_centered"},o("Text_BP_msieDetect"),e({id:"Page_MsieBrowserIcons"},ba({name:C("icon_get_ff.png","iActObj","Firefox"),url:"http://www.firefox.com"}),ba({name:C("icon_get_gc.png","iActObj","Google Chrome"),url:"http://www.google.com/chrome"}),ba({name:C("icon_get_sf.png","iActObj","Apple Safari"),url:"http://www.apple.com/safari"}))))));J.appendPageWarnings(h)}}
function f(h){if($.browser.msie){h=h||aa;var l=da.prefixSrc("static","blank.gif");h.find(".fixPNGImg").each(function(){var c=$(this),p=c.attr("src");c.attr("src",l).css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+p+"',sizingMethod='scale')")});h.find(".fixPNGBg").each(function(){var c=$(this),p=c.css("background-image");bgImgSrc=p.match(/[^(url\()]\S*[^\)]/);if(bgImgSrc!=""&&this.runtimeStyle)c.get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
bgImgSrc+"',sizingMethod='scale')"})}}function g(){return navigator.userAgent.indexOf("Chrome")!=-1}function k(){return navigator.userAgent.indexOf("Safari")!=-1}function j(){return navigator.userAgent.indexOf("iPhone")!=-1}function m(){if(navigator.userAgent.hasStr("Windows NT 7","Windows NT 6")){var h=$(".Profile_idSlogan").html();h&&h.indexOf('"')==0&&$(".Profile_idSlogan").html(h.substr(1,h.length-2))}}return{removeFlvPlugLinks:a,handleDetectCrossbrowser:b,fixPNGs:f,isChrome:g,isSafari:k,isIPhone:j,
fixProfileSlogan:m}}(),N=function w(){function a(){var s=e({id:"TT_StandTT",pos:"absolute",hid:true},e({cl:"TT_content idContents"})+e({cl:"TT_ttTL"})+e({cl:"TT_ttTR"})+e({cl:"TT_ttBL"})+e({cl:"TT_ttBR"})+e({cl:"clr"}));n.initDOMString+=s}function b(){var s=["TT_StandTT"];J.setDOMReference(s)}function f(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 g(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 k(s){var u=40,A="[...]",B=s.html().br2nl(),F=n.parsedProfileUser.url.match(/[a-z]+\.[a-z]+$/)[0],y=/\b((((http|https):\/\/)?www)|(http|https))\S+\b/g;B=B.replace(y,function(v){v=!v.hasStr("http://","https://")?"http://"+v:v;var H=v.replace("http://","").replace("https://","");H=H.indexOf("www.")==0?v.replace("http://","").replace("https://",""):v;if(H.length>u)H=H.substr(0,u)+
A;var I=v.hasStr(F)?"_self":"_blank";return'<a href="'+v+'" target="'+I+'">'+H+"</a>"});y=/\b\S+@\S+/g;B=B.replace(y,function(v){return'<a href="mailto:'+v+'">'+v+"</a>"});s.html(B.nl2br())}function j(s){function u(){$(this).addClass("linkHi")}function A(){$(this).removeClass("linkHi")}s.bindOnce("mouseenter",u).bindOnce("mouseleave",A)}function m(s){return s=s.isChildOf("#UB,.BP,#LB_Popup,#Notify")?true:false}function h(s){var u=$(this),A=s.data&&s.data.mode||"standard",B=s.data&&s.data.imgObj?s.data.imgObj:
u.hasClass("EE_galImg")?u.find(".EE_OBJ"):u,F=s.data&&s.data.imgObj!=undefined,y=d.TT_StandTT;y.tglClass("nonTheme",m(u));u=X.getRelativeMouse(s,B);if(!B.isDisbld())if(!($.browser.msie&&$.browser.version<8)){var v=B.getAltText();if(v&&v!=""){var H=$(".idContents",y);if(A=="imageTitle"&&n.userCommentsAllowed)v+=" ("+L("infoicon_theme_comment_tt.png")+B.parent().getIdFromClass("tCmt_")+")";H.html(v);A=F?B.parent().parent():B.parent();y.prependTo(A).tglFadeInXB(300).cloneDim(H,{margin:true});A=H.width();
H=H.height();s=X.getViewportMouse(s);F=ua.height();v=ua.width();A=s.x<v-(A+50)?10:-A-30;s=s.y<F-(H+50)?10:-H-30;y.setPosTo(B,["LEFTI",u.x+A],["TOPI",u.y+s]);aa.bindOnce("mousemove",{ttDiv:y,imgObj:B,xOff:A,yOff:s},l)}}}function l(s){var u=s.data.ttDiv,A=s.data.imgObj,B=s.data.xOff,F=s.data.yOff;s=X.getRelativeMouse(s,A);u.setPosTo(A,["LEFTI",s.x+B],["TOPI",s.y+F])}function c(){$(this);if(!($.browser.msie&&$.browser.version<8)){var s=d.TT_StandTT;aa.unbind("mousemove",l);s.is(":visible")&&s.tglFadeOutXB(300,
function(){$(this).hide()})}}function p(){var s=$(this);s.isDisbld()||s.isActImg()||s.setImgHi()}function q(){var s=$(this);s.isDisbld()||s.isActImg()||s.setImgLo()}function r(s){if(s==undefined)s=aa;$Self("img.iActObj, a.iActObj",s).addClass("iRollover").bindOnce("mouseenter",h).bindOnce("mouseleave",c).bindOnce("mouseenter",p).bindOnce("mouseleave",q);s.setImgLo_HiOnly()}function x(s){function u(A){var B=$(this).find(".Act_idFadeImgLo");A.target!=B[0]&&B.trigger("click")}if(s==undefined)s=aa;$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",h).bindOnce("mouseleave",c);return false}else return this}).wrap(e({cl:"Act_idImgCrossfader"})).parent().bindOnce("mouseenter",{show:true},g).bindOnce("mouseleave",{show:false},g).each(function(){var A=$(this),B=A.find(".iFadeImg");A.width(B.width()).height(B.height()).bindOnce("mouseenter",{imgObj:B},h).bindOnce("mouseleave",
{imgObj:B},c).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("initCreatePageDOMString",a).bindOnce("initExtendPageDOM",b);return{bindLinkStyle:j,ent_tt:h,lea_tt:c,extendTextLinks:k,extendHoverAndTt:r,extendFadeImgs:x,tglObjToDelete:f}}();jQuery.fn.sortElements=function(){var w=[].sort;return function(a,b){b=b||function(){return this};
var f=this.map(function(){var g=b.call(this),k=g.parentNode,j=k.insertBefore(document.createTextNode(""),g.nextSibling);return function(){if(k===this)throw new Error("You can't sort elements if any one is a descendant of another.");k.insertBefore(this,j);k.removeChild(j)}});return w.call(this,a).each(function(g){f[g].call(b.call(this))})}}();var pa=function w(){function a(t,E){K.isOwner()&&$Self(".EE_video",E).each(function(){new Wa($(this))})}function b(){if(K.isOwner()){var t="";t+=e({id:"Video_Edit",
hid:true},e({id:"Video_EditInfo"},e({id:"Video_EditInfoText"},o("Text_Video_insertVideolink"),e({cl:"Help_infoBtnReplace"})))+ea({e:"inp",id:"Video_Edit_Input"})+e({id:"Video_EditStatus"})+e({cl:"GEN_editControls"},L("icon_theme_ok_lo.png","idBtnOk iActObj",o("TT_GEN_save")),L("icon_theme_cancel_lo.png","idBtnCancel iActObj",o("TT_GEN_cancel"))));n.initDOMString+=t}}function f(){if(K.isOwner()){var t=["Video_Edit","Video_Edit_Input","Video_EditStatus"];J.setDOMReference(t);k()}}function g(t){I=t}
function k(){Ja.extendInfoBtn(d.Video_Edit.find(".Help_infoBtnReplace"),"videoEmbedding","theme");d.Video_Edit_Input.bindOnce("click",A).bindOnce("change",r).bindOnce("keyup",x).bindOnce("focus",s).bindOnce("blur",u);d.Video_Edit.find(".idBtnOk").bindOnce("click",B).end().find(".idBtnCancel").bindOnce("click",F)}function j(){k();h();return d.Video_Edit}function m(){return d.Video_Edit}function h(){Ja.resetInfoTTs(d.Video_Edit);c();l(false);d.Video_Edit_Input.val("")}function l(t){t?d.Video_Edit.find(".GEN_editControls").show():
d.Video_Edit.find(".GEN_editControls").hide();I.setForceKeepOpen(t)}function c(t){t=t=="ok"?o("Text_Video_Status_Ok"):t=="notSupported"?o("Text_Video_Status_NotSupported"):t=="notRecognized"?o("Text_Video_Status_NotRecognized"):"";d.Video_EditStatus.html(t)}function p(){var t=I.getOrigUrl();I.changeVideoUrl(t)}function q(){var t=d.Video_Edit_Input.val();t=H(t);if(t.dataState=="ok"){c("ok");t=t.url;I.changeVideoUrl(t)}else if(t.dataState=="notSupported"){p();c("notSupported")}else{p();c("notRecognized")}l(true)}
function r(){q()}function x(){q()}function s(){l(true)}function u(){d.Video_Edit_Input.val()==""&&l(false)}function A(){$(this).select()}function B(){var t=d.Video_Edit_Input.val();t=H(t);if(t.dataState=="ok"){var E=I.getDbId(),D=t.url;I.changeVideoUrl(D);P.post({id:E,action:9,type:5,value1:D},{afterError:function(){p()},afterSuccess:function(){I.saveNewUrl(D)}})}y()}function F(){p();y()}function y(){h();d.Video_Edit_Input.val("")}function v(t,E){var D={normal:{width:600,height:361},thumb:{width:216,
height:130}},R={allowScriptAccess:"never",allowNetworking:"internal",wmode:"transparent",allowFullScreen:"true"},O=D[E].width;E=D[E].height;var M="",U="";$.each(R,function(ca,V){M+=" "+ca+'="'+V+'"';U+='<param name="'+ca+'" value="'+V+'" />'});R="";if(t.hasStr("vimeo.com/"))R+='<iframe src="'+t+'" width="'+O+'" height="'+E+'" frameborder="0" class="videoIframe"></iframe>';else{R+='<object width="'+O+'" height="'+E+'">';R+='<param name="movie" value="'+t+'" />';R+=U;R+='<embed src="'+t+'" width="'+
O+'" height="'+E+'" type="application/x-shockwave-flash" '+M+"></embed>";R+="</object>"}return R}function H(t){var E=false;E=["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",R="282",O,M,U,ca,V=[],G="MarkupObj";if(typeof t=="string")t.hasStr("<")||(G="Url");if(G=="MarkupObj"){G=$(t);t=$Self("iframe",G);if(t.length){O=t.attr("src");M=t.attr("width");U=t.attr("height")}t=$Self("embed",G);if(t.length){O=t.attr("src");M=t.attr("width");U=t.attr("height");ca=t.attr("flashVars")}else{t=$Self("object",G);if(t.length){O=t.attr("data");M=t.attr("width");U=t.attr("height");if(O=="")O=t.find("param[name='movie']").attr("value");ca=t.find("param[name='FlashVars']").attr("value")}}if(!M&&
t.css("width"))M=t.css("width").stripCssUnit();if(!U&&t.css("height"))U=t.css("height").stripCssUnit();M||(M=D);U||(U=R);if(O){O=O.replace("youtube-nocookie.com","youtube.com");if(O.hasStr("youtube.com")){t=O.hasStr("&")?O.slice(0,O.indexOf("&")).replace("http://www.youtube.com/v/",""):O.slice(0).replace("http://www.youtube.com/v/","");V.push("http://img.youtube.com/vi/"+t+"/1.jpg");V.push("http://img.youtube.com/vi/"+t+"/2.jpg");V.push("http://img.youtube.com/vi/"+t+"/3.jpg");O="http://www.youtube.com/v/"+
t+"&fs=1&rel=0&color1=0x464646&color2=0xCDCDCD"}}}else if(G=="Url"){M=t;M=M.stripNl();M.hasStr("http://")||(M="http://"+M);if(M.hasStr("www.youtube.com"))O=M.replace("www.youtube.com/watch?v=","www.youtube.com/v/");else if(M.hasStr("vimeo.com"))O=M.hasStr("www.vimeo.com/")?M.replace("www.vimeo.com/","player.vimeo.com/video/"):M.replace("vimeo.com/","player.vimeo.com/video/");else if(M.hasStr("video.gmx.net","www.gmx.net"))O=M.replace("www.gmx.net","video.gmx.net").replace("video.gmx.net/watch","video.gmx.net/movie");
else if(M.hasStr("video.web.de"))O=M.replace("video.web.de/watch","video.web.de/movie");else if(M.hasStr("www.liveleak.com"))O=M.replace("www.liveleak.com/view?i=","www.liveleak.com/e/");else if(M.hasStr("vids.myspace.com")){if(t=M.match(/videoid=[^&]*/)){t=t[0].toString().replace("videoid=","");O="http://mediaservices.myspace.com/services/media/embed.aspx/m="+t}}else if(M.hasStr("www.veoh.com"))if(t=M.match(/\/watch\/\S*/)){t=t[0].toString().replace("/watch/","");O="http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId="+
t}M=D;U=R}if(O==undefined||O.hasStr(" ")||!O.hasStr("."))return{dataState:false};else{E=O.hasStr(E)?"ok":"notSupported";if(O.hasStr("www.youtube.com")&&!O.hasStr("fs="))O+="&fs=1";return{dataState:E,url:O,width:M,height:U,flashVars:ca,thumbnailSrcs:V}}}var I;G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f).bindOnce("extendEE",a);return{makeEmbedMarkup:v,getFreshControls:j,getControls:m,setCurrVideoObj:g,readEmbedVideo:H}}(),Wa=function(w){w.wrap('<div class="Video_editBox"></div>').bindOnce("mouseenter",
{show:true,thiss:this},this._hov_tglEditPane);this._glo_wrapBox=w.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(w);N.extendHoverAndTt(w.add(this._glo_editPane));this._glo_jDomObj=w;this._glo_origUrl=pa.readEmbedVideo(w.outerHtml()).url;this._glo_dbId=z.getEEId(w);this._glo_contextMenuIsOpen=false};Wa.prototype=
{_hov_tglEditPane:function w(a){var b=a.data.thiss;if(J.isInEditMode()){a=a.data.show;var f=b._glo_editPane;if(a){pa.setCurrVideoObj(b);if(f.is(":hidden")){pa.getFreshControls().appendTo(b._glo_wrapBox).show();f.tglFadeInXB(300)}}else if(!b._glo_contextMenuIsOpen){pa.setCurrVideoObj(false);pa.getControls().tglFadeOutXB(250);f.tglFadeOutXB(250)}}},saveNewUrl:function w(){this._glo_origUrl=pa.readEmbedVideo(this._glo_jDomObj.outerHtml()).url},_getVideoDomObj:function w(){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 w(a){var b=this._getVideoDomObj(),f=a.hasStr("vimeo.com/"),g=b.iframeObj.length;if(this._glo_origUrl!=a)if(!f&&!g&&!$.browser.msie&&!va.isChrome()&&!va.isSafari()){b.objectObj&&b.objectObj.find("param[name=movie]").attr("value",a);b.embedObj&&b.embedObj.attr("src",a)}else if(f&&g)b.iframeObj&&b.iframeObj.attr("src",a);else{a=pa.makeEmbedMarkup(a,"normal");(b=b.objectObj.length?
b.objectObj:b.iframeObj)&&b.after(a).remove()}},getOrigUrl:function w(){return this._glo_origUrl},getDbId:function w(){return this._glo_dbId},setForceKeepOpen:function w(a){this._glo_contextMenuIsOpen=a}};var Aa=function w(){function a(){if(K.isOwner()){var G="";G+=e({id:"UL_FlashUL",hid:true});G+=e({id:"PopUL_Status",hid:true},ga.makeBP({headline:o("HL_BP_UL_uploadImgs"),content:e({cl:"BP_centered"},e({id:"UL_Bar"},e({id:"UL_BarMover"}),e({id:"UL_BarCover"})),e({id:"UL_Status"}),e({id:"UL_HelpInfo"},
o("Text_UL_Helpinfo")),e({id:"UL_ErrorInfo"})),controls:C("icon_bp_ok_lo.png","idBtnOk iActObj",o("TT_GEN_close"))+C("icon_bp_cancel_lo.png","idBtnStop iActObj",o("TT_BP_cancelUpload"))}));G+=e({id:"UL_PopPredialog",hid:true},ga.makeBP({headline:o("HL_BP_UL_selectImgToUpload"),content:e({cl:"BP_centered"},o("Text_BP_UL_selectImgToUpload")),controls:C("icon_bp_upload_lo.png","idBtnUpload iActObj",o("TT_BP_upload"))+C("icon_bp_cancel_lo.png","idBtnCancel iActObj",o("TT_GEN_cancel"))}));n.initDOMString+=
G}}function b(){if(K.isOwner()){var G=["PopUL_Status","UL_PopPredialog","UL_FlashUL","UL_ErrorInfo","UL_Status","UL_Bar","UL_BarMover"];J.setDOMReference(G);d.UL_FlashUL.append(e({cl:"idFlashVersionNotAvailable"})).flashembed({src:n.profileData.resPath.replace("www."+n.mainHostDomain,n.parsedProfileUser.url)+"func/upload_applet.swf",allowScriptAccess:"always",allowNetworking:"all",wmode:"transparent",version:[n.flashVersion]});ca=d.UL_FlashUL.find("object")[0];J.doFlashDetection(d.UL_FlashUL)}}function f(G){D=
G;var Q=d.UL_PopPredialog.find(".idBtnUpload");S.tglAlert(true,d.UL_PopPredialog,{callback:function(){d.UL_FlashUL.appendTo(Q.parent()).setPosTo(Q,"LEFTI","TOPI").cloneDim(Q).show()}})}function g(){S.tglAlert(false,d.UL_PopPredialog)}function k(){var G=$(this);j(G)}function j(G){I||d.UL_FlashUL.appendTo(G).setPosTo(G,"LEFTI","TOPI").cloneDim(G).show()}function m(){I=true;var G;d.UL_PopPredialog.is(":visible")&&!$.browser.msie&&d.UL_PopPredialog.opacity(0);if(D=="profileImg"){M="single";var Q=z.getEEId(d.ProfileImg);
G={action:9,id:Q,value1:"Filedata"}}else if(D=="favicon"){M="single";G={action:7,icon:"Filedata"}}else if(d.UL_FlashUL.isOrIsChildOf(d.HeadImg_Upload)){M="single";D="headerImg";G={action:17,header:"Filedata"}}else if(d.UL_FlashUL.isChildOf(".EE_CBText")){M="multi";D="addTextImg";Q=d.UL_FlashUL.parents(".EE_CBText");G=T("Contentblock",Q);G=G.getId();G={action:10,type:4,parent:0,parentblock:G,poslast:0,posnext:0,value1:"Filedata"};V=Q}else if(d.UL_FlashUL.isChildOf(".EE_CBBlog")){M="multi";D="addBlogImg";
Q=d.UL_FlashUL.parents(".EE_CBBlog");G=T("Contentblock",Q);G=G.getId();var W=Q.find(".BE_idBE");W=z.getEEId(W);G={action:10,type:4,parent:W,parentblock:G,poslast:0,posnext:0,value1:"Filedata"};V=Q}else if(d.UL_FlashUL.isChildOf(".EE_CBGal")){M="multi";D="addGalImg";Q=d.UL_FlashUL.parents(".EE_CBGal");G=T("Contentblock",Q);G=G.getId();G={action:10,type:4,parent:0,parentblock:G,poslast:0,posnext:0,value1:"Filedata"};V=Q}Q=!G8.isLocaltest?G8.ax_jqxtnd.cookie("PREF"):"";M=="single"?v(o("Text_UL_Status_PleaseSelectSingle")):
v(o("Text_UL_Status_PleaseSelectMulti"));U=[];t=E=0;R=false;d.UL_ErrorInfo.html("").hide();d.UL_Bar.show();d.UL_BarMover.width(0);d.PopUL_Status.find(".idBtnOk,.idBtnStop").hide();return{multimode:M,ajaxParams:G,PREF:Q,maxFileSize:n.UL.maxFileSize,selectWinFilterText:n.UL.selectWinFilterText,selectWinFilterExts:n.UL.selectWinFilterExts}}function h(){v(o("Text_UL_Status_SelectCanceled"));F()}function l(G,Q){function W(){U=Q;E=G;if(E==0){var za=U.join(", ");H("fileSize",{imageList:za});v(o("Text_UL_Status_NothingSelected"));
B()}else if(U.length>0){za=U.join(", ");H("fileSize",{imageList:za})}S.tglAlert(true,d.PopUL_Status)}var ma=1;if(D=="addGalImg")ma=n.maxContents.totalImgsInGallery-V.find(".EE_galImg").length;else if(D=="addBlogImg")ma=n.maxContents.totalImgsInBentry-V.find(".EE_blogImg").length;else if(D=="addTextImg")ma=n.maxContents.totalImgsInTextCb-V.find(".EE_textCbImg").length;ma<G?S.confirmm({headline:D=="addGalImg"?o("HL_UL_PreInfo_tooMuchImgsInGallery"):o("HL_UL_PreInfo_tooMuchImgsInBEntry"),contentText:D==
"addGalImg"?o("Text_UL_PreInfo_tooMuchImgsInGallery",ma):o("Text_UL_PreInfo_tooMuchImgsInBEntry",ma),okTitle:o("TT_UL_PreInfo_upload"),okAction:function(){W()},cancelTitle:o("TT_UL_PreInfo_noUpload"),cancelAction:function(){B()}}):W()}function c(G,Q,W){if(G=="errorSecurity")W="Flash Securtiy";else if(G=="errorHTTP")W="Flash HTTP";else if(G=="errorIO")W="Flash IO";H("other",{imageList:Q,errorDetails:W})}function p(G){H("other",{imageList:G,errorDetails:"Flash General"});F()}function q(){r();v(o("Text_UL_Status_LoadingImg",
1,E,""));M=="multi"&&d.PopUL_Status.find(".idBtnStop").show().bindOnce("click",y)}function r(){function G(){var Q=new Date;Q=Q-O;var W=t/E,ma=(E-t)/E;Q=Q/W*ma;W=t<E?t+1:t;n.UL.ULTimeLeft=Q;v(o("Text_UL_Status_LoadingImg",W,E,s(n.UL.ULTimeLeft)))}O=new Date;n.UL.timeCalcInterval=setInterval(G,500)}function x(){if(n.UL.timeCalcInterval){clearInterval(n.UL.timeCalcInterval);n.UL.timeCalcInterval=false}}function s(G){var Q=Math.round(G/1E3);G=Math.floor(Q/3600);var W=Math.floor((Q-G*3600)/60);Q=Q-G*3600-
W*60;Q=Q+" sek";if(W>0)Q=W+" min "+Q;if(G>0)Q=G+" h "+Q;return Q}function u(G,Q){t=G;if(Q==1){Q=280;d.UL_BarMover.width(Math.round(Q*(G/E)));if(G<E)v(o("Text_UL_Status_LoadingImg",G+1,E,s(n.UL.ULTimeLeft)));else{x();v(o("Text_UL_Status_ImgsProcessing"))}}}function A(G,Q){G=unescape(G);G=P.jsonToObj(G);var W=z.readObj("json",G);if(P.isSuccess(G))if(D=="profileImg"){Q=z.readObj("elementJ",G).value1;Q=z.makeImgPathFromId("UP",Q,"normal");Qa.changeUploadedProfileImg(Q)}else if(D=="favicon"){Q=W.faviconPath;
Qa.changeUploadedFavicon(Q)}else if(D=="addGalImg"){Q=z.readObj("elementJ",G).dom;G=T("Gallery",V);G.addUploadedGalImg(Q)}else if(D=="addBlogImg"){Q=z.readObj("elementJ",G).dom;G=T("Blog",V);G.addUploadedBlogImg(Q)}else if(D=="addTextImg"){Q=z.readObj("elementJ",G).dom;G=T("TextCb",V);G.addUploadedTextCbImg(Q)}else{if(D=="headerImg"){Q=z.readObj("themeJ",G).currImgPath;ib.changeUploadedHeaderImg(Q)}}else{R=true;if(W.authed!=0&&W.action!=27){G=W.actionError;if(G==1202||G==1203)W="fileSize";else if(G==
1204)W="ajaxFormat";else if(G==3005){W="ajaxTotalItems";y()}else W=G==1205||G==1206?"ajaxResolution":"other";H(W,{imageList:Q,errorDetails:"Ajax "+G})}else P.traceAjaxError(G)}}function B(){x();d.PopUL_Status.find(".idBtnStop").hide();if(D=="addGalImg"){J.initLightbox(V);var G=T("Contentblock",V);G.updateCBTotalItems()}else D=="profileImg"&&Qa.handleProfileImgRatio();if(R){d.UL_Bar.fadeOut(300);d.PopUL_Status.find(".idBtnOk").show();v(o("Text_UL_Status_AllImgsUploadedError"))}else{v(o("Text_UL_Status_AllImgsUploadedSuccess"));
S.tglAlert(false,d.PopUL_Status)}F()}function F(){if(d.UL_PopPredialog.is(":visible")){d.UL_PopPredialog.opacity(1);g()}I=D=false}function y(){ca.JS_stopUL();B()}function v(G){d.UL_Status.html(G)}function H(G,Q){function W(Ra,na){na=na.errorDetails?na.errorDetails:"";na=$(e({cl:"UL_errorBox UL_idErrorBox_"+Ra},C("icon_bp_toggle_collapsed_lo.png","iActObj UL_errorToggler UL_idImgListToggler"),o("HL_UL_Error_"+Ra,na),e({cl:"Help_infoBtnReplace"}),e({cl:"UL_errorBoxImgList",hid:true})));N.extendHoverAndTt(na);
var jb=na.find(".UL_idImgListToggler"),kb=na.find(".UL_errorBoxImgList");Ja.extendInfoBtn(na.find(".Help_infoBtnReplace"),"ULError_"+Ra,"BP");na.find(".UL_idImgListToggler").bindOnce("click",function(){ha.tglBox(kb,jb,"UL_errorImgList")});return na}Q=Q||{};R=true;d.UL_ErrorInfo.show();var ma=Q.imageList?Q.imageList+", ":"",za=d.UL_ErrorInfo.find(".UL_idErrorBox_"+G);if(!za.length){za=W(G,Q).appendTo(d.UL_ErrorInfo).fadeIn(300);G=d.PopUL_Status.parents(".blockMsg");G.top(G.intCss("top")-15)}za.find(".UL_errorBoxImgList").append(ma);
if(M=="single"){F();d.PopUL_Status.find(".idBtnOk").show()}}var I,t,E,D,R,O,M,U,ca,V;G8.globalSubscriber.bindOnce("initCreatePageDOMString",a).bindOnce("initExtendPageDOM",b);return{showULPredialog:f,ent_bindAddBtnFlashHover:k,swf_selectStart:m,swf_selectCanceled:h,swf_selectEnd:l,swf_error:c,swf_generalFail:p,swf_onStart:q,swf_onProgress:u,swf_onServerReturn:A,swf_onEnd:B}}(),Oa=function w(){function a(h){h=$(h.target);if(J.isInEditMode())if(h.isChildOf(d.TextCbImg_Cover_Delete.find(".idBtnDelete"))){h=
h.parents(".EE_textCbImg");g(h);return false}else if(h.isChildOf(d.TextCbImg_Cover_Move.find(".idBtnUp"))){h=h.parents(".EE_textCbImg");k(h,"up");return false}else if(h.isChildOf(d.TextCbImg_Cover_Move.find(".idBtnDown"))){h=h.parents(".EE_textCbImg");k(h,"down");return false}}function b(){if(K.isOwner()){var h=e({id:"TextCbImg_Cover",cl:"fixPNGBg",hid:true,pos:"absolute"},e({id:"TextCbImg_Cover_Move"},L("icon_bbar_arrowdown_lo.png","idBtnDown iActObj",o("TT_TextCbImg_moveImgDown")),L("icon_bbar_arrowup_lo.png",
"idBtnUp iActObj",o("TT_TextCbImg_moveImgUp"))),e({id:"TextCbImg_Cover_Delete"},L("icon_bbar_delete_lo.png","idBtnDelete iActObj",o("TT_GEN_delete"))));n.initDOMString+=h}}function f(){if(K.isOwner()){d.TextCbImgAddBtnMaster=$(e({cl:"TextCbImg_idBtnAdd"},L("btn_theme_addimg_imgblog_lo.png","iActObj",o("TT_AddImg_uploadNewImgs"))));var h=["TextCbImg_Cover","TextCbImg_Cover_Delete","TextCbImg_Cover_Move"];J.setDOMReference(h);aa.bindOnce("click",a)}}function g(h){h.find(".EE_OBJ");var l=z.getEEId(h);
N.tglObjToDelete(h,true);S.confirmm({headline:o("HL_BP_Confirm_deleteImg"),okAction:function(){h.removeAni(300);P.post({id:l,action:12})},okTitle:o("TT_GEN_delete"),cancelAction:function(){N.tglObjToDelete(h,false)}})}function k(h,l){if(l=="up"){var c=h.prevAll(".EE_textCbImg");c.length&&j(h,l,c.eq(0))}else{c=h.nextAll(".EE_textCbImg");c.length&&j(h,l,c.eq(0))}}function j(h,l,c){var p=z.getEEId(h),q=h.top()-aa.scrollTop();h.css("height");h.slideUp(300,function(){l=="up"?h.insertBefore(c):h.insertAfter(c);
h.slideDown(300);$("html,body").animate({scrollTop:h.top()-q},120);var r=X.getNeighborIds(h,h.parent().children(".EE_textCbImg"));if(r.poslast==0)r.poslast=z.getEEId(h.parents(".EE_CBText").find(".textCb_colCBLeft .EE_OBJ"));P.post({id:p,action:9,type:4,poslast:r.poslast,posnext:r.posnext})})}function m(h,l){var c=l.find(".TextCbImg_idBtnAdd");if(h){if(!c.length){c=d.TextCbImgAddBtnMaster.clone();c.insertBefore($(".idClr",l)).fadeIn(250);N.extendHoverAndTt(c);c.bindOnce("mouseenter",Aa.ent_bindAddBtnFlashHover)}}else c.removeAni(300)}
G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f);return{tglBtnAdd:m}}();(function w(){function a(b,f){$Self(".EE_CBText",f).each(function(){new Xa($(this))})}G8.globalSubscriber.bindOnce("extendEE",a);return{}})();var Xa=function w(a){this._glo_jDomObj=a;la.setJDomToObjMapping("TextCb",a,this);this._glo_id=z.getEEId(a);this._extendTextCbImgs(a);G8.globalSubscriber.bindOnceProxy("extendEE",this._subscriber_cus_extendEE,this)};Xa.prototype={_extendTextCbImgs:function w(a){if(K.isOwner()){var b=
this;$Self(".EE_textCbImg",a).each(function(){var f=$(this);new Ya(f,b)})}},_subscriber_cus_extendEE:function w(a,b){a=this._glo_jDomObj;if(a.isOrIsChildOf(b)||b.isOrIsChildOf(a))this._extendTextCbImgs(b)},addUploadedTextCbImg:function w(a){var b=this._glo_jDomObj;T("Contentblock",b);b.find(".EE_textCbImg").each(function(){var f=$(this),g=f.find(".EE_OBJ");if(g.attr("src").hasStr("showimg=4-0")){f.remove();return false}});a=$(a);a.insertBefore($(".TextCbImg_idBtnAdd",b));this._extendTextCbImgs(a);
N.extendHoverAndTt(a)}};var Ya=function w(a){this._glo_jDomObj=a;a.bindOnceProxy("mouseenter",{show:true},this._hov_tglCover,this).bindOnceProxy("mouseleave",{show:false},this._hov_tglCover,this);N.extendHoverAndTt(a)};Ya.prototype={_hov_tglCover:function w(a){var b=this._glo_jDomObj;if(J.isInEditMode())if(a=a.data.show){d.TextCbImg_Cover.prependTo(b).setPosTo(b,"TOPI","LEFTI").tglFadeIn(300);N.extendHoverAndTt(d.TextCbImg_Cover);a=b.parents(".TextCbImg_idDropzone").find(".EE_textCbImg");b=a.index(b);
a=a.length;d.TextCbImg_Cover_Move.find(".idBtnDown").tgl(b<a-1).end().find(".idBtnUp").tgl(b>0)}else d.TextCbImg_Cover.tglFadeOut(250)}};(function w(){function a(k,j){$Self(".EE_txtS,.EE_txtM",j).each(function(){new Za($(this))})}function b(){if(K.isOwner()){var k=e({id:"TextEdit",hid:true},ea({e:"txt",id:"TextEdit_Input"})+e({cl:"GEN_editControls"},C("icon_edit_ok_lo.png","idBtnOk iActObj",o("TT_GEN_save")),C("icon_edit_cancel_lo.png","idBtnCancel iActObj",o("TT_GEN_cancel"))));n.initDOMString+=
k}}function f(){va.fixProfileSlogan();if(K.isOwner()){var k=["TextEdit","TextEdit_Input"];J.setDOMReference(k);aa.bindOnce("click",g)}}function g(k){k=$(k.target);if(J.isInEditMode())if(k.isChildOf(".EE_txtS:not(.idClpsdHl)")){k=k.parentsSelf(".EE_txtS");k=la.getJDomToObjMapping("editableText",k);k.startTextEdit();return false}else if(k.isChildOf(".EE_txtM")){k=k.parentsSelf(".EE_txtM");k=la.getJDomToObjMapping("editableText",k);k.startTextEdit();return false}}G8.globalSubscriber.bindOnce("initCreatePageDOMString",
b).bindOnce("initExtendPageDOM",f).bindOnce("extendEE",a);return{}})();var Za=function w(a){this._glo_jDomObj=a;la.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);K.isOwner()&&a.bindOnceProxy("mouseenter",{show:true},this._hov_tglEEText,this).bindOnceProxy("mouseleave",{show:false},this._hov_tglEEText,this);this._glo_lineMode=="multi"&&N.extendTextLinks(a)};Za.prototype={_hov_tglEEText:function w(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 w(){d.TextEdit_Input.bindOnceProxy("keyup",this._kyU_textEdit,this);d.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),g=f.attr("href");if(g.indexOf("http://")==0||g.indexOf("https://")==0){var k=g.replace("http://","").replace("https://","");k.indexOf("www.")==
0?f.html(k):f.html(g)}});var b=G8.ax_jqxtnd.htmlToInput(a.html());d.TextEdit_Input.cloneAsForm(a,{color:"#FFFFFF"}).val(b);$.blockUI({overlayCSS:{opacity:0.65},message:d.TextEdit,clonePosObj:a,onMsgIn:function(){d.TextEdit.slideDown(300)}})},_saveTextEdit:function w(){var a=this._glo_jDomObj,b="...",f=X.readFormVal(d.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 g=$("#LB_Popup").data("origImgDivObj");b=z.getEEId(g);function k(s){g.find(".EE_OBJ").setAltText(s)}k(f);this._endTextEdit();P.post({action:9,type:4,id:b,line1:f},{afterError:function(){k(this._glo_origText)},afterSuccess:function(s){s=z.readObj("elementJ",s).line1;k(s)}})}else if(this._glo_elementMode=="blogEntryHeadline"){var j=a.parents(".EE_CBBlog"),m=z.getEEId(j.find(".BE_idBE")),h=z.getEEId(j);function l(s){a.html(s);fa.modBlogArr(h,"changeEntry",{entryId:m,headline:s});s=
T("Blog",j);s.updateBESelector(j.data("currEntryId"))}l(b);this._endTextEdit();P.post({action:9,type:6,id:m,line1:f},{afterError:function(){l(this._glo_origText)},afterSuccess:function(s){s=z.readObj("elementJ",s).line1;l(s)}})}else if(this._glo_elementMode=="blogEntryCopy"){m=z.getEEId(a.parents(".BE_idBE"));function c(s){a.html(s);N.extendTextLinks(a)}c(b);this._endTextEdit();P.post({action:9,type:6,id:m,value1:f},{afterError:function(){c(this._glo_origText)},afterSuccess:function(s){s=z.readObj("elementJ",
s).value1;c(s)}})}else{var p=this._glo_elementMode=="textSingle"?2:3,q=this._glo_id,r=this;function x(s){a.html(s);if(r._glo_isSpecialField=="profileName"){K.updateUserName(s);ya.resetFirstrunTooltip("profileName")}r._glo_isSpecialField=="profileSlogan"&&va.fixProfileSlogan();r._glo_elementMode=="textMulti"&&N.extendTextLinks(a)}x(b);this._endTextEdit();P.post({id:q,action:9,type:p,value1:f},{afterError:function(){x(this._glo_origText)},afterSuccess:function(s){s=z.readObj("elementJ",s).value1;x(s)}})}},
_endTextEdit:function w(){var a=this._glo_jDomObj;this._glo_isSpecialField=="cbHeadline"&&a.data("originalText",a.html());$.unblockUI({fadeOut:200,msgObj:d.TextEdit});d.TextEdit_Input.unbind("keyup",this._kyU_textEdit);d.TextEdit.find(".idBtnCancel").unbind("click",this._clk_textEditCancel).end().find(".idBtnOk").unbind("click",this._clk_textEditSave)},_kyU_textEdit:function w(){var a=this._glo_jDomObj,b=d.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 w(){this._saveTextEdit()},_clk_textEditCancel:function w(){var a=this._glo_jDomObj;a.html(this._glo_origText);this._endTextEdit()}};var Qa=function w(){function a(c){c=$(c.target);if(J.isInEditMode())if(c.isChildOf(d.ProfImg_FaviconThumb)){j();return false}else if(c.isChildOf(d.ProfileImg)){k();return false}}function b(){if(K.isOwner()){var c=
e({id:"ProfImg_Cover",cl:"iActObj fixPNGBg"},e({id:"ProfImg_FaviconThumb"},L(n.faviconSrc,"iActObj",o("TT_changeFavicon"),"ProfImg_imgProfImg_FaviconThumb")));n.initDOMString+=c}}function f(){d.ProfileImg=$(".Profile_idUserImg");g();if(K.isOwner()){var c=["ProfImg_FaviconThumb","ProfImg_Cover"];J.setDOMReference(c);d.ProfileImg.bindOnce("mouseenter",{show:true},m).bindOnce("mouseleave",{show:false},m).find(".EE_OBJ").after(d.ProfImg_Cover.hide());d.ProfImg_FaviconThumb.bindTglHoverClass("ProfImg_faviconThumbBgHi");
N.extendHoverAndTt(d.ProfileImg);aa.bindOnce("click",a)}}function g(){function c(q){var r=d.ProfileImg;q.attr("width")>q.attr("height")&&q.attr("width")>0?r.addClass("SHAF_userNormal_Landscape").removeClass("SHAF_userNormal_Portrait"):r.addClass("SHAF_userNormal_Portrait").removeClass("SHAF_userNormal_Landscape")}var p=d.ProfileImg.find(".EE_OBJ");c(p);$("<img />").bindOnce("load",function(){var q=$(this);c(q);q.remove()}).attr("src",p.attr("src"))}function k(){Aa.showULPredialog("profileImg")}function j(){Aa.showULPredialog("favicon")}
function m(c){if(J.isInEditMode())(c=c.data.show)?d.ProfImg_Cover.stopp().delay(200).tglFadeIn(300):d.ProfImg_Cover.stopp().tglFadeOut(300)}function h(c){var p=d.ProfileImg;p=p.find(".EE_OBJ");p.srcF(c);ya.resetFirstrunTooltip("profilePic")}function l(c){n.faviconSrc=c;$("link[rel='shortcut icon']").remove();$("<link>").attr({type:"image/x-icon",rel:"shortcut icon",href:n.faviconSrc}).appendTo("head");$("#ProfImg_imgProfImg_FaviconThumb").srcF(n.faviconSrc)}G8.globalSubscriber.bindOnce("initCreatePageDOMString",
b).bindOnce("initExtendPageDOM",f);return{handleProfileImgRatio:g,changeUploadedProfileImg:h,changeUploadedFavicon:l}}(),ib=function w(){function a(){if(K.isOwner()){var l=e({id:"HeadImg_Cover",pos:"absolute",hid:true},L("cover_theme_header_up.png","","","HeadImg_imgCoverArrowUp"),L("cover_theme_header_down.png","","","HeadImg_imgCoverArrowDown"),e({id:"HeadImg_CoverUp",cl:"iActObj"}),e({id:"HeadImg_CoverDown",cl:"iActObj"}),e({id:"HeadImg_Upload",cl:"iActObj",hid:true}));n.initDOMString+=l}}function b(){if(K.isOwner()){var l=
["HeadImg_Cover","HeadImg_CoverUp","HeadImg_CoverDown","HeadImg_Upload","HeadImg_imgCoverArrowDown","HeadImg_imgCoverArrowUp","HeadImg_idHeaderImgs"];J.setDOMReference(l);h=k(n.profileData.currHeaderImgId,n.currHeaderImgs);var c="";$.each(n.currHeaderImgs,function(p,q){p=z.readObj("headerImg",q);c+=L(p.src.replace("img/",""),"HeadImg_idSlideImg","","dbHeader_"+p.id)});d.HeadImg_idHeaderImgs.html(c);d.HeadImg_idHeaderImgs.find(".HeadImg_idSlideImg").hide();$("#dbHeader_"+n.profileData.currHeaderImgId).addClass("idSelectedHeader").show();
j();d.HeadImg_Cover.appendTo($("#HeadImg_idShadow")).show();d.HeadImg_imgCoverArrowDown.hide();d.HeadImg_imgCoverArrowUp.hide();d.HeadImg_CoverDown.bindOnce("mouseenter",{show:true,dir:"down"},g).bindOnce("mouseleave",{show:false,dir:"down"},g).bindOnce("click",{dir:"prev"},f);d.HeadImg_CoverUp.bindOnce("mouseenter",{show:true,dir:"up"},g).bindOnce("mouseleave",{show:false,dir:"up"},g).bindOnce("click",{dir:"next"},f);d.HeadImg_Upload.bindOnce("mouseenter",Aa.ent_bindAddBtnFlashHover)}}function f(l){l=
l.data.dir;var c=300,p=d.HeadImg_idHeaderImgs,q=$(".HeadImg_idSlideImg",p),r=q.length,x=h;$(".idSelectedHeader",p).removeClass("idSelectedHeader");if(l=="next")if(x<r-1){q.eq(x+1).addClass("idSelectedHeader").top(200).show().animate({top:"-=200px"},c,function(){q.filter(":not(.idSelectedHeader)").top(200)});h++}else{q.eq(0).addClass("idSelectedHeader").top(0).show().clone().appendTo(p).removeClass("idSelectedHeader").top(200).show().animate({top:"-=200px"},c,function(){q.filter(":not(:first)").top(200);
var s=$(this);s.fadeOut(200,function(){s.remove()})});h=0}else if(l=="prev")if(x>0){q.eq(x-1).addClass("idSelectedHeader").show().top(0);q.eq(x).animate({top:"+=200px"},c);h--}else{q.eq(r-1).addClass("idSelectedHeader");q.show().top(0);q.eq(0).clone().appendTo(p).top(0).show().animate({top:"+=200px"},c,function(){$(this).remove()});h=r-1}j();ya.resetFirstrunTooltip("headerImg");l=z.getEEId($(".idSelectedHeader",p));P.post({action:17,img:l})}function g(l){if(J.isInEditMode()){var c=l.data.show,p=l.data.dir;
l=p=="down"?d.HeadImg_imgCoverArrowDown:d.HeadImg_imgCoverArrowUp;p=p=="down"?d.HeadImg_imgCoverArrowUp:d.HeadImg_imgCoverArrowDown;if(c){l.tglFadeInXB(300);p.stopp().fadeOutXB(100)}else l.tglFadeOutXB(300)}}function k(l,c){for(var p=0;p<c.length;p++)if(c[p][0]==l)break;return p}function j(){var l=G8.isLocaltest?"header03":"showimg=";d.HeadImg_idHeaderImgs.find(".idSelectedHeader").attr("src").indexOf(l)!=-1?d.HeadImg_Upload.fadeInXB(300):d.HeadImg_Upload.fadeOutXB(300)}function m(l){l=z.makeImgPathFromId("UP",
l,"normal");d.HeadImg_idHeaderImgs.find(".idSelectedHeader").attr("src",l);ya.resetFirstrunTooltip("headerImg")}var h;G8.globalSubscriber.bindOnce("initCreatePageDOMString",a).bindOnce("initExtendPageDOM",b);return{changeUploadedHeaderImg:m}}(),Ka=function w(){function a(){$("#LBExtCtrls").find(".idUpdateFullscreenData").trigger("click");var k={imgRessources:$("#LB_Popup").data("imgRessources"),currImgRessourceIndex:$("#LB_Popup").data("currImgRessourceIndex"),fadeTime:n.fullscreenGallery.fadeTime,
holdTime:n.fullscreenGallery.holdTime};return k}function b(){d.MB_PageMode&&d.MB_PageMode.find(".idAdd").disbl(true);d.MB_Pagemode_AddCBBox&&d.MB_Pagemode_AddCBBox.data("expanded")&&Ba.tglAddCBIcons(false)}function f(){d.MB_PageMode&&d.MB_PageMode.find(".idAdd").disbl(false)}function g(){var k=$("#LB_Popup");$("#LBExtCtrls").find(".idStopSlideshow").trigger("click");var j=k.data("origImgDivObj"),m=z.getEEId(j);j.find(".EE_OBJ");N.tglObjToDelete(k,true,"lightbox");S.confirmm({headline:o("HL_BP_Confirm_deleteImg"),
okAction:function(){var h=j.parents(".EE_CBGal");j.removeAni(300);$("#LBExtCtrls").find(".idRemoveImg").trigger("click");N.tglObjToDelete($("#LB_Popup"),false,"lightbox");J.initLightbox(h);h=T("Contentblock",h);h.updateCBTotalItems();P.post({id:m,action:12})},okTitle:o("TT_GEN_delete"),cancelAction:function(){N.tglObjToDelete($("#LB_Popup"),false,"lightbox")}})}return{swf_getFullscreenInit:a,onOpen:b,onClose:f,clk_Delete:g}}(),Ga=function w(){function a(){if(K.isOwner()){var h="";h+=e({id:"GalImg_Cover",
cl:"iActObj fixPNGBg",pos:"absolute",hid:true},e({id:"GalImg_Cover_Drag"},L("icon_bbar_drag_mini_lo.png","iActObj"))+e({id:"GalImg_Cover_Delete"},L("icon_bbar_delete_mini_lo.png","idBtnDelete iActObj",o("TT_GEN_delete"))));h+=e({id:"GalImg_DragSpacer",hid:true});n.initDOMString+=h}}function b(){if(K.isOwner()){d.GalImgAddBtnMaster=$(e({cl:"GalImg_idBtnAdd"},L("btn_theme_addimg_imggal_lo.png","iActObj",o("TT_AddImg_uploadNewImgs"))));d.DragSpacer=$("#GalImg_DragSpacer");var h=["GalImg_Cover","GalImg_Cover_Delete",
"GalImg_Cover_Drag"];J.setDOMReference(h)}aa.bindOnce("click",g);K.isOwner()&&aa.bindOnce("mousedown",f)}function f(h){var l=$(h.target);if(l.isChildOf(d.GalImg_Cover_Drag)){m.startDrag(h);h.stopPropagation()}}function g(h){h=$(h.target);if(J.isInEditMode())if(h.isChildOf(d.GalImg_Cover_Delete.find(".idBtnDelete"))){m.confirmDeleteImg();return false}else if(h.isChildOf(".EE_galImg")){m.openLightbox();return false}else if(h.isChildOf(".GalImg_idBtnAdd"))return false}function k(h){m=h}function j(h,
l){var c=l.find(".GalImg_idBtnAdd");if(h){if(!c.length){c=d.GalImgAddBtnMaster.clone();c.insertBefore($(".idClr",l)).fadeIn(250);N.extendHoverAndTt(c);c.bindOnce("mouseenter",Aa.ent_bindAddBtnFlashHover)}}else c.removeAni(300)}var m;G8.globalSubscriber.bindOnce("initCreatePageDOMString",a).bindOnce("initExtendPageDOM",b);return{tglBtnAdd:j,setCurrGalImgObj:k}}(),lb=function w(){function a(s,u,A){u.parents(".EE_CB").trigger("mouseleave");n.inDragGalImg=true;A=A||{};j=u;m=T("GalImg",u);h=j.parent();
l=".EE_galImg";c=A.dropTargets||h;p=A.cloneObj||j;q=h;r=q.children(l);x=X.getRelativeMouse(s,j);d.DragSpacer.insertBefore(j).show();p.appendTo("body").top(s.pageY-x.y).left(s.pageX-x.x).unbind();$.browser.msie||p.opacity(0.8);j.hide();p.bindOnce("mouseup",f);aa.bindOnce("mousemove",b)}function b(s){var u=s.pageX,A=s.pageY;p.top(A-x.y).left(u-x.x);c.each(function(B,F){B=$(F);if(g(B,u,A)){if(q[0]!=B[0]){q=B;r=q.children(l+",.GalImg_idBtnAdd")}F=k(r,u,A);if(F=="NoSiblings")d.DragSpacer.prependTo(B);
else if(F!==false)F>0&&r.eq(F-1).hasClass(".GalImg_invisible")?d.DragSpacer.insertAfter(r.not(".GalImg_invisible,.GalImg_idBtnAdd").filter(":last")):d.DragSpacer.insertBefore(r.eq(F));return false}})}function f(){aa.unbind("mousemove",b);j.insertBefore(d.DragSpacer).show(300,function(){p.animate({left:j.left(),top:j.top()},300,function(){p.remove()})});d.DragSpacer.remove();r=q.children(l);var s=X.getNeighborIds(j,r);m.saveDrag({poslast:s.poslast,posnext:s.posnext});n.inDragGalImg=false}function g(s,
u,A){var B=15;return u>=s.left()-B&&u<=s.left()+s.width()+B&&A>=s.top()-B&&A<=s.top()+s.height()+B}function k(s,u,A){var B=false;if(s.length)s.each(function(F,y){if(g($(y),u,A)){B=F;return false}});else B="NoSiblings";return B}var j,m,h,l,c,p,q,r,x;return{startDrag:a}}();(function w(){function a(b,f){$Self(".EE_CBGal",f).each(function(){new $a($(this))})}G8.globalSubscriber.bindOnce("extendEE",a);return{}})();(function w(a){a.fn.lightBox=function(b){function f(D){D.stopPropagation();Ka.onOpen();j(this,
E)}function g(D){D=a(D);D=D.attr("longdesc")?D.attr("longdesc"):D.attr("src");return G8.isLocaltest?D.replace("_thumb","_normal"):D.replace(/type=thumb/,"type=normal")}function k(D){D=a(D);return D.attr("alt")}function j(D,R){a("embed, object, select").css({visibility:"hidden"});h();a("#LB_Popup").data("CBObj",R.parents(".EE_CBGal"));b.imageArray.length=0;b.activeImage=0;if(R.length==1)b.imageArray.push([g(D),k(D),D]);else for(var O=0;O<R.length;O++)b.imageArray.push([g(R[O]),k(R[O]),R[O]]);for(;b.imageArray[b.activeImage][2]!=
D;)b.activeImage++;m();p()}function m(){var D=[],R=G8.isLocaltest?"":"http://"+n.parsedProfileUser.url+"/",O=G8.isLocaltest?"":"&PREF="+G8.ax_jqxtnd.cookie("PREF");a.each(b.imageArray,function(M,U){M=U[0]+O;M=M.indexOf("http://www."+n.mainHostDomain+"/")==-1?R+M:M.replace("http://www."+n.mainHostDomain+"/",R);D.push({src:M,alt:U[1]})});a("#LB_Popup").data("imgRessources",D).data("currImgRessourceIndex",b.activeImage)}function h(){var D=e({id:"LB_Overlay"})+e({id:"LB_Popup"},e({id:"LB_PopInner"},e({id:"LB_ImgBox"},
e({id:"LB_Loading"},e({cl:"Preload_preloaderLB"},C("Preload_preloader_lightbox.gif","Preload_imgPreloaderAni"))),e({id:"LB_ImgBoxInner"},e({id:"LB_ImgBoxImgBox"},'<img id="LBImg">',e({id:"LB_Bar_Delete"},e({id:"LB_Bar_DeleteInner"},C("icon_bbar_delete_lo.png","iActObj",o("TT_LB_delete"),"LB_DeleteBtn"))),e({id:"LB_Bar_Meta"},e({id:"LB_Bar_MetaInner"},'<table id="LB_Bar_MetaTable"><tr><td>',e({id:"LB_ImgdetailsCaption"}),'</td><td id="LB_ImgdetailsCurrNumber">',"</td></tr></table>"))))),e({id:"LB_ControlBox"},
e({id:"LBExtCtrls",hid:true},e({cl:"idRemoveImg"}),e({cl:"idStopSlideshow"}),e({cl:"idUpdateFullscreenData"})),'<table id="LB_Tab_Controls"><tr><td id="LB_Tab_Controls_CM">','</td><td id="LB_Tab_Controls_Navi">',e({id:"LB_Area_Navi"},C("icon_lb_arrow_prev_lo.png","iActObj",o("TT_LB_prevImg"),"LB_BtnPrev"),e({id:"LB_PlayNavi"},C("icon_lb_play_lo.png","iActObj",o("TT_LB_startSlideShow"),"LB_BtnPlay"),e({id:"LB_BtnPause",hid:true},C("icon_lb_pause_lo.png","iActObj idImgBtnPause",o("TT_LB_stopSlideShow")))),
C("icon_lb_arrow_next_lo.png","iActObj",o("TT_LB_nextImg"),"LB_BtnNext")),'</td><td id="LB_Tab_Controls_Close">',C("icon_lb_close_lo.png","iActObj",o("TT_LB_close"),"LB_BtnClose"),"</td></tr></table>")));a("body").append(D);N.extendHoverAndTt(a("#LB_Popup"));a("#LB_PlayNavi").flashembed({src:n.profileData.resPath.replace("www."+n.mainHostDomain,n.parsedProfileUser.url)+"func/gallery.swf",allowScriptAccess:"always",allowNetworking:"all",wmode:"transparent",version:[n.flashVersion]});a("#LB_Overlay").css({backgroundColor:b.overlayBgColor,
opacity:b.overlayOpacity}).fadeIn();b.calcMarginTop=l();a("#LB_Popup").top(b.calcMarginTop).show();a("#LB_Loading,#LB_BtnClose").bindOnce("click",t);a("#LB_BtnPlay").bindOnce("click",s);a("#LB_BtnPause").bindOnce("click",u);a(window).bindOnce("resize",c);a("#LB_ImgBoxImgBox").bindOnce("mouseenter",function(){b.mouseIsOverImg=true}).bindOnce("mouseleave",function(){b.mouseIsOverImg=false});a("#LB_DeleteBtn").bindOnce("click",Ka.clk_Delete)}function l(){var D=a(window).height();return D>500?(D-300)/
10+5:5}function c(){b.calcMarginTop=l();a("#LB_Popup").top(b.calcMarginTop);var D=a("#LBImg");if(D.is(":visible")){var R=D.data("origDimensions");R=q(R.realImgWidth,R.realImgHeight);D.add("#LB_ImgBoxImgBox").css({width:R.zielImgWidth,height:R.zielImgHeight});a("#LB_ImgBox").css({width:R.zielBoxWidth,height:R.zielBoxHeight});a("#LB_ControlBox").css({width:R.zielControlboxWidth})}}function p(){a("#LB_ImgBoxImgBox").unbind("mouseenter",B).unbind("mouseleave",F);a("#LB_Loading").show();a("#LB_ImgBox").bindOnce("click",
t);a("#LBImg,#LB_ControlBox,#LB_ImgdetailsCurrNumber,#LB_Bar_Meta,#LB_Bar_Delete,#LB_Area_Navi").hide();a("<img />").bindOnce("load",function(){var D=a(this);a("#LBImg").attr("src",b.imageArray[b.activeImage][0]);r(D.attr("width"),D.attr("height"));D.remove()}).attr("src",b.imageArray[b.activeImage][0])}function q(D,R){var O=26,M=50,U=a(window).height()-O-b.calcMarginTop*2-M-b.containerBorderSize*2,ca=a(window).width()-b.containerBorderSize*2,V=ca/U,G=D/R;O=D;M=R;if(G>V){if(D>ca){O=ca;M=R*(O/D)}}else if(R>
U){M=U;O=D*(M/R)}D=O+b.containerBorderSize*2;R=M+b.containerBorderSize*2;U=O<300?300:O;return{zielImgHeight:M,zielImgWidth:O,zielBoxWidth:D,zielBoxHeight:R,zielControlboxWidth:U}}function r(D,R){var O=q(D,R);a("#LBImg").data("origDimensions",{realImgWidth:D,realImgHeight:R}).add("#LB_ImgBoxImgBox").css({width:O.zielImgWidth,height:O.zielImgHeight});a("#LB_ImgBox").animate({width:O.zielBoxWidth,height:O.zielBoxHeight},b.containerResizeSpeed,function(){x()});a("#LB_ControlBox").css({width:O.zielControlboxWidth})}
function x(){a("#LB_Popup").data("currImgRessourceIndex",b.activeImage);a("#LB_ImgBox").unbind("click",t);a("#LB_Loading").hide();a("#LBImg").fadeIn(function(){A();y();a("#LB_ControlBox").fadeIn(300)});if(b.slideshowRunning)b.slideshowTimeout=window.setTimeout(H,b.slideshowTime*1E3);I()}function s(){a("#LB_BtnPlay").hide();a("#LB_BtnPause").show();b.slideshowRunning=true;b.slideshowTimeout=window.setTimeout(H,b.slideshowTime*1E3)}function u(){a("#LB_BtnPause").hide();b.imageArray.length>1&&a("#LB_BtnPlay").show();
window.clearTimeout(b.slideshowTimeout);b.slideshowRunning=false}function A(){var D=b.activeImage;b.imageArray[D][1]=k(E[D]);a("#LB_ImgdetailsCaption").html(b.imageArray[D][1]);Z.forceLinebreak(a("#LB_ImgdetailsCaption"),a("#LBImg").width()-100);a("#LB_Popup").data("origImgDivObj",E.eq(D).parents(".EE_galImg"));if(n.userCommentsAllowed){a("#LB_Popup").data("commentsExtended",false);new Ca(a("#LB_Popup"),"Lightbox")}if(J.isInEditMode()){a("#LB_ImgdetailsCaption").addClass("EE_txtS EE_OBJ idGalImgTitle").bindOnce("click",
u);a.event.trigger("extendEE",[a("#LB_ImgdetailsCaption")])}if(b.imageArray.length>1){a("#LB_ImgdetailsCurrNumber").html("<b>"+(D+1)+"</b> / "+b.imageArray.length).show();a("#LB_Area_Navi").show();b.slideshowRunning||a("#LB_BtnPlay").show()}a("#LB_ImgBoxImgBox").bindOnce("mouseenter",B).bindOnce("mouseleave",F);b.mouseIsOverImg&&B()}function B(){a("#LB_Bar_Meta").tglFadeIn(300);J.isInEditMode()&&b.imageArray.length>1&&a("#LB_Bar_Delete").tglFadeIn(300)}function F(){a("#LB_Bar_Meta").tglFadeOut(300);
a("#LB_Bar_Delete").is(":visible")&&a("#LB_Bar_Delete").tglFadeOut(300)}function y(){a("#LBExtCtrls").find(".idRemoveImg").unbind("click").bindOnce("click",function(){if(b.imageArray.length==1){b.imageArray.splice(b.activeImage,1);t()}else{if(b.activeImage==b.imageArray.length-1){b.imageArray.splice(b.activeImage,1);E=E.not(E.eq(b.activeImage));b.activeImage--}else{b.imageArray.splice(b.activeImage,1);E=E.not(E.eq(b.activeImage))}p()}}).end().find(".idStopSlideshow").unbind().bind("click",u).end().find(".idUpdateFullscreenData").unbind().bind("click",
function(){m()});if(b.imageArray.length){a("#LB_BtnPrev").unbind("click").bind("click",function(){b.slideshowRunning&&u();v();return false});a("#LB_BtnNext").unbind("click").bind("click",function(){b.slideshowRunning&&u();H();return false})}}function v(){b.activeImage=b.activeImage==0?b.imageArray.length-1:b.activeImage-1;p()}function H(){b.activeImage=b.activeImage==b.imageArray.length-1?0:b.activeImage+1;p()}function I(){if(b.imageArray.length-1>b.activeImage){var D=new Image;D.src=b.imageArray[b.activeImage+
1][0]}if(b.activeImage>0){D=new Image;D.src=b.imageArray[b.activeImage-1][0]}}function t(){u();J.initLightbox(a("#LB_Popup").data("CBObj"));a(window).unbind("resize",c);a("#LB_Popup").remove();a("#LB_Overlay").fadeOut(300,function(){a("#LB_Overlay").remove()});a("embed, object, select").css({visibility:"visible"});Ka.onClose()}b=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,imageBlank:da.prefixSrc("static","trans.gif"),containerBorderSize:2,containerResizeSpeed:400,slideshowTimeout:false,
slideshowRunning:false,slideshowTime:5,imageArray:[],activeImage:0},b);var E=this;this.unbind("click.lightbox").bind("click.lightbox",f);return this}})(jQuery);var ab=function w(a,b){this._glo_jDomObj=a;this._glo_p_GalleryObj=b;this._glo_totalComments=parseInt(a.getIdFromClass("tCmt_"));this._glo_dbId=z.getEEId(a);la.setJDomToObjMapping("GalImg",a,this);K.isOwner()&&a.bindOnceProxy("mouseenter",{show:true},this._hov_tglCover,this).bindOnceProxy("mouseleave",{show:false},this._hov_tglCover,this);a.bindOnce("mouseenter",
{mode:"imageTitle"},N.ent_tt).bindOnce("mouseleave",{mode:"imageTitle"},N.lea_tt);this._glo_totalComments>0&&n.userCommentsAllowed&&a.prepend(e({cl:"GalImg_commentMarker"}));N.extendHoverAndTt(a);this._glo_p_GalleryObj.handleDirectGalImgVisibility(a)};ab.prototype={openLightbox:function w(){var a=this;a=a._glo_jDomObj;a.find(".EE_OBJ").trigger("click")},startDrag:function w(a){var b=this;imgDivObj=b._glo_jDomObj;lb.startDrag(a,imgDivObj,{cloneObj:$("<div>").addClass("GalImg_dragClone").append($(".EE_OBJ",
imgDivObj).clone().removeAttr("id")),dropTargets:$(".EE_CBGal .CB_cont")})},confirmDeleteImg:function w(){var a=this,b=a._glo_jDomObj;N.tglObjToDelete(b,true);S.confirmm({headline:o("HL_BP_Confirm_deleteImg"),okAction:function f(){var g=a._glo_jDomObj,k=g.parents(".EE_CBGal");g.removeAni(300,function(){J.initLightbox(k);var j=T("Contentblock",k);j.updateCBTotalItems();a._glo_p_GalleryObj.updateGalleryDesign()});P.post({id:a._glo_dbId,action:12})},okTitle:o("TT_GEN_delete"),cancelAction:function(){N.tglObjToDelete(b,
false)}})},_hov_tglCover:function w(a){if(J.isInEditMode()){a=a.data.show;var b=this._glo_jDomObj;if(a){Ga.setCurrGalImgObj(this);d.GalImg_Cover_Delete.add(d.GalImg_Cover_Drag).tgl(b.siblings(".EE_galImg").length);d.GalImg_Cover.prependTo(b).setPosTo(b,"TOPI","LEFTI").tglFadeIn(300);N.extendHoverAndTt(d.GalImg_Cover)}else{Ga.setCurrGalImgObj(false);d.GalImg_Cover.tglFadeOut(250)}}},saveDrag:function w(a){var b=this,f=b._glo_jDomObj,g=b._glo_p_GalleryObj,k=T("Gallery",f.parents(".EE_CBGal")),j=g._glo_jDomObj,
m=k._glo_jDomObj;f=b._glo_dbId;if(a.poslast==0)a.poslast=z.getEEId(m.find("h1.EE_OBJ"));P.post({id:f,action:9,type:4,poslast:a.poslast,posnext:a.posnext},{afterSuccess:function(){if(g!=k){k.updateCBTotalItems();k.updateGalleryDesign();J.initLightbox(m);b._glo_p_GalleryObj=k}g.updateCBTotalItems();g.updateGalleryDesign();J.initLightbox(j)}})}};var $a=function w(a){this._glo_jDomObj=a;la.setJDomToObjMapping("Gallery",a,this);this._updateToggler();this._extendGalImgs(a);G8.globalSubscriber.bindOnceProxy("extendEE",
this._subscriber_cus_extendEE,this)};$a.prototype={_updateToggler:function w(){var a=this._glo_jDomObj,b=a.find(".EE_galImg");if(b.filter(".GalImg_invisible").length){if(!a.find(".GalImg_Tgl_showAllGalImgs").length){b=$(e({cl:"GalImg_Tgl_showAllGalImgs"},L("icon_gen_theme_toggle_collapsed_lo.png","tgl_idBtnTgl iActObj"),e({cl:"tgl_togglerText"},o("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 w(a){var b=this;$Self(".EE_galImg",a).each(function(){var f=$(this);new ab(f,b)});this._glo_firstGalleryImgsAlreadyExtended=true},_subscriber_cus_extendEE:function w(a,b){a=this._glo_jDomObj;if(a.isOrIsChildOf(b)||b.isOrIsChildOf(a))this._extendGalImgs(b)},_clk_tglAllGalImgs:function w(){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 w(a){a.hasClass("GalImg_invisible")&&a.removeClass("GalImg_invisible").find(".EE_OBJ").attr("src",a.find(".EE_OBJ").attr("longdesc")).removeAttr("longdesc")},handleDirectGalImgVisibility:function w(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)>n.maxDirectGalImgs&&!a.hasClass("GalImg_invisible")){a.addClass("GalImg_invisible").find(".EE_OBJ").attr("longdesc",
a.find(".EE_OBJ").attr("src"));this._updateToggler()}},updateGalleryDesign:function w(){var a=this,b=this._glo_jDomObj;b=b.find(".EE_galImg");if(b.length>n.maxDirectGalImgs){b=b.filter(":lt("+n.maxDirectGalImgs+")");b.each(function(){var f=$(this);a._makeGalImgVisible(f)})}},updateCBTotalItems:function w(){var a=T("Contentblock",this._glo_jDomObj);a.updateCBTotalItems()},addUploadedGalImg:function w(a){var b=this._glo_jDomObj,f=T("Contentblock",b);b.find(".EE_galImg").each(function(){var g=$(this),
k=g.find(".EE_OBJ");if(k.attr("src").hasStr("showimg=3-0")){g.remove();return false}});a=$(a);a.insertBefore($(".GalImg_idBtnAdd",b));this._extendGalImgs(a);f.preloadPreviewImgs();N.extendHoverAndTt(a)}};var ta=function w(){function a(q){var r=$(q.target);if(J.isInEditMode())if(r.isChildOf(d.CB_Bar_Privacy.add(d.CB_BarMini_Privacy))){q=r.hasClass("idBtnPrivacy1")?1:r.hasClass("idBtnPrivacy2")?2:r.hasClass("idBtnPrivacy3")?3:1;r=r.parents(".EE_CB");r=T("Contentblock",r);r.changePrivacy(q);return false}else if(r.isChildOf(d.CB_Bar_Move.add(d.CB_BarMini_Move))){q=
r.hasClass("idBtnDown")?"down":r.hasClass("idBtnUp")?"up":r.hasClass("idBtnSkipDown")?"skipdown":r.hasClass("idBtnSkipUp")?"skipup":"";r=r.parents(".EE_CB");r=T("Contentblock",r);r.moveCB(q);return false}else if(r.isChildOf(d.CB_Bar_Delete.add(d.CB_BarMini_Delete))){r=r.parents(".EE_CB");r=T("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=T("Contentblock",r);r.tglCB();return false}}else if(r.isChildOf(".CLPS_cbToggler,.CB_head h1")){r=
r.parents(".EE_CB");r=T("Contentblock",r);r.tglCB();return false}}function b(q,r){$Self(".EE_CB",r).each(function(){new bb($(this))})}function f(){if(K.isOwner()){var q="";q+=e({id:"CB_Bar",cl:"fixPNGBg",pos:"absolute",hid:true},e({id:"CB_Bar_Move"},L("icon_gen_theme_arrowdown_lo.png","idBtnDown iActObj",o("TT_CB_moveCBDown")),L("icon_gen_theme_arrowup_lo.png","idBtnUp iActObj",o("TT_CB_moveCBUp")),L("icon_gen_theme_skipdown_lo.png","idBtnSkipDown iActObj",o("TT_CB_skipCBDown")),L("icon_gen_theme_skipup_lo.png",
"idBtnSkipUp iActObj",o("TT_CB_skipCBUp")))+e({id:"CB_Bar_Privacy"},L("icon_gen_theme_privacy1_lo.png","idBtnPrivacy1 iActObj",o("TT_CB_privacySelf")),L("icon_gen_theme_privacy3_lo.png","idBtnPrivacy3 iActObj",o("TT_CB_privacyFriends")),L("icon_gen_theme_privacy2_lo.png","idBtnPrivacy2 iActObj",o("TT_CB_privacyAll")))+e({id:"CB_Bar_Delete"},L("icon_theme_cbar_delete_lo.png","iActObj",o("TT_CB_deleteCB")))+e({id:"CB_Bar_ShadowZone"}));q+=e({id:"CB_BarMini",pos:"absolute",hid:true},e({id:"CB_BarMini_Move"},
L("icon_gen_theme_arrowdown_lo.png","idBtnDown iActObj",o("TT_CB_moveCBDown")),L("icon_gen_theme_arrowup_lo.png","idBtnUp iActObj",o("TT_CB_moveCBUp")),L("icon_gen_theme_skipdown_lo.png","idBtnSkipDown iActObj",o("TT_CB_skipCBDown")),L("icon_gen_theme_skipup_lo.png","idBtnSkipUp iActObj",o("TT_CB_skipCBUp")))+e({id:"CB_BarMini_Privacy"},L("icon_gen_theme_privacy1_lo.png","idBtnPrivacy1 iActObj",o("TT_CB_privacySelf")),L("icon_gen_theme_privacy3_lo.png","idBtnPrivacy3 iActObj",o("TT_CB_privacyFriends")),
L("icon_gen_theme_privacy2_lo.png","idBtnPrivacy2 iActObj",o("TT_CB_privacyAll")))+e({id:"CB_BarMini_Delete"},L("icon_theme_cbar_delete_lo.png","iActObj",o("TT_CB_deleteCB"))));n.initDOMString+=q}}function g(){if(K.isOwner()){var q=["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(q)}aa.bindOnce("click",a)}function k(q){S.tglPreloader(true);var r=q.category,x=r=="Video"?1:r=="Text"?
2:r=="Gallery"?3:r=="Blog"?4:1;r=d.PageMaincontents.find(".EE_CB");var s=X.mouseOverObj(q.mx,q.my,r);q=s.object;s=s.position;var u=m("insert",q,r,s);P.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 B=$(A.dom),F=$("#db_"+u.poslast);F.parents("#Page_frmProfile").length?B.prependTo(d.PageMaincontents):B.insertAfter(F);ja.fcbPositionChanged();j("add",{id:A.id,privacy:A.privacy,view:A.view,totalComments:A.totalComments,
prevId:u.poslast,nextId:u.posnext});c(A.id);if(x==4){var y=A.id;fa.modBlogArr(y,"addBlog");$.each(A.children,function(v,H){v=z.readObj("element",H);v.type==6&&fa.modBlogArr(y,"addEntry",{entryId:v.id,date:v.date1,headline:v.line1})});Ha.tglBtnAdd(true,B)}else if(x==2)Oa.tglBtnAdd(true,B);else if(x==3){J.initLightbox(B);Ga.tglBtnAdd(true,B)}$.event.trigger("extendEE",[B]);$("html,body").animate({scrollTop:B.top()},300);B.hide().slideDown(300);S.tglPreloader(false);ya.resetFirstrunTooltip("contentblock")}})}
function j(q,r){if(q=="add"){var x=r.prevId,s=h(r.id,r.privacy,r.view,r.totalComments);$.each(n.profileData.cbOrder,function(A,B){if(z.readObj("CB",B).id==x){n.profileData.cbOrder.splice(A,0,s);return false}})}else if(q=="delete"){var u=r.id;$.each(n.profileData.cbOrder,function(A,B){if(z.readObj("CB",B).id==u){n.profileData.cbOrder.splice(A,1);return false}})}else q=="change"&&l(r.id,r)}function m(q,r,x,s){if(q=="standard"){r=X.getNeighborIds(r,x);var u=r.poslast,A=r.posnext;if(u==0)u=z.getEEId(d.Profile)}else if(q==
"insert"){u=x.index($(".EE_CBFriends"))==0&&x.length>1;q=x.length;if(u)if(r){A=x.index(r);if(r.hasClass(".EE_CBFriends")){u=z.getEEId(r);A=A<q-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<q-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<q-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(d.Profile)}return{poslast:u,posnext:A}}function h(q,r,x,s){return[q,r,x,s]}function l(q,r){q=p(q);if(r.privacy!=undefined)q[1]=r.privacy;if(r.view!=undefined)q[2]=r.view;if(r.totalComments!=undefined)q[3]=r.totalComments}function c(q){function r(x){x=z.readObj("CB",x);$("#db_"+x.id).data("privacy",x.privacy).data("collapsed",x.collapsed).data("totalComments",x.totalComments)}q?r(p(q)):$.each(n.profileData.cbOrder,function(x,s){r(s)})}function p(q){var r=q instanceof jQuery?z.getEEId(q):
q,x;$.each(n.profileData.cbOrder,function(s,u){if(u[0]==r){x=u;return false}});return x}G8.globalSubscriber.bindOnce("initCreatePageDOMString",f).bindOnce("initExtendPageDOM",g).bindOnce("extendEE",b);return{getCBNeighborIds:m,callAddCB:k,modCBArr:j,mapCBObjVars:c,getArrCB:p}}(),bb=function w(a){this._glo_jDomObj=a;la.setJDomToObjMapping("Contentblock",a,this);this._glo_id=z.getEEId(a);if(!a.data("CLPS_clpsExtended")){ta.getArrCB(a);var b,f="",g="";if(a.hasClass("EE_CBBlog")){this._glo_cbType="blog";
b="infoicon_theme_blog.png";f=fa.getBlogEntriesArr(z.getEEId(a)).length;g=e({cl:"CLPS_preview"},e({cl:"CLPS_previewInner"}))}else if(a.hasClass("EE_CBGal")){this._glo_cbType="gallery";b="infoicon_theme_gallery.png";f=a.find(".EE_galImg").length;g=e({cl:"CLPS_preview"},e({cl:"CLPS_previewInner"},e({cl:"CLPS_previewThumb"},C("preview_gal_mini.png","CLPS_idImgPreview"))))}else if(a.hasClass("EE_CBText")){this._glo_cbType="text";b="infoicon_theme_text.png";g=e({cl:"CLPS_preview"},e({cl:"CLPS_previewInner"}))}else if(a.hasClass("EE_CBVideo")){this._glo_cbType=
"video";b="infoicon_theme_video.png";g=e({cl:"CLPS_preview"},e({cl:"CLPS_previewInner"},e({cl:"CLPS_previewThumb"},C("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;g=e({cl:"CLPS_preview"},e({cl:"CLPS_previewInner"},e({cl:"CLPS_previewThumb SHA_userMini"},C("preview_user_mini.png","CLPS_idImgPreview SHA_imgUserMini"))))}var k=a.data("totalComments"),j=e({cl:"CLPS_clpsCBCmts",
hid:true},L("infoicon_theme_comment.png"),e({cl:"CLPS_clpsCBCmtsTotalComments"},k));if(this._glo_cbType=="friends")j="";var m=L("icon_gen_theme_toggle_expanded_lo.png","CLPS_cbToggler iActObj"),h=a.find(".CB_head");k=a.find("h1.EE_txtS");k.data("originalText",k.html());b=e({cl:"CLPS_clpsCBType"},L(b),e({cl:"CLPS_clpsCBTypeTotalItems"},f));f=e({cl:"CLPS_clpsFooterLine"});h.prepend(m).append(g);k.bindOnceProxy("mouseenter",{show:true},this._hov_tglHeadlineHover,this).bindOnceProxy("mouseleave",{show:false},
this._hov_tglHeadlineHover,this);a.find(".CB_foot").html(f+b+j);g=a.data("collapsed");ha.tglCollapseToggler("CB",a.find(".CLPS_cbToggler"),!g);a.data("CLPS_clpsExtended",true);g&&a.addClass("CB_clpsd");a.find(".CLPS_preview").hide().end().find(".CB_cont").tgl(!g).end().find(".CB_foot").tgl(g);k.tglClass("idClpsdHl",g).html(g?Z.shortenText(k.data("originalText"),35):k.data("originalText"));g=$("<div />").addClass("CBContentWrap");g.prependTo(a).append(a.find(".CB_head")).append(a.find(".CB_cont")).append(a.find(".CB_foot"))}this.preloadPreviewImgs();
if(this._glo_cbType=="blog")d.BEN.isChildOf(a)||d.BEN.insertBefore(a.find(".BE_idBE")).show();a.bindOnceProxy("mouseenter",{show:true},this._hov_tglHover,this).bindOnceProxy("mouseleave",{show:false},this._hov_tglHover,this);N.extendHoverAndTt(a)};bb.prototype={getId:function w(){return this._glo_id},_hov_tglHeadlineHover:function w(a){var b=$(a.currentTarget),f=this._glo_jDomObj;if(f=f.data("collapsed"))if(a=a.data.show){this._tglPreview(true);n.userCommentsAllowed&&this._tglTotalComments(true);
b.bindOnceProxy("mousemove",this._mov_clpsHeadline,this)}else{this._tglPreview(false);n.userCommentsAllowed&&this._tglTotalComments(false);b.unbind("mousemove",this._mov_clpsHeadline)}},_mov_clpsHeadline:function w(a){var b=this._glo_jDomObj,f=this._glo_cbType,g=$(a.currentTarget),k=g.width();a=X.getRelativeMouse(a,g).x/k;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=[da.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=fa.getBlogEntriesArr(z.getEEId(b));f=Z.formatDate(z.readObj("BEntry",f[f.length-1]).date);b.find(".CLPS_previewInner").html(f)}},
_tglTotalComments:function w(a){var b=this._glo_jDomObj;b=b.find(".CLPS_clpsCBCmts");a?b.tglFadeIn(300):b.tglFadeOut(300)},_tglPreview:function w(a){var b=this._glo_jDomObj,f=b.find(".CLPS_preview"),g=this._glo_cbType;if(!(g=="friends"&&b.find(".EE_friend").length==0)&&!(g=="video"&&!n.videoThumbsVisible)){a&&f.left(b.find("h1").width());a?f.tglFadeInXB(300):f.tglFadeOutXB(300)}},updateCBTotalItems:function w(){var a=this._glo_jDomObj,b=this._glo_cbType,f;if(b=="gallery")f=a.find(".EE_galImg").length;
else if(b=="blog")f=fa.getBlogEntriesArr(z.getEEId(a)).length;else if(b=="friends")f=n.profileData.friendOrder?n.profileData.friendOrder.length:0;f&&a.find(".CLPS_clpsCBTypeTotalItems").html(f)},_hov_tglHover:function w(a){if(K.isOwner()){var b=this._glo_jDomObj,f=this._glo_cbType;if(J.isInEditMode()&&!n.inDragGalImg)if(a=a.data.show)if(b.data("collapsed"))this._tglCBBarMini(true);else{this._tglCBBar(true);if(f=="blog"){b=T("Blog",b);b.tglBtnDeleteBEntry(true)}}else if(b.data("collapsed"))this._tglCBBarMini(false);
else{this._tglCBBar(false);if(f=="blog"){b=T("Blog",b);b.tglBtnDeleteBEntry(false)}}}},tglCB:function w(a){var b=this._glo_jDomObj,f=this._glo_cbType;if(b.data("collapsed")){f=="friends"&&ja.hideAllFriends();b.removeClass("CB_clpsd");if(!a){var g=b.find(".CB_cont"),k=g.show().top();g.hide();a=b.find(".CB_head").top();g=k-aa.scrollTop()+g.height()-ua.height();if(g>0){g=aa.scrollTop()+g+40;if(g>a)g=a;$("html,body").animate({scrollTop:g},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()){d.CB_BarMini.hide();this._tglClpsHoverFooter(false);this._tglCBBar(true);if(f=="blog"){f=T("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()){d.CB_Bar.hide();this._tglCBBarMini(true);this._tglLayer(false);if(f=="blog"){f=T("Blog",b);f.tglBtnDeleteBEntry(false)}}}ha.tglCollapseToggler("CB",b.find(".CLPS_cbToggler"),!b.data("collapsed"));f=z.getEEId(b);a=b.data("collapsed")?0:1;ta.modCBArr("change",{id:f,view:a});ta.mapCBObjVars(f);K.isOwner()&&P.post({id:f,action:9,type:1,view:a})},_tglCBBar:function w(a){var b=this._glo_jDomObj;if(a){this._tglLayer(true);this._updateCBBars(d.CB_Bar);d.CB_Bar.prependTo(b).setPosTo(b,
["TOPI",-61],"LEFTI").tglFadeIn(300);d.CB_Bar_ShadowZone.one("mouseenter",function(){b.trigger("mouseleave")})}else d.CB_Bar.stopp().opacity(1).fadeOut(300,$.proxy(function(){this._tglLayer(false)},this))},_tglCBBarMini:function w(a){var b=this._glo_jDomObj;if(a){this._updateCBBars(d.CB_BarMini);d.CB_BarMini.appendTo(b).setPosTo(b,"RIGHTI","TOPI").tglFadeIn(150);this._tglClpsHoverFooter(true)}else{d.CB_BarMini.hide();this._tglClpsHoverFooter(false)}},_tglClpsHoverFooter:function w(a){var b=this._glo_jDomObj;
b=b.find(".CLPS_clpsFooterLine");b.data("origWidth")||b.data("origWidth",b.width());var f=b.data("origWidth"),g=f+278;a=a?g:f;b.stopp().animate({width:a+"px"},300)},deleteCB:function w(){var a=this._glo_jDomObj,b=this._glo_cbType,f=z.getEEId(a);N.tglObjToDelete(a,true);var g="",k;if(b=="blog"){k=o("HL_BP_Confirm_deleteBlog");g=o("Text_BP_Confirm_deleteBlog")}else if(b=="gallery"){k=o("HL_BP_Confirm_deleteGallery");g=o("Text_BP_Confirm_deleteGallery")}else if(b=="video")k=o("HL_BP_Confirm_deleteVideo");
else if(b=="text")k=o("HL_BP_Confirm_deleteText");S.confirmm({headline:k,contentText:g,okAction:ra(this,function(){a.removeAni(300,ra(this,function(){ja.fcbPositionChanged()}));this._updateCBBars(d.CB_Bar);this._updateCBBars(d.CB_BarMini);P.post({id:f,action:12},{afterSuccess:ra(this,function(){ta.modCBArr("delete",{id:f});if(b=="blog"){fa.modBlogArr(f,"deleteBlog");Ba.updatePagemode()}})})}),okTitle:o("TT_GEN_delete"),cancelAction:ra(this,function(){N.tglObjToDelete(a,false)})})},_updateCBBars:function w(a){var b=
this._glo_jDomObj,f=this._glo_cbType;if(a==d.CB_Bar)var g=d.CB_Bar_Delete,k=d.CB_Bar_Move;else{g=d.CB_BarMini_Delete;k=d.CB_BarMini_Move}this._hilitePrivacyIcon(b.data("privacy"));N.extendHoverAndTt(a);var j=d.PageMaincontents.find(".EE_CB"),m=j.filter(":not(.EE_CBFriends)");a=m.length;if(f=="friends"){b=j.index(b);g.hide();k.find(".idBtnDown,.idBtnUp").hide().end().find(".idBtnSkipDown").tgl(b==0&&a>0).end().find(".idBtnSkipUp").tgl(b!=0&&a>0)}else{b=m.index(b);g.show();k.find(".idBtnSkipDown,.idBtnSkipUp").hide().end().find(".idBtnDown").tgl(b<
a-1).end().find(".idBtnUp").tgl(b>0)}},_switchCB:function w(a,b){var f=this._glo_jDomObj,g=z.getEEId(f);this._tglCBBar(false);var k=f.top()-aa.scrollTop(),j=f.height(),m=a=="skipdown"||a=="skipup";m&&$(".FO_idFriendTrenner").remove();var h=300+j/3;f.animate({height:0,paddingBottom:0},h,$.proxy(function(){this._tglLayer(false);a=="up"||a=="skipup"?f.insertBefore(b):f.insertAfter(b);$("html,body").animate({scrollTop:f.top()-k},120);m&&ja.fcbPositionChanged();f.show().animate({height:j},h,$.proxy(function(){f.css("height",
"")},this));var l=ta.getCBNeighborIds("standard",f,d.PageMaincontents.find(".EE_CB"));P.post({id:g,action:9,type:1,poslast:l.poslast,posnext:l.posnext})},this))},_hilitePrivacyIcon:function w(a){var b=d.CB_BarMini_Privacy.add(d.CB_Bar_Privacy);$(".idBtnPrivacy"+a,b).hiliteSingleImg($("img[class*='idBtnPrivacy']",b))},_getPreviewSrcs:function w(){var a=this._glo_jDomObj,b=this._glo_cbType,f=[];if(b=="gallery")a.find(".EE_galImg > .EE_OBJ").each(function(g){if(g<n.maxGalPreviews){g=$(this);g.attr("longdesc")?
f.push(g.attr("longdesc")):f.push(g.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=pa.readEmbedVideo(a.find(".EE_video"));if(a.thumbnailSrcs.length)f=a.thumbnailSrcs}return f},_tglLayer:function w(a){var b=this._glo_jDomObj;b=$(".CBContentWrap",b);a?b.addClass("CB_hover"):b.removeClass("CB_hover")},changePrivacy:function w(a){var b=this._glo_jDomObj,f=z.getEEId(b);this._hilitePrivacyIcon(a);
P.post({id:f,action:9,type:1,privacy:a},{afterSuccess:$.proxy(function(g){g=z.readObj("elementJ",g).privacy;ta.modCBArr("change",{id:f,privacy:g});ta.mapCBObjVars(f)},this)})},moveCB:function w(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=d.PageMaincontents.find(".EE_CB").eq(0);else if(a=="skipdown")f=d.PageMaincontents.find(".EE_CB").filter(":last");this._switchCB(a,f)},preloadPreviewImgs:function w(){qa.preloadImgs(this._getPreviewSrcs())}};
var Ha=function w(){function a(h){h=$(h.target);if(J.isInEditMode())if(h.isChildOf(d.BlogImg_Cover_Delete.find(".idBtnDelete"))){h=h.parents(".EE_blogImg");g(h);return false}else if(h.isChildOf(d.BlogImg_Cover_Move.find(".idBtnUp"))){h=h.parents(".EE_blogImg");k(h,"up");return false}else if(h.isChildOf(d.BlogImg_Cover_Move.find(".idBtnDown"))){h=h.parents(".EE_blogImg");k(h,"down");return false}}function b(){if(K.isOwner()){var h=e({id:"BlogImg_Cover",cl:"fixPNGBg",hid:true,pos:"absolute"},e({id:"BlogImg_Cover_Move"},
L("icon_bbar_arrowdown_lo.png","idBtnDown iActObj",o("TT_BlogImg_moveImgDown")),L("icon_bbar_arrowup_lo.png","idBtnUp iActObj",o("TT_BlogImg_moveImgUp"))),e({id:"BlogImg_Cover_Delete"},L("icon_bbar_delete_lo.png","idBtnDelete iActObj",o("TT_GEN_delete"))));n.initDOMString+=h}}function f(){if(K.isOwner()){d.BlogImgAddBtnMaster=$(e({cl:"BlogImg_idBtnAdd"},L("btn_theme_addimg_imgblog_lo.png","iActObj",o("TT_AddImg_uploadNewImgs"))));var h=["BlogImg_Cover","BlogImg_Cover_Move","BlogImg_Cover_Delete"];
J.setDOMReference(h);aa.bindOnce("click",a)}}function g(h){h.find(".EE_OBJ");var l=z.getEEId(h);N.tglObjToDelete(h,true);S.confirmm({headline:o("HL_BP_Confirm_deleteImg"),okAction:function(){h.removeAni(300);P.post({id:l,action:12})},okTitle:o("TT_GEN_delete"),cancelAction:function(){N.tglObjToDelete(h,false)}})}function k(h,l){if(l=="up"){var c=h.prevAll(".EE_blogImg");c.length&&j(h,l,c.eq(0))}else{c=h.nextAll(".EE_blogImg");c.length&&j(h,l,c.eq(0))}}function j(h,l,c){var p=z.getEEId(h),q=h.top()-
aa.scrollTop();h.css("height");h.slideUp(300,function(){l=="up"?h.insertBefore(c):h.insertAfter(c);h.slideDown(300);$("html,body").animate({scrollTop:h.top()-q},120);var r=X.getNeighborIds(h,h.parent().children(".EE_blogImg"));P.post({id:p,action:9,type:4,poslast:r.poslast,posnext:r.posnext})})}function m(h,l){var c=l.find(".BlogImg_idBtnAdd");if(h){if(!c.length){c=d.BlogImgAddBtnMaster.clone();c.insertBefore($(".idClr",l)).fadeIn(250);N.extendHoverAndTt(c);c.bindOnce("mouseenter",Aa.ent_bindAddBtnFlashHover)}}else c.removeAni(300)}
G8.globalSubscriber.bindOnce("initCreatePageDOMString",b).bindOnce("initExtendPageDOM",f);return{tglBtnAdd:m}}(),fa=function w(){function a(c,p){$Self(".EE_CBBlog",p).each(function(){new cb($(this))})}function b(c){var p;$.each(n.profileData.blogOrder,function(q,r){if(r[0]==c){p=r[1];return false}});return p||[]}function f(c,p,q){q=q||{};var r=b(c);if(p=="removeEntry"){p=m(c,q.entryId);r.splice(p,1);return r.length==0?false:p>=r.length?z.readObj("BEntry",r[r.length-1]).id:z.readObj("BEntry",r[p]).id}else if(p==
"addEntry")r[r.length]=g(q.entryId,q.date,q.headline);else if(p=="changeEntry")k(q.entryId,q.headline);else if(p=="deleteBlog")$.each(n.profileData.blogOrder,function(x,s){if(s[0]==c){n.profileData.blogOrder.splice(x,1);return false}});else p=="addBlog"&&n.profileData.blogOrder.push([c,[]])}function g(c,p,q){return[c,p,q]}function k(c,p){c=j(c);c[2]=p}function j(c){var p;$.each(n.profileData.blogOrder,function(q,r){$.each(r[1],function(x,s){if(s[0]==c){p=s;return false}});if(p)return false});return p}
function m(c,p){var q;$.each(b(c),function(r,x){if(x[0]==p){q=r;return false}});return q}function h(){var c="";c+=e({id:"BESel_Pane",pos:"absolute",hid:true},e({id:"BESel_PaneBot"})+e({id:"BESel_PaneInner"}));c+=e({id:"BEN",hid:true},e({id:"BENBtnAddBlog",hid:true},L("icon_gen_theme_addbentry_lo.png","idBtnAdd iActObj",o("TT_createBEntry"))),e({id:"BEN_Center"},e({id:"BEN_BtnPrev"},L("icon_gen_theme_bentryprev_lo.png","idBtnPrev iActObj",o("TT_prevBEntry")),L("icon_gen_theme_bentryprev_lo.png","idBtnPrevDisbl")),
e({id:"BENSelector"}),e({id:"BEN_BtnNext"},L("icon_gen_theme_bentrynext_lo.png","idBtnNext iActObj",o("TT_nextBEntry")),L("icon_gen_theme_bentrynext_lo.png","idBtnNextDisbl"))));if(K.isOwner())c+=e({id:"BE_BtnDelete",hid:true},L("icon_gen_theme_delete_lo.png","iActObj idBtnDelete",o("TT_deleteBEntry")));n.initDOMString+=c}function l(){var c=["BEN","BENBtnAddBlog","BENSelector","BESel_Pane","BE_BtnDelete"];J.setDOMReference(c);d.BEN.find(".idBtnPrevDisbl,.idBtnNextDisbl").opacity(0.5)}G8.globalSubscriber.bindOnce("extendEE",
a).bindOnce("initCreatePageDOMString",h).bindOnce("initExtendPageDOM",l);return{getBlogEntriesArr:b,modBlogArr:f,getArrBEntry:j,getIndexBEntry:m}}(),cb=function w(a){this._glo_jDomObj=a;la.setJDomToObjMapping("Blog",a,this);this._glo_id=z.getEEId(a);this._extendBlogImgs(a);this.updateBESelector();G8.globalSubscriber.bindOnceProxy("extendEE",this._subscriber_cus_extendEE,this);aa.bindOnceProxy("click",this._delegator_clk_document,this)};cb.prototype={_subscriber_cus_extendEE:function w(a,b){a=this._glo_jDomObj;
if(a.isOrIsChildOf(b)||b.isOrIsChildOf(a))this._extendBlogImgs(b)},_delegator_clk_document:function w(a){a=$(a.target);if(d.BESel_Pane.is(":hidden")&&a.isChildOf(d.BENSelector)){this._BESel_tglPane(true);return false}else if(d.BESel_Pane.is(":visible")&&(!a.isChildOf(d.BENSelector)||!a.isChildOf(d.BESel_Pane)))this._BESel_tglPane(false);else if(a.isChildOf(d.BEN.find(".idBtnPrev"))){this._BEN_prevBEntry();return false}else if(a.isChildOf(d.BEN.find(".idBtnNext"))){this._BEN_nextBEntry();return false}if(J.isInEditMode())if(a.isChildOf(d.BENBtnAddBlog)){a=
a.parents(".EE_CBBlog");this._addBEntry(a);return false}else if(a.isChildOf(d.BE_BtnDelete)){a.parents(".EE_CBBlog");this._deleteBEntry();return false}},_extendBlogImgs:function w(a){if(K.isOwner()){var b=this;$Self(".EE_blogImg",a).each(function(){var f=$(this);new db(f,b)})}},addUploadedBlogImg:function w(a){var b=this._glo_jDomObj;T("Contentblock",b);b.find(".EE_blogImg").each(function(){var f=$(this),g=f.find(".EE_OBJ");if(g.attr("src").hasStr("showimg=4-0")){f.remove();return false}});a=$(a);
a.insertBefore($(".BlogImg_idBtnAdd",b));this._extendBlogImgs(a);N.extendHoverAndTt(a)},_BESel_tglPane:function w(a){if(a){$("#imgBENSelectorArrow").setImgHi();d.BESel_Pane.appendTo(d.BENSelector.parent()).setPosTo(d.BENSelector,"LEFTI","BOTTOM").slideDown(300)}else{$("#imgBENSelectorArrow").setImgLo();d.BESel_Pane.slideUp(300)}},updateBESelector:function w(a){var b=this._glo_jDomObj,f=this._glo_id;d.BENSelector.data("BENSelectorExtd")||d.BENSelector.data("BENSelectorExtd",true).addClass("iActObj").html(e({id:"BENSelectorHL"})+
L("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=fa.getBlogEntriesArr(f);var g;if(f.length){a||(a=z.getEEId(b.find(".BE_idBE")));var k=z.readObj("BEntry",fa.getArrBEntry(a));d.BENSelector.find("#BENSelectorHL").html(Z.formatDate(k.date));b.data("currEntryId",a);$.each(f,function(j,m){j=z.readObj("BEntry",m);m=j.id==a?"BESel_paneEntrySelected ":
"";j=$(e({cl:m+"BESel_idPaneEntry iActObj"},e({cl:"BESel_idPaneEntryDate"},Z.formatDate(j.date)),e({cl:"BESel_idPaneEntryHeadline"},Z.shortenText(j.headline,35)))).data("entryId",j.id);g=!g?j:g.add(j)})}else $("#BENSelectorHL").empty();$("#BESel_PaneInner").empty().append(g).find(".BESel_idPaneEntry").bindOnceProxy("click",this._BESel_clickEntry,this).bindTglHoverClass("BESel_paneEntryHi");this._BESkip_update()},_BESel_clickEntry:function w(a){a=$(a.currentTarget);a=a.data("entryId");this._BESel_tglPane(false);
this.switchBEntry(a)},_BESel_tglArrow:function w(a){a=a.data.show;var b=$("#imgBENSelectorArrow");a?b.setImgHi():b.setImgLo()},tglBtnDeleteBEntry:function w(a){var b=this._glo_jDomObj,f=this._glo_id;if(a){a=fa.getBlogEntriesArr(f).length;a>1?d.BE_BtnDelete.prependTo(b.find(".BE_idBE")).setPosTo(b.find(".BE_idHeader"),"TOPI").tglFadeIn(300):d.BE_BtnDelete.hide();N.extendHoverAndTt(d.BE_BtnDelete)}else d.BE_BtnDelete.tglFadeOut(300)},_BESkip_update:function w(){var a=this._getIdsBEntry();d.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 w(a){var b=this._glo_jDomObj;S.tglPreloader(true);$(".BlogImg_idDropzone",b);P.post({action:11,id:a},{afterSuccess:ra(this,function(f){f=$(z.readObj("elementJ",f).dom);var g=b.find(".BE_idBE");g.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();g.data("commentsExtended",
false);$.event.trigger("extendEE",[g]);N.extendHoverAndTt(g);this.updateBESelector(a);J.isInEditMode()&&Ha.tglBtnAdd(true,b);S.tglPreloader(false)})})},_getIdsBEntry:function w(){var a=this._glo_jDomObj,b=this._glo_id;a=a.data("currEntryId");var f=fa.getIndexBEntry(b,a),g=fa.getBlogEntriesArr(b);b=f>0?z.readObj("BEntry",g[f-1]).id:false;f=f<g.length-1?z.readObj("BEntry",g[f+1]).id:false;return{currentId:a,prevId:b,nextId:f}},_addBEntry:function w(){var a=this._glo_jDomObj,b=this._glo_id;S.tglPreloader(true);
var f=fa.getBlogEntriesArr(b);f=f.length?z.readObj("BEntry",f[f.length-1]).id:0;P.post({action:10,type:6,parent:0,parentblock:b,poslast:f,posnext:0},{afterSuccess:ra(this,function(g){g=z.readObj("elementJ",g);var k=$(g.dom);fa.modBlogArr(b,"addEntry",{entryId:g.id,date:g.date1,headline:g.line1});var j=a.find(".BE_idBE");j.attr("id","db_"+g.id).find(".BE_idHeader").html(g.line1).end().find(".BE_idCopy").html(g.value1).end().find(".BlogImg_idDropzone").html(k.find(".BlogImg_idDropzone").html()).end().find(".CM_Box").remove();
j.data("commentsExtended",false);Ha.tglBtnAdd(true,a);$.event.trigger("extendEE",[a]);N.extendHoverAndTt(a);this.updateBESelector(g.id);g=T("Contentblock",a);g.updateCBTotalItems();S.tglPreloader(false)})})},_deleteBEntry:function w(){var a=this._glo_jDomObj,b=this._glo_id,f=a.find(".BE_idBE"),g=z.getEEId(f);z.readObj("BEntry",fa.getArrBEntry(g));N.tglObjToDelete(f,true);S.confirmm({headline:o("HL_BP_Confirm_deleteBlogentry"),okAction:ra(this,function(){var k=false;P.post({action:12,id:g},{afterSuccess:ra(this,
function(){var j=fa.modBlogArr(b,"removeEntry",{entryId:g});this.updateBESelector(j);var m=T("Contentblock",a);m.updateCBTotalItems();if(j){N.tglObjToDelete(f,false);this.switchBEntry(j)}else{f.removeAni(300);k=true}})})}),okTitle:o("TT_GEN_delete"),cancelAction:ra(this,function(){N.tglObjToDelete(f,false)})})},_BEN_nextBEntry:function w(){var a=this._getIdsBEntry();a=a.nextId;this.switchBEntry(a)},_BEN_prevBEntry:function w(){var a=this._getIdsBEntry();a=a.prevId;this.switchBEntry(a)}};var db=function w(a){this._glo_jDomObj=
a;a.bindOnceProxy("mouseenter",{show:true},this._hov_tglCover,this).bindOnceProxy("mouseleave",{show:false},this._hov_tglCover,this);N.extendHoverAndTt(a)};db.prototype={_hov_tglCover:function w(a){var b=this._glo_jDomObj;if(J.isInEditMode())if(a=a.data.show){d.BlogImg_Cover.prependTo(b).setPosTo(b,"TOPI","LEFTI").tglFadeIn(300);N.extendHoverAndTt(d.BlogImg_Cover);a=b.parents(".BlogImg_idDropzone").find(".EE_blogImg");b=a.index(b);a=a.length;d.BlogImg_Cover_Move.find(".idBtnDown").tgl(b<a-1).end().find(".idBtnUp").tgl(b>
0)}else d.BlogImg_Cover.tglFadeOut(250)}};G8.DOM={};var n=G8.pageVars,d=G8.DOM,e=ga.makeDiv,C=ga.makeImageStatic,L=ga.makeImageTheme,ea=ga.makeElement,Y=ga.makeSpan,ba=ga.makeLink,o=Pa.getLocalizedString,xa=Pa.getLocalizedString12,T=la.getJDomToObjMapping;G8.Export={ax_lightbox:Ka,gx_upload:Aa,ax_adaaRemote:fb};$(function(){va.isIPhone()||J.initPage()})})();

