/**
 * js/global.js
 * kindenrothilfe e.V. <http://www.kindenrothilfe.org>
 */
var o_imgwin=""; function knh_imageWin(s) { if(o_imgwin.closed == false) o_imgwin.close(); var w = (/width-(\d+)/.exec(s)) ? RegExp.$1 : 800; var h = (/height-(\d+)/.exec(s)) ? RegExp.$1 : 800; o_imgwin = window.open(s,'kiw','width='+w+',height='+h+',left=5,top=5,scrollbars=no'); }
var o_pwin=false; function pp_print(s) { if(o_pwin.closed == false) { o_pwin.close(); } var w = 800; var h = 600; o_pwin = window.open(s,'pwin','width='+w+',height='+h+',left=5,top=5,scrollbars=yes,status=yes,resizable=yes,toolbar=yes,menubar=yes'); }

/** knhCalendar; (c) 2010 Kindernothilfe e.V.; @author SL <http://www.kindenrothilfe.org> */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('j 1u=2f.2g();1u.2h={m:{},r:v,B:v,C:v,10:v,2i:8(a){2.m=2j.2k({C:16,r:16,1d:\'\',1v:[\'2l\',\'2m\',\'Mä2n\',\'2o\',\'2p\',\'2q\',\'2r\',\'2s\',\'2t\',\'2u\',\'2v\',\'2w\'],1w:[\'2x\',\'2y\',\'2z\',\'2A\',\'2B\',\'2C\',\'2D\'],1e:1,1x:2E.2F,J:{1y:\'Nä2G 1z\',1A:\'2H 1z\',1B:\'Nä2I 1C\',1D:\'2J 1C\',1f:\'1E ö2K\',1F:\'1E 2Lß2M\'}},a||{});2.1G=2.1H.1g(2);2.1I=2.1J.1g(2);2.1K=2.1L.1g(2);9(2.m.1d){2.10=D E(2.m.1d)}9($(2.m.C)){2.C=$(2.m.C);2.11()}P{2.B=1M;2N{2.r=$(2.m.r);2.r.Q=2.m.J.1f;2.r.1h("1i",2.1G)}2O(2P){R v}}},1H:8(a){2[(2.r.1N(\'4-w\')?\'w\':\'11\')]()},1J:8(a){j b=1O.1P(a,\'V\');9(b.F){2.K(b.F)}},1L:8(a){j b=1O.1P(a,\'u\');2.10=D E(b.F);9(2.B){2.B.w()}2.m.1x(D E(b.F))},11:8(a){j b,1j;b=2.1k(a||16);9(2.B){1j=2.1Q(2.r);2.B.11(b,1j,2)}P{2.C.K(\'\');2.C.l(b)}},w:8(){2.B.w()},K:8(a){j b=2.1k(a);9(2.B){2.B.K(b)}P{2.C.K(\'\');2.C.l(b)}},1k:8(a){j b,S,T;b=2.W(D E());S=2.10?2.W(2.10):v;9(!a){a=S?S:2.W(D E())}P 9(2Q(a)==\'2R\'){a=2.W(D E(a))}9(!a){R 16}T=D E(a);T.17(1);T.17(1-(7+T.1l()-2.m.1e)%7);j c,G,I,o,u;c=$(s.t(\'1R\'));c.18(\'4\');G=$(c.l(s.t(\'G\')));G.18(\'4-1S\');I=$(G.l(s.t(\'1T\')));o=$(I.l(s.t(\'o\')));o.18(\'4-1S\');o.1h(\'1i\',2.1I);u=o.l(2.L(\'V\',\'<b>&1m;&1m;</b>\',{\'U\':\'4-12 4-2S\',\'F\':2.13(a,-1,\'y\'),\'Q\':2.m.J.1A}));u=o.l(2.L(\'V\',\'<b>&1m;</b>\',{\'U\':\'4-12 4-2T\',\'F\':2.13(a,-1),\'Q\':2.m.J.1D}));u=o.l(2.L(\'V\',2.m.1v[a.z()]+\' \'+a.1U(),{\'U\':\'4-2U\',2V:\'3\'}));u=o.l(2.L(\'V\',\'<b>&1n;</b>\',{\'U\':\'4-12 4-2W\',\'F\':2.13(a,+1),\'Q\':2.m.J.1B}));u=o.l(2.L(\'V\',\'<b>&1n;&1n;</b>\',{\'U\':\'4-12 4-2X\',\'F\':2.13(a,+1,\'y\'),\'Q\':2.m.J.1y}));G=c.l(s.t(\'G\'));I=$(G.l(s.t(\'1T\')));o=I.l(s.t(\'o\'));1V(j i=0;i<7;i++){u=o.l(2.L(\'u\',2.m.1w[(2.m.1e+i)%7],{\'U\':\'4-2Y\'}))}I=$(G.l(s.t(\'I\')));I.1h(\'1i\',2.1K);j d,O,14,1o,n=D E(T);1W(n.z()==a.z()||n.z()==T.z()){o=I.l(s.t(\'o\'));1V(j e=0;e<7;e++){14=n.19();1o=n.z();O=\'\';9(n.1l()==0||n.1l()==6){O+=\'4-2Z \'}9(n.z()!=a.z()){O+=\'4-30 \'}9(n.X()==b.X()){O+=\'4-31 \'}9(S&&n.X()==S.X()){O+=\'4-S \'}O+=\'4-12\';u=o.l(2.L(\'u\',14,{\'F\':n.X(),\'U\':O}));n.17(++14);1W(n.19()!=14&&n.z()==1o){n.1X(n.32+1);n=2.W(n)}}}R c},1Y:8(){2.1p()},1Z:8(){2.1p()},1p:8(){9(2.r.1N(\'4-w\')){2.r.33(\'4-w\');2.r.Q=2.m.J.1f}P{2.r.18(\'4-w\');2.r.Q=2.m.J.1F}},L:8(a,b,c){j d=$(s.t(a));d.34=b;$H(c).35(8(p){d[p.36]=p.37});R d},13:8(a,b,c){j d=D E(a);9(c==\'y\'){d.38(a.1U()+b)}P{d.39(a.z()+b)}9(d.19()!=a.19()){d.17(0)}R d.X()},W:8(a){a.1X(0);a.3a(0);a.3b(0);a.3c(0);R a},1Q:8(a){20.3d();j b=20.3e(a);j c=21.22(a);R{x:b[0],y:b[1],15:c.15,1a:c.1a}},23:\'\'};j 1M={q:v,3f:v,A:v,k:{},1b:v,11:8(a,b,c){9(!2.q){2.24()}P 9(2.q.3g()){2.w()}2.K(a);2.1b=c;j d=21.22(2.q);j e=2.q.3h;j f=2.q.3i;j g=b.y+b.1a;j h=b.x-d.15+b.15;9(h<0)h=0;2.q.1q({\'25\':h+\'Y\',\'26\':g+\'Y\'});2.q.27();9(2.A){2.A.1q({\'25\':h+\'Y\',\'26\':g+\'Y\',\'15\':e+\'Y\',\'1a\':f+\'Y\'});2.A.27()}2.1b.1Y()},w:8(){2.1r();2.1b.1Z()},K:8(a){2.q.K(\'\');2.q.l(a)},1r:8(){2.q.28();9(2.A){2.A.28()}},24:8(){j a=$(s.3j);2.29();2.q=$(a.l(s.t(\'1R\')));2.q.2a=\'4-q\';2.q.1q({3k:\'3l\'});9(2.k.2b){2.A=$(a.l(s.t(\'A\')));2.A.2a=\'4-A\'}2.1r()},29:8(){2.k.Z=3m.3n.3o();2.k.2c=/3p\\/(\\d+)/i;2.k.1s=2.k.Z.1c(\'3q\')!=-1;2.k.1t=2.k.Z.1c(\'2d 5\')!=-1;2.k.2e=2.k.Z.1c(\'2d 6\')!=-1&&2.k.Z.1c(\'3r\')==-1;2.k.2b=2.k.1t||2.k.2e;2.k.3s=2.k.1s&&2.k.1t;2.k.3t=2.k.1s&&2.k.2c.3u(2.k.Z)&&3v(3w.$1)<3x},23:\'\'};',62,220,'||this||kcal||||function|if||||||||||var|uainfo|appendChild|options|current|tr||wrapper|control|document|createElement|td|null|close|||getMonth|iframe|calendar|parent|new|Date|rel|table||tbody|titles|update|_createCell|||cellclass|else|title|return|selected|firstday|className|th|_resetTime|valueOf|px|useragent|dateSelection|open|onclick|_relDate|celldate|width|false|setDate|addClassName|getDate|height|instance|indexOf|startdate|weekstart|openCalendar|bindAsEventListener|observe|click|position|createTable|getDay|lt|gt|cellmonth|_toggleControl|setStyle|_hide|isMac|isIe5|knhCalendar|months|weekdays|onSelect|nextYear|Jahr|previousYear|nextMonth|Monat|previousMonth|Kalender|closeCalendar|fxControl|onControlCalendar|fxUpdate|onUpdateCalendar|fxSelect|onSelectDate|knhCalendarOverlay|hasClassName|Event|findElement|_getPosition|div|navigation|thead|getFullYear|for|while|setHours|onCalendarOpen|onCalendarClose|Position|Element|getDimensions|_eoc|_create|left|top|show|hide|_setUAInfo|id|ieFix|webkit|msie|isIe6|Class|create|prototype|initialize|Object|extend|Januar|Februar|rz|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember|So|Mo|Di|Mi|Do|Fr|Sa|Prototype|emptyFunction|chstes|Vorheriges|chster|Vorheriger|ffnen|schlie|en|try|catch|err|typeof|number|prevyear|prevmonth|year|colSpan|nextmonth|nextyear|weekday|weekend|othermonth|today|getHours|removeClassName|innerHTML|each|key|value|setFullYear|setMonth|setMinutes|setSeconds|setMilliseconds|prepare|cumulativeOffset|shadow|visible|offsetWidth|offsetHeight|body|display|none|navigator|userAgent|toLowerCase|WebKit|mac|opera|isIeMac|isSafari|exec|Number|RegExp|500'.split('|'),0,{}));
/** knhPicturebook; (c) 2010 Kindernothilfe e.V.; @author SL <http://www.kindenrothilfe.org> */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('v V=1h.1i();V.1j={H:{},y:{},e:{},I:W,J:W,1k:l(a){v t=2;2.e=1l.1m({X:\'\',K:\'\',Y:0,z:7,w:{6:1n,8:1o},k:{6:0,8:0},Z:\'\'},a||{});2.o=2.e.Z;2.i=E(2.e.Y);2.I=2.10.11(2);2.J=2.12.11(2);1p 1q.1r(2.e.X,{1s:"1t",1u:l(r){t.13(1v("("+r.1w+")"))},1x:l(r){}})},10:l(a){v b=$(14.15(a));f(b.A==1y){F}2.i=E(b.A);2.L()},12:l(a){v b=14.15(a);2.e.1z(b)},13:l(a){2.H=a;2.y=2.H.y||{};f(2.y.M>0){$(2.o).s=\'<j N="O-k" C="\'+2.o+\'-k"><\\/j><j N="O-P" C="\'+2.o+\'-P"><\\/j><j N="O-d" C="\'+2.o+\'-d"><\\/j>\';2.L()}},L:l(){f(2.i<0||2.i>=2.y.M)F;2.16();2.17()},16:l(){v a,6,8,q,k,w;a=2.y[2.i];6=E(a.1A);8=E(a.1B);k=2.Q({6:6,8:8},2.e.k);w=2.Q({6:6,8:8},2.e.w);$(2.o+\'-k\').s=\'\';q=$($(2.o+\'-k\').9(g.h(\'q\')));q.6=w.6;q.8=w.8;q.B=q.1C=a.B;q.1D=2.e.18+\'k-19-\'+2.e.K+\'-p-\'+a.C+\'-6-\'+w.6+\'-8-\'+w.8+\'.\'+a.1a;q.1b(\'1c\',2.J);q.1E=2.e.18+\'k-19-\'+2.e.K+\'-p-\'+a.C+\'-6-\'+k.6+\'-8-\'+k.8+\'.\'+a.1a;$(2.o+\'-P\').1F(\'<b>\'+a.B+\'<\\/b><1G \\/>\'+a.1H)},17:l(){v a,x,u,z,d,5;a=2.y.M;x=2.i-3;u=2.i+4;z=a<2.e.z?a:2.e.z;f(x<0){x=0;u=z}R f(u>a){u=a;x=a-z}f(u>a){u=a}d=$(g.h(\'1I\'));d.1b("1c",2.I);5=$(d.9(g.h(\'D\')));5.m(\'1J\');f(2.i>0){5=$(5.9(g.h(\'j\')));5.m(\'S\');5.B="1K T";5.A=2.i-1}R{5=$(5.9(g.h(\'j\')));5.m(\'1d\')}5.s=\'&1L; 1Mü1N\';f(x>0){5=d.9(2.G(0,U));f(x>1){5=$(d.9(g.h(\'D\')));5.m(\'1e\');5=$(5.9(g.h(\'j\')));5.s=\'...\'}}1O(v b=x;b<u;b++){5=d.9(2.G(b,(2.i==b)))}f(u<a){5=$(d.9(g.h(\'D\')));5.m(\'1e\');5=$(5.9(g.h(\'j\')));5.s=\'...\';5=d.9(2.G((a-1),U))}5=$(d.9(g.h(\'D\')));5.m(\'1P\');f(2.i+1<a){5=$(5.9(g.h(\'j\')));5.m(\'S\');5.B="nä1Q T";5.A=2.i+1}R{5=$(5.9(g.h(\'j\')));5.m(\'1d\')}5.s=\'1R &1S;\';$(2.o+\'-d\').s=\'\';$(2.o+\'-d\').9(d)},G:l(a,b){v c=$(g.h(\'D\')),5;c.m(\'1T\');f(b)c.m(\'i\');c.A=a;5=$(c.9(g.h(\'j\')));5.m(\'S\');5.A=a;5.s=a+1;5.B=\'T \'+5.s;F c},Q:l(a,b){f(b.6&&a.6>b.6){a.8=1f.1g(a.8*b.6/a.6);a.6=b.6}f(b.8&&a.8>b.8){a.6=1f.1g(a.6*b.8/a.8);a.8=b.8}F a},1U:U};',62,119,'||this|||tmp|width||height|appendChild||||navi|options|if|document|createElement|selected|span|image|function|addClassName||prefix||img||innerHTML||list_end|var|preview|list_start|list|list_max|indexNum|title|id|li|parseInt|return|_createNaviItem|_data|fxClickNavi|fxClickImage|media_site|_update|length|class|picturebook|text|_computerImagesize|else|link|Bild|false|knhPicturebook|null|url|startindex|container|onClickNavi|bindAsEventListener|onClickImage|_setup|Event|element|_updateImage|_updateNavi|url_dir|site|image_type|observe|click|inactive|empty|Math|ceil|Class|create|prototype|initialize|Object|extend|410|300|new|Ajax|Request|method|get|onSuccess|eval|responseText|onFailure|undefined|clickOnImage|origImgWidth|origImgHeight|alt|src|orig_image|update|br|short|ul|prev|vorheriges|laquo|zur|ck|for|next|chstes|vor|raquo|item|_eoc'.split('|'),0,{}));
/** knhBillboard; (c) 2010 Kindernothilfe e.V.; @author SL <http://www.kindenrothilfe.org> */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('8 1t=1Q.1R();1t.1S={7:[],l:[],m:H,I:P,1T:P,J:H,w:{},r:1U.1V,1W:5(c){8 t=3,1X=0;3.w={12:!!(13.1Y&&z.B.x(\'Q\')===-1),Q:z.B.x(\'Q\')>-1,1u:z.B.x(\'1Z/\')>-1,14:z.B.x(\'14\')>-1&&z.B.x(\'21\')===-1,22:!!z.B.23(/24.*25.*26/)};4(3.w.12){3.r=5(a,b){t.1v(a,b)}}h 4(3.w.14){3.r=5(a,b){t.15(a,b)}}h 4(3.w.1u){3.r=5(a,b){t.1w(a,b)}}h 4(3.w.Q){3.r=5(a,b){t.15(a,b)}}3.6=27.28({1x:H,1y:H,R:.29,16:0,17:P,o:\'1z\',j:{S:\'T-S\',18:\'T-18\',p:\'T-p\',U:\'T-U\'}},c||{});3.9=$(3.6.1y);3.7=$A(t.9.K(3.6.j.S));4(3.7.L<=1){q}4(3.6.o==\'17\'){4(3.7.L>2){3.9.1A(3.7[0].19(V));3.7=$A(t.9.K(3.6.j.S))}h{3.6.o==\'1z\'}}h 4(3.6.o==\'1a\'){3.9.i.y=\'u\';3.C=$(3.9.K(3.6.j.p)[0]);3.J=3.7[0].19(V);3.9.E(3.J,3.7[0]);3.1b()}h 4(3.6.o==\'1B\'){3.9.i.y=\'u\';3.9.i.W=\'u\';3.7.1c(5(e){e.1d({\'1e\':\'1f\',\'y\':\'u\',\'W\':\'u\'})});3.f=$(3.9.K(3.6.j.p)[0]);8 d=3.7[(3.7.L-1)];4(3.f!=d){4(3.f!=d.1g){3.9.E(3.f,d)}3.9.E(d,3.f)}}3.l=$A($(t.6.1x).K(3.6.j.18));3.l.1c(5(e){1C.2a(e,\'2b\',t.1D.2c(t));e.2d="2e:2f(0);";4($(e).2g(t.6.j.p)){t.m=$(e)}});3.1h()},1D:5(a){8 b=$(1C.2h(a));4(b==3.m||3.I){q}b.2i();3.1i(b)},1h:5(){3.1j(\'1E\')},1F:5(){3.1j(\'1G\')},1H:5(){8 a,X;4(!3.I){a=3.l.x(3.m)+1;4(3.l.L>a){X=3.l[a]}h{X=3.l[0]}3.1i(X)}},1i:5(a){8 t=3,k;3.I=V;3.1F();3.m.1k(3.6.j.p);3.m=a;3.m.1l(t.6.j.U);k=3.l.x(a);4(3.6.o==\'1a\'){3.C=3.7[k];3.M=1m 1n(5(){t.1I()},t.6.R)}h 4(3.6.o==\'1B\'){4(3.7[k]!=3.f.1g){3.9.E(3.7[k],3.f)}3.r(3.7[k],0);3.9.E(3.f,3.7[k]);3.f=3.7[k];3.1o();3.M=1m 1n(5(){t.1o()},t.6.R)}h{4(3.6.o==\'17\'&&k==0&&3.l.2j()==3.m){k=3.l.L;3.F=t.7[k].G*-1;3.Y=0}h{3.F=t.7[k].G*-1;3.Y=3.F}3.M=1m 1n(5(){t.1J()},t.6.R)}},N:5(){4(3.M)3.M.1G();4(3.6.o==\'1a\'){3.1b()}3.I=P;3.m.1k(3.6.j.U);3.m.1l(3.6.j.p);3.1h()},1J:5(){8 a=0;8 b=3.9.G;4(3.F<b){a=b-20;4(a<=3.F){a=3.Y;3.N()}}h{a=b+20;4(a>=3.F){a=3.Y;3.N()}}3.9.i.y=a+\'1p\'},1I:5(){8 a=3.9.G;3.C.i.y=(3.C.G-20)+\'1p\';4(3.C.G<=0){3.N()}},1b:5(){8 t=3,v;v=3.C.19(V);3.9.2k(v,3.J);3.J=v;v.1d({1e:\'1f\',y:\'u\',W:\'u\'});v.1K(\'2l\');v.1l(3.6.j.p);8 a=2m.2n(v);3.7.1c(5(e){$(e).1k(t.6.j.p);$(e).1d({1e:\'1f\',y:a.Z+\'1p\',W:\'u\'})})},1o:5(){8 a=3.1L(3.f);4(a<1){3.r(3.f,(a+0.1).2o(2))}h{3.N()}},2p:5(){8 t=3;3.9.E(3.f,3.f.1g);3.r(3.f,1);3.f=3.f.2q},1L:5(a){8 b=$(a).1q(\'10\')||\'\';4(3.w.12){8 s=$(a).1q(\'O\');4(s){b=s.1M(/\\D+/g,\'\');q 2r(b)/1N}}q b?2s(b):1.0},1v:5(b,c){5 1r(a){q a.1M(/1O\\([^\\)]*\\)/2t,\'\')}b=$(b);8 d=b.2u;4((d&&!d.2v)||(!d&&b.i.1P==\'2w\')){b.i.1P=1}8 e=b.1q(\'O\'),i=b.i;4(c==1||c===\'\'){(e=1r(e))?i.O=e:i.1K(\'O\');q b}h 4(c<0.1s){c=0}i.O=1r(e)+\'1O(10=\'+(c*1N)+\')\';q b},15:5(a,b){a=$(a);a.i.10=(b==1)?0.2x:(b===\'\')?\'\':(b<0.1s)?0:b;q a},1w:5(a,b){a=$(a);a.i.10=(b==1||b===\'\')?\'\':(b<0.1s)?0:b;4(b==1)4(a.2y.2z()==\'2A\'&&a.Z){a.Z++;a.Z--}h{2B{8 n=2C.2D(\' \');a.1A(n);a.2E(n)}2F(e){}}q a},1j:5(a){8 t=3;4(3.11){3.11=13.2G(t.11)}4(3.6.16&&a==\'1E\'){3.11=13.2H(5(){t.1H()},t.6.16)}},2I:H}',62,169,'|||this|if|function|options|_items|var|_list||||||_selectedItem||else|style|classes|idx|_controls|_control||effect|selected|return|setOpacity|||0px|elem|_browser|indexOf|left|navigator||userAgent|_scrollingItem||insertBefore|posTo|offsetLeft|null|isChanging|_placed|getElementsByClassName|length|timer|stopMoving|filter|false|Opera|delay|item|billboard|moving|true|top|el|finalPos|width|opacity|ac|IE|window|Gecko|_setOpacityGecko|frequency|endless|control|cloneNode|scroll|_postScroll|each|setStyle|position|absolute|previousSibling|startAutochange|startMoving|_autochange|removeClassName|addClassName|new|PeriodicalExecuter|_fading|px|getStyle|stripAlpha|00001|knhBillboard|WebKit|_setOpacityIE|_setOpacityWebKit|navi|list|carousel|appendChild|fade|Event|onClick|start|stopAutochange|stop|nextTeaser|_scrolling|_moving|removeAttribute|_getOpacity|replace|100|alpha|zoom|Class|create|prototype|_actimer|Prototype|emptyFunction|initialize|count|attachEvent|AppleWebKit||KHTML|MobileSafari|match|Apple|Mobile|Safari|Object|extend|03|observe|click|bindAsEventListener|href|javascript|void|hasClassName|element|blur|last|replaceChild|id|Element|getDimensions|toFixed|_postFading|nextSibling|parseInt|parseFloat|gi|currentStyle|hasLayout|normal|999999|tagName|toUpperCase|IMG|try|document|createTextNode|removeChild|catch|clearInterval|setInterval|_eoc'.split('|'),0,{}));
/** knhCardboard; (c) 2011 Kindernothilfe e.V.; @author SL <http://www.kindenrothilfe.org> */
var knhCardboard=Class.create();knhCardboard.prototype={options:{},first_item:0,cbRight:null,cbLeft:null,cbFrame:null,initialize:function(b){var a;this.options=Object.extend({id:"",list:[],start_item:1,item_width:80,items_visible:5},b||{});if(this.options.list.length==0){return}$(this.options.id).update('<div class="cardboard-navi cardboard-left"><span>&lt;</span></div><div class="cardboard-navi cardboard-right"><span>&gt;</span></div><div class="cardboard-frame"></div>');this.cbRight=$($(this.options.id).getElementsByClassName("cardboard-right")[0]);this.cbLeft=$($(this.options.id).getElementsByClassName("cardboard-left")[0]);this.cbFrame=$($(this.options.id).getElementsByClassName("cardboard-frame")[0]);this.cbRight.observe("click",this.onClick.bindAsEventListener(this));this.cbLeft.observe("click",this.onClick.bindAsEventListener(this));a=this.options.start_item-1;if(a<0){a=0}else{if(a>(this.options.list.length-this.options.items_visible)){a=this.options.list.length-this.options.items_visible}}this._updateCardboard(a)},onClick:function(b){var a=$(Event.element(b));if(a.hasClassName("cardboard-right-active")){this._updateCardboard((this.first_item+1))}else{if(a.hasClassName("cardboard-left-active")){this._updateCardboard((this.first_item-1))}}},_updateCardboard:function(a){this.first_item=a;this._updateItems(a);this._updateNavigation(a)},_updateItems:function(a){var d,c,b="";c=(a+this.options.items_visible);for(d=a;d<c;d++){b+='<a href="'+this.options.list[d]+'" class="cardboard-item"><span>'+(d+1)+"</span></a>"}this.cbFrame.update(b);this.cbFrame.setStyle({backgroundPosition:(a*this.options.item_width*-1)+"px 0px"})},_updateNavigation:function(a){if(a+this.options.items_visible>=this.options.list.length){this._setNavigation(this.cbRight,"cardboard-right-inactive","cardboard-right-active")}else{this._setNavigation(this.cbRight,"cardboard-right-active","cardboard-right-inactive")}if(a==0){this._setNavigation(this.cbLeft,"cardboard-left-inactive","cardboard-left-active")}else{this._setNavigation(this.cbLeft,"cardboard-left-active","cardboard-left-inactive")}},_setNavigation:function(b,c,a){b.addClassName(c);b.removeClassName(a)}};

