var div_content="div_content";var div_left="div_left";var div_middle="div_middle";var div_right="div_right";var div_middle_inner="div_middle_inner";var doc=document;var arr=new Array();arr[1]="IS_18_World";arr[2]="IS_18_Person";arr[3]="IS_18_Lock";var arrText=new Array();arrText[1]=i18n.translate("326");arrText[2]=i18n.translate("325");arrText[3]=i18n.translate("6319");var userprofile={objContacts:null,typeContacts:"list",typeBookmarks:"list",typeOffers:"list",typeGroups:"list",typePhotos:"matrix",objPhotos:null,objBookmarks:null,objOffers:null,objFavoritesPhotos:null,objFriendsPhotos:null,objPersonalInfo:null,objProfile:null,objGroups:null,hash:"",obj:[],edit:false,intern:false,rightPopup:null,rightEdit:false,userID:0,authUserID:0,alias:"",lang:0,userTyp:0,gender:0,profileTyp:1,isContact:false,authUsername:"",div_pagingTop:null,div_pagingBottom:null,search:"",module:function(hash,start,search){if(userprofile.obj[hash]!=null){cacheProfile.markupCachedItem(hash);userprofile.setModuleCSS(hash);return false}if(start==undefined){start=1}if(search==search){search=""}var a=new ajax();a.call({url:"/profile/ajax/",parameter:"profile="+userprofile.alias+"&hash="+hash+"&page="+start+"&search="+encodeURI(search),type:"GET",success:function(resp){if(resp=="{}"){return false}var oJson=eval("("+resp+")");userprofile.obj[hash]=oJson;cacheProfile.markupCachedItem(hash);userprofile.setModuleCSS(hash)}})},setModuleCSS:function(b){var c=doc.getElementById("modules").getElementsByTagName("a");for(var a in c){c[a].className="";if(c[a].hash!=undefined){if(c[a].hash.replace("#","")==b){c[a].className="selected"}}}},setTypeContacts:function(a){userprofile.typeContacts=a;userprofile.objContacts.className="ul-modules contacts-content-"+a},setTypeBookmarks:function(a){userprofile.typeBookmarks=a;userprofile.objBookmarks.className="ul-modules bookmarking bookmarks-content-"+a},setTypeOffers:function(a){userprofile.typeOffers=a;userprofile.objOffers.className="ul-modules offers-content-"+a},setTypeGroups:function(a){userprofile.typeGroups=a;userprofile.objGroups.className="ul-modules groups-content-"+a},setTypePhotos:function(b){userprofile.typePhotos=b;userprofile.objPhotos.className="ul-modules photos-content-"+b;if(b=="list"){var c=userprofile.objPhotos.getElementsByTagName("p");for(var a in c){if(c[a].className=="headline"){c[a].className=c[a].className+" gl-h1"}}}else{var c=userprofile.objPhotos.getElementsByTagName("p");for(var a in c){if(c[a].className=="headline gl-h1"){c[a].className="headline"}}}},markupContentPhotos:function(q){var h=userprofile.obj.photos.photos;var j=userprofile.objPhotos;j.className="ul-modules photos-content-"+userprofile.typePhotos;j.innerHTML="";modalGallery.galleries=h;modalGallery.intern=userprofile.intern;var l=(j.offsetWidth);var d=7;var k=l;var i=i18n.translate("346");var d=i18n.translate("347");for(var o in h){if(h[o].headline.toLowerCase().indexOf(q.toLowerCase())==-1){continue}var e="";if(h[o].picturecount>1||h[o].picturecount==0){e+=h[o].picturecount+" "+d}else{e+=h[o].picturecount+" "+i}var c="";if(userprofile.typePhotos=="list"){c=" gl-h1"}var a="";a+='    <div class="pic" onclick="modalGallery.init(\''+h[o].alias+"');\">";a+='        <img class="db" src="'+h[o].thumbnail+'" />';a+="    </div>";a+='    <div class="info">';a+='        <p class="headline'+c+'">'+h[o].headline+"</p>";a+='        <p class="info">'+userprofile.contentPhotosVisibilityIcon(h[o].visibility)+"<span>"+e+"</span></p>";a+="    </div>";var m=doc.createElement("li");m.className="item";m.innerHTML=a;j.appendChild(m)}if(h.length==0){var n="";if(userprofile.userID==userprofile.authUserID){n=i18n.translateWithOneParameter("6339",'<a href="/gallery/#create">'+i18n.translate("1350")+"</a>")}else{n=i18n.translate("6340")}var b=new noContentRow();b.view({icon:"IS_30_Photoalbum",obj:j,text:n})}var m=doc.createElement("div");m.className="clearBoth";j.appendChild(m);var f=i18n.translate("652");h=userprofile.obj.photos.friends;j=userprofile.objFriendsPhotos;if(h.length>0){j.className="ul-modules photos-content-"+userprofile.typePhotos;j.innerHTML="";for(var o in h){if(h[o].headline.toLowerCase().indexOf(q.toLowerCase())==-1){continue}var e="";if(h[o].picturecount>1||h[o].picturecount==0){e+=h[o].picturecount+" "+d}else{e+=h[o].picturecount+" "+i}var a="";a+='    <div class="pic" onclick="modalGallery.init(\''+h[o].alias+'\');"><img class="db" src="'+h[o].thumbnail+'" /></div>';a+='    <div class="info">';a+='        <p class="headline">'+h[o].headline+"</p>";a+='        <p class="username"><span>'+f+"</span> "+h[o].username+", <span>"+e+"</span></p>";a+="    </div>";var m=doc.createElement("li");m.className="item";m.innerHTML=a;j.appendChild(m)}var m=doc.createElement("div");m.className="clearBoth";j.appendChild(m)}var g=i18n.translate("1469");h=userprofile.obj.photos.favoritesPhotos;j=userprofile.objFavoritesPhotos;if(h.length>0){j.className="ul-modules photos-content-"+userprofile.typePhotos;j.innerHTML="";for(var o in h){if(h[o].headline.toLowerCase().indexOf(q.toLowerCase())==-1){continue}var e="";if(h[o].picturecount>1||h[o].picturecount==0){e+=h[o].picturecount+" "+d}else{e+=h[o].picturecount+" "+i}var a=['<div class="pic" onclick="modalGallery.init(\''+h[o].alias+'\',\'favorites\');"><img class="db" src="'+h[o].thumbnail+'" /></div>','<div class="info">','<p class="headline"><span>'+g+"</span> "+h[o].headline+"</p>",'<p class="username"><span>'+f+"</span> "+h[o].username+"</p>","</div>"];var m=doc.createElement("li");m.className="item";m.innerHTML=a.join("");j.appendChild(m)}var m=doc.createElement("div");m.className="clearBoth";j.appendChild(m)}},contentPhotosVisibilityIcon:function(a){if(userprofile.userID!=userprofile.authUserID){return""}var b='<img align="absmiddle" src=';switch(a){case 1:b+="/_THEMES/PhotoScheme/_Global/green.png";break;case 2:b+="/_THEMES/PhotoScheme/_Global/orange.png";break;case 3:b+="/_THEMES/PhotoScheme/_Global/red.png";break}b+=" />&nbsp;";return b},markupContactsFriends:function(o){var f=userprofile.obj.friends.contacts;var g=userprofile.objContacts;g.className="ul-modules contacts-content-"+userprofile.typeContacts;g.innerHTML="";var k=i18n.translate("6267");var d=i18n.translate("268");var j=i18n.translate("266");for(var n in f){if(f[n].username.toLowerCase().indexOf(o.toLowerCase())==-1){continue}var e={withSpan:true,usertyp:f[n].usertype,age:f[n].age,gender:f[n].gender,relationship:f[n].relationship,city:f[n].city,profession:f[n].profession,land:k+" "+f[n].land};var b="";b+='    <div class="pic">'+f[n].thumb+"</div>";b+='    <div class="info">';b+='        <a href="/'+f[n].username+'" class="username">'+f[n].username+"</a><br />";b+="        "+userDetails(e)+"";b+="    </div>";var l=doc.createElement("li");l.id="li_contact_"+f[n].userID;l.innerHTML=b;if(userprofile.intern&&userprofile.authUserID!=f[n].userID){var h=doc.createElement("div");h.className="buttons";if(f[n].isContact==false){var i=doc.createElement("button");i.className="normal db floatRight clearBoth global_Button";i.id="removeContact_"+f[n].userID+"_"+f[n].username;i.innerHTML='<i class="IS_18 IS_18_ContactInvites db floatLeft"></i>&nbsp;<span class="global-button-text-IS-18 floatLeft">'+j+"</span>";i.onclick=userprofile.clickContactsInvite;h.appendChild(i)}var i=doc.createElement("button");i.className="normal db floatRight clearBoth global_Button";i.id="messageContact_"+f[n].userID+"_"+f[n].username;i.innerHTML='<i class="IS_18 IS_18_Messages db floatLeft"></i>&nbsp;<span class="global-button-text-IS-18 floatLeft">'+d+"</span>";i.onclick=userprofile.clickContactsSendMessage;h.appendChild(i);l.appendChild(h)}g.appendChild(l)}if(f.length==0){var m="";if(userprofile.userID==userprofile.authUserID){m=i18n.translate("6341")}else{m=i18n.translate("6342")}var c=new noContentRow();c.view({icon:"IS_30_Person",obj:g,text:m})}var b=doc.createElement("div");b.className="clearBoth";g.appendChild(b)},clickContactsSendMessage:function(){var username=this.id;var userID=this.id.split("_")[1];var username=this.id.split("_")[2];var b=new ajax();b.call({url:"/template/getTemplate/",type:"GET",parameter:"name=ModalPopup.html",success:function(resp){var oJson=eval("("+resp+")");message.selfTemplate=oJson.Templates[0].ModalPopup;message.modul="profile";modal.reset();modal.selfTemplate=oJson.Templates[0].ModalPopup;modal.width=520;modal.header=i18n.translateWithOneParameter("487",username);modal.content=message.form(2);modal.close="modal.hide('modalPopup');";modal.buttons='<a onclick="message.send('+userID+')" class="global_Button active floatRight">'+i18n.translate("468")+'</a><a onclick="modal.hide(\'modalPopup\');" class="global_Button floatRight">'+i18n.translate("1939")+"</a>";modal.show("modalPopup");doc.getElementById("message_subject").focus()}})},clickContactsInvite:function(){var username=this.id;var userID=this.id.split("_")[1];var username=this.id.split("_")[2];var b=new ajax();b.call({url:"/template/getTemplate/",type:"GET",parameter:"name=ModalPopup.html",success:function(resp){var oJson=eval("("+resp+")");message.selfTemplate=oJson.Templates[0].ModalPopup;modal.reset();modal.selfTemplate=oJson.Templates[0].ModalPopup;modal.width=320;modal.header=i18n.translateWithOneParameter("6323",username);modal.content=i18n.translateWithOneParameter("6324",username);modal.close="modal.hide('modalPopup');";modal.buttons='<a onclick="contacts.invite('+userID+');" class="global_Button active floatRight">'+i18n.translate("266")+'</a><a onclick="modal.hide(\'modalPopup\');" class="global_Button floatRight">'+i18n.translate("1939")+"</a>";modal.show("modalPopup")}})},clickContactsRemove:function(){var username=this.id;var userID=this.id.split("_")[1];var username=this.id.split("_")[2];var b=new ajax();b.call({url:"/template/getTemplate/",type:"GET",parameter:"name=ModalPopup.html",success:function(resp){var oJson=eval("("+resp+")");message.selfTemplate=oJson.Templates[0].ModalPopup;modal.reset();modal.selfTemplate=oJson.Templates[0].ModalPopup;modal.width=320;modal.header=i18n.translateWithOneParameter("6325",username);modal.content=i18n.translate("489");modal.close="modal.hide('modalPopup');";modal.buttons='<a onclick="contacts.remove('+userID+');" class="global_Button active floatRight">'+i18n.translate("267")+'</a><a onclick="modal.hide(\'modalPopup\');" class="global_Button floatRight">'+i18n.translate("1939")+"</a>";modal.show("modalPopup")}})},markupContentBookmarks:function(search,objSearch){var obj=null;var object=null;if(objSearch==undefined){obj=userprofile.obj.bookmarks.bookmarks;object=userprofile.obj.bookmarks}else{obj=objSearch.bookmarks;object=objSearch}var ul=userprofile.objBookmarks;bookmarks.bookmarkListObject=ul;ul.className="ul-modules bookmarking bookmarks-content-"+userprofile.typeBookmarks;ul.innerHTML="";var saveOn=i18n.translate("6283");userprofile.div_pagingTop.innerHTML="";var pagingCallback=function(resp){SmoothScroll.scroll("div_content");userprofile.markupContentBookmarks("",eval("("+resp+")"))};paging.markup(userprofile.div_pagingTop,object.count,object.page,"/profile/ajax/","hash=bookmarks&search="+userprofile.search+"&profile="+userprofile.alias,pagingCallback,"GET",{css:"floatRight"});for(var t in obj){if(obj[t].headline.toLowerCase().indexOf(search.toLowerCase())==-1){continue}var description="";var created="";var urlhost="";if(obj[t].description.length>0){description+=obj[t].description}if(obj[t].urlhost!=""){urlhost+='<a href="http://'+obj[t].urlhost+'" target="_blank">'+obj[t].urlhost+"</a>"}if(obj[t].created!=""){created+=" · "+obj[t].created}var div=document.createElement("div");div.className="floatLeft grid_16 main-right";var div_info=document.createElement("div");div_info.className="info";div_info.innerHTML+='<p><a class="bookmarkheadline" target="_blank" href="'+obj[t].url+'">'+obj[t].headline+"</a></p>";div_info.innerHTML+='<p class="savedate gray">'+urlhost+created+"</p>";div_info.innerHTML+='<p class="bookmarkdescription">'+description+"</p>";div.appendChild(div_info);var buttons=doc.createElement("div");buttons.className="buttons";var btn1=doc.createElement("a");btn1.id=obj[t].id;if(obj[t].already_overtaken>0){btn1.className="bookmarkers IS_18_FavOn IS_18 db";btn1.onclick=bookmarks.deleteModal}else{btn1.className="IS_18_FavOff IS_18 db";btn1.onclick=bookmarks.overtake}buttons.appendChild(btn1);var counts=doc.createElement("span");counts.className="counts gray";counts.innerHTML=obj[t].bookmarkers;buttons.appendChild(counts);var btn2=doc.createElement("a");btn2.className="comments IS_18_Comments IS_18 db";btn2.href="/bookmarking/"+obj[t].alias+"/";buttons.appendChild(btn2);counts=doc.createElement("span");counts.className="counts gray";counts.innerHTML=obj[t].commentscount;buttons.appendChild(counts);div.appendChild(buttons);var li=doc.createElement("li");li.appendChild(div);div=document.createElement("div");div.className="floatLeft pic";var div_inner=document.createElement("div");div_inner.className="pic-inner";var a=document.createElement("a");a.target="_blank";a.href=obj[t].url;var path=obj[t].thumbpath;var img=new Image();img.onerror=function(){img.onerror=null;this.src="/_Themes/PhotoScheme/_global/dummy.gif"};img.src=path;a.appendChild(img);div_inner.appendChild(a);div.appendChild(div_inner);li.appendChild(div);var br=document.createElement("br");br.className="clearBoth";li.appendChild(br);ul.appendChild(li)}if(obj.length==0){var text="";if(userprofile.userID==userprofile.authUserID){text=i18n.translateWithOneParameter("6335",'<a href="/bookmarking/">'+i18n.translate("1350")+"</a>")}else{text=i18n.translate("6336")}var p=new noContentRow();p.view({obj:ul,text:text})}var br=doc.createElement("br");br.className="clearBoth";ul.appendChild(br);userprofile.div_pagingBottom.innerHTML="";paging.markup(userprofile.div_pagingBottom,object.count,object.page,"/profile/ajax/","hash=bookmarks&search="+userprofile.search+"&profile="+userprofile.alias,pagingCallback,"GET",{css:"floatRight"})},markupContentGroups:function(h){var i=userprofile.obj.groups.groups;var m=userprofile.objGroups;m.className="ul-modules groups-content-"+userprofile.typeGroups;m.innerHTML="";var y=i18n.translate("1983");var c=i18n.translate("1982");var a=i18n.translate("6352");var A=i18n.translate("6351");var s=i18n.translate("652");var d=i18n.translate("1903");var o=i18n.translate("1902");var e=i18n.translate("1225");var b=i18n.translate("1905");var w=i18n.translate("6353");var B=i18n.translate("2077");var x=i18n.translate("2102");for(var l in i){if(i[l].headline.toLowerCase().indexOf(h.toLowerCase())==-1){continue}var q="";var f="";var v=i[l].thumbnail;if(i[l].description.length>0){q+=i[l].description}if(i[l].created!=""){if(i[l].members>1){f+='<a class="gray" href="/groups/'+i[l].alias+'/#groupmembers">'+i[l].members+" "+y+"</a>"}else{f+='<a class="gray" href="/groups/'+i[l].alias+'/#groupmembers">'+i[l].members+" "+c+"</a>"}}if(i[l].forenentries>0){if(i[l].forenentries>1){f+=', <a class="gray" href="/groups/'+i[l].alias+'/#groupforum">'+i[l].forenentries+" "+a+"</a>"}else{f+=', <a class="gray" href="/groups/'+i[l].alias+'/#groupforum">'+i[l].forenentries+" "+A+"</a>"}}var g="";var u="";switch(i[l].modifiedID){case 2:g="#groupnews";u=o;break;case 3:g="#groupdates";u=e;break;case 1:g="#groupforum";u=d;break;case 5:g="#groupforum";u=b;break}var z="";if(i[l].modifiedHeadline!=""){z+='<span class="last">'+u+" "+s+' <a class="username" href="/'+i[l].lastModifiedUserName+'/">'+i[l].lastModifiedUserName+"</a></span><br />";z+='<span class="what"><a style="color:#000;" href="/groups/'+i[l].alias+"/"+g+'">"'+i[l].modifiedHeadline+'"</a><br />';z+='<div style="height:8px;"></div>';z+='<span class="gray what">'+i[l].lastModified+"&nbsp;</span>"}else{z+='<span class="last">'+x+"</span><br />"}var n="";n+='<div class="row-inner">';n+='<div class="floatLeft grid_16">';n+='    <div class="info">';n+='        <p><a class="headline" href="/groups/'+i[l].alias+'/">'+i[l].headline+"</a></p>";n+='        <p class="savedate gray">'+f+"</p>";if(i[l].member==false&&userprofile.intern==true){n+='<button class="normal global_Button button-join" onclick="groups.join(this,'+i[l].id+",'"+i[l].headline+'\');"><i class="IS_18 IS_18_Add dib floatLeft"></i><div class="floatLeft">&nbsp;'+B+'</div><br class="clearBoth"/></button>'}n+="    </div>";n+="</div>";n+='<div class="floatLeft subinfos">';n+='    <div class="inner">';n+=z;n+="    </div>";n+="</div>";n+='<div class="pic floatLeft"><div class="pic-inner"><a href="/groups/'+i[l].alias+'/"><img src="'+v+'" /></a></div></div>';n+='<div class="clearBoth"><!----></div>';n+="</div>";var k=doc.createElement("li");k.innerHTML=n;m.appendChild(k)}if(i.length==0){var j="";if(userprofile.userID==userprofile.authUserID){j=i18n.translateWithOneParameter("6809",'<a href="/groups/#creategroup/">'+i18n.translate("2099")+"</a>")}else{j=i18n.translate("6808")}var r=new noContentRow();r.view({obj:m,text:j})}var k=doc.createElement("div");k.className="clearBoth";m.appendChild(k)},markupContentNews:function(i,g,o){i.className="ul-modules news-content";i.innerHTML="";var c=i18n.translate("1071");var m=i18n.translate("1817");g=g.news;for(var n in g){if(g[n].headline.toLowerCase().indexOf(o.toLowerCase())==-1){continue}var f="";var e="";var h="";if(g[n].comments>0){h=', <a href="'+g[n].link+'#kom">'+m+" "+g[n].comments+"</a>"}var a=g[n].thumb;var k=g[n].thumbpath;if(g[n].teaser.length>0){f+=g[n].teaser}if(g[n].created!=""){e+=g[n].created}if(k!=null&&k!=undefined){a='<div class="pic"><a href="'+g[n].link+'"><img src="'+k+'" /></a></div>'}else{a=""}var b="";b+="    "+a+"";b+='    <div class="info">';b+='        <p><a class="headline" href="'+g[n].link+'">'+g[n].headline+"</a></p>";b+='        <p class="savedate gray">'+e+h+"</p>";b+='        <p class="teaser">'+f+"</p>";b+="    </div>";var j=doc.createElement("li");j.innerHTML=b;i.appendChild(j)}if(g.length==0){var l="";if(userprofile.userID==userprofile.authUserID){l=i18n.translateWithOneParameter("6343",'<a href="/News/editnews.aspx?new=1">'+i18n.translate("1350")+"</a>")}else{l=i18n.translate("6344")}var d=new noContentRow();d.view({icon:"IS_30_News",obj:i,text:l})}var b=doc.createElement("div");b.className="clearBoth";i.appendChild(b)},getRating:function(c,b){if(b==0){return""}var a=parseInt(c*13);var d='<div class="rating"><div class="floatLeft">';d+='<ul class="rating-small-not-editable">';d+='<li class="current" data-type="{TYP}" style="width:'+a+'px;"></li>';d+="<li><div >1</div></li>";d+='<li><div class="two">2</div></li>';d+='<li><div class="three">3</div></li>';d+='<li><div class="four">4</div></li>';d+='<li><div class="five">5</div></li>';d+='<br class="clearBoth" />';d+="</ul>";d+="</div>";d+='<div class="rating-text-small-not-editable floatLeft"><span>'+b+"</span></div>";d+='<br class="clearBoth" /></div>';return d},markupContentOffers:function(search,objSearch){var obj=null;var object=null;if(objSearch==undefined){obj=userprofile.obj.offers.shop[0].my_products;object=userprofile.obj.offers}else{obj=objSearch.shop[0].my_products;object=objSearch}var ul=userprofile.objOffers;ul.className="ul-modules offers-content-"+userprofile.typeOffers;ul.innerHTML="";var free=i18n.translate("6225");for(var t in obj){var typ=obj[t].sellTyp;if(obj[t].headline==null){continue}var headline="";if(obj[t].headline){headline=obj[t].headline.toLowerCase()}if(headline.indexOf(search.toLowerCase())==-1){continue}var subheadline="";var uvp="";if(obj[t].subheadline!=null){subheadline=obj[t].subheadline}if(obj[t].uvp>0){uvp='<span class="uvp">'+formatCurrency(obj[t].uvp)+"</span>&nbsp;"}var price="";if(typ==1){if(shop.toRightCurrency(obj[t].price)>0){price='<span class="price-big">'+formatCurrency(obj[t].price)+"</span>"}if(obj[t].priceIsFree){price='<span class="price-big">'+i18n.translate("6225")+"</span>"}}else{if(typ==2){price='<h6 name="price">Immobile</h6>'}else{if(typ==3){}}}if(obj[t].ASIN){if(obj[t].ASIN.length>0){price='<span class="price-big">'+getAmazonButton(object.shop[0].amazonProducts,obj[t].ASIN,true)+"</span>"}}if(obj[t].amazonLink){if(obj[t].amazonLink.length>0){typ=3}}var info="";var deliveryInfo="";if(typ==1){if(obj[t].deliveryTyp==1||obj[t].deliveryTyp==2){deliveryInfo+=i18n.translateWithOneParameter("6221",formatCurrency(obj[t].delivery));if(shop.toRightCurrency(obj[t].free_shipping)>0){deliveryInfo+=",&nbsp;"+i18n.translate("6235")+": "+formatCurrency(obj[t].free_shipping)+""}else{deliveryInfo+=""}deliveryInfo+=", "+i18n.translate("866")+": "+obj[t].deliveryTime+" "+obj[t].deliveryTimeTyp+""}else{if(obj[t].deliveryTyp==3){var selfPickedUp=obj[t].selfPickedUp;if(selfPickedUp!=""&&selfPickedUp!=undefined&&selfPickedUp!=null){selfPickedUp=" in: "+selfPickedUp+""}else{selfPickedUp=""}info+=""+i18n.translate("6223")+"";info+=selfPickedUp}else{if(obj[t].deliveryTyp==4){info+=""+i18n.translate("1491")+""}}}}var div="";div+='    <div class="pic"><a href="'+obj[t].link+'"><img src="'+obj[t].thumb+'" /></a></div>';div+='    <div class="info">';div+='        <p class="headline"><a class="headline" href="'+obj[t].link+'">'+obj[t].headline+"</a>"+userprofile.getRating(obj[t].ratingID,obj[t].cntRating)+"</p>";div+='        <br class="clearBoth" />';div+="        <p>"+uvp+""+price+' <span class="deliveryInfo">'+deliveryInfo+"</span></p>";div+='        <p class="subheadline gray">'+info+"</p>";div+="    </div>";var li=doc.createElement("li");li.innerHTML=div;ul.appendChild(li)}if(obj.length==0){var text="";if(userprofile.userID==userprofile.authUserID){text=i18n.translateWithOneParameter("6337",'<a href="/shop/create/">'+i18n.translate("1350")+"</a>")}else{text=i18n.translate("6338")}var p=new noContentRow();p.view({icon:"IS_30_Cart",obj:ul,text:text})}var br=doc.createElement("br");br.className="clearBoth";ul.appendChild(br);var pagingCallback=function(resp){SmoothScroll.scroll("div_content");userprofile.markupContentOffers("",eval("("+resp+")"))};userprofile.div_pagingBottom.innerHTML="";paging.markup(userprofile.div_pagingBottom,object.count,object.page,"/profile/ajax/","hash=offers&search="+userprofile.search+"&profile="+userprofile.alias,pagingCallback,"GET",{css:"floatRight"})},init:function(){userprofile.hash=location.hash.replace("#","");var b=doc.createElement("div");b.id="div_mainProfile";doc.getElementById(div_content).appendChild(b);var e=doc.createElement("div");e.id=div_left;doc.getElementById(div_content).appendChild(e);var c=doc.createElement("div");c.id=div_middle;b.appendChild(c);var f=doc.createElement("div");if(userprofile.profileTyp==2){f.className="long"}f.id=div_middle_inner;c.appendChild(f);if(userprofile.profileTyp==1){var d=doc.createElement("div");d.id=div_right;b.appendChild(d)}var a=doc.createElement("div");a.className="clearBoth";b.appendChild(a);a=doc.createElement("div");a.className="clearBoth";doc.getElementById(div_content).appendChild(a);if(userprofile.hash!=""){userprofile.module(userprofile.hash)}},markupContentModules:function(d){if(1==2){var d=userprofile.obj.contentModules.contentModules;var c=doc.createElement("ul");c.className="ul-modules contentModules";for(var b in d){var e="";e+='    <div class="contentModul-Button" onclick="self.location.href=\''+d[b].link+'\'" title="'+d[b].headline+'">';e+='    <div class="contentModul-Button-inner">';e+='        <div class="picture"><img src="'+d[b].picture+'" /></div>';e+='        <div class="head">'+d[b].headline+"</div>";e+='        <div class="text">'+d[b].text+"</div>";if(d[b].lastModified){e+='  <div class="footer"><strong>zuletzt gepflegt:</strong> '+d[b].lastModified+"</div>"}e+="    </div>";var a=doc.createElement("li");a.className="floatLeft";a.innerHTML=e;c.appendChild(a)}var e=doc.createElement("div");e.className="clearBoth";c.appendChild(e);doc.getElementById(div_middle_inner).appendChild(c)}},markup:function(a){if(a.typ=="admin"){userprofile.edit=a.edit;userprofile.rightEdit=a.edit;userprofile.intern=a.intern;userprofile.userID=a.userID;userprofile.alias=a.alias;userprofile.authUserID=a.authUserID;userprofile.lang=a.lang;userprofile.userTyp=a.userTyp;userprofile.gender=a.gender;userprofile.profileTyp=a.profileType;userprofile.isContact=a.isContact;userprofile.authUsername=a.authUsername;modalGallery.langID=userprofile.lang;modalGallery.intern=userprofile.intern}else{if(a.typ=="start"){userprofile.obj.start=a;if(userprofile.isContact){userprofile.markupPersonalInformation(a)}else{if(userprofile.hash==""){userprofile.module("profile")}}}else{if(a.typ=="contentModules"){userprofile.obj.contentModules=a;if(location.hash!=""){return false}userprofile.markupContentModules(a)}else{if(a.typ=="interests"){userprofile.obj.profile=a;userprofile.markupPersonalInformation(a)}else{if(a.typ=="module"){userprofile.markupModule(a)}else{if(a.typ=="profilePictures"){userprofile.markupProfilePictures(a)}}}}}}if(userprofile.profileTyp==1){if(a.typ=="friends"){userprofile.markupFriends(a)}else{if(a.typ=="photos"){userprofile.markupPhotos(a)}else{if(a.typ=="offers"){userprofile.markupOffers(a)}else{if(a.typ=="bookmarks"){userprofile.markupBookmarks(a)}else{if(a.typ=="actions"){userprofile.markupActions(a)}else{if(a.typ=="discussions"){userprofile.markupDiscussions(a)}else{if(a.typ=="groups"){userprofile.markupGroups(a)}else{if(a.typ=="news"){userprofile.markupNews(a)}}}}}}}}}},markupDiscussions:function(b){var d=b.discussions;if(d.length==0){return false}var e=doc.createElement("h2");e.innerHTML=b.headline;e.onclick=function(){userprofile.module("")};e.className="op-hover hover widget-headline gl-background gl-border";doc.getElementById(div_right).appendChild(e);var f=doc.createElement("ul");f.className="discussions ul-modules-widget";doc.getElementById(div_right).appendChild(f);var g=i18n.translate("652");var c=i18n.translate("6361");for(var i in d){var a="";a+='<a class="head" href="'+d[i].link+'">'+d[i].headline+"</a>";a+='<div class="category">'+d[i].category+"</div>";a+='<span class="created">'+d[i].createdUser+"</span><br />";a+='<span class="lastModified gray">'+c+" "+d[i].lastModified+" ~ "+g+" </span>";a+='<a class="username gray" href="/'+d[i].username+'/">'+d[i].username+"</a>";var h=doc.createElement("li");h.innerHTML=a;f.appendChild(h)}},login:function(){var a=new ajax();a.call({url:"/comments/login/",type:"POST",parameter:"T=profile&URL="+window.location,success:function(resp){var oJson=eval("("+resp+")");enablediv_table("hiddendiv");doc.getElementById("innerdiv").innerHTML=oJson.comments_login[0].modal}})},markupActions:function(d){var k=doc.createElement("ul");k.className="actions ul-modules gl-border gl-background";doc.getElementById(div_right).appendChild(k);var e=d.actions;for(var p in e){var b=doc.createElement("div");var n=doc.createElement("a");n.innerHTML=e[p].name;if(e[p].id=="message"){if(userprofile.intern){n.id="message_"+userprofile.userID+"_"+userprofile.alias;n.onclick=userprofile.clickContactsSendMessage}else{n.onclick=userprofile.login}}else{if(e[p].id=="invite"){if(userprofile.intern){n.id="invite_"+userprofile.userID+"_"+userprofile.alias;n.onclick=userprofile.clickContactsInvite}else{n.onclick=userprofile.login}}else{if(e[p].id=="remove"){if(userprofile.intern){n.id="remove_"+userprofile.userID+"_"+userprofile.alias;n.onclick=userprofile.clickContactsRemove}else{n.onclick=userprofile.login}}}}b.appendChild(n);var f=doc.createElement("i");f.className="floatLeft "+e[p].css;b.appendChild(f);var h=doc.createElement("br");h.className="clearBoth";b.appendChild(h);var o=doc.createElement("li");o.appendChild(b);var c=e[p].subs;if(c!=undefined){if(c.length>0){var l=doc.createElement("ul");l.className="ul-modules";for(var g in c){var j='<a href="'+c[g].link+'">'+c[g].name+"</a><span>|</span>";var m=doc.createElement("li");m.innerHTML=j;l.appendChild(m)}o.appendChild(l);var b=doc.createElement("div");b.className="clearBoth";o.appendChild(b)}}k.appendChild(o)}},markupBookmarks:function(f){var e=f.bookmarks;if(e.length==0){return""}var d=doc.createElement("h2");d.innerHTML=f.headline;d.onclick=function(){userprofile.module("bookmarks")};d.className="op-hover hover widget-headline gl-background gl-border";doc.getElementById(div_right).appendChild(d);var c=doc.createElement("ul");c.className="bookmarks ul-modules-widget";doc.getElementById(div_right).appendChild(c);for(var b in e){var g="";g+='<a class="pic" href="/bookmarking/'+e[b].alias+'/"><img  src="'+e[b].thumbpath+'" /></a>';g+='<div class="info">';g+='    <a href="/bookmarking/'+e[b].alias+'/">'+e[b].headline+"</a>";g+='    <p class="gray">'+e[b].description+"</p>";g+="    <span>"+e[b].created+"</span>";g+="</div>";var a=doc.createElement("li");a.innerHTML=g;c.appendChild(a)}},markupGroups:function(g){var f=g.groups;if(f.length==0){return""}var e=doc.createElement("h2");e.innerHTML=g.headline;e.onclick=function(){userprofile.module("groups")};e.className="op-hover hover widget-headline gl-background gl-border";doc.getElementById(div_right).appendChild(e);var d=doc.createElement("ul");d.className="groups ul-modules-widget";doc.getElementById(div_right).appendChild(d);var c=i18n.translate("1983");for(var b in f){var h="";h+='<div class="pic">';h+='    <a href="/groups/'+f[b].alias+'/"><img  src="'+f[b].thumbnail+'" /></a>';h+="</div>";h+='<div class="info" style="margin-left:90px;">';h+='    <a class="headline" href="/groups/'+f[b].alias+'/">'+f[b].headline+"</a><br />";h+='    <span class="info">'+c+": "+f[b].members+"</span>";h+="</div>";var a=doc.createElement("li");a.innerHTML=h;d.appendChild(a)}},openRight:function(b,a){ul=b.childNodes[3];ul.style.display="block"},blurRight:function(b,a){ul=b.childNodes[3];ul.style.display="none"},setRight:function(g,f){cancelBubbleEvent(f);ul=g.parentNode;var h=ul.childNodes;for(var c in h){if(h[c].className!=undefined){if(h[c].className.indexOf("head")==-1){h[c].className="clearBoth"}}}g.className="selected clearBoth";ul.style.display="none";var b=(ul.parentNode);b.id="button_"+g.id;var d=b.childNodes[1];d.innerHTML="&nbsp;"+arrText[g.id.split("_")[2]];var a=b.childNodes[0];a.className="IS_18 "+arr[g.id.split("_")[2]]+" db floatLeft"},markupEditProfilePictures:function(){if(userprofile.edit==false){return false}var alias=(window.location.pathname).replace(/\//g,"");var o="";var a=new ajax();a.call({url:"/profile/ajax/",type:"GET",parameter:"profile="+alias+"&hash=profilePictures",success:function(resp){var upload=resp;var uploadjson=eval("("+resp+")");uploader.uploadtext=uploadjson.uploader.uploadtext;uploader.minsize=200;uploader.filetype=uploadjson.uploader.filetype;uploader.maxfilesize=uploadjson.uploader.maxfilesize;uploader.maxfiles=uploadjson.uploader.maxfiles;uploader.uploadtype=uploadjson.uploader.uploadtype;uploader.md5=uploadjson.uploader.md5;uploader.path=uploadjson.uploader.path;uploader.id=uploadjson.uploader.id;uploader.nofiles=uploadjson.uploader.nofiles;uploader.addcaption=uploadjson.uploader.addcaption;uploader.itemcounter=0;uploader.chooseText=uploadjson.uploader.chooseText;uploader.afterUpload=function(){var a=new ajax();a.call({url:"/profile/ajax/",type:"GET",parameter:"alias="+userprofile.alias+"&hash=updateProfilePictures",success:function(resp){var json=eval("("+resp+")");userprofile.markupProfilePictures(json)}})};o+=uploader.getexistingfiles(upload);var b=new ajax();b.call({url:"/template/getTemplate/",type:"GET",parameter:"name=ModalPopup.html",success:function(resp){var oJson=eval("("+resp+")");modal.reset();modal.selfTemplate=oJson.Templates[0].ModalPopup;modal.width=750;modal.header=i18n.translate("6321");modal.content=o;modal.close="modal.hide('modalPopup');";modal.buttons='<a class="floatRight global_Button" onclick="modal.hide(\'modalPopup\');">'+i18n.translate("1939")+"</a>";modal.show("modalPopup");uploader.initUpload();uploader.initevents(upload)}})}})},markupPersonalInformation:function(f){var e=f.values;var a=false;var d=false;var c=0;for(var b in e){if(e[b].cntRealSubs>e[b].cntSubs){a=true}if(c==0){if(e[b].cntSubs>0){if(userprofile.obj[e[b].id]!=undefined){userprofile.objProfile=userprofile.obj[e[b].id];userprofile.markupProfile(userprofile.obj[e[b].id],undefined,false)}else{userprofile.objProfile=e[b];userprofile.markupProfile(e[b],undefined,false)}}}else{if(e[b].cntSubs>0){if(userprofile.obj[e[b].id]!=undefined){userprofile.markupEditBoxes(userprofile.obj[e[b].id],undefined,false,false)}else{userprofile.markupEditBoxes(e[b],undefined,false,false)}}}userprofile.obj[e[b].id]=e[b];c++}if(userprofile.isContact==false){userprofile.markupShowPrivacyInfo(a)}if(location.hash==""&&(userprofile.isContact)){userprofile.markupWall()}},markupWall:function(){var a=doc.createElement("h2");a.className="widget-headline gl-background gl-border";a.innerHTML=i18n.translate("182");doc.getElementById(div_middle_inner).appendChild(a);var b=doc.createElement("div");b.id="div_com";doc.getElementById(div_middle_inner).appendChild(b);comments.invID=userprofile.userID;comments.div="div_com";comments.startpage=false;comments.modul="pinboard";comments.langID=userprofile.lang;comments.intern=userprofile.intern;comments.preInit()},markupShowPrivacyInfo:function(a){if(a){var b=new noContentRow();b.view({obj:doc.getElementById(div_middle_inner),text:i18n.translate("6322")})}},markupEditBoxes:function(c,d,r,g){var i="";var b="";var j=false;if(r==true){i=" edit"}if(userprofile.edit){b=" box-hover"}if(d==undefined){j=true;d=doc.createElement("div")}d.className="box-middle"+i+b;var n=d;if(r==true){n=doc.createElement("form");n.className="formular";n.id="form_"+c.id;var h=doc.createElement("input");h.id="profilCat";h.value=c.id;h.setAttribute("type","hidden");n.appendChild(h);d.appendChild(n)}var q=doc.createElement("h5");q.className="gl-h5";q.innerHTML=c.headline;n.appendChild(q);if(userprofile.edit){if(r==false){if((r==undefined||r==false)&&userprofile.rightEdit==true){var p=doc.createElement("a");p.innerHTML=i18n.translate("2240");p.onclick=function(a){cancelBubbleEvent(a);d.innerHTML="";userprofile.markupEditBoxes(c,d,true,g)};p.className="floatRight";q.appendChild(p)}}}var l=doc.createElement("ul");l.className=c.css+" ul-modules";n.appendChild(l);if(j){doc.getElementById(div_middle_inner).appendChild(n)}var f=c.values;for(var s in f){content.getContent(f[s],l,r)}if(r&&userprofile.rightEdit==true){var o=l.getElementsByTagName("textarea");try{for(var s in o){autoGrowField(o[s],200)}}catch(k){}var m=doc.createElement("div");m.className="buttons";var p=doc.createElement("a");p.className="global_Button active floatRight";p.innerHTML=i18n.translate("217");p.onclick=function(a){cancelBubbleEvent(a);userprofile.saveProfileInformation(form.values("form_"+c.id),d,c)};m.appendChild(p);p=doc.createElement("a");p.className="global_Button floatRight";p.innerHTML=i18n.translate("1029");p.onclick=function(a){cancelBubbleEvent(a);d.innerHTML="";if(g==false){userprofile.markupEditBoxes(c,d,false,false)}else{userprofile.markupProfile(c,d,false)}};m.appendChild(p);p=doc.createElement("br");p.className="clearBoth";m.appendChild(p);n.appendChild(m)}},saveProfileInformation:function(formvalues,main,resp){if(userprofile.rightEdit==false){return false}var btnvalues="";var btns=doc.getElementsByTagName("li");for(var t in btns){if(btns[t]!=undefined){if(btns[t].id!=undefined&&(btns[t].id)!=""&&(btns[t].id).indexOf("right")>-1){btnvalues+="&"+(btns[t].id)+"=true"}}}var alias=(window.location.pathname).replace(/\//g,"");var a=new ajax();a.call({url:"/profile/save/",type:"POST",parameter:formvalues+"&alias="+alias+"&"+btnvalues,success:function(resp){resp=eval("("+resp+")");main.innerHTML="";userprofile.obj[resp.id]=resp;if(resp.values[0].id=="username"){userprofile.objProfile=resp;userprofile.markupProfile(resp,main,false)}else{userprofile.markupEditBoxes(resp,main,false,false)}}})},markupNews:function(f){var e=f.news;if(e.length==0){return false}var d=doc.createElement("h2");d.innerHTML=f.headline;d.onclick=function(){userprofile.module("news")};d.className="op-hover hover widget-headline gl-background gl-border";doc.getElementById(div_right).appendChild(d);var c=doc.createElement("ul");c.className="news ul-modules-widget";doc.getElementById(div_right).appendChild(c);for(var b in e){var g="";if(e[b].thumbpath!=null){g+='<a class="pic" href="/'+e[b].link+'"><img  src="'+e[b].thumbpath+'" /></a>'}g+='<div class="info">';g+='    <a href="'+e[b].link+'" class="headline">'+e[b].headline+"</a>";g+='    <p class="gray created">'+e[b].created+"</p>";g+="</div>";var a=doc.createElement("li");a.innerHTML=g;c.appendChild(a)}},markupOffers:function(g){var f=g.offers;if(f.length==0){return false}var e=doc.createElement("h2");e.innerHTML=g.headline;e.onclick=function(){userprofile.module("offers")};e.className="op-hover hover widget-headline gl-background gl-border";doc.getElementById(div_right).appendChild(e);var c=doc.createElement("ul");c.className="offers ul-modules-widget";doc.getElementById(div_right).appendChild(c);for(var b in f){var d="";if(f[b].sellTyp==1){if(shop.toRightCurrency(f[b].price)>0){d=""+formatCurrency(f[b].price)+""}if(f[b].priceIsFree){d=""+i18n.translate("6225")+""}}else{if(f[b].sellTyp==2){d="Immobile"}else{if(f[b].sellTyp==3){d=""+i18n.translate("6254")+""}}}var h="";h+='<div class="pic dtc">';h+='    <a href="'+f[b].link+'"><img class="db" src="'+f[b].thumb+'" /></a>';h+="</div>";h+='<div class="description dtc">';h+='    <a href="'+f[b].link+'" class="fwb">'+f[b].headline+"</a>";h+='    <p class="gray">'+f[b].teaser+"</p>";h+='    <span class="price-big">'+d+"</span>";h+="</div>";var a=doc.createElement("li");a.innerHTML=h;c.appendChild(a)}},markupPhotos:function(b){var d=b.photos;if(d.length==0){return false}var f=doc.createElement("h2");f.innerHTML=b.headline;f.onclick=function(){userprofile.module("photos")};f.className="op-hover hover widget-headline gl-background gl-border";doc.getElementById(div_right).appendChild(f);var g=doc.createElement("ul");g.className="photos ul-modules-widget";doc.getElementById(div_right).appendChild(g);var e=i18n.translate("347");var c=i18n.translate("346");for(var i in d){var a="";a+="<a onclick=\"modalGallery.init('"+d[i].alias+'\');"><img class="profile-shadow" src="'+d[i].thumbnail+'" /></a><br />';a+="<p>"+d[i].headline+"</p>";if(d[i].picturecount>1){a+="<span>"+d[i].picturecount+" "+e+"</span>"}else{a+="<span>"+d[i].picturecount+" "+c+"</span>"}var h=doc.createElement("li");h.innerHTML=a;g.appendChild(h)}var a=doc.createElement("div");a.className="clearBoth";g.appendChild(a)},markupProfilePictures:function(c){modalGallery.manualObj=c.profilePictures;modalGallery.galleries=[];var a=doc.createElement("div");if(doc.getElementById("profilePic")){a=doc.getElementById("profilePic");a.innerHTML=""}a.className="profilePic hover";if(c.profilePictures.length<=1){a.style.height="auto"}if(c.profilePictures.length>0){a.onclick=function(i){modalGallery.init(userprofile.userID,"profilePictures")}}if(userprofile.edit){var k=doc.createElement("a");k.className="db IS_18 IS_18_Edit";a.appendChild(k);a.className="profilePic profilePic-edit-hover";a.id="profilePic";k.onclick=function(i){cancelBubbleEvent(i);userprofile.markupEditProfilePictures()}}c=c.profilePictures;var b=Math.floor(Math.random()*7);var e=new Array();for(var d=0;d<7;d++){var l=Math.floor(Math.random()*100);var n=Math.floor(Math.random()*60);var j=Math.floor(Math.random()*30);e[d]=new Object();e[d]["left"]=l;e[d]["bottom"]=n;e[d]["max"]=j}var h=["first","second","third","fourth","fifth","sixth"];if(c.length>0){var f=doc.createElement("img");f.className="profile-shadow thumb "+h[0];f.src=c[0].large;a.appendChild(f);if(c.length>1){var g=doc.createElement("div");g.className="other";a.appendChild(g);var d=1;for(var m in c){if(d==3){break}if(d>1){var f=doc.createElement("img");f.className="profile-shadow thumb";f.src=c[m].small;g.appendChild(f)}d++}}}else{if(c.length==0){var f=doc.createElement("img");f.className="profile-shadow thumb first gl-background";switch(userprofile.userTyp){case 1:if(userprofile.gender==1){f.src="/_Themes/PhotoScheme/Icons/1759/l_female.png"}else{f.src="/_Themes/PhotoScheme/Icons/1759/l_male.png"}break;case 2:f.src="/_Themes/PhotoScheme/Icons/1759/l_company.png";break}a.appendChild(f)}}if(doc.getElementById("profilePic")){}else{doc.getElementById(div_left).appendChild(a)}},markupProfile:function(e,f,q){var m="";var c="";var l=false;if(q==true){m=" edit"}if(userprofile.edit){c=" box-hover"}if(f==undefined){l=true;f=doc.createElement("div")}f.className="box-middle"+m+c;var i=e.values;var j=[];for(var r in i){j[i[r].id]=i[r].content}var b=j.username;if(j.firstname!=undefined&&j.name!=undefined&&userprofile.userTyp==1){b=j.firstname+" "+j.name}var o=doc.createElement("h1");o.className="gl-h1";o.innerHTML=b;if(q==false){if((q==undefined||q==false)&&userprofile.rightEdit==true){var p=doc.createElement("a");p.innerHTML=i18n.translate("2240");p.onclick=function(a){cancelBubbleEvent(a);f.innerHTML="";userprofile.markupEditBoxes(e,f,true,true)};p.className="floatRight";o.appendChild(p)}}f.appendChild(o);var n="";if(n.substr(0,2)==", "){n=n.substr(2,n.length-1)}var d={usertyp:userprofile.userTyp,age:getAge(j.birthday),gender:j.sex,relationshipo:j.relationship,city:j.city,profession:j.profession,land:i18n.translate("6267")+" "+j.land};var k=doc.createElement("h2");k.className="gl-h2";k.innerHTML=userDetails(d);f.appendChild(k);var h="";if(j.aboutMe!=undefined){h=j.aboutMe}var g=doc.createElement("h3");g.innerHTML=h;g.className="gl-h3";f.appendChild(g);if(l){doc.getElementById(div_middle_inner).appendChild(f)}},markupModule:function(g){var c=doc.createElement("ul");c.id="modules";c.className="module ul-modules";doc.getElementById(div_left).appendChild(c);var f=g.module;for(var b in f){var e="";if(f[b].count!=undefined&&f[b].count>-1){e=" <span>("+f[b].count+")</span>"}var i="";if(f[b].link.substr(0,1)=="/"){i+='<a href="'+f[b].link+'" onclick="userprofile.module(\''+f[b].link+"');\">"+f[b].name+e+"</a>"}else{i+='<a href="#'+f[b].link+'" onclick="userprofile.module(\''+f[b].link+"');\">"+f[b].name+e+"</a>"}var a=doc.createElement("li");a.className="profile-module-li";a.innerHTML=i;c.appendChild(a)}var i=doc.createElement("div");i.className="clearBoth";c.appendChild(i);var d=doc.location.hash;if(d.length==0){userprofile.setModuleCSS("start")}},markupFriends:function(g){var f=g.friends;if(f.length==0){return false}var e=doc.createElement("h2");e.innerHTML=g.headline;e.onclick=function(){userprofile.module("friends")};e.className="op-op-hover hover op-hover hover widget-headline gl-background gl-border";doc.getElementById(div_left).appendChild(e);var d=doc.createElement("ul");d.className="contacts ul-modules-widget";doc.getElementById(div_left).appendChild(d);for(var c in f){var b={usertyp:f[c].usertype,age:f[c].age,land:f[c].land};var h="";h+='<div class="clearBoth">';h+='    <div class="dtc pic">';h+="    "+f[c].thumb;h+="    </div>";h+='    <div class="dtc name">';h+='        <a href="/'+f[c].username+'/">'+f[c].username+"</a><br />";h+='        <span class="gray">'+userDetails(b)+"</span>";h+="    </div>";h+="</div>";var a=doc.createElement("li");a.innerHTML=h;d.appendChild(a)}},removeRightColumn:function(){var b=document.getElementById(div_right);var a=document.getElementById(div_middle_inner);if(b){b.style.display="none"}if(a){a.style.marginRight=0}},addRightColumn:function(){var b=document.getElementById(div_right);var a=document.getElementById(div_middle_inner);if(b){b.style.display="block"}if(a&&userprofile.profileTyp!=2){a.style.marginRight="29.5%"}},getLand:function(obj){var a=new ajax();a.call({url:"/profile/land/",parameter:"land="+obj.value,type:"GET",success:function(resp){resp=eval("("+resp+")");var objInner=doc.getElementById("profileLandTool");objInner.innerHTML="";var objOuter=objInner.parentNode;objOuter.className="autoComplete-tooltip db";var o=resp.countries;for(var t in o){var a=doc.createElement("a");a.innerHTML=o[t].name;a.onclick=function(){doc.getElementById("profil_land").value=this.innerHTML;objOuter.className="autoComplete-tooltip dn"};objInner.appendChild(a)}}})},getProfession:function(obj){var a=new ajax();a.call({url:"/profile/profession/",parameter:"profession="+obj.value,type:"GET",success:function(resp){resp=eval("("+resp+")");var objInner=doc.getElementById("profileProfessionTool");objInner.innerHTML="";var objOuter=objInner.parentNode;objOuter.className="autoComplete-tooltip db";var o=resp.professions;for(var t in o){var a=doc.createElement("a");a.innerHTML=o[t].name;a.onclick=function(){doc.getElementById("profil_profession").value=this.innerHTML;objOuter.className="autoComplete-tooltip dn"};objInner.appendChild(a)}}})}};function userDetails(a){var c="";if(a.usertyp==1&&a.age!=undefined){c=a.age+", "}if(a.usertyp==1&&a.gender!=""&&a.gender!=undefined){c+=a.gender+", "}if(a.usertyp==1&&a.relationship!=""&&a.relationship!=undefined){c+=a.relationship+", "}if(a.land!=""&&a.land!=undefined){c+=a.land+", "}var b="";if(a.profession!=""&&a.profession!=undefined){b+=a.profession}if(a.withSpan){return'<span class="details">'+Left(c,c.length-2)+'</span><br /><span class="gray">'+b+"</span>"}else{return Left(c,c.length-2)+"<br />"+b}}var news={create:function(e){var c=document.createElement("form");c.className="gl-background formular";var a;var d;var f;var b;var b=document.createElement("div");b.className="formular-inner";c.appendChild(b);d=document.createElement("label");d.innerHTML="Artikel schreiben";b.appendChild(d);f=document.createElement("div");f.className="f-input-outer input";a=document.createElement("input");a.className="f-input f-input-shadow";a.value="Überschrift";f.appendChild(a);b.appendChild(f);f=document.createElement("div");f.className="f-textarea-outer input";a=document.createElement("textarea");a.className="f-textarea f-input-shadow";a.value="Beschreibung";f.appendChild(a);b.appendChild(f);e.insertBefore(c,e.firstChild)},save:function(){}};function getAge(e){var d=new Date();var b=new Date(e);var c=d.getFullYear()-b.getFullYear();var a=d.getMonth()-b.getMonth();if(a<0||(a===0&&d.getDate()<b.getDate())){c--}return c}var bookmarks={bookmarkListObject:null,clickSave:false,create:function(){var a=new ajax();a.call({url:"/bookmarking/create/",success:function(resp){var obj=new Function("return "+resp)();var b=new ajax();b.call({url:"/template/getTemplate/",type:"GET",parameter:"name=ModalPopup.html",success:function(resp){var object=eval("("+resp+")");var o='<form id="frm_create_bookmark"><div class="createBookmark">';o+='      <div id="formloading">';o+=obj.bookmarkform.wait;o+='         <br /><img src="/_Themes/PhotoScheme/_global/load.gif" />';o+="      </div>";o+='      <div class="f-headers-top eighteen">';o+=obj.bookmarkform.urlheadline;o+="      </div>";o+='      <div class="f-input-outer">';o+='         <input type="text" class="f-input" id="url" />';o+="      </div>";o+='      <div class="f-headers-top eighteen">';o+=obj.bookmarkform.titleheadline;o+="      </div>";o+='      <div class="f-input-outer">';o+='         <input type="text" class="f-input" id="title" />';o+="      </div>";o+='      <div class="f-headers-top eighteen">';o+=obj.bookmarkform.tagsheadline;o+="      </div>";o+='      <div style="width: 100%;">';o+='         <div id="tags"></div>';o+="      </div>";o+='      <div id="taglist"></div>';o+='      <div class="f-headers-top floatleft">';o+=obj.bookmarkform.privates;o+="      </div>";o+='      <div class="floatleft">';o+='         <input style="margin-left: 10px;margin-top: 8px;" type="checkbox" value="" id="private" />';o+="      </div>";o+='      <br class="clearboth" />';o+="</div></form>";modal.reset();modal.selfTemplate=object.Templates[0].ModalPopup;modal.width=600;modal.header=obj.bookmarkform.modalheader;modal.content=o;modal.close="modal.hide('modalPopup');";modal.buttons='<a class="floatRight global_Button active" onclick="bookmarks.save(\'frm_create_bookmark\');">'+obj.bookmarkform.save+'</a><a class="floatRight global_Button" onclick="modal.hide(\'modalPopup\');">'+obj.bookmarkform.aboard+'</a><a id="loading" class="floatRight"></a>';modal.show("modalPopup");itembox.id="tags";if(document.getElementById("tags")){document.getElementById("tags").onclick=function(){itembox.addItem()}}if(document.getElementById("tags")){document.getElementById("tags").onkeydown=function(e){var KeyID=(window.event)?event.keyCode:e.keyCode;switch(KeyID){case 13:itembox.addItem();break}}}if(document.getElementById("url")){document.getElementById("url").onchange=function(){if(document.getElementById("url").value.toString().length>6){bookmarks.getTags(doc.getElementById("tags"),document.getElementById("url").value)}}}if(document.getElementById("url")){document.getElementById("url").focus()}}})}})},save:function(frm){document.getElementById("loading").innerHTML='<img src="/_Themes/PhotoScheme/Icons/1759/loading.gif" />';if(bookmarks.clickSave==false){bookmarks.clickSave=true;var url="";if(document.getElementById("url")){url=document.getElementById("url").value}var title="";if(document.getElementById("title")){title=document.getElementById("title").value}if(document.getElementById("private")){var visible=document.getElementById("private").checked}if(document.getElementById("tags")){var taggs=document.getElementById("tags").getElementsByTagName("input")}var categorystring="";var tags="";for(var o in taggs){if(taggs[o].value!=undefined&&taggs[o].value!=""){tags+=taggs[o].value+";"}}url=encodeURIComponent(url);tags=encodeURIComponent(tags);var a=new ajax();a.call({url:"/bookmarking/insert/",type:"POST",parameter:"url="+url+"&visible="+visible+"&tags="+tags+"&categories="+categorystring+"&title="+title,success:function(resp){document.getElementById("loading").innerHTML="";var json=eval("("+resp+")");var obj=json.bookmark;for(var t in obj){var description="";var created="";var urlhost="";if(obj[t].description.length>0){description+=obj[t].description}if(obj[t].urlhost!=""){urlhost+='<a href="http://'+obj[t].urlhost+'" target="_blank">'+obj[t].urlhost+"</a>"}if(obj[t].created!=""){created+=" · "+obj[t].created}var div=document.createElement("div");div.className="floatLeft grid_16";var div_info=document.createElement("div");div_info.className="info";div_info.innerHTML+='<p><a class="bookmarkheadline" target="_blank" href="'+obj[t].url+'">'+obj[t].headline+"</a></p>";div_info.innerHTML+='<p class="savedate gray">'+urlhost+created+"</p>";div_info.innerHTML+='<p class="bookmarkdescription">'+description+"</p>";div.appendChild(div_info);var li=doc.createElement("li");li.appendChild(div);div=document.createElement("div");div.className="floatLeft pic";var div_inner=document.createElement("div");div_inner.className="pic-inner";var a=document.createElement("a");a.target="_blank";a.href=obj[t].url;var img=new Image();img.onerror=function(){onerror=null;this.src="/_Themes/PhotoScheme/_global/dummy.gif"};img.src=obj[t].thumbpath;a.appendChild(img);div_inner.appendChild(a);div.appendChild(div_inner);li.appendChild(div);var br=document.createElement("br");br.className="clearBoth";li.appendChild(br);bookmarks.bookmarkListObject.insertBefore(li,bookmarks.bookmarkListObject.firstChild);modal.hide("modalPopup")}bookmarks.clickSave=false}})}},getTags:function(obj,url){obj.innerHTML='<img src="/_Themes/PhotoScheme/Icons/1759/loading.gif" />';var a=new ajax();a.call({url:"/bookmarking/gettags/",type:"POST",parameter:"url="+url,success:function(resp){obj.innerHTML="";var json=eval("("+resp+")");document.getElementById("title").value=json.title;var o=json.keywords.array;for(var t in o){itembox.addItem(o[t])}}})},overtake:function(){var c=this;var b=new ajax();b.call({url:"/bookmarking/overtake/",type:"POST",parameter:"id="+c.id,success:function(a){c.className="IS_18_FavOn IS_18 db"}})},remove:function(c){var b=new ajax();b.call({url:"/bookmarking/delete/",type:"POST",parameter:"id="+c,success:function(f){if(userprofile.authUserID==userprofile.userID){var a=document.getElementById(c).parentNode.parentNode.parentNode;var e=a.parentNode;e.removeChild(a)}else{var d=document.getElementById(c);d.className="IS_18_FavOff IS_18 db";d.id=c;d.onclick=bookmarks.overtake}modal.hide("modalPopup")}})},deleteModal:function(){var btn=this;var b=new ajax();b.call({url:"/template/getTemplate/",type:"GET",parameter:"name=ModalPopupWithoutHeadline.html",success:function(resp){var object=eval("("+resp+")");var o=i18n.translate("6358");modal.reset();modal.selfTemplate=object.Templates[0].ModalPopupWithoutHeadline;modal.content=o;modal.width=320;modal.close="modal.hide('modalPopup');";modal.buttons='<a class="floatRight global_Button active" onclick="bookmarks.remove('+btn.id+');">'+i18n.translate("6359")+'</a><a class="floatRight global_Button" onclick="modal.hide(\'modalPopup\');">'+i18n.translate("1939")+'</a><a id="loading" class="floatRight"></a>';modal.show("modalPopup")}})}};function PreloadImage(a,c){var b=new Image();b.onload=function(){if(!b){return}b=b.onload=b.onabort=b.onerror=null};b.src=imageSrc}var textareas=[];function autoGrowField(b,a){}var groups={join:function(obj,groupID,headline){var a=new ajax();a.call({url:"/groups/join/",type:"GET",parameter:"id="+groupID,success:function(resp){var object=new Function("return "+resp)();var b=new ajax();b.call({url:"/template/getTemplate/",type:"GET",parameter:"name=ModalPopupWithoutHeadline.html",success:function(resp){var oJson=eval("("+resp+")");message.selfTemplate=oJson.Templates[0].ModalPopupWithoutHeadline;modal.reset();modal.selfTemplate=oJson.Templates[0].ModalPopupWithoutHeadline;modal.width=320;if(object.join=="directly"){modal.content=i18n.translateWithOneParameter("6354",headline)}else{if(object.join=="confirm"){modal.content=i18n.translateWithOneParameter("6355",headline)}}modal.close="modal.hide('modalPopup');";modal.buttons='<a onclick="modal.hide(\'modalPopup\');" class="global_Button floatRight">'+i18n.translate("1939")+"</a>";modal.show("modalPopup");obj.style.display="none"}})}})}};var contacts={remove:function(c){var b=new ajax();b.call({url:"/contacts/remove/",type:"GET",parameter:"userID="+c,success:function(d){var a=new Function("return "+d)();var e=doc.getElementById("li_contact_"+a.contact);if(e){e.className="disable"}modal.hide("modalPopup");window.location.reload()}})},invite:function(userID){var a=new ajax();a.call({url:"/contacts/invite/",type:"GET",parameter:"userID="+userID,success:function(resp){var object=new Function("return "+resp)();var b=new ajax();b.call({url:"/template/getTemplate/",type:"GET",parameter:"name=ModalPopup.html",success:function(resp){var oJson=eval("("+resp+")");message.selfTemplate=oJson.Templates[0].ModalPopup;modal.reset();modal.selfTemplate=oJson.Templates[0].ModalPopup;modal.width=320;modal.header=i18n.translate("6348");modal.content=i18n.translateWithOneParameter("6349",object.username);modal.close="modal.hide('modalPopup');modal.hide('modalPopup2');";modal.buttons="<a onclick=\"modal.hide('modalPopup');modal.hide('modalPopup2');\" class=\"global_Button floatRight\">"+i18n.translate("1939")+"</a>";modal.show("modalPopup2")}})}})}};var content={getVisibility:function(b,a,d){if(a==false){return""}var c="";c='<ul class="visibility">';c+='<li tabindex="'+d+'" id="button_'+d+"_"+b+'"  onclick="userprofile.openRight(this,event); return false;" onblur="userprofile.blurRight(this,event); " ><i class="IS_18 '+arr[b]+' db floatLeft"></i><span>&nbsp;'+arrText[b]+"</span>";c+="  <ul>";c+='      <li class="clearBoth head"><span>'+i18n.translate("6320")+"</span></li>";(b==1)?c+='<li id="'+d+'_1" onclick="userprofile.setRight(this,event);" class="selected clearBoth"><i class="IS_18 IS_18_World db floatLeft"></i><span>&nbsp;'+arrText[1]+"</span></li>":c+='<li id="'+d+'_1" onclick="userprofile.setRight(this,event);" class="clearBoth"><i class="IS_18 IS_18_World db floatLeft"></i><span>&nbsp;'+arrText[1]+"</span></li>";(b==2)?c+='<li id="'+d+'_2" onclick="userprofile.setRight(this,event);" class="selected clearBoth"><i class="IS_18 IS_18_Person db floatLeft"></i><span>&nbsp;'+arrText[2]+"</span></li>":c+='<li id="'+d+'_2" onclick="userprofile.setRight(this,event);" class="clearBoth"><i class="IS_18 IS_18_Person db floatLeft"></i><span>&nbsp;'+arrText[2]+"</span></li>";(b==3)?c+='<li id="'+d+'_3" onclick="userprofile.setRight(this,event);" class="selected clearBoth"><i class="IS_18 IS_18_Lock db floatLeft"></i><span>&nbsp;'+arrText[3]+"</span></li>":c+='<li id="'+d+'_3" onclick="userprofile.setRight(this,event);" class="clearBoth"><i class="IS_18 IS_18_Lock db floatLeft"></i><span>&nbsp;'+arrText[3]+"</span></li>";c+="  </ul></div>";c+="</li>";c+="</ul>";return c},selectFromObj:function(d,b){var c="";c+='<select id="'+d+'" class="global_Button" style="margin:0;background-color:transparent;float:none;" onchange="'+html.onchange+'">';for(var a in b){if(b[a].selected==b[a].id){c+='<option selected value="'+b[a].id+'">'+b[a].name+"</option>"}else{c+='<option value="'+b[a].id+'">'+b[a].name+"</option>"}}c+="</select>";return c},getContent:function(g,i,l){var a="div";if(g.viewTyp!=undefined){a=g.viewTyp}var o=g.inputTyp;var u=g.content;var e=true;var m="";var b="";var r="";var t=0;var s=0;var f=true;var k=true;if(g.validTyp!=undefined){r=g.validTyp}if(g.spaceAfter!=undefined){m=g.spaceAfter}if(g.viewLabel!=undefined){e=g.viewLabel}if(g.viewCSS!=undefined){b=g.viewCSS}if(g.right!=undefined){t=g.right}if(g.linked!=undefined){s=g.linked}if(g.viewEmpty!=undefined){f=g.viewEmpty}if(g.viewVisibility!=undefined){k=g.viewVisibility}var d="";if(l){if(o=="view"){return false}if(o!="birthday"){u=u.replace(/<br \/>/g,"\n");u=u.replace(/<br>/g,"\n")}if(o=="input"){u='<div class="f-input-outer"><input class="f-input f-input-shadow" value="'+u+'" id="profil_'+g.id+'" /></div>'}if(o=="/profile/land/"){u='<div class="f-input-outer"><div class="pr"><input class="f-input f-input-shadow" value="'+u+'" id="profil_land" onkeydown="userprofile.getLand(this);" /><div class="autoComplete-tooltip dn"><div id="profileLandTool" class="autoComplete-tooltip-inner"></div></div></div></div>'}if(o=="/profile/profession/"){u='<div class="f-input-outer"><div class="pr"><input class="f-input f-input-shadow" value="'+u+'" id="profil_profession" onkeydown="userprofile.getProfession(this);" /><div class="autoComplete-tooltip dn"><div id="profileProfessionTool" class="autoComplete-tooltip-inner"></div></div></div></div>'}else{if(o=="textarea"){u='<div class="f-input-outer"><textarea id="profil_'+g.id+'" onkeydown="autoGrowField(this,500);" class="f-textarea f-input-shadow">'+u+"</textarea></div>"}else{if(o=="birthday"){var p=new Date(u);u=html.select("birthday_day",1,31,p.getDate())+"&nbsp;";u+=html.select("birthday_month",1,12,p.getMonth()+1)+"&nbsp;";u+=html.select("birthday_year",1900,2000,p.getFullYear())+"&nbsp;"}else{if(o=="select"){u=content.selectFromObj("profil_"+g.id,g.values)}}}}var j="";j+='<div class="floatLeft wrapperRight edit"><div class="inner">'+u+"</div></div>";j+='<div class="floatLeft wrapperLeft edit">'+g.headline+"</div>";j+='<div class="floatLeft">'+content.getVisibility(t,k,"right_"+g.idForRight)+"</div>";j+='<div class="clearBoth"></div>';var h=doc.createElement("li");h.innerHTML=j;i.appendChild(h)}else{if((f==false&&u.length==0)||(u.length==0&&userprofile.authUserID!=userprofile.userID)){return false}if(u.length==0){u='<span class="no-item">'+i18n.translate("6333")+"&nbsp;</span>"}else{switch(s){case"1":u=regEx.activateYoutubeURL(u);break;case"2":u=regEx.activateWikiURL(u);break;case"3":u=regEx.activateAmazonURL(u);break;case"5":u=regEx.activateICQ(u);break;case"6":u=regEx.activateSkype(u);break;case"7":u=regEx.activateFacebook(u);break;case"8":u=regEx.activateTwitter(u);break;default:u=regEx.activateURLS(u);break}}if(a=="div"){var j="";j+='<div class="floatLeft wrapperRight view"><div class="inner">'+u+"</div></div>";j+='<div class="floatLeft wrapperLeft view">'+g.headline+"</div>";j+='<div class="clearBoth"></div>';var h=doc.createElement("li");h.innerHTML=j;i.appendChild(h)}else{if(a=="span"){var n=doc.createElement("span");n.innerHTML=u+m;i.appendChild(n)}else{if(a=="i"){var q='<i class="'+b+'"></i>';if(e){u='<span class="description">'+g.headline+":</span> "+u}var h=doc.createElement("li");h.innerHTML=q+u;i.appendChild(h)}}}}}};var cacheProfile={markupCachedItem:function(hash){doc.getElementById(div_middle_inner).innerHTML="";userprofile.search="";if(hash=="start"){userprofile.addRightColumn();userprofile.markupPersonalInformation(userprofile.obj.start);userprofile.markupContentModules(userprofile.obj.contentModules);userprofile.markupWall()}else{if(hash=="friends"){userprofile.removeRightColumn();var arr=new Array();arr.matrix=function(){userprofile.setTypeContacts("matrix")};arr.list=function(){userprofile.setTypeContacts("list")};var fb=new filterbox();fb.markup({active:userprofile.typeContacts,obj:doc.getElementById(div_middle_inner),headline:userprofile.obj.friends.headline,actions:arr,search:function(){userprofile.markupContactsFriends(this.value)}});var ul=doc.createElement("ul");doc.getElementById(div_middle_inner).appendChild(ul);userprofile.typeContacts="list";userprofile.objContacts=ul;userprofile.markupContactsFriends("")}else{if(hash=="photos"){userprofile.removeRightColumn();var arr=new Array();arr.matrix=function(){userprofile.setTypePhotos("matrix")};var fb=new filterbox();fb.markup({active:userprofile.typePhotos,obj:doc.getElementById(div_middle_inner),headline:userprofile.obj.photos.headline,actions:arr,search:function(){userprofile.markupContentPhotos(this.value)}});var ul=doc.createElement("ul");doc.getElementById(div_middle_inner).appendChild(ul);userprofile.objPhotos=ul;if(userprofile.obj.photos.friends.length>0){var h2_headline=doc.createElement("h1");h2_headline.className="gl-h1";h2_headline.innerHTML=userprofile.obj.photos.headlineFriends;doc.getElementById(div_middle_inner).appendChild(h2_headline);ul=doc.createElement("ul");doc.getElementById(div_middle_inner).appendChild(ul);userprofile.objFriendsPhotos=ul}if(userprofile.obj.photos.favoritesPhotos.length>0){var h2_headline=doc.createElement("h1");h2_headline.className="gl-h1";h2_headline.innerHTML=userprofile.obj.photos.favoritesHeadline;doc.getElementById(div_middle_inner).appendChild(h2_headline);ul=doc.createElement("ul");doc.getElementById(div_middle_inner).appendChild(ul);userprofile.objFavoritesPhotos=ul}userprofile.markupContentPhotos("")}else{if(hash=="bookmarks"){userprofile.removeRightColumn();var arr=new Array();arr.matrix=function(){userprofile.setTypeBookmarks("matrix")};arr.list=function(){userprofile.setTypeBookmarks("list")};var fb=new filterbox();fb.markup({active:userprofile.typeBookmarks,obj:doc.getElementById(div_middle_inner),headline:userprofile.obj[hash].headline,actions:arr,search:function(){var s=encodeURIComponent(this.value);userprofile.search=s;var a=new ajax();a.call({url:"/profile/ajax/",parameter:"profile="+userprofile.alias+"&hash="+hash+"&page=1&search="+s,type:"GET",success:function(resp){if(resp=="{}"){return false}var oJson=eval("("+resp+")");userprofile.markupContentBookmarks("",oJson)}})},addText:i18n.translate("6285"),addAction:bookmarks.create,addIcon:"IS_18_Person",intern:userprofile.intern});var div_pagingTop=doc.createElement("div");doc.getElementById(div_middle_inner).appendChild(div_pagingTop);userprofile.div_pagingTop=div_pagingTop;var ul=doc.createElement("ul");doc.getElementById(div_middle_inner).appendChild(ul);var div_pagingBottom=doc.createElement("div");doc.getElementById(div_middle_inner).appendChild(div_pagingBottom);userprofile.div_pagingBottom=div_pagingBottom;userprofile.objBookmarks=ul;userprofile.markupContentBookmarks("")}else{if(hash=="offers"){userprofile.removeRightColumn();var arr=new Array();arr.matrix=function(){userprofile.setTypeOffers("matrix")};arr.list=function(){userprofile.setTypeOffers("list")};var fb=new filterbox();fb.markup({active:userprofile.typeOffers,obj:doc.getElementById(div_middle_inner),headline:userprofile.obj[hash].headline,actions:arr,search:function(){userprofile.markupContentOffers(this.value)}});var div_pagingTop=doc.createElement("div");doc.getElementById(div_middle_inner).appendChild(div_pagingTop);userprofile.div_pagingTop=div_pagingTop;var ul=doc.createElement("ul");doc.getElementById(div_middle_inner).appendChild(ul);var div_pagingBottom=doc.createElement("div");doc.getElementById(div_middle_inner).appendChild(div_pagingBottom);userprofile.div_pagingBottom=div_pagingBottom;userprofile.objOffers=ul;userprofile.markupContentOffers("")}else{if(hash=="wall"){userprofile.removeRightColumn();var h1=doc.createElement("h1");h1.className="gl-h1";h1.innerHTML=userprofile.obj[hash].headline;doc.getElementById(div_middle_inner).appendChild(h1);var d=doc.createElement("div");d.id="com";doc.getElementById(div_middle_inner).appendChild(d);comments.invID=userprofile.obj[hash].userID;comments.div="com";comments.startpage=false;comments.modul="pinboard";comments.langID=userprofile.lang;comments.intern=userprofile.intern;comments.preInit()}else{if(hash=="profile"){userprofile.addRightColumn();userprofile.markupPersonalInformation(userprofile.obj[hash])}else{if(hash=="news"){userprofile.removeRightColumn();var arr=new Array();var ul=doc.createElement("ul");var fb=new filterbox();fb.markup({active:"list",obj:doc.getElementById(div_middle_inner),headline:userprofile.obj[hash].headline,actions:arr,search:function(){userprofile.markupContentNews(ul,userprofile.obj[hash],this.value)}});doc.getElementById(div_middle_inner).appendChild(ul);userprofile.markupContentNews(ul,userprofile.obj[hash],"")}else{if(hash=="groups"){userprofile.removeRightColumn();var arr=new Array();arr.list=function(){userprofile.setTypeGroups("list")};var fb=new filterbox();fb.markup({active:userprofile.typeGroups,obj:doc.getElementById(div_middle_inner),headline:userprofile.obj[hash].headline,actions:arr,search:function(){userprofile.markupContentGroups(this.value)},addText:i18n.translate("2099"),addAction:function(){location.href="/groups/#creategroup"},addIcon:"IS_18_Person",intern:userprofile.intern});var ul=doc.createElement("ul");doc.getElementById(div_middle_inner).appendChild(ul);userprofile.objGroups=ul;userprofile.markupContentGroups("")}}}}}}}}}}};
