function GetParam(b){var a=new RegExp(b+"=(.+)[&]","i").exec(location.search);if(a==null){a=new RegExp(b+"=(.+)","i").exec(location.search)}if(a==null){return null}a=a+"";result=a.split(",");return result[1]}function google_afs_request_done(c){var d=c.length;if(d<=0){return}var b="";var a="";for(i=0;i<d;i++){if(c[i].type=="text/wide"){b+='<a style="text-decoration:none" target="_blank" onmouseover="javascript:window.status=\''+c[i].url+'\';return true;" onmouseout="javascript:window.status=\'\';return true;" href="'+c[i].url+'"><span class="ad_line1">'+c[i].line1+'</span></a><br><span class="ad_text">'+c[i].line2+'</span><br><a style="text-decoration:none" target="_blank" onmouseover="javascript:window.status=\''+c[i].url+'\';return true;" onmouseout="javascript:window.status=\'\';return true;" href="'+c[i].url+'"><span class="ad_url">'+c[i].visible_url+"</span><br></a>"}else{a+='<a style="text-decoration:none" target="_blank" onmouseover="javascript:window.status=\''+c[i].url+'\';return true;" onmouseout="javascript:window.status=\'\';return true;" href="'+c[i].url+'"><span class="ad_line1">'+c[i].line1+'</span></a><br><span class="ad_text">'+c[i].line2+'</span><br><span class="ad_text">'+c[i].line3+'</span><br><a style="text-decoration:none" target="_blank" onmouseover="javascript:window.status=\''+c[i].url+'\';return true;" onmouseout="javascript:window.status=\'\';return true;" href="'+c[i].url+'"><span class="ad_url">'+c[i].visible_url+"</span><br></a>"}}if(a!=""){a='<a style="text-decoration:none" href="http://services.google.com/feedback/online_hws_feedback"><div class="ad_header" style="text-align:left">Google-Anzeigen</div></a>'+a}if(b!=""){b='<a style="text-decoration:none" href="http://services.google.com/feedback/online_hws_feedback"><div class="ad_header" style="text-align:left">Google-Anzeigen</div></a>'+b}document.getElementById("wide_ad_unit").innerHTML=b;document.getElementById("narrow_ad_unit").innerHTML=a}google_afs_query=GetParam("q");google_afs_ad="w4";google_afs_client="pub-1029647562324426";google_afs_hl="de";google_afs_ie="utf8";google_afs_oe="utf8";jQuery.fn.pagination=function(a,b){b=jQuery.extend({items_per_page:10,num_display_entries:10,current_page:0,num_edge_entries:0,link_to:"#",prev_text:"Prev",next_text:"Next",ellipse_text:"...",prev_show_always:true,next_show_always:true,callback:function(){return false}},b||{});return this.each(function(){function f(){return Math.ceil(a/b.items_per_page)}function h(){var l=Math.ceil(b.num_display_entries/2);var m=f();var k=m-b.num_display_entries;var n=g>l?Math.max(Math.min(g-l,k),0):0;var j=g>l?Math.min(g+l,m):Math.min(b.num_display_entries,m);return[n,j]}function e(k,j){g=k;var l=b.callback(k,d);if(!l){if(j.stopPropagation){j.stopPropagation()}else{j.cancelBubble=true}}return l}function c(){d.empty();var k=h();var o=f();var p=function(q){return function(r){return e(q,r)}};var n=function(q,r){q=q<0?0:(q<o?q:o-1);r=jQuery.extend({text:q+1,classes:""},r||{});if(q==g){var s=jQuery("<span class='current'>"+(r.text)+"</span>")}else{var s=jQuery("<a>"+(r.text)+"</a>").bind("click",p(q)).attr("href",b.link_to.replace(/__id__/,q))}if(r.classes){s.addClass(r.classes)}d.append(s)};if(b.prev_text&&(g>0||b.prev_show_always)){n(g-1,{text:b.prev_text,classes:"prev"})}if(k[0]>0&&b.num_edge_entries>0){var j=Math.min(b.num_edge_entries,k[0]);for(var l=0;l<j;l++){n(l)}if(b.num_edge_entries<k[0]&&b.ellipse_text){jQuery("<span>"+b.ellipse_text+"</span>").appendTo(d)}}for(var l=k[0];l<k[1];l++){n(l)}if(k[1]<o&&b.num_edge_entries>0){if(o-b.num_edge_entries>k[1]&&b.ellipse_text){jQuery("<span>"+b.ellipse_text+"</span>").appendTo(d)}var m=Math.max(o-b.num_edge_entries,k[1]);for(var l=m;l<o;l++){n(l)}}if(b.next_text&&(g<o-1||b.next_show_always)){n(g+1,{text:b.next_text,classes:"next"})}}var g=b.current_page;a=(!a||a<0)?1:a;b.items_per_page=(!b.items_per_page||b.items_per_page<0)?1:b.items_per_page;var d=jQuery(this);this.selectPage=function(j){e(j)};this.prevPage=function(){if(g>0){e(g-1);return true}else{return false}};this.nextPage=function(){if(g<f()-1){e(g+1);return true}else{return false}};c();b.callback(g,this)})};jQuery.fn.rater=function(b,h,n){if(b==null){return}var f={url:b,maxvalue:5,curvalue:0};if(n){jQuery.extend(f,n)}jQuery.extend(f,{cancel:(f.maxvalue>1)?true:false});var c=jQuery(this);jQuery.extend(c,{averageRating:f.curvalue,url:f.url});if(!f.style||f.style==null||f.style=="basic"){var m=f.maxvalue*25;var k='<ul class="star-rating" style="width:'+m+'px">'}if(f.style=="small"){var m=f.maxvalue*10;var k='<ul class="star-rating small-star" style="width:'+m+'px">'}if(f.style=="inline"){var m=f.maxvalue*10;var k='<span class="inline-rating"><ul class="star-rating small-star" style="width:'+m+'px">'}c.append(k);var e,l,j="";var a=Math.floor(100/f.maxvalue*f.curvalue);for(var g=0;g<=f.maxvalue;g++){if(g==0){j+='<li class="current-rating" style="width:'+a+'%;">'+f.curvalue+"/"+f.maxvalue+"</li>"}else{e=Math.floor(100/f.maxvalue*g);l=(f.maxvalue-g)+2;j+='<li class="star"><a href="#'+g+'" title="'+g+"/"+f.maxvalue+'" style="width:'+e+"%;z-index:"+l+'">'+g+"</a></li>"}}c.find(".star-rating").append(j);if(f.maxvalue>1){c.append('<span class="star-rating-result"></span>')}var d=jQuery(c).find(".star-rating").children(".star");d.click(function(){if(f.maxvalue==1){f.curvalue=(f.curvalue==0)?1:0;jQuery(c).find(".star-rating").children(".current-rating").css({width:(f.curvalue*100)+"%"});jQuery.post(c.url,{rating:f.curvalue});return false}else{jQuery(c).find(".star-rating").css({display:"none",visibility:"hidden"});f.curvalue=d.index(this)+1;raterValue=jQuery(this).children("a")[0].href.split("#")[1];jQuery.post(c.url,{id:h,rating:raterValue},function(o){c.children(".star-rating-result").html(o)});return false}return true});return this};