function knh_zoomImage(s) {
	if(o_imgwin.closed == false) o_imgwin.close();
	o_imgwin = window.open(skin_url+'iw.html?'+ encodeURIComponent(s),'kiw','width=300,height=200,left=5,top=5,scrollbars=no');  
}
var skin_url;
function knh_setupSkinurl() {
	$A((document.getElementsByTagName("head")[0]||document).getElementsByTagName("script")).findAll( function(s) {
		return (s.src && s.src.match(/global\.js$/))
	}).each( function(s) {
		skin_url = s.src.replace(/[\/\\][^\/]+$/, '').replace(/[\/\\][^\/]+$/, '') +"/";
	});
	return skin_url;
}
function knh_setupImagezoom() {
	$A( (document.getElementById('contentBlock')||document.getElementsByTagName("body")[0]).getElementsByTagName("a")).findAll( function(e) {
		if( Element.hasClassName( e, 'contentpicZoom') )
			e.onclick=function(){ knh_zoomImage( e.href ); return false; } 
	});
}

function knh_insertCalendar( controlId,parentId,fieldId,submit ) {
	var o,sd=false,r='',skin_url=(skin_url?skin_url:knh_setupSkinurl());
	if( controlId ) {
		document.write('<img id="'+ controlId +'" src="'+skin_url+'/pic/trans.gif" title="Kalender öffnet" class="kcal-control" />');
	}
	else {
		if( $F(fieldId)!='' ) {
			r='<a href="javascript:void(0);" onclick="$(\''+fieldId+'\').value=\'\';$(\''+fieldId+'\').form.submit();return false;">Kalender zurücksetzen<\/a>';
			sd=knh_insertCalendarDatecheck($F(fieldId));
		}
		document.write('<div id="'+ parentId +'" class="content-calendar"><div id="'+parentId+'-inside"><\/div>'+r+'<\/div>');
		$( $(fieldId).form ).hide();
		parentId=parentId+'-inside';
	}

	o=new knhCalendar({
		control : controlId,
		parent : parentId,
		startdate : sd,
		onSelect : function(date) {
			$(fieldId).value=(date.getDate()<10?'0':'')+date.getDate()+
				'.'+(date.getMonth()+1<10?'0':'')+(date.getMonth()+1)+
				'.'+date.getFullYear();
				if(submit) $(fieldId).form.submit(); 
		}
	});	
}

