
$(function(){$('#question').click(function(){if($('#new_question').is(':hidden')){$('#ivpi').attr('src','http://mamiweb.ivwbox.de/cgi-bin/ivw/CP/slidertoggle;[comment]?r='+escape(document.referrer)+'&d='+(Math.random()*100000));_gaq.push(['_trackPageview']);}
var isVisible=$('#new_question').is(':visible');var isHidden=$('#new_question').is(':hidden');$('#new_question').show(300);});$("#responsecontainer").load(configs.absolutpfad+'A_content/phpfile.php');var refreshId=setInterval(function(){$("#responsecontainer").load(configs.absolutpfad+'A_content/phpfile.php?randval='+Math.random());},30000);var flashvars2={'id':'player3','file':configs.mediaurl+'images/gruppen/spezial/neocate_4201.swf','autostart':'true'};var params2={'wmode':'transparent'};var attributes=false;swfobject.embedSWF(configs.mediaurl+'images/gruppen/spezial/neocate_4201.swf','startswf2','420','80','9','false',flashvars2,params2,attributes);$('#startswf2').mousedown(function(){window.open(configs.absolutpfad+'gruppen/forum_spezial.php?id=62621');});if($('#colorselect').length){var values=['00','33','66','99','CC','FF'];var colorselect='<table>';for(var i=0;i<36;i++){colorselect+='<tr>';for(var j=0;j<6;j++){var hex=values[(i%6)]+values[Math.floor(i/6)]+values[j];colorselect+='<td bgcolor="#'+hex+'" width="20" height="8" onclick="trackivwpi(\'colsel\');alert(\'Farbcode: '+hex+'\')" style="cursor:pointer;"></td>';}
colorselect+='</tr>';}
colorselect+='</table>';$('#colorselect').html(colorselect);}
if($('.hasEditor').length){$('.hasEditor').htmlarea({toolbar:[["bold","italic","underline","strikethrough","|"],["orderedlist","unorderedlist","justifyleft","justifycenter","justifyright"]]});$('.jHtmlArea iframe').css({'border':'1px solid #CCC','width':'404px'});}
$('.scrolldown').click(function(){ScrollDown('#'+$(this).parent().parent().parent().attr('id')+' .scrollDiv');$('#ivpi').attr('src','http://mamiweb.ivwbox.de/cgi-bin/ivw/CP/BoxScrollableDown;[comment]?r='+escape(document.referrer)+'&d='+(Math.random()*100000));_gaq.push(['_trackPageview']);});$('.scrollup').click(function(){ScrollUp('#'+$(this).parent().parent().parent().attr('id')+' .scrollDiv');$('#ivpi').attr('src','http://mamiweb.ivwbox.de/cgi-bin/ivw/CP/BoxScrollableDown;[comment]?r='+escape(document.referrer)+'&d='+(Math.random()*100000));_gaq.push(['_trackPageview']);});$('body').click(function(event){if(!$('#StatusText').val()){$('#StatusText').css('height','20px');}
if($(event.target).is('.vote img')){antwortenstorerateing($(event.target).next().attr('id').substring(2),$(event.target),0);}else if($(event.target).is('.vote span')){antwortenstorerateing($(event.target).attr('id').substring(2),$(event.target),1);}else if($(event.target).is('.vote_frage img')){fragenstorerateing($(event.target).next().attr('id').substring(2),$(event.target),0);}else if($(event.target).is('.vote_frage span')){fragenstorerateing($(event.target).attr('id').substring(2),$(event.target),1);}});$('#StatusText').focus(function(){if($(this).val()=='Was machst du gerade'){$(this).val('');}});$('#write_new_question_f').removeClass('jshide').css('width','462px');$('#searchdiv').addClass('jshide');$('#answerform').css('width','480px');$('#write_new_question_g').removeClass('jshide').css('width','462px');$('#commentform').addClass('jshide');});function ScrollDown(obj){$(obj).find('ul:first').animate({marginTop:'-30px'},300,function(){$(this).css({marginTop:'0px'}).find('li:first').appendTo(this);});}
function ScrollUp(obj){$(obj).find('ul:first').animate({marginTop:'30px'},150,function(){$(this).css({marginTop:'0px'}).find('li:last').prependTo(this);});}
function fragenstorerateing(_fragen_id,element,self){$.getJSON(configs.absolutpfad+'A_helpers/AJAX/fragenvote.php?id='+_fragen_id,function(data){hideLoader(true);if(0<parseInt(data.message)){if(self){element.text(parseInt(element.text())+1);}else{element.next().text(parseInt(element.next().text())+1);}
alert('Dein Voting wurde gespeichert!');}else{if(0>parseInt(data.message)){alert('Du musst eingeloggt sein, um eine Antwort bewerten zu können!');location.href=data.redirect;}else{alert('Du hast bereits abgestimmt!');}}});trackivwpi('fragenstorerat');}
function antwortenstorerateing(_fragen_id,element,self){$.getJSON(configs.absolutpfad+'A_helpers/AJAX/antwortenvote.php?id='+_fragen_id,function(data){hideLoader(true);if(0<parseInt(data.message)){if(self){element.text(parseInt(element.text())+1);}else{element.next().text(parseInt(element.next().text())+1);}
alert('Dein Voting wurde gespeichert!');}else{if(0>parseInt(data.message)){alert('Du musst eingeloggt sein, um eine Antwort bewerten zu können!');location.href=data.redirect;}else{alert('Du hast bereits abgestimmt!');}}});trackivwpi('antwortstorerat');}
function showSmileyBox(_a){emoticons.show(_a);}
function getScrollXY(){var scrOfX=0,scrOfY=0;if(typeof(window.pageYOffset)=='number'){scrOfY=window.pageYOffset;scrOfX=window.pageXOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;scrOfX=document.body.scrollLeft;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;scrOfX=document.documentElement.scrollLeft;}
return{x:scrOfX,y:scrOfY};}
function count_chars(_text,_max,_elm){$('#'+_elm).text(_max-_text.length);if(_text.length>_max){alert('Du darfst maximal '+_max+' Zeichen eingeben!');}}
function logged_neu_findengutmore(_user_actionlog_id){if($('#findengut'+_user_actionlog_id).css('display')=='none'){$('#findengut'+_user_actionlog_id).show();}else{$('#findengut'+_user_actionlog_id).hide();}
trackivwpi('findengutmore');}
var kommentartext='Einen Kommentar schreiben';function logged_neu_kommentieren(_id){$('#form'+_id).show('slow');$('#log'+_id+' > .showlink').hide();$('#form'+_id+' > textarea').attr('value',kommentartext);}
function logged_neu_textareafocus(_id){var current=$('#form'+_id+' > textarea').attr('value');if(current==kommentartext){$('#form'+_id+' > textarea').attr('value','');}}
function logged_neu_textareablur(_id){var current=$('#form'+_id+' > textarea').attr('value');if(current==undefined){$('#form'+_id+' > textarea').attr('value',kommentartext);}}
function logged_neu_entrymore(_user_actionlog_id){$('#entry'+_user_actionlog_id+' .hide').show();$('#entry'+_user_actionlog_id+'more').hide();trackivwpi('moreactionlog');}
function openBrowserPopup(_a,_b,_c,_d){var add='';if(_b!=undefined)add+="width="+_b+",";if(_c!=undefined)add+="height="+_c+",";thewindow=window.open(_a,"Mamiwin"+_d,add+"left=100,top=200,scrollbars=yes");thewindow.focus();}
function report_misuse(_a,_b,_c){showOverlayPopupJSON(configs.absolutpfad+'formal/reportmisuse.php?type='+_a+'&id='+_b+'&parentid='+_c,'big');}
function reportmisusesubmit(){if($('#misuseform [name=\'reason\']').attr('value')<1){alert('Bitte wähle eine Begründung aus!');return;}
if(!$('#misuseform [name=\'testimony\']').attr('value')||$('#misuseform [name=\'testimony\']').attr('value').length<1){alert('Bitte gib eine Zeugenaussage ein!');return;}
$('#misuseform').ajaxSubmit({dataType:'json',success:function(data){overlay.setoverlay('reportmisuse','Mißbrauch gemeldet',data.htmldata,'small',false,true);}});overlay.loader();}
function mitglieder_changegbooklayout(_layoutname){$('#design_head').removeClass();$('#design_body').removeClass();$('#text').removeClass();$('#design_foot').removeClass();$('#design_head').addClass(_layoutname+'head');$('#design_body').addClass(_layoutname+'body');$('#text').addClass(_layoutname+'text');$('#design_foot').addClass(_layoutname+'foot');trackivwpi('mitglieder_changegbooklayout');}
function mitglieder_gbookprofiedit(_a){if(_a){}else{alert('Der Proieditor kann nicht beendetw erden - Sorry!');}}
function mitglieder_showmoreoptions(){$('#moreguestbookoptions').hide();$('#gaestebuchoptionen').show();}
emoticons={emoticons:{emotionen:[{img:'images/smileys/happy00.gif',code:'(happy00)'},{img:'images/smileys/happy01.gif',code:'(happy01)'},{img:'images/smileys/happy02.gif',code:'(happy02)'},{img:'images/smileys/happy03.gif',code:'(kirchern)'},{img:'images/smileys/zwinker.gif',code:'(zwinker)'},{img:'images/smileys/smilie_op_010.gif',code:'(top)'},{img:'images/smileys/smilie_baby_009.gif',code:'(schnuller)'},{img:'images/smileys/smilie_verl_016.gif',code:'(rotwerd)'},{img:'images/smileys/smilie_pc_012.gif',code:'(pchau)'},{img:'images/smileys/traurig01.gif',code:'(traurig01)'},{img:'images/smileys/traurig02.gif',code:'(traurig02)'},{img:'images/smileys/traurig03.gif',code:'(traurig03)'},{img:'images/smileys/tempo.gif',code:'(tempo)'},{img:'images/smileys/smilie_essen_172.gif',code:'(hunger)'},{img:'images/smileys/donut.gif',code:'(donut)'},{img:'images/smileys/tanzen.gif',code:'(tanzen)'},{img:'images/smileys/tanzen2.gif',code:'(tanzen2)'},{img:'images/smileys/tanzen3.gif',code:'(tanzen3)'},{img:'images/smileys/tanzen4.gif',code:'(tanzen4)'},{img:'images/smileys/beeten.gif',code:'(beeten)'},{img:'images/smileys/schaemen.gif',code:'(schaemen)'},{img:'images/smileys/blinzeln.gif',code:'(blinzeln)'},{img:'images/smileys/muede.gif',code:'(muede)'}],sonstige:[{img:'images/smileys/wink.gif',code:'(wink)'},{img:'images/smileys/smilie_trink_119.gif',code:'(kaffee)'},{img:'images/smileys/smilie_trink_071.gif',code:'(bier)'},{img:'images/smileys/smilie_denk_09.gif',code:'(denk)'},{img:'images/smileys/smilie_iek_036.gif',code:'(kotz)'},{img:'images/smileys/engelteufel.gif',code:'(engelteufel)'},{img:'images/smileys/peitsch.gif',code:'(peitsch)'},{img:'images/smileys/smilie_krank_002.gif',code:'(verwirrt)'},{img:'images/smileys/krank.gif',code:'(krank)'},{img:'images/smileys/krank2.gif',code:'(krank2)'},{img:'images/smileys/troest.gif',code:'(troest)'},{img:'images/smileys/katze.gif',code:'(katze)'},{img:'images/smileys/cheerleader.gif',code:'(cheerleader)'},{img:'images/smileys/puff.gif',code:'(puff)'},{img:'images/smileys/guckstdu.gif',code:'(guckstdu)'},{img:'images/smileys/hicks.gif',code:'(hicks)'},{img:'images/smileys/naschen.gif',code:'(naschen)'},{img:'images/smileys/foehnen.gif',code:'(foehnen)'},{img:'images/smileys/fotomachen.gif',code:'(fotomachen)'},{img:'images/smileys/ohrenzuhalt.gif',code:'(ohrenzuhalt)'},{img:'images/smileys/rauchen.gif',code:'(rauchen)'},{img:'images/smileys/flatter_engel.gif',code:'(flatterengel)'}],baby:[{img:'images/smileys/schwanger.jpg',code:'(schwanger)'},{img:'images/smileys/smilie_baby_099.gif',code:'(baby)'},{img:'images/smileys/baby02.jpg',code:'(baby02)'},{img:'images/smileys/baby04.gif',code:'(baby04)'},{img:'images/smileys/baby03.jpg',code:'(baby03)'},{img:'images/smileys/wickeln.gif',code:'(wickeln)'},{img:'images/smileys/kinderw01.gif',code:'(kinderw01)'},{img:'images/smileys/baden.gif',code:'(baden)'},{img:'images/smileys/fuettern.gif',code:'(fuettern)'},{img:'images/smileys/baden2.gif',code:'(baden2)'},{img:'images/smileys/essen.gif',code:'(essen)'},{img:'images/smileys/kinderwagen2.gif',code:'(kinderwagen2)'},{img:'images/smileys/liebhaben.gif',code:'(liebhaben)'},{img:'images/smileys/ohrenlangziehen.gif',code:'(ohrenlangziehen)'},{img:'images/smileys/quengeln2.gif',code:'(quengeln2)'},{img:'images/smileys/quengeln3.gif',code:'(quengeln3)'},{img:'images/smileys/puppen.gif',code:'(puppen)'},{img:'images/smileys/schaukeln.gif',code:'(schaukeln)'},{img:'images/smileys/teddy.gif',code:'(teddy)'},{img:'images/smileys/zaehneputzen.gif',code:'(zaehneputzen)'}],haushalt:[{img:'images/smileys/putzen.gif',code:'(putzen)'},{img:'images/smileys/staubsaugen.gif',code:'(staubsaugen)'},{img:'images/smileys/buegeln.gif',code:'(buegeln)'},{img:'images/smileys/kochen.gif',code:'(kochen)'},{img:'images/smileys/toast.gif',code:'(toast)'},{img:'images/smileys/spuelen.gif',code:'(spuelen)'},{img:'images/smileys/wmaschine.gif',code:'(wmaschine)'},{img:'images/smileys/fenster.gif',code:'(fenster)'},{img:'images/smileys/eis_machen.gif',code:'(eis_machen)'},{img:'images/smileys/fegen.gif',code:'(fegen)'},{img:'images/smileys/staubwischen.gif',code:'(staubwischen)'},{img:'images/smileys/naehen.gif',code:'(naehen)'},{img:'images/smileys/plaetzchen.gif',code:'(plaetzchen)'},{img:'images/smileys/plaetzchen2.gif',code:'(plaetzchen2)'},{img:'images/smileys/stricken.gif',code:'(stricken)'}],familie:[{img:'images/smileys/hochzeit.gif',code:'(hochzeit)'},{img:'images/smileys/familiy.gif',code:'(family)'},{img:'images/smileys/urlaub.gif',code:'(urlaub)'},{img:'images/smileys/boy.gif',code:'(boy)'},{img:'images/smileys/girl.gif',code:'(girl)'},{img:'images/smileys/schwiegerm.gif',code:'(schwiegerm)'},{img:'images/smileys/birthday.gif',code:'(birthday)'}],aktivitaeten:[{img:'images/smileys/naegelfeilen.gif',code:'(naegelfeilen)'},{img:'images/smileys/anrufen.gif',code:'(anrufen)'},{img:'images/smileys/suchen.gif',code:'(suchen)'},{img:'images/smileys/rollschuh.gif',code:'(rollschuh)'},{img:'images/smileys/betrunken.gif',code:'(betrunken)'},{img:'images/smileys/fisch.gif',code:'(fisch)'}],liebe:[{img:'images/smileys/liebesbrief.gif',code:'(liebesbrief)'},{img:'images/smileys/smilie_love_045.gif',code:'(kuessen)'},{img:'images/smileys/verliebt.gif',code:'(verliebt)'},{img:'images/smileys/rosabrille.gif',code:'(rosabrille)'},{img:'images/smileys/umarmen.gif',code:'(umarmen)'},{img:'images/smileys/verliebt.gif',code:'(verliebt)'},{img:'images/smileys/verliebt2.gif',code:'(verliebt2)'},{img:'images/smileys/verliebt3.gif',code:'(verliebt3)'},{img:'images/smileys/wolke7.gif',code:'(wolke7)'}],maenner:[{img:'images/smileys/lippenstift.gif',code:'(lippenstift)'},{img:'images/smileys/devot.gif',code:'(devot)'},{img:'images/smileys/schlagen.gif',code:'(schlagen)'},{img:'images/smileys/rauswerfen.gif',code:'(rauswerfen)'},{img:'images/smileys/warten.gif',code:'(warten)'},{img:'images/smileys/zaehneknabbern.gif',code:'(zaehneknabbern)'},{img:'images/smileys/smilie_b_273.gif',code:'(hau)'}],sport:[{img:'images/smileys/ballspielen.gif',code:'(ballspielen)'},{img:'images/smileys/fahrradfahren.gif',code:'(fahrradfahren)'},{img:'images/smileys/seilhuepfen.gif',code:'(seilhuepfen)'},{img:'images/smileys/sport.gif',code:'(sport)'},{img:'images/smileys/sport2.gif',code:'(sport2)'},{img:'images/smileys/sport3.gif',code:'(sport3)'},{img:'images/smileys/sport4.gif',code:'(sport4)'},{img:'images/smileys/sport5.gif',code:'(sport5)'},{img:'images/smileys/trainieren.gif',code:'(trainieren)'},{img:'images/smileys/wm2010_1.gif',code:'(wmsupi)'},{img:'images/smileys/wm2010_2.gif',code:'(wmsupidupi)'},{img:'images/smileys/wm2010_3.gif',code:'(wm2010)'}],advent:[{img:'images/smileys/Weihnachten/x-mas_210.gif',code:'(advent4)'},{img:'images/smileys/Weihnachten/xmas1.gif',code:'(baumschmuck)'},{img:'images/smileys/Weihnachten/x-mas_210_1.gif',code:'(advent3)'},{img:'images/smileys/Weihnachten/x-mas_231.gif',code:'(weihnachten1)'},{img:'images/smileys/Weihnachten/so_weihnachten_198.gif',code:'(weihnachten2)'},{img:'images/smileys/Weihnachten/so_weihnachten_058.gif',code:'(:-D)'},{img:'images/smileys/Weihnachten/so_weihnachten_088.gif',code:'(weihnacht1)'},{img:'images/smileys/Weihnachten/so_weihnachten_125.gif',code:'(roll)'},{img:'images/smileys/Weihnachten/xmas-kicher-mdel.gif',code:'(kichern)'},{img:'images/smileys/Weihnachten/x-maswinki.gif',code:'(wink)'},{img:'images/smileys/Weihnachten/x-maszwink.gif',code:'(zwinker)'},{img:'images/smileys/Weihnachten/smileygarden_de_xmas3.gif',code:'(weihnachtsmann)'},{img:'images/smileys/Weihnachten/rudolf.gif',code:'(rudolf)'},{img:'images/smileys/Weihnachten/smilie_xmas_057.gif',code:'(weihnacht2)'}],winter:[{img:'images/smileys/Winter/smilie_wet_136.gif',code:'(winter2)'},{img:'images/smileys/Winter/freez.gif',code:'(winter3)'},{img:'images/smileys/Winter/smilie_wet_124.gif',code:'(winter4)'},{img:'images/smileys/Winter/so_weihnachten_404.gif',code:'(winter5)'},{img:'images/smileys/Winter/winter-0011.gif',code:'(winter6)'}],herbst:[{img:'images/smileys/Herbst/herbst01.jpg',code:'(herbst01)'},{img:'images/smileys/Herbst/herbst02.jpg',code:'(herbst02)'},{img:'images/smileys/Herbst/herbst03.gif',code:'(herbst03)'},{img:'images/smileys/Herbst/herbst04.gif',code:'(herbst04)'},{img:'images/smileys/Herbst/herbst05.jpg',code:'(herbst05)'},{img:'images/smileys/Herbst/herbst06.gif',code:'(herbst06)'},{img:'images/smileys/Herbst/kalt01.gif',code:'(kalt01)'}]},categorys:[{id:'emotionen',title:'Emotionen'},{id:'aktivitaeten',title:'Aktivitäten'},{id:'baby',title:'Baby'},{id:'winter',title:'Winter'},{id:'herbst',title:'Herbst'},{id:'familie',title:'Familie'},{id:'haushalt',title:'Haushalt'},{id:'liebe',title:'Liebe'},{id:'maenner',title:'Männer'},{id:'sport',title:'Sport'},{id:'sonstige',title:'Sonstige'},],changecategory:function(_a,_b,_c){if(_c==1){$('#ivpi').attr('src','http://mamiweb.ivwbox.de/cgi-bin/ivw/CP/EmoticonChange;[comment]?r='+escape(document.referrer)+'&d='+(Math.random()*100000));_gaq.push(['_trackPageview']);}
var content='<table>';var amount=eval('emoticons.emoticons.'+_a+'.length');for(var i=0;i<amount;i++){var smiley=eval('emoticons.emoticons.'+_a+'['+i+']');content+='<td align="center"><a href="javascript:emoticons.setEmoticon(\''+_b+'\', \''+smiley.code+'\')"><img src="'+configs.mediaurl+smiley.img+'"></td>';if(i%8==1&&i>=7){content+='</tr><tr>';}}
content+='</tr></table>';$('#emoticionsarea').html(content);},show:function(_a){var content='<table width="100%">';var first=null;content+='<tr><td valign="top" style="width:175px;">';content+='<select onchange="emoticons.changecategory(this.value, \''+_a+'\',1);" style="width:175px;">';jQuery.each(this.categorys,function(){if(first==null){first=this.id;}
content+='<option value="'+this.id+'">'+this.title+'</option>';});content+='</td><td id="emoticionsarea"></td></tr>';content+='<tr><td colspan="2" align="right"><input type="button" onclick="overlay.close();" value="Auswahl ausblenden"></td></tr>';content+='</table>';overlay.setoverlay('smileybox','Smiley Auswahl',content,'xxl',false,true);emoticons.changecategory(first,_a);},setEmoticon:function(_a,_b){$('#ivpi').attr('src','http://mamiweb.ivwbox.de/cgi-bin/ivw/CP/EmoticonChange;[comment]?r='+escape(document.referrer)+'&d='+(Math.random()*100000));_gaq.push(['_trackPageview']);var old=$('#'+_a).attr('value');if(old==undefined){old='';}
$('#'+_a).attr('value',(old+' '+_b+' '));$('#'+_a).focus();}};
