jQuery.cookie=function(c,l,p){if(typeof l!="undefined"||(c&&typeof c!="string")){if(typeof c=="string"){p=p||{};if(l===null){l="";p.expires=-1}var e="";if(p.expires&&(typeof p.expires=="number"||p.expires.toUTCString)){var g;if(typeof p.expires=="number"){g=new Date();g.setTime(g.getTime()+(p.expires*24*60*60*1000))}else{g=p.expires}e="; expires="+g.toUTCString()}var o=p.path?"; path="+(p.path):"";var h=p.domain?"; domain="+(p.domain):"";var a=p.secure?"; secure":"";document.cookie=c+"="+encodeURIComponent(l)+e+o+h+a}else{for(var f in c){jQuery.cookie(f,c[f],l||p)}}}else{var b={};if(document.cookie){var m=document.cookie.split(";");for(var j=0;j<m.length;j++){var d=jQuery.trim(m[j]);if(!c){var k=d.indexOf("=");b[d.substr(0,k)]=decodeURIComponent(d.substr(k+1))}else{if(d.substr(0,c.length+1)==(c+"=")){b=decodeURIComponent(d.substr(c.length+1));break}}}}return b}};var gf={core:{},ext:{gutefrage:{}},util:{form:{},string:{},misc:{}}};gf.core.console={ready:false,messageBuffer:[],toggle:function(){},resize:function(){},clear:function(){},move:function(){},debug:function(a,b){this.addMessage("debug",a,b)},warn:function(a,b){this.addMessage("warn",a,b)},info:function(a,b){this.addMessage("info",a,b)},error:function(a,b){this.addMessage("error",a,b)},addMessage:function(b,a,c){if(this.ready===false){this.messageBuffer.push({type:b,label:a,message:c})}}};gf.core.ads={loaded:false,handler:{},area:{},activeHandler:[],activeAreas:[],adClass:"block-ad",init:function(b,a){gf.core.console.debug("gf.core.ads",{"adHandler(s)":b,adClass:a});this.loaded=true;this.activeHandler=b;this.adClass=a;$.each(this.activeHandler,function(c,d){if(typeof gf.core.ads.handler[d]!=="undefined"){if(typeof gf.core.ads.handler.init!=="undefined"){gf.core.ads.handler[d].init()}}else{gf.core.console.warn("gf.core.ads","adHandler: "+d+" could not be initialized")}})},setProperties:function(b,a){gf.core.console.debug("gf.core.ads","setProperties: '"+b+"'");a=a||{};this.handler[b].properties=$.extend(true,gf.core.ads.handler[b].properties,a);this.handler[b].set(this.handler[b].properties)},initArea:function(c,b,a){gf.core.console.debug("gf.core.ads","initArea: '"+c+"'");this.activeAreas.push(c);this.area[c]={handler:b,displayed:false,type:"-gf-desktop",supress:function(){return false},onLoad:function(){},onComplete:function(){},renderType:"write",renderSource:"div[id="+c+"]",renderTarget:"div[id="+c+"]",renderOptions:{}};this.handler[b].initArea(c,a)},displayArea:function(c){gf.core.console.debug("gf.core.ads","displayArea: '"+c+"'");var b=this.area[c],a=this.handler[this.area[c].handler];if(b.type===gf.ext.gutefrage.settings.version&&b.supress()===false&&a.properties.supressHandler===false&&b.displayed===false){b.onLoad();a.displayArea(c)}}};gf.core.gwo={test:{},setProperties:function(a){var b={accountID:"",isMobile:false,enabled:true,setCookie:true,cookieName:"gfl",cookiePattern:"GWO-%%test%%-Variation-%%variation%%",setCustomVar:true,gwoSection:"gwosection",dev:false,forceTest:0,forceVariation:0};a=$.extend(true,b,a);this.accountID=a.accountID;this.isMobile=a.isMobile;this.enabled=a.enabled;this.setCookie=a.setCookie;this.setCustomVar=a.setCustomVar;this.cookieName=a.cookieName;this.cookiePattern=a.cookiePattern;this.gwoSection=a.gwoSection;this.showSections=false;this.currentTest=undefined;this.dev=a.dev;gf.core.console.info("gf.core.gwo.setProperties",{accountID:this.accountID,isMobile:this.isMobile,enabled:this.enabled,dev:this.dev});if(this.dev){this.variantID=a.forceVariation}if($.browser.opera){this.enabled=false}if(this.enabled){this.init()}},init:function(a){gf.core.console.info("gf.core.gwo.init");if(this.enabled){window.gwo_utmxkey=window.gwo_utmxkey||{}}},controlScript:function(n){window.utmx_section=function(){};window.utmx=function(){};var e=n,m=document,b=m.location,o=m.cookie;function j(f){if(o){var d=o.indexOf(f+"=");if(d>-1){var c=o.indexOf(";",d);return escape(o.substring(d+f.length+1,c<0?o.length:c))}}}var p=j("__utmx"),a=j("__utmxx"),g=b.hash;m.write('<script src="http'+(b.protocol=="https:"?"s://ssl":"://www")+".google-analytics.com/siteopt.js?v=1&utmxkey="+e+"&utmx="+(p?p:"")+"&utmxx="+(a?a:"")+"&utmxtime="+new Date().valueOf()+(g?"&utmxhash="+escape(g.substr(1)):"")+'" type="text/javascript" charset="utf-8"><\/script>')},trackingScript:function(d,a){var c=window,b=document;c._gaq=c._gaq||[];c._gaq.push(["gwo._setAccount",d]);c._gaq.push(["gwo._trackPageview","/"+a+"/test"]);(function(){var f=b.createElement("script"),e=b.getElementsByTagName("script")[0];f.type="text/javascript";f.async=true;f.src=("https:"===b.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";e.parentNode.insertBefore(f,e)})()},loadTest:function(a){if(false===gf.core.gwo.enabled){return}if(gf.core.gwo.test["gwo"+a]&&gf.core.gwo.test["gwo"+a].isMobile!==gf.core.gwo.isMobile){return}function b(c){document.write('<script>window.utmx_section("'+gf.core.gwo.gwoSection+"\"); if(window.utmx('combination') === 0) { gf.core.gwo.runTest(\""+c+'"); }<\/script></noscript>')}gf.core.gwo.controlScript(a);gf.core.gwo.trackingScript(gf.core.gwo.accountID,a);b(a);gf.core.console.info("gf.core.gwo.loadTest",{testID:a,"section inserted in document head":gf.core.gwo.gwoSection})},runTest:function(e){var f=document,b,d=window.utmx,a=gf.core.gwo;if(false===a.enabled){return}if(!(this.dev)){b=(d("combination")!==undefined)?d("combination"):0}else{b=this.variantID}gf.core.console.warn("gf.core.gwo.runTest",{testID:e,variantID:b,enabled:a.enabled});function g(l){gf.core.console.info("gf.core.gwo.runTest","Appending Styles of Variation "+a.variantID+" of Test "+a.testID);var k="";$.each(l,function(m){k+=(l[m]["styles"]!==undefined)?l[m]["styles"]:""});if(k!==""){f.write('<style type="text/css">'+k+"</style>")}}function c(k,l){var m="";$.each(l,function(n){m+=(l[n]["conversion"]!==undefined)?l[n]["conversion"]:""});if(m!=""){$(m).live("click",function(){a.triggerConversion(k)})}}function j(o,k){var n=1,l=new Date(),m=k.replace("%%test%%",a.testID).replace("%%variation%%",a.variantID);l.setTime(l.getTime()+(n*24*60*60*1000));f.cookie=o+"="+m+"; expires="+l.toGMTString()+"; path=/"}function h(l,k,m){if(window._gaq!==undefined){window._gaq.push(["_setCustomVar",l,"GWO-"+k,"Variation-"+m,1])}}this.testID=e;this.variantID=b;this.currentVariant=a.test["gwo"+e].variant[b];if(a.enabled){if(e!==undefined&&b!==undefined){if(typeof(a.test["gwo"+e])==="undefined"||typeof(a.test["gwo"+e].variant[b])==="undefined"){gf.core.console.error("gf.core.gwo.runTest",{testID:e,variantID:b,error:"js object not found for test"})}else{g(a.test["gwo"+e].variant[b]);c(e,a.test["gwo"+e].variant[b]);if(this.setCookie){j(a.cookieName,a.cookiePattern)}if(this.setCustomVar){h(3,e,b)}}}}},triggerConversion:function(a){if(false===gf.core.gwo.enabled){return true}try{window._gaq.push(["gwo._trackPageview","/"+a+"/goal"]);(function(){var c=new Date().getTime();while(new Date().getTime()<c+100){}})()}catch(b){}},runSection:function(b){var a=gf.core.gwo;if(a.enabled){if(a.currentVariant!==undefined&&a.currentVariant[b]!==undefined){if($.isFunction(a.currentVariant[b]["javascript"])){gf.core.console.warn("gf.core.gwo.runSection",{sectionName:b,testID:a.currentTest,variation:a.currentVariation});a.currentVariant[b]["javascript"]()}return true}}return false},toggleSections:function(){if(this.showSections===false){this.showSections=true;var a=$("<span />",{id:"gwoSectionLabel"}).css({position:"absolute",display:"none","background-color":"#fff",padding:"5px","z-index":99999,"font-size":"12px","font-weight":"bold","text-transform":"uppercase",outline:"1px solid #f00"}).appendTo($("body"));$(document).bind("mousemove",function(b){$("#gwoSectionLabel").css({top:b.pageY+20,left:b.pageX+20})});$("*[data-section]").each(function(){$(this).data("oldPosition",$(this).css("position")).css({position:"relative"});var b=$("<div />",{"class":"gwoSection",id:"gwoSection_"+$(this).data("section")}).html("GWO SECTION: "+$(this).data("section")).data("label","GWO SECTION: "+$(this).data("section")).css({position:"absolute",display:"block","background-color":"#000",color:"#fff","font-weight":"bold",top:"0px",right:"0px",width:$(this).width(),height:$(this).height(),"min-height":30,opacity:0.4,outline:"1px solid #000","z-index":9999,"margin-top":$(this).css("padding-top"),"margin-right":$(this).css("padding-right"),"margin-bottom":$(this).css("padding-bottom"),"margin-left":$(this).css("padding-left")}).bind("mouseover",function(){a.show().text(b.data("label"));b.css("outline","2px solid #f00")}).bind("mouseout",function(){a.hide();b.css("outline","1px solid #000")}).prependTo($(this))})}else{this.showSections=false;$(document).unbind("mousemove");$("*[data-section]").each(function(){$(this).css({position:$(this).data("oldPosition")})});$("body").find(".gwoSection, .gwoSectionLabel").remove()}}};var misc={adClasses:{}};misc.adClasses.hasProp=Object.prototype.hasOwnProperty,__extends=function(d,b){for(var a in b){if(misc.adClasses.hasProp.call(b,a)){d[a]=b[a]}}function c(){this.constructor=d}c.prototype=b.prototype;d.prototype=new c();d.__super__=b.prototype;return d};misc.adClasses.AdArea=(function(){function a(){}return a})();misc.adClasses.GoogleAdArea=(function(){__extends(a,misc.adClasses.AdArea);function a(){a.__super__.constructor.apply(this,arguments);window.google_ad_output="js";window.google_language="de";window.google_encoding="utf8";window.google_safe="high";window.google_rl_mode="relevance"}return a})();misc.adClasses.GoogleAdAreaLinkUnit=(function(){__extends(a,misc.adClasses.GoogleAdArea);function a(b){a.__super__.constructor.apply(this,arguments);this.options=b}a.prototype.displayArea=function(){$.each(this.options,function(b,c){window[b]=c;if(b=="google_ad_channel"){window.link_unit_result_channel=c}});gf.core.console.info("AdAreaLinkUnit",this.options);window.google_radlink_request_done=function(b){if(b.length<1){return}document.write("<div id='adsenseForContent_LinkUnit'>");document.write("<div class='header'><h2>Ähnliche Anzeigen</h2></div>");document.write('<div class="google-link"><a href="'+window.google_info.feedback_url+'">Google Anzeigen</a></div>');document.write("<div style='clear:both;'></div>");for(i=0;i<b.length;++i){document.write('<div class="unit_ads"><a target="_blank" href="/verwandte_links?google_kw='+b[i].url_escaped_term+"&google_rt="+b[i].radlink_token+"&google_page_url="+encodeURIComponent(window.location)+"&cid="+window.link_unit_result_channel+'">'+b[i].term+"</a></div>  \n")}document.write("</div>")};window.google_ad_request_done=function(b){};document.write('<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"><\/script>')};return a})();gf.core.ads.handler.adsenseForContent={skipNum:0,properties:{adClass:"block-adsenseForContent",url:"",parameters:{google_ad_client:"",google_ad_output:"js",google_ad_type:"text",google_image_size:"300x250",google_feedback:"on",google_skip:0,adsenseStyles:[],adsensePositions:[],positionToApply:""},supressHandler:false,renderType:"write",renderOptions:{style:"afcType-a",textPosition:"beforeSiteLink"}},init:function(){return},set:function(a){gf.core.console.debug("gf.core.ads.handler.adsenseForContent");$.each(this.properties.parameters,function(b,c){window[b]=c});gf.core.console.info("gf.core.ads.handler.adsenseForContent",this.properties.parameters)},initArea:function(b,a){var c={parameters:{google_max_num_ads:4,google_ad_channel:""}};a=a||{};$.extend(true,gf.core.ads.area[b],c,this.properties,a)},displayArea:function(a){var b=gf.core.ads.area[a].parameters,c="";c+='<script type="text/javascript">\n';c+="<!--\n";c+="window.google_ad_client = '"+b.google_ad_client+"';\n";c+="window.google_ad_channel = '"+b.google_ad_channel+"';\n";c+="window.google_max_num_ads = "+b.google_max_num_ads+";\n";c+="window.google_image_size = '"+b.google_image_size+"';\n";c+="window.google_ad_type = '"+b.google_ad_type+"';\n";c+="window.google_ad_output = '"+b.google_ad_output+"';\n";if(b.google_ad_format){c+="window.google_ad_format = '"+b.google_ad_format+"';\n"}if(b.google_kw_type){c+="window.google_kw_type = '"+b.google_kw_type+"';\n"}if(b.google_prev_ad_formats_by_region){c+="window.google_prev_ad_formats_by_region = '"+b.google_prev_ad_formats_by_region+"';\n"}c+="window.google_skip = "+gf.core.ads.handler.adsenseForContent.skipNum+";\n";c+="function google_ad_request_done(google_ads) {\n";c+=" gf.core.ads.handler.adsenseForContent.renderAds(google_ads,'"+a+"');\n";c+="}\n";c+="//-->\n";c+="<\/script>\n";c+='<script type="text/javascript" language="JavaScript" src="'+gf.core.ads.area[a].url+'"><\/script>';document.write(c)},renderAds:function(d,e){var g={renderOptions:{textPosition:"beforeSiteLink",style:"afcType-a"},url:"Url",line1:"Test line 1",line2:"Test Line 2",line3:"Test Line 3",visible_url:"http://www.gutefrage.net/",feedback_url:"http://services.google.com/feedback/online_hws_feedback",feedback_text:"Google Anzeigen",identifier:""},c,b,a,f="";b=$.extend(false,g,gf.core.ads.area[e]);gf.core.console.info(e,{channel:gf.core.ads.area[e].parameters.google_ad_channel,style:gf.core.ads.area[e].renderOptions.style,amount:gf.core.ads.area[e].parameters.google_max_num_ads});d.url=d.url||b.url;d.line1=d.line1||b.line1;d.line2=d.line2||b.line2;d.line3=d.line3||b.line3;d.visible_url=d.visible_url||b.visible_url;window.google_info=window.google_info||{};window.google_info.feedback_url=window.google_info.feedback_url||b.feedback_url;a="content";if(Number(gf.core.ads.area[e].parameters.google_max_num_ads)===2&&Number(d.length)===1){a+=" textSizeBig"}if(d.length>0){f+='<div class="'+gf.core.ads.adClass+" "+gf.core.ads.area[e].adClass+" "+b.renderOptions.style+'">';f+='<div class="header"><div class="google-link"><a href="'+window.google_info.feedback_url+'">'+b.feedback_text+"</a></div></div>";f+='<div class="'+a+'">';f+='<ul class="googleAdsense">';for(c=0;c<d.length;c=c+1){f+='<li class="googleAdsense clearfix">';f+='<div class="url"><a target="_blank" href="'+d[c].url+'">'+d[c].line1+"</a></div>";if(b.renderOptions.textPosition==="beforeSiteLink"){f+='<span class="text">';f+='<span class="line2">'+d[c].line2+"</span>";f+='<span class="line3">'+d[c].line3+"</span>";f+="</span>"}f+='<a target="_blank" class="visible-url" href="'+d[c].url+'">'+d[c].visible_url+"</a>";if(b.renderOptions.textPosition==="afterSiteLink"){f+='<span class="text">';f+='<span class="line2">'+d[c].line2+"</span>";f+='<span class="line3">'+d[c].line3+"</span>";f+="</span>"}f+="</li>"}f+="</ul>";f+="</div>";f+="</div>";if(d[0].bidtype==="CPC"){gf.core.ads.handler.adsenseForContent.skipNum+=d.length}}else{gf.core.console.debug("gf.core.ads.handler.adsenseForContent.renderAds",'[adArea: "'+e+'"],[error: no ads found]',"warn")}if(gf.core.ads.area[e].renderType==="replace"){if($(gf.core.ads.area[e].renderTarget).length===0){gf.core.console.error("gf.core.ads.handler.adsenseForContent.renderAds",{adArea:e,error:"replacement container could not be located"})}else{$(gf.core.ads.area[e].renderTarget).html(f)}}else{if(gf.core.ads.area[e].renderType==="write"){document.write(f)}}gf.core.ads.area[e].displayed=true}};gf.core.ads.handler.tomorrowFocus={properties:{adClass:"block-tomorrowFocus",url:"",parameters:{adsc_contentwidth:1020,adsc_ressort:"",adsc_rubrik:"",adsc_keyword:"",adsc_layout:"",adsc_sb:100,adsc_mr:0,adsc_sk:100,adsc_RF:"",adsc_SE:""},supressHandler:false,renderType:"write",renderOptions:{}},init:function(){gf.core.console.debug("gf.core.ads.handler.tomorrowFocus.init")},set:function(a){gf.core.console.debug("gf.core.ads.handler.tomorrowFocus.set");if(document.referrer.indexOf(".google.")>=0){this.properties.parameters.adsc_RF=document.referrer;this.properties.parameters.adsc_SE="google"}$.each(this.properties.parameters,function(b,c){window[b]=c});document.write('<script type="text/javascript" src="'+this.properties.url+'"><\/script>');gf.core.console.info("gf.core.ads.handler.tomorrowFocus.set",this.properties.parameters)},initArea:function(b,a){gf.core.console.debug("gf.core.ads.handler.tomorrowFocus.initArea");var c={adClass:"block-tomorrowFocus",parameters:["","","","",""]};a=a||{};$.extend(true,gf.core.ads.area[b],c,a)},displayArea:function(b){gf.core.console.debug("gf.core.ads.handler.tomorrowFocus.displayArea");var a=gf.core.ads.area[b],d="";function c(j,h,g,f,e){return("<script>document.write(window.ads_gettag('"+j+"',"+h+","+g+","+f+",'"+e+"'));<\/script>")}d+='<div class="block '+gf.core.ads.adClass+" "+gf.core.ads.area[b].adClass+" "+gf.core.ads.adClass+gf.core.ads.area[b].type+'">';d+=c(a.parameters[0],a.parameters[1],a.parameters[2],a.parameters[3],a.parameters[4]);d+="</div>";document.write(d);gf.core.ads.area[b].displayed=true}};gf.core.ads.handler.smartAd={properties:{adClass:"block-smartAd",parameters:{sas_pageid:"",sas_formatid:"",sas_target:""},supressHandler:false,renderType:"write",renderOptions:{}},init:function(){},set:function(b){var a=["<script>","sas_tmstp=Math.round(Math.random()*10000000000);","sas_masterflag=1;","function sasmobile(sas_pageid,sas_formatid,sas_target) {","  if (sas_masterflag === 1) {","    sas_masterflag=0;","    sas_master='M';","  } else {","    sas_master='S';","  };","  document.write('<scr' + 'ipt src=\"http://mobile.smartadserver.com/call2/pubmj/'+sas_pageid+'/'+sas_formatid+'/'+sas_master+'/'+sas_tmstp+'/'+escape(sas_target)+'?\"></scr' + 'ipt>');","}","function sascc(sas_imageid,sas_pageid) {","  img=new Image();","  img.src='http://mobile.smartadserver.com/call/clicpixel/'+sas_imageid+'/'+sas_pageid+'/'+sas_tmstp+'?';","}","function SmartAdServer(sas_pageid,sas_formatid,sas_target) {","  if (sas_masterflag ===1 ) {","  sas_masterflag=0;","  sas_master='M';","  } else {","    sas_master='S';","  };","  document.write('<scr' + 'ipt src=\"http://www4.smartadserver.com/call/pubj/' + sas_pageid + '/' + sas_formatid + '/' + sas_master + '/' + sas_tmstp + '/' + escape(sas_target) + '?\"></scr' + 'ipt>');","}","<\/script>"].join("");document.write(a)},initArea:function(b,a){gf.core.console.debug("gf.core.ads.handler.smartAd.initArea");a=a||{};$.extend(true,gf.core.ads.area[b],this.properties,a)},displayArea:function(b){gf.core.console.debug("gf.core.ads.handler.smartAd.displayArea");var a=gf.core.ads.area[b],d,f=a.parameters.sas_pageid,c=a.parameters.sas_formatid,e=a.parameters.sas_target;if(a.type==="-gf-mobile"){d=["",'  <div class="block ',gf.core.ads.adClass," ",gf.core.ads.area[b].adClass," ",gf.core.ads.adClass+gf.core.ads.area[b].type,' ">',"    <script>","      sasmobile('",f,"','",c,"','",e,"');","    <\/script>","    <noscript>",'      <a href="http://mobile.smartadserver.com/call2/pubjumpmi/30175/(auto)/12902/M/[timestamp]/?">','      <img src="http://mobile.smartadserver.com/call2/pubmi/30175/(auto)/12902/M/[timestamp]/?" border="0" alt="" /></a>',"    </noscript>","  </div>"].join("")}else{d=["",'  <div class="block ',gf.core.ads.adClass," ",gf.core.ads.area[b].adClass," ",gf.core.ads.adClass+gf.core.ads.area[b].type,' ">',"    <script>","      SmartAdServer('",f,"','",c,"','",e,"');","     <\/script>","      <noscript>",'        <a href="http://www4.smartadserver.com/call/pubjumpi/28089/(auto)/12269/M/[timestamp]/?">','        <img src="http://www4.smartadserver.com/call/pubi/28089/(auto)/12269/M/[timestamp]/?" border="0" alt="" /></a>',"      </noscript>","  </div>"].join("")}document.write(d);gf.core.ads.area[b].displayed=true}};gf.core.tracking={defaults:{analytics_account:"UA-965201-1",analytics_action:"click",analytics_label:""},init:function(){},trackIt:function(c){c=$.extend(true,this.defaults,c);gf.core.console.debug("gf.core.tracking",c);var b="",a="";if(c.analytics_account&&(c.analytics_event||c.analytics_page)){b+='<script type="text/javascript">\n';b+="<!--\n";b+="var _gaq = _gaq || [];\n";b+="_gaq.push(['_setAccount', '"+c.analytics_account+"']);\n";if(c.analytics_event){b+="_gaq.push(['_trackEvent', '"+c.analytics_event+"', '"+c.analytics_action+"', '"+c.analytics_label+"']);\n"}if(c.analytics_page){b+="_gaq.push(['_trackPageview', '"+c.analytics_page+"']);\n"}b+="(function() {\n";b+="  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n";b+="  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n";b+="  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n";b+="})();\n";b+="//-->\n";b+="<\/script>\n"}if(c.ivw_track){a="http://gutefrag.ivwbox.de/cgi-bin/ivw/CP/"+c.ivw_track+";"+c.ivw_track;b+='<img src="'+a+'" width="1" height="1" alt="ivw" />'}$("body").append(b)}};gf.ext={gutefrage:{loaded:false,component:{},block:{},form:{},page:{},user:{avatar:""},settings:{timestamp:"",version:"-gf-desktop",colors:{poll:["#6ed2f3","#ff7431","#568c05","#27ade5","#a2ca41","#7b73ee","#f1a51f"]},loader:{small:{src:"/images/ajax-loader-small.gif",width:16,height:16},large:{src:"/images/ajax-loader-big.gif",width:32,height:32}},session:{authenticated:false},interest:{url:"#"},login:{url:"/login"},askQuestion:{url:"/frage_hinzufuegen"},askHint:{url:"/tipp_hinzufuegen"},token:{csrfToken:"",csrfFieldName:""},autosuggestTags:{popular:{url:"/js/gf/ext/gutefrage/popluarTags.js"},marketing:{url:"/js/gf/ext/gutefrage/marketingChannels.js"}}},init:function(g,n){g=g||"";n=n||{};var c=g.split(".")[0],l=g.split(".")[1],h;function j(p){gf.core.console.info("gf.ext.gutefrage","initializing header");var o,q;if(p.showQuestionAddButton){o=$("<a />",{id:"header_submitQuestion",href:gf.ext.gutefrage.settings.askQuestion.url,title:"Frage stellen"}).text("Frage stellen").prependTo($("#header"))}if(p.showHintAddButton){q=$("<a >",{id:"header_submitHint",href:gf.ext.gutefrage.settings.askHint.url,title:"Tipp geben"}).text("Tipp geben").prependTo($("#header"))}$("#header ul.account li a").wrapInner('<span class="text" />');$("#header ul.account li.login a").append('<span class="icon iconArrow-1" />').live("click",function(){gf.ext.gutefrage.loginPopup();return false});$("#header ul.account li.logout a").append('<span class="icon iconArrow-1" />');$("#header_submitQuestion, #header_submitHint").append('<span class="icon" />');if(window.location.pathname!=="/"){$("#header div.logo a").append('<span class="backLink">&lt; zur Startseite</span>')}}function b(){gf.core.console.debug("gf.ext.gutefrage","initializing navigation");$('#mainNavigation .subNav li[data-url!=""], #tagNavigation .subNav li[data-url!=""]').each(function(){if($(this).find("a").length===0&&$(this).hasClass("active")===true){$(this).wrapInner('<a class="navItem active" href="'+decodeURIComponent($(this).data("url"))+'" />').removeAttr("data-url").removeAttr("class")}else{$(this).wrapInner('<a class="navItem" href="'+decodeURIComponent($(this).attr("data-url"))+'" />').removeAttr("data-url").removeAttr("class")}});$("#tagNavigation a:first").prepend('<span class="icon iconArrow-4" />');$("#tagNavigation .subNav").append('<li class="cloned" />');$("#tagNavigation .cloned").html($("#tagNavigation a:first").clone().removeAttr("class").addClass("allLink").html("Themen von A-Z"));$("#tagNavigation .subNav").append('<li class="cloned consultation"><a class="allLink" href="/sprechstunden/1">Sprechstunden</a></li>');$("#mainNavigation a.mainNav").bind("mouseover",function(){$(this).addClass("current")}).bind("mouseout",function(){$(this).removeClass("current")});$("#tagNavigation, #mainNavigation").superfish({hoverClass:"current",disableHI:true,autoArrows:false,dropShadows:false,speed:"fast",delay:20,onBeforeShow:function(){},onHide:function(){}})}function e(){gf.core.console.debug("gf.ext.gutefrage","initializing jsLinks");$("[data-jslink]").each(function(){var q=$(this).data("jslink"),p,r={},o=$(this).find(".html_placeholder");$.each(q,function(s,t){if(s!=="html"&&s!==undefined){r[s]=t}});p=$("<a />",r);if(q.html!==undefined){p.html(q.html)}if(o.length===1){o.replaceWith(p)}else{p.prependTo($(this))}})}function k(){gf.core.console.debug("gf.ext.gutefrage","customizing jQuery Tools settings");$.tools.overlay.addEffect("infoFlyout",function(o,p){this.getOverlay().css(o).fadeIn(this.getConf().speed,p)},function(o){this.getOverlay().fadeOut(this.getConf().closeSpeed,o)});$.tools.validator.addEffect("errorFlyout",function(q,o){var p=$(this.getConf().container);gf.ext.gutefrage.form.utils.customEffect("errorFlyout",p,q)},function(p){var q,o;for(q=0;q<p.length;q=q+1){$(p[q]).removeClass("error");o=$(p[q]).attr("id")+"_errorFlyout";if($("#"+o).size()===0&&$(p[q]).attr("rel")){o=$(p[q]).attr("rel")+"_errorFlyout"}$("#"+o).remove()}});$.tools.validator.addEffect("errorFlyoutCompact",function(q,o){var p=$(this.getConf().container);gf.ext.gutefrage.form.utils.customEffect("errorFlyoutCompact",p,q)},function(p){var q,o;for(q=0;q<p.length;q=q+1){$(p[q]).removeClass("error");o=$(p[q]).attr("id")+"_errorFlyout";if($("#"+o).size()===0&&$(p[q]).attr("rel")){o=$(p[q]).attr("rel")+"_errorFlyout"}$("#"+o).remove()}});$.tools.validator.fn("[placeholder]",function(o,p){var q=o.attr("placeholder");if(q===p&&o.attr("required")==="required"){return false}return true});$.tools.validator.fn("[minlength]",function(o,q){var p=o.attr("minlength");if(q.length===0&&!o.attr("required")){return true}return q.length>=p?true:[p]});$.tools.validator.fn("input[type='radio'][required]",function(o,p){if(gf.ext.gutefrage.form.utils.invalidateRadios[o.attr("name")]==="invalidate"){o.attr("checked","");return false}return true});$.tools.validator.fn("[type=url]",function(o,p){return true});$.tools.validator.fn("[data-equals]","Value not equal with the $1 field",function(o){var p=o.attr("data-equals"),q=this.getInputs().filter("[name="+p+"]");return o.val()===q.val()?true:[p]})}function m(o){gf.core.console.debug("gf.ext.gutefrage","Init time update");$.prettyDate.messages={now:"gerade eben",minute:"vor einer Minute",minutes:$.prettyDate.template("vor {0} Minuten"),hour:"vor einer Stunde",hours:$.prettyDate.template("vor {0} Stunden"),yesterday:"Gestern",days:$.prettyDate.template("vor {0} Tagen"),weeks:$.prettyDate.template("vor {0} Wochen")};$("time").prettyDate({interval:o})}function f(){gf.core.console.debug("gf.ext.gutefrage","Setting up user flyouts on mouseover");var q,o,p=$('<div id="userFlyout" />').data("users",[]);if($("#userFlyout").length===0){p.appendTo("body")}$(".user").delegate('a[href*="/nutzer/"]',"mouseover",function(){var r=$(this);if(typeof(r.data("tooltip"))==="undefined"){r.tooltip({cancelDefault:false,onBeforeShow:function(){var s=this.getTip(),t=this.getTrigger().attr("href").substr(this.getTrigger().attr("href").lastIndexOf("/")+1);if(s.find("span.layoutBubble-1").length===0){s.empty().append('<span class="layoutBubble-1" /><img class="loader" src="/images/ajax-loader-big.gif" width="32" height="32" alt="loading" style="margin: 50px auto;" />')}s.find("table").hide();s.find(".loader").show();if($("#userFlyout table[rel="+t+"]").length===0&&s.data("users").indexOf(t)===-1){s.data("users").push(t);o=$.ajax({url:"/nutzer/"+t+"/tooltipp",success:function(u){s.find(".loader").fadeOut(function(){s.append(u)})},error:function(){s.data("users").pop()}})}else{s.find(".loader").hide();s.find("table[rel="+t+"]").show()}},position:"bottom center",offset:[0,40],tip:"#userFlyout"})}q=setTimeout(function(){r.data("tooltip").show()},500)});$(".user").delegate("a","mouseout",function(){clearTimeout(q);$(this).data("tooltip").hide();if(o!==undefined){o.abort()}})}function a(){$("a[data-gf-message]").each(function(){$(this).bind("click",function(){var o=$("<span />",{"class":"popup"}).html($(this).data("gfMessage"));gf.ext.gutefrage.overLay.init(o,{load:false,onClose:function(){}});return false})})}if(g===""&&this.loaded===false){this.loaded=true;e();a();j(n.header);b();k();f();m(10000);gf.ext.gutefrage.loadAvatar();gf.ext.gutefrage.loadImages();gf.ext.gutefrage.prepareJsLinks();if(gf.ext.gutefrage.settings.session.authenticated===true){$("body").addClass("logged")}}else{if($("html").hasClass("enhanced")){if(typeof(gf.ext.gutefrage[c][l])!=="undefined"&&$.isFunction(gf.ext.gutefrage[c][l].init)===true){gf.ext.gutefrage[c][l].init(n)}else{gf.core.console.error("gf.ext.gutefrage","failed to initialize gf.ext.gutefrage."+c+"."+l);var d="";if(gf.ext.gutefrage.settings.timestamp!==""){d="?"+gf.ext.gutefrage.settings.timestamp}$.ajax({url:"/js/gf/ext/gutefrage/"+c+"/"+l+"/"+l+".js"+d,dataType:"script",cache:true,success:function(o,p){gf.core.console.warn("gf.ext.gutefrage","loaded single js file for gf.ext.gutefrage."+c+"."+l);gf.ext.gutefrage[c][l].init(n)}})}}}},loadAvatar:function(){$('img[data-avatar!=""]').each(function(){if($(this).data("avatar")!=$(this).attr("src")){$(this).attr("src",$(this).data("avatar"))}})},loadImages:function(){$('img[data-gf-image-url!=""]').each(function(){if($(this).data("gfImageUrl")!=$(this).attr("src")){$(this).attr("src",$(this).data("gfImageUrl"))}})},prepareJsLinks:function(){$("[data-gf-href]").bind("click",function(){window.location=$(this).data("gf-href")})}}};gf.ext.gutefrage.GoogleCustomSearch=(function(){function a(b){this.cse_id=b}a.prototype.getQuery=function(c){if(undefined==c){c=window.location.search}var b="q";var d=this.getRawParamFromUrl(b,c);d=d.replace(/\+/g," ");return decodeURIComponent(d)};a.prototype.getRawParamFromUrl=function(f,b){b=b.substr(1);var d=b.split("&");for(var c=0;c<d.length;c++){var e=d[c].split("=");if(decodeURIComponent(e[0])==f){return e[1]}}return undefined};a.prototype.execute=function(){var c=new google.search.CustomSearchControl(search.cse_id);var b=new google.search.DrawOptions();b.enableSearchResultsOnly();c.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);c.draw("cse",b);c.setSearchCompleteCallback(window,search.postSearch,this);if(search.getQuery()){c.execute(search.getQuery())}};a.prototype.postSearch=function(b){if($("#searchFilters").length===0){var d=$("<div>",{"data-role":"controlgroup","data-type":"horizontal",id:"searchFilters"}).css("padding-bottom","0");$("div.gsc-tabHeader:gt(0)").each(function(g,j){var e=$(this),h,f=(g===0)?"ui-btn-down-gutefrage1":"";h=$("<a />",{"data-role":"button","data-theme":"gutefrage1",href:"#","class":f}).bind("vclick, tap",function(){e.trigger("click");$("#searchFilters a").each(function(){$(this).removeClass("ui-btn-down-gutefrage1")});$(this).addClass("ui-btn-down-gutefrage1")}).html(e.text()).appendTo(d)});d.appendTo($("#headerWrapper"));try{$("#page-search").page("destroy").page()}catch(c){}}};a.prototype.render=function(){var b=this;google.load("search","1",{language:"de"});google.setOnLoadCallback(this.execute,true)};return a})();gf.ext.gutefrage.mobileSwitch={applyDefaultEnhanceDisplay:function(){function b(){if($.cookie("enhanceBackup").length>0){var c=$.cookie("enhanceBackup").split(/,/);if(c.length===2){$.cookie("enhanced-toggledmediaA",c[0],{path:"/"});$.cookie("enhanced-toggledmediaB",c[1],{path:"/"})}}$.cookie("enhanceBackup","",{path:"/"})}function a(){$.cookie("gfMobile","",{path:"/"})}b();a()},forceDesktopVersion:function(){function a(){if($.cookie("enhanced-toggledmediaA").length>0&&$.cookie("enhanced-toggledmediaB").length>0){var e=[$.cookie("enhanced-toggledmediaA"),$.cookie("enhanced-toggledmediaB")];$.cookie("enhanceBackup",e.join(","),{path:"/"})}}function c(){$.cookie("enhanced-toggledmediaA","",{path:"/"});$.cookie("enhanced-toggledmediaB","",{path:"/"})}function b(){$.cookie("gfMobile","url-disabled",{path:"/"})}function d(){return $.cookie("gfMobile")==="url-disabled"}if(!d()){a()}c();b()},isEnhanceDesktopVersionForced:function(){if($.cookie("enhanced-toggledmediaA").length>0&&$.cookie("enhanced-toggledmediaB").length>0){if($.cookie("enhanced-toggledmediaA")==="-gf-desktop"&&$.cookie("enhanced-toggledmediaB")==="-gf-mobile"){return true}}return false}};gf.util.string.tokenFilter=function(b,d,a){a=a||" ";var c="";$.grep(b.split(a),function(f,e){if(c===""){if(f.indexOf(d)!==-1){c=f.substring(d.length)}}});gf.core.console.debug("gf.util.string.tokenFilter","string: "+b+" | substring: "+d+" | delimiter: "+a+" | token: "+c);return c};gf.util.string.truncateText=function(a,c,g){gf.core.console.debug("gf.util.string.truncateText to "+c+" characters");if(a.html().length>c){var e=a.html(),b=$("<a>",{href:"#","class":"gfTruncated"}).text(g).bind("click",function d(){a.html(e);return false});a.html(e.substr(0,c)).append(b)}};gf.util.string.removeComments=function(a){gf.core.console.debug("gf.util.string.removeComments");return a.replace(/(<!--|-->)/gi,"")};