function knh_insertCalendarDatecheck( s ) {
	var day,month,year,days;
	if( /^\s*(\d{1,2})\.(\d{1,2})\.(\d{2,4})\s*$/.exec(s) ) {
		day=Number(RegExp.$1);
		month=Number(RegExp.$2);
		year=Number(RegExp.$3);
		if( month <1||month>12 ) return false;
		if(year<100) year += (year<70?2000:1900);
		days = new Date(year,month,0);
		if (day>days.getDate()) return false;
		return new Date (year, month-1, day).valueOf();
	} 
	return false;	
}

function knh_insertPicturebook( options ) {
	if( !$(options.container)||false ) {
		document.write('<span class="picturebook" id="'+options.container+'"><\/span>');
	}
	options.clickOnImage=function(e){knh_zoomImage(e.orig_image)};
	Event.observe(window,"load",function(){ new knhPicturebook( options ); });
}

function knh_insertStream (options) {
	options.parentId='stream-'+ options.id;
	document.write('<span id="'+options.parentId+'"><\/span>');
	knhSystem.add( 'insertStream', options );
}
function knh_insertIframe( options ) {
	options.parentId='iframe-'+options.id;
	document.write('<span id="'+options.parentId+'"><\/span>');
	knhSystem.add('insertIframe', options );
}



