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