
function stdtstatement_checkbox_changed(id){var jqueryidstr="input[name='stdstatement-"+id+"']";if($(jqueryidstr).attr('disabled')){return false;}
var nowchecked=$(jqueryidstr).attr('checked');if(nowchecked){for(var i=0;i<=id;i++){jqueryidstr="input[name='stdstatement-"+i+"']";$(jqueryidstr).attr('checked',true);if(i==1){$(jqueryidstr).attr('disabled','disabled');}}}else{}}
function showRequest(formData,jqForm,options){return true;}
function showResponse(responseText,statusText){}
function show_err(){$("#box2err").show();}
function close_err(){$("#box2err").html('');$("#box2err").hide();}
function open_login(){generate_box2content('#box2-left','account_login');}
function close_login(){$('#box2-left').html(box2_left_std_html);$("#box2err").hide();}
function open_register(){generate_box2content('#box2act','account_register');$("#box2act").show();$("#box2").hide();}
function close_register(){$('#box2act').html(box2_left_std_html).hide();$("#box2").show();}
function open_box2content(div,w){$("#box2head").hide();generate_box2content(w);$("#box2content").show();}
function generate_box2content(div,w){var ajax_load="Lade...";$(div).html(ajax_load).load("req/req_generate_box2.php",{w:w});}
function close_box2content(){$("#box2head").show();$("#box2content").hide();}
function reset_box2content(){window.location='/';}
function open_box2head(w){$("#box2content").hide();generate_box2head(w);$("#box2head").show();}
function generate_box2head(w){var ajax_load="Lade...";$("#box2head").html(ajax_load).load("req/req_generate_box2.php",{w:w});}
function close_box2head(){$("#box2content").show();$("#box2head").hide();}
function reset_box2head(){window.location='/';}
function show_form_result(div){$(div).show('normal');}
function close_form_result(div){$(div).hide('normal');}
function open_comment(id){if($("#statement-comments-inner-"+id).is(':visible')){reset_commentcontent(id);$("#statement-comments-inner-"+id).hide();}else{generate_commentcontent(id);$("#statement-comments-inner-"+id).show();}}
function generate_commentcontent(id){var ajax_load="Lade...";$('#statement-comments-inner-'+id).html(ajax_load).load("req/req_generate_comments.php",{w:'comments',id:id});}
function reset_commentcontent(id){$("#statement-comments-inner-"+id).html('');}
function generate_commenttotal(id){var ajax_load="Lade...";$('#statement-comments-total-'+id).html(ajax_load).load("req/req_generate_comments.php",{w:'total',id:id});}
function reload_feed(w){generate_feed(w,0);}
function generate_feed(w,offset){if(w=='same'){w=feed_last_w;}else{feed_last_w=w;}
$('#showall').removeClass("bold");$('#showstatements').removeClass("bold");$('#showuser').removeClass("bold");$('#show'+w).addClass("bold");var ajax_load="<p><em>Daten werden übertragen. Bitte haben Sie einen Moment Geduld.</em></p>";$('#feed').html(ajax_load).load("req/req_generate_feeds.php",{w:w,offset:offset,limit:feed_limit});generate_feed_page_selector(w,offset);}
function generate_feed_page_selector(w,cur){var ajax_loaded="";$('#box3-head-pages').load("req/req_generate_feeds.php",{w:w,cur:cur});$('#box3-foot-pages').load("req/req_generate_feeds.php",{w:w,cur:cur});}
function like(id){var ajax_load="Lade...";$("#statement-likes-"+id).html(ajax_load).load("req/req_new_like.php",{statementid:id});}
function afailed(){var html="<span class=\"failed\">Die Aktivierung ist fehlgeschlagen, bitte versuchen Sie es nochmals.<br />Für den Fall dass Sie den Link aus der Mail kopiert haben, vergewissern Sie sich, dass Sie ihn exakt so kopiert haben.</span><br /><br />";html=html+'<span class="clickable" onclick="reset_box2head()">Zur&uuml;ck</span>';$("#box2head").html(html);$("#box2head").show();}
function lfailed(){var html="<span class=\"failed\">Die Anmeldung ist fehlgeschlagen, versuchen Sie es nochmal</span>";$("#box2head").html(html);open_box2content('account_login');$("#box2head").show();}
function selector_over(i,count){selector_change(i,count);$(".selector-"+i).addClass('selector-'+i+'-active');$(".selector-0").removeClass('selector-0-active');}
function selector_out(i,count){$(".selector-"+i).removeClass('selector-'+i+'-active');$(".selector-0").addClass('selector-0-active');i=0;selector_change(i,count);}
function selector_change(i,count){var html='';if(i==0){html+='Wir sind jetzt<br /><span style="font-size: 72pt; font-weight: bold;">'+count+'</span><br /><span style="font-size: 19pt;">Parksch&uuml;tzer insgesamt';}else{html+='Davon<br /><span style="font-size: 72pt; font-weight: bold;">'+count+'</span><br /><span style="font-size: 19pt;">Parksch&uuml;tzer der Stufe '+(i+1)+"";}
html+="</span>";$("#box2-totals").html(html);}
var level_slider_last=-1;function level_slider_change(event,ui){if(level_slider_last!=-1){$('#form-level-text-'+level_slider_last).hide();}
$('#form-level-text-'+ui.value).show();level_slider_last=ui.value;$("input[name='level']").val(ui.value);$("input[name='threshold']").val($("input[name='threshold-"+ui.value+"']").val());}