var knhSystem = {
	options : {},
	add : function(name,options) {
		if( !this.options[name]||false ) {
			this.options[name]=$A();
		}
		this.options[name].push( options );
	},

	onload : function () {
		var t=this;
		$H( this.options ).each( function( pair ) {
			$A( pair.value ).each(function(options){
				t[pair.key](options);
			});
		});
	},
	
	insertStream : function( options ) {
		var html,so,width=545,height=330;
		if( (options.type||false) == 'audio' ) {
			width=340;
			height=20;
		}
		if( /(width-\d+)/.test(options.url)) {
 			try {options.url=options.url.replace(/width-\d+/,'width-'+width);}catch(e){};
 		}

		
		html = '<span class="contentStream" style="width:'+width+'px"><span class="contentStream-anim" id="'+ options.id +'"><\/span>';
		if( options.text||false ) {html += '<span class="contentStream-text">'+ options.text +'<\/span>';}
		html += '<\/span>';
		$( options.parentId ).update( html );
		
		so=new SWFObject( options.url , 'mov'+options.id, width, height, "6", "#ffffff");
		so.addParam('allowFullScreen', "true");
		so.write(options.id); 
	},
	
	insertIframe : function( options ) {
		var html = '<span class="contentIframe-frame"><iframe class="gmap-iframe" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'+options.url+'"><\/iframe><\/span>';
		if( options.text||false ) {html += '<span class="contentStream-text">'+ options.text +'<\/span>';}
		$( options.parentId ).update( html );
	}
	
}

