AFCache={},hlp=[0,0];function AP(A){if(A.checked){$("#checkout").attr("disabled",false)}else{$("#checkout").attr("disabled",true)}}function USH(){$("#send_hash").val("");return true}function ajaxfill(G,C,E,A,B,H){function F(J,K,I){if(K){$("#"+K).html(J)}if(I){I(J)}}if(H){waiting(G);MW(H);A=function(){$("#"+H).css({top:$(document).scrollTop()+($(window).height()-$("#"+H).height())/2+"px"})}}var D=[G,C,$.param(E),A];if(B&&AFCache[D]){F(AFCache[D],G,A)}else{$.post("http://www.proglobo.de/"+C,E,function(J,I){if(I=="success"){AFCache[D]=J;F(J,G,A)}})}}function MW(A){$("body").append('<div id="hbg"></div>');$("div#hbg").css({width:$(document).width()+"px",height:$(document).height()+"px",opacity:0}).fadeTo(250,0.8,function(){$("#"+A).css({top:$(document).scrollTop()+($(window).height()-$("#"+A).height())/2+"px",left:($(window).width()-$("#"+A).width())/2+"px"}).fadeIn().find(".om,.um").width($("#"+A).width()-30)})}function CMW(A){$("#"+A).fadeOut(250);$("div#hbg").fadeOut(250,function(){$("div#hbg").remove()})}function waiting(A){$("#"+A).html('<div id="wait" style="height:'+($("#"+A).height()<400?$("#"+A).height():400)+'px;"></div>')}function showFAQ(A){ajaxfill("faqbody","getFAQAnswer",{faqid:A},null,true,"faqwindow")}function owFAQ(){$("#faqs .faq a").click(function(){showFAQ($(this).attr("href").replace(/.*#q([0-9]*)/,"$1"));return false})}function fFF(A){var B=$.trim(A.value);A.value=B=="E-Mail-Adresse"?"":B;A.style.color="#575757"}function fFB(B){var C=$.trim(B.value),A="E-Mail-Adresse";B.value=C?C:A;if(!C||C==A){B.style.color="#8f8f8f"}}function homeLoop(B){var A=B?"homepartners":"homecoupons";window.setTimeout('$("div#'+A+'").fadeOut(1000, function() {getHomeLoop(hlp['+B+"]+1,"+B+");})",5000)}function getHomeLoop(C,B){hlp[B]=C;var A=B?"homepartners":"homecoupons";ajaxfill(A,A,{page:C},function(D){if(!D){getHomeLoop(0,B)}else{$("div#"+A).fadeIn(1000,function(){window.setTimeout('$("div#'+A+'").fadeOut(1000, function() {getHomeLoop(hlp['+B+"]+1,"+B+");})",5000)})}},true)}function initComments(){$("#cwf").hide();$("#lwc").show().click(function(){$(this).hide();$("div#cwf").show(500,function(){scrollD($("div#cwf").offset().top-25)})});$("#lcwc").show().click(function(){$("div#cwf").hide(500);$("a#lwc").show(500)});if(document.URL.search(/#c[0-9]+/)!=-1){$("a#lac").click()}}function checkWriteComment(){var A=[];if(!$.trim($("input[name=comment_headline]").val())){A.push("#emh")}if(!$.trim($("input[name=comment_name]").val())){A.push("#emn")}if(!$.trim($("textarea[name=comment_txt]").val())){A.push("#emc")}if($("textarea[name=comment_txt]").val().length>400){A.push("#emcl")}if(!$.trim($("input[name=captchas_input]").val())){A.push("#emcc")}$("#comments div.error_message").not(A.join(",")).hide();if(A){$(A.join(",")).show().eq(0).focus();return false}return true}function getAllComments(A,B){$("a#lac").parent().hide();ajaxfill("allcomments","comments_listing",{typ:A,id:B},function(){var C=document.URL.match(/#c[0-9]+/);if(C){scrollD($("a[name="+C[0].substr(1)+"]").offset().top-20)}else{scrollD($("div#allcomments").offset().top)}})}function scrollD(A){$("html, body").animate({scrollTop:A},500)}function addCO(jqr,co){jqr.prepend('<a href="javascript:;" title="Einblenden"><img src="/desc.gif" alt="Einblenden" title="Einblenden" /></a>');jqr.children("a").css("float","right").toggle(function(){eval("$(this)"+co).show(300);$(this).attr("title","Ausblenden").children("img").attr({src:"/asc.gif",alt:"Ausblenden",title:"Ausblenden"});scrollD($(this).offset().top-5)},function(){eval("$(this)"+co).hide(300);$(this).attr("title","Einblenden").children("img").attr({src:"/desc.gif",alt:"Einblenden",title:"Einblenden"})})}function addHL(B){for(var A=0;A<B.length;A+=2){B.eq(A).css("background-color","#e9ede6")}}function strObj(B,A){A=(A===undefined)?true:A;var C=new String();for(i in B){C+=(A&&typeof B[i]==="object")?i+"={\n"+strObj(B[i])+"}\n":i+"="+B[i]+"\n"}return C};