try { skin_url=knh_setupSkinurl(); }catch(err){}
Event.observe(window, "load", function() {
	knh_setupImagezoom();
	knhSystem.onload();
	temp_deinstimmegegenarmut('http://www.deine-stimme-gegen-armut.de/armut_besiegen/index.php?p=knh');
});

function temp_cardboard( ) {
	if( cardboard_options ) {
		cardboard_options.id = 'cardboard';
		cardboard_options.start_item = new Date().getDate();
		cardboard_options.item_width=65;
		cardboard_options.items_visible = 5;
		
		if ( new Date().getMonth() < 11 ) {
			cardboard_options.start_item=24;
		}
		var t = new knhCardboard( cardboard_options );
	}
}

function temp_deinstimmegegenarmut(url) {
	if( $('contentBlock') ) {
		$A( $('contentBlock').getElementsByTagName('a') ).each( function(obj) {
			if( obj.href == url ) {
				var newObj = $(document.createElement('center'));
				newObj.update('<iframe scrolling="no" frameborder="0" marginheight="0" marginwidth="0" style="border:0px none;width:500px;height:540px;" src="'+url+'"><\/iframe>');
				try {
					var parent=$(obj.parentNode);
 					parent.replaceChild( newObj, obj);
 				} catch(err){};
			}
		})
	}
}

/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

