if(typeof com==="undefined"){var com={}}if(typeof com.babiel==="undefined"){com.babiel={}}if(typeof com.babiel.dfg==="undefined"){com.babiel.dfg={}}if(typeof com.babiel.dfg.js==="undefined"){com.babiel.dfg.js={}}com.babiel.dfg.js.AdvisorComponent=function(e,a,j){var h;var g;var i;var d;var f;this.__construct=function(n,l,k){h=this;d="";f="";try{this.setInputSelector(n);this.setParameters(k);this.setData(l);c()}catch(m){throw (new com.babiel.application.jsctrl.InvalidParameterException(m))}};this.getInputSelector=function(){return g};this.getParameters=function(){return i};this.getData=function(){return f};var b=function(k){var m=new RegExp("([?]|[&])"+k+"=([0-9A-Za-z_-]*)");var l=null;if(typeof window.location.search=="string"){var n=m.exec(window.location.search);if(n!==null&&n.length>1){l=n[2]}}return l};this.setInputSelector=function(k){if(!($(k))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+k+'".'))}g=k};this.setParameters=function(k){if(typeof k!=="object"){throw (new TypeError('Argument "obj" isn\'t an object.'))}i=k};this.setData=function(k){if(typeof k==="string"||typeof k==="object"){f=k}else{throw (new TypeError('Argument "dataOrUrl" isn\'t an object or string.'))}};var c=function(){$(g).autocomplete(f,i)};this.__construct(e,a,j);this.constructor()};com.babiel.dfg.js.AdvisorComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.BookmarkComponent=function(g,d,a){var f;var h;var i;var e;this.__construct=function(l,k,j){f=this;try{this.setBookmarkButton(l);this.setDialogParameters(k);this.setSiteDescription(j);b()}catch(m){}};this.getBookmarkButton=function(){return h};this.getDialogParameters=function(){return i};this.getSiteDescription=function(){return e};this.setBookmarkButton=function(j){if(typeof j!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}if(!$(j)){throw (new com.babiel.application.jsctrl.InvalidParameterException('Can not find an HTML element with selector "'+j+'".'))}h=j};this.setDialogParameters=function(j){if(typeof j!=="object"){throw (new TypeError('Argument "parameters" isn\'t an object.'))}i=j};this.setSiteDescription=function(j){if(typeof j!=="string"){throw (new TypeError('Argument "description" isn\'t a string.'))}e=j};var c=function(){var m=encodeURIComponent(document.title);var j=encodeURIComponent(location.href);var k=encodeURIComponent(e);var l="";if(location.pathname.search(new RegExp("^/en/"))>-1){l='<div id="bookmarkDialog"><h2>Bookmarks</h2><a class="bookmarkButton" href="http://delicious.com/save?v=5&noui&jump=close&url='+j+"&title="+m+'" target="_blank"><img src="/includes/images/bookmarks/delicious_32x32.png" /><span>delicious</span></a><br/><a class="bookmarkButton" href="http://digg.com/submit?url='+j+"&title="+m+"&bodytext="+k+'" target="_blank"><img src="/includes/images/bookmarks/Digg_32x32.png" /><span>Digg</span></a><br/><a class="bookmarkButton" href="http://www.mister-wong.de/add_url/?action=addurl&bm_url='+j+"&bm_description="+k+'" title="Diese Seite zu Mister Wong hinzuf\u00fcgen" target="_blank"><img src="/includes/images/bookmarks/Misterwong_32x32.png" alt="Diese Seite zu Mister Wong hinzuf\u00fcgen" /><span>Mister Wong</span></a><br/><a class="bookmarkButton" href="http://www.stumbleupon.com/submit?url='+j+"&title="+m+'" target="_blank"><img src="/includes/images/bookmarks/Stumbleupon_32x32.png" /><span>Stumbleupon</span></a><br/><a class="bookmarkButton" href="http://technorati.com/faves?sub=addfavbtn&add='+j+'" target="_blank"><img src="/includes/images/bookmarks/Technorati_32x32.png" /><span>Technorati</span></a><br/><div class="buttons"><input type="button" value="close" class="closeDialog"/></div></div>'}else{l='<div id="bookmarkDialog"><h2>Bookmarks</h2><a class="bookmarkButton" href="http://delicious.com/save?v=5&noui&jump=close&url='+j+"&title="+m+'" target="_blank"><img src="/includes/images/bookmarks/delicious_32x32.png" /><span>delicious</span></a><br/><a class="bookmarkButton" href="http://digg.com/submit?url='+j+"&title="+m+"&bodytext="+k+'" target="_blank"><img src="/includes/images/bookmarks/Digg_32x32.png" /><span>Digg</span></a><br/><a class="bookmarkButton" href="http://www.mister-wong.de/add_url/?action=addurl&bm_url='+j+"&bm_description="+k+'" title="Diese Seite zu Mister Wong hinzuf\u00fcgen" target="_blank"><img src="/includes/images/bookmarks/Misterwong_32x32.png" alt="Diese Seite zu Mister Wong hinzuf\u00fcgen" /><span>Mister Wong</span></a><br/><a class="bookmarkButton" href="http://www.stumbleupon.com/submit?url='+j+"&title="+m+'" target="_blank"><img src="/includes/images/bookmarks/Stumbleupon_32x32.png" /><span>Stumbleupon</span></a><br/><a class="bookmarkButton" href="http://technorati.com/faves?sub=addfavbtn&add='+j+'" target="_blank"><img src="/includes/images/bookmarks/Technorati_32x32.png" /><span>Technorati</span></a><br/><div class="buttons"><input type="button" value="Schlie\u00dfen" class="closeDialog"/></div></div>'}$("body").append(l);i.close=function(){$(this).dialog("destroy");$(this).remove()};$("#bookmarkDialog").dialog(i);$("#bookmarkDialog").find(".closeDialog").click(function(){$("#bookmarkDialog").dialog("close")})};var b=function(){$(h).find("a").attr("href","javascript:void(0)");$(h).click(c);if($(h).hasClass("none")===true){$(h).removeClass("none")}};this.__construct(g,d,a);this.constructor()};com.babiel.dfg.js.BookmarkComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.CalendarComponent=function(f,b){var d;var e;var c;this.__construct=function(h,g){d=this;c={};this.setInputSelector(h);this.setOptions(g);a()};this.getInputSelector=function(){return e};this.getOptions=function(){return c};this.setInputSelector=function(g){if(typeof g!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}if(!$(g)){throw (new com.babiel.application.jsctrl.InvalidParameterException('Can not find an HTML element with selector "'+g+'".'))}e=g};this.setOptions=function(g){if(typeof g!=="object"){throw (new TypeError('Argument "opt" isn\'t an object.'))}c=g};var a=function(){$(e).datepicker(c)};this.__construct(f,b);this.constructor()};com.babiel.dfg.js.CalendarComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.DatesComponent=function(h,m,z,g,B,b,o,s,r,w,c){var q;var a;var v;var F;var j;var t;var y;var D;var E;var A;var l;var G;var k;this.__construct=function(H,K,M,L,J,R,S,N,P,O,I){q=this;G=false;try{this.setDatesSelector(H);this.setDatesContentSelector(K);this.setViewUrl(M);this.setParameters(L);this.setFoldOutBoxSelector(J);this.setButtonSelector(R);this.setContentSelector(S);this.setInvisibleClassName(N);this.setOnInitOpenClassName(P);this.setActiveButtonClassName(O);this.setInactiveButtonClassName(I);u()}catch(Q){throw (new com.babiel.application.jsctrl.InvalidParameterException(Q))}};this.getActiveButtonClassName=function(){return a};this.getButtonSelector=function(){return v};this.getDatesContentSelector=function(){return j};this.getDatesSelector=function(){return t};this.getFoldOutBoxSelector=function(){return y};this.getContentSelector=function(){return F};this.getInactiveButtonClassName=function(){return D};this.getInvisibleClassName=function(){return E};this.getOnInitOpenClassName=function(){return A};this.getParameters=function(){return l};this.setActiveButtonClassName=function(H){if(typeof H!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}a=H};this.setButtonSelector=function(H){if(!($(H))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+H+'".'))}v=H};this.setDatesContentSelector=function(H){if(!($(H))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+H+'".'))}j=H};this.setDatesSelector=function(H){if(!($(H))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+H+'".'))}t=H};this.setFoldOutBoxSelector=function(H){if(!($(H))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+H+'".'))}y=H};this.setContentSelector=function(H){if(!($(H))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+H+'".'))}F=H};this.setInactiveButtonClassName=function(H){if(typeof H!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}D=H};this.setInvisibleClassName=function(H){if(typeof H!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}E=H};this.setOnInitOpenClassName=function(H){if(typeof H!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}A=H};this.setParameters=function(H){if(typeof H!=="object"){throw (new TypeError('Argument "parameters" isn\'t an object.'))}l=H};this.getViewUrl=function(){return k};this.setViewUrl=function(H){if(typeof H!=="string"){throw (new TypeError('Argument "url" isn\'t a string.'))}k=H};var p=function(){var J="";$(q.getDatesSelector()+" .currentDate").each(function(){J=this.value});var K=new RegExp("^(0[1-9]|[1-2][0-9]|3[0-1])[.](0[1-9]|1[0-2])[.](20[0-2][0-9])$");var I=K.exec(J);if(!I){throw (new com.babiel.application.jsctrl.InvalidParameterException('Given "date" ('+J+") isn't valid"))}var L=$(this).text();if(L.length===1){L="0"+L}var H=L+"."+I[2]+"."+I[3];if(!K.test(H)){throw (new com.babiel.application.jsctrl.InvalidParameterException("New date ("+H+") isn't valid"))}n(H)};var i=function(){n($(q.getDatesSelector()+" .nextMonth").val())};var d=function(){n($(q.getDatesSelector()+" .prevMonth").val())};var f=function(){q.getLogger().debug("Hiding this Infobox ("+q.getDatesSelector()+").");$(q.getDatesSelector()).fadeOut()};var C=function(){q.getLogger().debug("Sperrung weiterer HTTP-Requests aufheben.");G=false};var n=function(H){if(typeof H!=="string"){throw (new TypeError('Argument "date" isn\'t a string.'))}var I=new RegExp("^(0[1-9]|[1-2][0-9]|3[0-1])[.](0[1-9]|1[0-2])[.](20[0-2][0-9])$");if(!I.test(H)){throw (new com.babiel.application.jsctrl.InvalidParameterException('Given "date" ('+H+") isn't valid"))}if(G===true){return}var J=q.getParameters();J.dateFrom=H;G=true;$.ajax({url:q.getViewUrl(),cache:false,beforeSend:function(K){K.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8")},data:J,success:function(K){$(q.getDatesContentSelector()).replaceWith(K);u()},complete:C})};var u=function(){x();e()};var x=function(){$(q.getDatesSelector()+" .terminkalender td a").attr("href","javascript:void(0)");$(q.getDatesSelector()+" .terminkalender td a").click(p);$(q.getDatesSelector()+" .monatZurueck a").attr("href","javascript:void(0)");$(q.getDatesSelector()+" .monatZurueck").click(d);$(q.getDatesSelector()+" .monatVor a").attr("href","javascript:void(0)");$(q.getDatesSelector()+" .monatVor").click(i)};var e=function(){$(v).children("a").attr("href","javascript:void(0)");$(y).each(function(){if(!$(this).hasClass(A)){var H=$(this).children(v).find("."+a);$(H).addClass(D);$(H).removeClass(a);$(this).children(F).removeClass(E);$(this).children(F).hide()}$(this).children(v).click(function(){if($(this).find("."+a).length>0){$(this).parent().children(F).slideUp();var I=$(this).find("."+a);$(I).addClass(D);$(I).removeClass(a)}else{$(this).parent().children(F).slideDown();var I=$(this).find("."+D);$(I).addClass(a);$(I).removeClass(D)}})})};this.__construct(h,m,z,g,B,b,o,s,r,w,c);this.constructor()};com.babiel.dfg.js.DatesComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.DialogComponent=function(e,i,b,f){var c;var j;var g;var d;var h;this.__construct=function(k,n,m,l){c=this;g={};h={requestParameters:{}};try{this.setMainSelector(k);this.setButtonSelector(n);this.setOptions(l);this.setDialogParameters(m);a()}catch(o){}};this.getButtonSelector=function(){return j};this.getDialogParameters=function(){return g};this.getMainSelector=function(){return d};this.getOptions=function(){return h};this.getRequestUrl=function(){return h.requestUrl};this.loadView=function(k){$.get(h.requestUrl,h.requestParameters,function(l){$("body").append(l);g.close=function(){$(this).dialog("destroy");$(this).remove()};$(d).dialog(g);$(d).find(".closeDialog").click(function(){$(d).dialog("close")})},"html")};this.setButtonSelector=function(k){if(!($(k))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+k+'".'))}j=k};this.setDialogParameters=function(k){if(typeof k!=="object"){throw (new TypeError('Argument "parameters" isn\'t an object.'))}g=k};this.setMainSelector=function(k){if(typeof k!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}d=k};this.setOptions=function(k){if(typeof k!=="object"){throw (new TypeError('Argument "settings" isn\'t an object.'))}if(typeof k.requestParameters==="undefined"){k.requestParameters={}}h=k};this.setRequestUrl=function(k){if(typeof k!=="string"){throw (new TypeError('Argument "url" isn\'t a string.'))}h.requestUrl=k};var a=function(){$(d).hide();$(j).click(function(){var k=$(this).attr("href");if(typeof k==="string"&&k!==""){jQuery.extend(h.requestParameters,jQuery.url.setUrl(k).params())}$(this).removeAttr("target");if(typeof h.requestUrl!=="undefined"&&h.requestUrl!=""){c.loadView(this)}else{g.close=function(){$(this).dialog("destroy");$(this).hide()};$(d).dialog(g);$(d).find(".closeDialog").click(function(){$(d).dialog("close")})}return false})};this.__construct(e,i,b,f);this.constructor()};com.babiel.dfg.js.DialogComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.FoldOutBoxComponent=function(g,m,c,f,j,a){var h;var b;var d;var l;var e;var i;var k;this.__construct=function(t,q,p,o,n,s){h=this;try{this.setFoldOutBoxSelector(t);this.setButtonSelector(q);this.setContentSelector(p);this.setActiveButtonClassName(o);this.setInvisibleClassName(n);this.setOnInitOpenClassName(s);setup()}catch(r){throw (new com.babiel.application.jsctrl.InvalidParameterException(r))}};this.getActiveButtonClassName=function(){return b};this.getFoldOutBoxSelector=function(){return d};this.getButtonSelector=function(){return l};this.getContentSelector=function(){return e};this.getInvisibleClassName=function(){return i};this.getOnInitOpenClassName=function(){return k};this.setActiveButtonClassName=function(n){if(typeof n!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}b=n};this.setFoldOutBoxSelector=function(n){if(!($(n))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+n+'".'))}d=n};this.setButtonSelector=function(n){if(!($(n))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+n+'".'))}l=n};this.setContentSelector=function(n){if(!($(n))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+n+'".'))}e=n};this.setInvisibleClassName=function(n){if(typeof n!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}i=n};this.setOnInitOpenClassName=function(n){if(typeof n!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}k=n};setup=function(){$(l).each(function(){if(this.tagName.match(/^a$/i)){$(this).attr("href","javascript:void(0)")}});$(l).children("a").attr("href","javascript:void(0)");$(d).each(function(){if(!$(this).hasClass(k)){$(this).children(l).removeClass(b);$(this).children(e).removeClass(i);$(this).children(e).hide()}$(this).children(l).click(function(){if($(this).hasClass(b)){$(this).parent().children(e).slideUp();$(this).removeClass(b)}else{$(this).parent().children(e).slideDown();$(this).addClass(b)}$(this).children("a").blur()})})};this.__construct(g,m,c,f,j,a);this.constructor()};com.babiel.dfg.js.FoldOutBoxComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.FoldOutListComponent=function(n,q,d,j,o,a,b,e){var k;var c;var f;var g;var p;var i;var h;var m;var l;this.__construct=function(y,x,z,u,t,s,w,r){k=this;try{this.setFoldOutListSelector(y);this.setButtonSelector(x);this.setContentSelector(z);this.setActiveButtonClassName(u);this.setInvisibleClassName(t);h=s;m=w;f=r;setup()}catch(v){throw (new com.babiel.application.jsctrl.InvalidParameterException(v))}};this.getActiveButtonClassName=function(){return c};this.getFoldOutListSelector=function(){return g};this.getButtonSelector=function(){return p};this.getContentSelector=function(){return i};this.getInvisibleClassName=function(){return l};this.setActiveButtonClassName=function(r){if(typeof r!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}c=r};this.setFoldOutListSelector=function(r){if(!($(r))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+r+'".'))}g=r};this.setButtonSelector=function(r){if(!($(r))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+r+'".'))}p=r};this.setContentSelector=function(r){if(!($(r))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+r+'".'))}i=r};this.setInvisibleClassName=function(r){if(typeof r!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}l=r};setup=function(){$(p).find("img").attr("src",m);$(p).parent().removeClass(c);$(p).parent().find(i).hide();$(p).click(function(){if(this.tagName.match(/^a$/i)){$(this).attr("href","javascript:void(0)")}if($(this).parent().hasClass(c)){$(this).find("img").attr("src",m);$(this).parent().find(i).slideUp();$(this).parent().removeClass(c)}else{$(this).find("img").attr("src",f);$(this).parent().find(i).slideDown();$(this).parent().addClass(c)}})};this.__construct(n,q,d,j,o,a,b,e);this.constructor()};com.babiel.dfg.js.FoldOutListComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.FormsComponent=function(q,h,l,c,r,b){var i;var a;var p;var j;var n;var d;var o;var f;var s;var e;this.__construct=function(u,y,t,x,v,w){i=this;s=false;try{this.setMainSelector(u);this.setContentSelector(y);this.setViewUrl(t);this.setParameters(x);this.setInputFieldSelectors(v);this.setButtonSelectors(w);k()}catch(z){throw (new com.babiel.application.jsctrl.InvalidParameterException(z))}};this.getInputFieldSelectors=function(){return d};this.getButtonSelectors=function(){return a};this.getMainSelector=function(){return j};this.getContentSelector=function(){return p};this.getInactiveButtonClassName=function(){return n};this.getInvisibleClassName=function(){return o};this.getParameters=function(){return f};this.setButtonSelectors=function(t){if(typeof t!=="object"){throw (new TypeError('Argument "selectors" isn\'t an object.'))}a=t};this.setInputFieldSelectors=function(t){if(typeof t!=="object"){throw (new TypeError('Argument "selectors" isn\'t an object.'))}d=t};this.setMainSelector=function(t){if(!($(t))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+t+'".'))}j=t};this.setContentSelector=function(t){if(!($(t))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+t+'".'))}p=t};this.setInactiveButtonClassName=function(t){if(typeof t!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}n=t};this.setInvisibleClassName=function(t){if(typeof t!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}o=t};this.setParameters=function(t){if(typeof t!=="object"){throw (new TypeError('Argument "parameters" isn\'t an object.'))}f=t};this.getViewUrl=function(){return e};this.setViewUrl=function(t){if(typeof t!=="string"){throw (new TypeError('Argument "url" isn\'t a string.'))}e=t};var m=function(){i.getLogger().debug("Sperrung weiterer HTTP-Requests aufheben.");s=false};var g=function(t){if(s===true){return}var u=i.getParameters();for(key in t){u[key]=t[key]}s=true;$.ajax({url:i.getViewUrl(),cache:false,contentType:"application/x-www-form-urlencoded; charset=UTF-8",type:"POST",data:u,success:function(v){$(i.getContentSelector()).replaceWith(v);k()},complete:m})};var k=function(){$(j).find(a.elementsToRemove).remove();$(j).find("select").change(function(){i.getLogger().debug("Value changed to '"+$(this).val()+"'.");var t={};t.program=$(j).find(d.program).val();t.use=$(j).find(d.use).val();t.sort=$(j).find(d.sort).val();g(t)});$(j).find(a.sort).click(function(){i.getLogger().debug("Value changed to '"+$(this).val()+"'.");var t={};t.program=$(j).find(d.program).val();t.use=$(j).find(d.use).val();t.sort=$(this).val();g(t)});$(j).find("form").submit(function(){return false})};this.__construct(q,h,l,c,r,b);this.constructor()};com.babiel.dfg.js.FormsComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.ImageSliderComponent=function(K,y,J,m,A,i){var h;var E;var n;var a;var f;var e;var B;var k;var F;var L;var b;var s;var G;var l;var C;var t;var o;var u;var q;var z;this.__construct=function(N,O,M,R,I,Q){h=this;E="";n=1600;a="linear";f=0;e=0;B=0;b=[];o=[];z=1;try{this.setMainSelector(N);this.setSliderAreaSelector(O);this.setViewUrl(M);this.setPictures(R);this.setPictureSelector(I);this.setPictureDescriptionSelector(Q);$(document).ready(function(){h.loadView()})}catch(P){}};var r=function(){if((o.length-(e+z))>0){D()}else{d()}if(e>0){j()}else{p()}};var x=function(){$(k).find(F).find("a").attr("href","javascript:void(0)");$(k).find(L).find("a").attr("href","javascript:void(0)")};var D=function(){if($(k).find(F).find("a").length===0){var I=document.createElement("a");I.href="javascript:void(0);";var M=$(k).find(F).find("img").clone();$(k).find(F).append(I);$(k).find(F).find("img").remove();$(k).find(F).find("a").append(M)}};var j=function(){if($(k).find(L).find("a").length===0){var I=document.createElement("a");I.href="javascript:void(0);";var M=$(k).find(L).find("img").clone();$(k).find(L).append(I);$(k).find(L).find("img").remove();$(k).find(L).find("a").append(M)}};this.getActiveThumbnailClassName=function(){return E};this.getDuration=function(){return n};this.getEasingType=function(){return a};this.getFocusedThumbnail=function(){return f};this.getMainSelector=function(){return k};this.getNextButtonSelector=function(){return F};this.getPictures=function(){return b};this.getPictureDownloadLinkSelector=function(){return s};this.getPictureDescriptionSelector=function(){return G};this.getPictureSelector=function(){return l};this.getPrevButtonSelector=function(){return L};this.getSliderAreaSelector=function(){return C};this.getThumbnails=function(){return o};this.getThumbnailCurrentSelector=function(){return t};this.getThumbnailsSelector=function(){return u};this.getViewUrl=function(){return q};this.getVisibleThumbnails=function(){return z};this.loadView=function(){$.get(q,{},function(I){$(k).find(C).replaceWith(I);$(k).find(h.getThumbnailsSelector()).each(function(M){o.push(this)});$(k).find(C).css("width",(o.length*o[0].offsetWidth)+"px");v();g();h.setupThumbnailEventListeners()},"html")};var d=function(){if($(k).find(F).find("a").length>0){var I=$(k).find(F).find("img");$(k).find(F).find("a").remove();$(k).find(F).append(I)}};var p=function(){if($(k).find(L).find("a").length>0){var I=$(k).find(L).find("img");$(k).find(L).find("a").remove();$(k).find(L).append(I)}};this.setActiveThumbnailClassName=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "className" isn\'t a string.'))}E=I};this.setDuration=function(I){if(typeof I!=="number"){throw (new TypeError('Argument "milliseconds" isn\'t a number.'))}n=I};this.setEasingType=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "typeName" isn\'t a string.'))}if(typeof jQuery.easing[I]!=="function"){throw (new Error("Type of easing doesn't exist."))}a=I};var H=function(I){if(typeof I!=="number"){throw (new TypeError('Argument "count" isn\'t a number.'))}e=I;r()};this.setMainSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}k=I};this.setNextButtonSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}F=I};this.setPictures=function(I){if(!I instanceof Array){throw (new com.babiel.application.jsctrl.InvalidParameterException('Argument "pictures" isn\'t an "Array".'))}b=I};this.setPictureDownloadLinkSelector=function(I){if(!($(I))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+I+'".'))}s=I};this.setPictureDescriptionSelector=function(I){if(!($(I))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+I+'".'))}G=I};this.setPictureSelector=function(I){if(!($(I))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+I+'".'))}l=I};this.setPrevButtonSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}L=I};this.setSliderAreaSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}C=I};this.setThumbnailCurrentSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}t=I};this.setThumbnailsSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}u=I};var g=function(){if(typeof F==="string"){$(k).find(F).click(c)}if(typeof L==="string"){$(k).find(L).click(w)}$(k).find(h.getThumbnailsSelector()).find("a").focus(function(){$(this).parent().addClass(E)});$(k).find(h.getThumbnailsSelector()).find("a").blur(function(){$(this).parent().removeClass(E)})};this.setupThumbnailEventListeners=function(){$(k).find(h.getThumbnailsSelector()).find("a").attr("href","javascript:void(0)");$(k).find(h.getThumbnailsSelector()).click(function(){var P=$(k).find(h.getThumbnailsSelector()).index(this);var I=h.getPictures();if(typeof I==="undefined"){if(h.isLogger()){h.getLogger().warn("No pictures defined.")}return false}if(typeof I[P]!=="undefined"){var O=I[P];var N=(typeof O.url==="string")?O.url:"";var Q=(typeof O.alt==="string")?O.alt:"";var M=(typeof O.description==="string")?O.description:"";var R=(typeof O.downloadUrl==="string")?O.downloadUrl:"javascript:void(0)";if(h.isLogger()){h.getLogger().debug("Information about the selected picture:\n  selector: "+l+",\n  descriptionSelector: "+G+",\n  description: "+M+",\n  image description: "+Q+",\n  image url: "+N+",\n  download url: "+R+".\n")}$(k).find(l).attr({src:N,alt:Q});$(k).find(G).contents().remove();$(k).find(G).append(M);$(k).find(h.getPictureDownloadLinkSelector()).attr("href",R);$(k).find(h.getThumbnailCurrentSelector()).text(P+1)}})};var v=function(){$(k).find(h.getThumbnailsSelector()).find("a").focus(function(){h.getLogger().debug('Found "'+o.length+'" thumbnails.');var M=$(k).find(h.getThumbnailsSelector()).find("a").index(this);h.getLogger().debug('Thumbnail "'+M+'" is selected.');if(f!=M){var N=f;if(M-f>=z||f>M){x();f=M;N=M;h.getLogger().debug('Setting index number to "'+M+'".');H(M)}N=(N>o.length-z)?o.length-z:N;var I=(N*o[0].offsetWidth);h.getLogger().debug('Thumbnail position "'+N+'" multiply with "'+o[0].offsetWidth+'".');$(k).find(C).parent().scrollLeft(I)}})};this.setViewUrl=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "url" isn\'t a string.'))}q=I};this.setVisibleThumbnails=function(I){if(typeof I!=="number"){throw (new TypeError('Argument "count" isn\'t a number.'))}z=I};var w=function(N){if(typeof N!=="number"){N=z}f=(f-N>0)?f-N:0;x();if(e===0){return false}var I=(e>N)?N:e;var M=(I*o[0].offsetWidth);$(k).find(C).parent().animate({scrollLeft:"-="+M},n,a);H(e-I)};var c=function(O){if(typeof O!=="number"){O=z}f=(f+O>o.length-z)?o.length-z:f+O;x();if(e+O===o.length){return false}var I=o.length-(e+O);var M=(I>O)?O:I;var N=(M*o[0].offsetWidth);$(k).find(C).parent().animate({scrollLeft:"+="+N},n,a);H(e+M)};this.__construct(K,y,J,m,A,i);this.constructor()};com.babiel.dfg.js.ImageSliderComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.InitialValueComponent=function(){var b;var c;var a;this.__construct=function(){b=this;c={}};this.getElements=function(){return c};this.getInitialClass=function(){return a};this.setElements=function(d){if(typeof d!="object"){throw (new TypeError('Argument "obj" isn\'t a string'))}c=d};this.setInitialClass=function(d){if(typeof d!=="string"){throw (new TypeError('Argument "className" isn\'t a string.'))}a=d};this.setupInitialValues=function(d){var e;if(typeof d!=="object"){e=c}else{e=d}if(typeof e==="object"){for(key in e){if(typeof key==="string"&&typeof e[key]==="string"){if($(key)){new com.babiel.dfg.js.InputElement($(key),e[key],a);b.getLogger().debug('Setup initial value "'+e[key]+'" for "'+key+'".')}}else{b.getLogger().debug('Variable "inputElements" has invalid entries.')}}}};this.loadInitialValues=function(){b.setupInitialValues()};this.__construct();this.constructor()};com.babiel.dfg.js.InitialValueComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.InputElement=function(g,d,c){var e;var f;var b;var a;this.__construct=function(i,h,k){e=this;b="";try{if(typeof k==="string"){this.setInitialClass(k)}this.setInitialValue(h);this.setElementSelector(i);if($(f).val()===""){$(f).val(h);if(typeof k==="string"){$(f).addClass(k)}}$(f).focus(this.clear);$(f).blur(this.reset);$(f).parents("form").submit(function(){e.clear()})}catch(j){}};this.getElementSelector=function(){return f};this.getInitialClass=function(){return b};this.getInitialValue=function(){return a};this.setElementSelector=function(h){if(typeof h==="undefined"){throw (new TypeError('Argument "selector" isn\'t a jQuery selector or string.'))}f=h};this.setInitialClass=function(h){if(typeof h!=="string"){throw (new TypeError('Argument "className" isn\'t a string.'))}b=h};this.setInitialValue=function(h){if(typeof h!=="string"){throw (new TypeError('Argument "value" isn\'t a string.'))}a=h};this.clear=function(){if($(f).val()===a){$(f).val("");if(typeof b==="string"){$(f).removeClass(b)}}};this.reset=function(){if(this.tagName.match(/^(input|textarea)$/i)){if($(f).val()===""){$(f).val(a);if(typeof b==="string"){$(f).addClass(b)}}}};this.__construct(g,d,c)};com.babiel.dfg.js.LinkParameterComponent=function(g,a,j){var f;var h;var e;var i;var d;this.__construct=function(k,l,m){f=this;dialogParameters={};i={};try{this.setLinkSelector(k);this.setParameters(l);this.setCallback(m);c()}catch(n){}};this.getCallback=function(){return h};this.getLinkSelector=function(){return e};this.getParameterFromQueryString=function(k,o){var m=new RegExp("([?]|[&])"+k+"=([0-9A-Za-z_-]*)");var l=null;if(typeof o==="undefined"){o=window.location.search}if(typeof o=="string"&&o!==""){var n=m.exec(o);if(n!==null&&n.length>1){l=n[2]}}return l};this.getParameters=function(){return i};this.setCallback=function(k){if(typeof k!=="function"){throw (new TypeError('Argument "callbackFunc" isn\'t a function.'))}h=k};this.setLinkSelector=function(k){if(typeof k!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}e=k};this.setParameters=function(k){if(typeof k!=="object"){throw (new TypeError('Argument "params" isn\'t an object.'))}i=k};var c=function(){b()};var b=function(){var k=0;var m=0;for(key in i){k++;var l=f.getParameterFromQueryString(key);if(l!==null&&l===i[key]){m++}}if(k===m){h();f.setupLinkParameter()}};this.setupLinkParameter=function(){f.getLogger().debug("Setup link parameter.");var l=new RegExp("#.*$","i");var k=new RegExp("([?].*)[#]?","i");$(e).each(function(){var m=$(this).attr("href");if(m.match(new RegExp("^#.*$","i"))){return}var s=(m.match(l)===null)?"":m.match(l);var p=(m.match(k)===null)?"":k.exec(m)[1];var q="";for(key in i){var o=f.getParameterFromQueryString(key,p);if(o===null){var r=((q!=="")?"&":"");q+=r+key+"="+i[key]}}if(p!==""){var n=p+"&"+q+s}else{var n="?"+q+s}$(this).attr("href",m.replace(new RegExp("[?].*"),"")+n)})};this.removeLinkParameter=function(){f.getLogger().debug("Remove link parameter.");var l=new RegExp("#.*$","i");var k=new RegExp("([?].*)[#]?","i");$(e).each(function(){var m=$(this).attr("href");if(m.match(new RegExp("^#.*$","i"))){return}var r=(m.match(l)===null)?"":m.match(l);var p=(m.match(k)===null)?"":k.exec(m)[1];var q="";for(key in i){var o=f.getParameterFromQueryString(key,p);if(o===i[key]){q=p.replace(new RegExp("[&]?"+key+"="+o),"")}}if(q==="?"){var n=r}else{var n=q+r}$(this).attr("href",m.replace(new RegExp("[?].*"),"")+n)})};this.__construct(g,a,j);this.constructor()};com.babiel.dfg.js.LinkParameterComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.MagazineTeaserNavigationComponent=function(k,d,g,j,f){var h;var c;var l;var e;var a;var i;var b;this.__construct=function(q,p,n,m,o){h=this;try{this.setButtonSelector(q);this.setupButtonFunctions()}catch(r){throw (new com.babiel.application.jsctrl.InvalidParameterException(r))}};this.getActiveButtonClassName=function(){return c};this.getButtonSelector=function(){return l};this.getContentSelector=function(){return e};this.getContentSelectorTwo=function(){return a};this.getInvisibleClassName=function(){return i};this.getReplaceElementTagName=function(){return b};this.setActiveButtonClassName=function(m){if(typeof m!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}c=m};this.setButtonSelector=function(m){if(typeof m!=="string"){throw (new TypeError('Argument "selector" isn\'t a string'))}l=m};this.setContentSelector=function(m){if(typeof m!=="string"){throw (new TypeError('Argument "selector" isn\'t a string'))}e=m};this.setContentSelectorTwo=function(m){if(typeof m!=="string"){throw (new TypeError('Argument "selector" isn\'t a string'))}a=m};this.setInvisibleClassName=function(m){if(typeof m!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}i=m};this.setReplaceElementTagName=function(m){if(typeof m!=="string"){throw (new TypeError('Argument "tagName" isn\'t a string'))}b=m};this.setupButtonFunctions=function(){var m=function(){$(this).attr("href","javascript:void(0)");var r=$(l+" "+b).text();var q=document.createElement("a");q.href="javascript:void(0)";q.innerHTML=r;$(l+" "+b).replaceWith(q);$(q).click(m);var p;$(this).parents(l).each(function(){p=this});var n=$(l).index(p);h.getLogger().debug('Button with index "'+n+'" selected.');h.switchContent(n);$(l).removeClass(c);$(p).addClass(c);var r=$(this).text();var o=document.createElement(b);o.title=r;o.innerHTML=r;$(this).replaceWith(o)};$(l).find("a").click(m)};this.switchContent=function(m){h.getLogger().debug('Switch content to index "'+m+'".');if(typeof m!=="number"){throw (new TypeError('Argument "index" isn\'t a number'))}var o=$(e);for(var n=0;n<o.length;n++){if(n===m){h.getLogger().debug('Show content "'+n+'"');$(e+":not(."+i+")").addClass(i);$(o[n]).removeClass(i)}}o=$(a);for(var n=0;n<o.length;n++){if(n===m){h.getLogger().debug('Show content "'+n+'"');$(a+":not(."+i+")").addClass(i);$(o[n]).removeClass(i)}}};this.__construct(k,d,g,j,f);this.constructor()};com.babiel.dfg.js.MagazineTeaserNavigationComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.MultimediaComponent=function(y,f,a,m,u,b,n,r){var i;var d;var h;var w;var s;var t;var v;var o;var g;var p;this.__construct=function(G,H,E,C,A,F,B,z){i=this;try{this.setMainSelector(G);this.setContentSelector(H);this.setNavigationSelector(E);this.setInvisibleClassName(C);this.setTimerInterval(A);this.setButtonClasses(F);this.setCounterCurrentSelector(B);this.setCounterMaximumSelector(z);q()}catch(D){throw (new com.babiel.application.jsctrl.InvalidParameterException(D))}};this.getActiveButtonClassName=function(){return d};this.getButtonClasses=function(){return h};this.getContentSelector=function(){return w};this.getCounterCurrentSelector=function(){return s};this.getCounterMaximumSelector=function(){return t};this.getInvisibleClassName=function(){return v};this.getMainSelector=function(){return o};this.getNavigationSelector=function(){return g};this.getTimerInterval=function(){return p};this.setActiveButtonClassName=function(z){if(typeof z!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}d=z};this.setButtonClasses=function(z){if(typeof z!=="object"){throw (new TypeError('Argument "classes" isn\'t an object'))}h=z};this.setContentSelector=function(z){if(typeof z!=="string"){throw (new TypeError('Argument "selector" isn\'t a string'))}w=z};this.setCounterCurrentSelector=function(z){if(typeof z!=="string"){throw (new TypeError('Argument "selector" isn\'t a string'))}s=z};this.setCounterMaximumSelector=function(z){if(typeof z!=="string"){throw (new TypeError('Argument "selector" isn\'t a string'))}t=z};this.setInvisibleClassName=function(z){if(typeof z!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}v=z};this.setMainSelector=function(z){if(typeof z!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}o=z};this.setNavigationSelector=function(z){if(typeof z!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}g=z};this.setTimerInterval=function(z){if(typeof z!=="number"){throw (new TypeError('Argument "interval" isn\'t a number'))}p=z};var q=function(){$(s).text(1);var z=$(o).find(w).length;if(z>0){$(t).text(z);k()}else{$(o).find(g).hide()}$(o).find(w).click(function(){l()});if($(o).find(w).length>0){e()}};var e=function(){$(o).find(g).find("."+h.play).attr("class",h.pause);$(document).everyTime(p,function(){j()})};var l=function(){$(o).find(g).find("."+h.pause).attr("class",h.play);$(document).stopTime()};var j=function(){var A=$(o).find(w);var z=-1;$(o).find(w+":not(."+v+")").each(function(){z=$(o).find(w).index(this)});if(z>=0){z++;if(A&&z>=A.length){z=0}i.switchContent(z);$(s).text(z+1)}else{i.getLogger().warn("Couldn't switch content, no index available.")}};var x=function(){var A=$(o).find(w);var z=-1;$(o).find(w+":not(."+v+")").each(function(){z=$(o).find(w).index(this)});if(z>=0){z--;if(A&&z<0){z=A.length-1}i.switchContent(z);$(s).text(z+1)}else{i.getLogger().warn("Couldn't switch content, no index available.")}};var k=function(){$(o).find(g).find("."+h.play+", ."+h.pause).click(function(){$(this).attr("href","javascript:void(0)");if($(this).hasClass(h.pause)){l()}else{e()}});$(o).find(g).find("."+h.next).click(function(){l();$(this).attr("href","javascript:void(0)");j()});$(o).find(g).find("."+h.prev).click(function(){l();$(this).attr("href","javascript:void(0)");x()})};var c=function(A){i.getLogger().debug("Refreshing counters...");if(typeof A!=="number"){throw (new TypeError('Argument "index" isn\'t a number'))}$(s).text(A);var z=$(o).find(w).length;if(z>0){$(t).text(z);k()}else{$(o).find(g).hide()}};this.switchContent=function(z){i.getLogger().debug('Switch content to index "'+z+'".');if(typeof z!=="number"){throw (new TypeError('Argument "index" isn\'t a number'))}var B=$(o).find(w);for(var A=0;A<B.length;A++){if(A===z){i.getLogger().debug('Show content "'+A+'"');$(o).find(w+":not(."+v+")").addClass(v);$($(o).find(w).get(A)).removeClass(v)}}};this.__construct(y,f,a,m,u,b,n,r);this.constructor()};com.babiel.dfg.js.MultimediaComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.PictureGalleryComponent=function(Q,D,P,p,F,k,q){var j;var L;var r;var a;var h;var g;var G;var l;var c;var n;var M;var H;var R;var b;var w;var N;var o;var d;var J;var y;var s;var z;var u;var E;this.__construct=function(U,V,T,Y,S,X,I){j=this;L="";r=1600;a="linear";h=0;g=0;G=0;c={};l={event:false};H=false;b=[];d=1;s=[];E=1;try{this.setMainSelector(U);this.setSliderAreaSelector(V);this.setViewUrl(T);this.setPictures(Y);this.setPictureSelector(S);this.setPictureDescriptionSelector(X);this.setImageSet(I);$(document).ready(function(){j.loadView()})}catch(W){}};var v=function(){if(s.length>(g+E)){K()}else{f()}if(g>0){m()}else{t()}};var C=function(){$(n).find(M).find("a").attr("href","javascript:void(0)");$(n).find(R).find("a").attr("href","javascript:void(0)")};var K=function(){j.getLogger().debug("Creating next button...");if($(n).find(M).find("a").length===0){var I=document.createElement("a");I.href="javascript:void(0);";var T=$(n).find(M).find("img").clone();if(typeof c.nextActive==="string"){var S={original:c.nextActive,placeholder:c.nextInactive};jQuery.extend(S,l);$(T).lazyload(S)}$(n).find(M).append(I);$(n).find(M).find("img").remove();$(n).find(M).find("a").append(T)}};var m=function(){j.getLogger().debug("Creating previous button...");if($(n).find(R).find("a").length===0){var I=document.createElement("a");I.href="javascript:void(0);";var T=$(n).find(R).find("img").clone();if(typeof c.prevActive==="string"){var S={original:c.prevActive,placeholder:c.prevInactive};jQuery.extend(S,l);$(T).lazyload(S)}$(n).find(R).append(I);$(n).find(R).find("img").remove();$(n).find(R).find("a").append(T)}};this.getActiveThumbnailClassName=function(){return L};this.getDuration=function(){return r};this.getEasingType=function(){return a};this.getFocusedThumbnail=function(){return h};this.getLazyloadOptions=function(){return l};this.getMainSelector=function(){return n};this.getNextButtonSelector=function(){return M};this.getOverflowHidden=function(){return H};this.getPictures=function(){return b};this.getPictureDownloadLinkSelector=function(){return w};this.getPictureDescriptionSelector=function(){return N};this.getPictureSelector=function(){return o};this.getPrevButtonSelector=function(){return R};this.getSliderAreaSelector=function(){return J};this.getThumbnails=function(){return s};this.getThumbnailCurrentSelector=function(){return y};this.getThumbnailsSelector=function(){return z};this.getViewUrl=function(){return u};this.getVisibleThumbnails=function(){return E};this.getSlideCount=function(){return d};this.loadView=function(){$.get(u,{},function(I){$(n).find(J).replaceWith(I);$(n).find(j.getThumbnailsSelector()).each(function(S){s.push(this)});if(s.length>0){if(!H){$(n).find(J).css("width",(s.length*s[0].offsetWidth)+"px")}$(n).find(J).parent().scrollLeft(0)}A();i();j.setupThumbnailEventListeners()},"html")};var f=function(){j.getLogger().debug("Removing next button...");if($(n).find(M).find("a").length>0){var S=$(n).find(M).find("img");$(n).find(M).find("a").remove();$(n).find(M).append(S);if(typeof c.nextInactive==="string"){var I={original:c.nextInactive,placeholder:c.nextActive};jQuery.extend(I,l);$(S).lazyload(I)}}};var t=function(){j.getLogger().debug("Removing previous button...");if($(n).find(R).find("a").length>0){var S=$(n).find(R).find("img");$(n).find(R).find("a").remove();$(n).find(R).append(S);if(typeof c.prevInactive==="string"){var I={original:c.prevInactive,placeholder:c.prevActive};jQuery.extend(I,l);$(S).lazyload(I)}}};this.setActiveThumbnailClassName=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "className" isn\'t a string.'))}L=I};this.setDuration=function(I){if(typeof I!=="number"){throw (new TypeError('Argument "milliseconds" isn\'t a number.'))}r=I};this.setEasingType=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "typeName" isn\'t a string.'))}if(typeof jQuery.easing[I]!=="function"){throw (new Error("Type of easing doesn't exist."))}a=I};var O=function(I){if(typeof I!=="number"){throw (new TypeError('Argument "count" isn\'t a number.'))}g=I;v()};this.setImageSet=function(I){if(typeof I!=="object"){throw (new TypeError('Argument "images" isn\'t an object.'))}c=I};this.setLazyloadOptions=function(I){if(typeof I!=="object"){throw (new TypeError('Argument "settingsions" isn\'t an object.'))}l=I};this.setMainSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}n=I};this.setNextButtonSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}M=I};this.setOverflowHidden=function(I){if(typeof I!=="boolean"){throw (new TypeError('Argument "on" isn\'t a boolean.'))}H=I};this.setPictures=function(I){if(!I instanceof Array){throw (new com.babiel.application.jsctrl.InvalidParameterException('Argument "pictures" isn\'t an "Array".'))}b=I};this.setPictureDownloadLinkSelector=function(I){if(!($(I))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+I+'".'))}w=I};this.setPictureDescriptionSelector=function(I){if(!($(I))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+I+'".'))}N=I};this.setPictureSelector=function(I){if(!($(I))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+I+'".'))}o=I};this.setPrevButtonSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}R=I};this.setSlideCount=function(I){if(typeof I!=="number"){throw (new TypeError('Argument "count" isn\'t a number.'))}d=I};this.setSliderAreaSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}J=I};this.setThumbnailCurrentSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}y=I};this.setThumbnailsSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}z=I};var i=function(){if(typeof M==="string"){$(n).find(M).click(e)}if(typeof R==="string"){$(n).find(R).click(B)}if(L!=""){$(n).find(j.getThumbnailsSelector()).find("a").focus(function(){$(this).parent().addClass(L)});$(n).find(j.getThumbnailsSelector()).find("a").blur(function(){$(this).parent().removeClass(L)})}};this.setupThumbnailEventListeners=function(){$(n).find(j.getThumbnailsSelector()).find("a").attr("href","javascript:void(0)");$(n).find(j.getThumbnailsSelector()).click(function(){var I=$(n).find(j.getThumbnailsSelector()).index(this);x(I)})};var x=function(V){if(j.isLogger()){j.getLogger().debug('Selecting Thumbnail with index number "'+V+'".')}var I=j.getPictures();if(typeof I==="undefined"){if(j.isLogger()){j.getLogger().warn("No pictures defined.")}return false}if(typeof I[V]!=="undefined"){var U=I[V];var W=(typeof U.url==="string")?U.url:"";var Y=(typeof U.alt==="string")?U.alt:"";var Z=(typeof U.description==="string")?U.description:"";var X=(typeof U.downloadUrl==="string")?U.downloadUrl:"javascript:void(0)";if(j.isLogger()){j.getLogger().debug("Information about the selected picture:\n  selector: "+o+",\n  descriptionSelector: "+N+",\n  description: "+Z+",\n  image description: "+Y+",\n  image url: "+W+",\n  download url: "+X+".\n")}var T=$(n).find(o);var S={original:W,placeholder:T.attr("src")};$.extend(S,l);$(T).lazyload(S);T.attr("alt",Y);$(n).find(N).contents().remove();$(n).find(N).append(Z);$(n).find(j.getPictureDownloadLinkSelector()).attr("href",X);$(n).find(j.getThumbnailCurrentSelector()).text(V+1)}};var A=function(){$(n).find(j.getThumbnailsSelector()).find("a").focus(function(){j.getLogger().debug('Found "'+s.length+'" thumbnails.');var S=$(n).find(j.getThumbnailsSelector()).find("a").index(this);j.getLogger().debug('Thumbnail "'+S+'" is selected.');if(h!=S){var T=h;if(S-h>=E||T>S){C();h=S;T=S;j.getLogger().debug('Setting index number to "'+S+'".');O(S)}T=(T>s.length-E)?s.length-E:T;var I=(T*s[0].offsetWidth);j.getLogger().debug('Thumbnail position "'+T+'" multiply with "'+s[0].offsetWidth+'".');$(n).find(J).parent().scrollLeft(I)}})};this.setViewUrl=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "url" isn\'t a string.'))}u=I};this.setVisibleThumbnails=function(I){if(typeof I!=="number"){throw (new TypeError('Argument "count" isn\'t a number.'))}E=I};var B=function(T){if(typeof T!=="number"){T=d}j.getLogger().debug("Sliding "+T+" thumbnails left... ("+h+")");h=(h-T>0)?h-T:0;j.getLogger().debug("Focused thumbnail: "+h);C();if(g===0){return false}var I=(g>T)?T:g;var S=(I*s[0].offsetWidth);$(n).find(J).parent().animate({scrollLeft:"-="+S},r,a);O(g-I)};var e=function(U){if(typeof U!=="number"){U=d}j.getLogger().debug("Sliding "+U+" thumbnails right...");j.getLogger().debug("Focused thumbnail(begin): "+h);j.getLogger().debug("Hidden thumbnails left: "+g);j.getLogger().debug("Sliding... (focusedThumbnail["+h+"] + count["+U+"] > thumbnails.length["+s.length+"] - visibleThumbnails["+E+"]) : "+(h+U>s.length-E));C();if(h+U>s.length-E){h=s.length-E;j.getLogger().debug("Focused thumbnail(1): "+h);var I=s.length-(g+E);var S=(I>U)?U:I;var T=(S*s[0].offsetWidth);$(n).find(J).parent().animate({scrollLeft:"+="+T},r,a);O(h)}else{h=h+U;j.getLogger().debug("Focused thumbnail(2): "+h);if(g+U===s.length){return false}j.getLogger().debug("Hidden thumbnails left: "+g);var I=s.length-(g+U);var S=(I>U)?U:I;var T=(S*s[0].offsetWidth);$(n).find(J).parent().animate({scrollLeft:"+="+T},r,a);O(g+S)}};this.__construct(Q,D,P,p,F,k,q);this.constructor()};com.babiel.dfg.js.PictureGalleryComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.PrintComponent=function(e){var d;var b;this.__construct=function(f){d=this;classesToRemove={};this.setPrintButton(f)};this.getPrintButton=function(){return b};this.setPrintButton=function(f){if(typeof f!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}if(!$(f)){throw (new com.babiel.application.jsctrl.InvalidParameterException('Can not find an HTML element with selector "'+f+'".'))}b=f;a()};var c=function(){window.print()};var a=function(){$(b).attr("href","javascript:void(0)");$(b).click(c)};this.__construct(e);this.constructor()};com.babiel.dfg.js.PrintComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.SearchComponent=function(w,a,c,k,v,t){var n;var d;var g;var u;var m;var q;var j;var p;var h;var x;var b;var e;this.__construct=function(A,z,C,E,B,y){n=this;x=false;h={};try{this.setAdvancedSearchButtonSelector(B);this.setMainSelector(A);this.setFormSelector(z);this.setResultsSelector(C);this.setUrl(E);this.setFurtherSearchResultsButtonSelector(y);this.setup()}catch(D){throw (new com.babiel.application.jsctrl.InvalidParameterException(D))}};var r=function(z,y){z=jQuery.param(z,true);jQuery.ajax({url:n.getUrl(),cache:false,contentType:"application/x-www-form-urlencoded; charset=UTF-8",data:z,success:y,complete:s})};this.getAdvancedSearchButtonSelector=function(){return d};this.getAdvancedSearchContentSelector=function(){return g};this.getAdvancedSearchClosedClassName=function(){return u};this.getAdvancedSearchOpenedClassName=function(){return m};this.getFormSelector=function(){return q};this.getFurtherSearchResultsButtonSelector=function(){return j};this.getInputElementsByType=function(z){if(typeof z!="string"){throw (new TypeError('Argument "typeName" isn\'t a string'))}var A=new RegExp("^(button|checkbox|file|hidden|image|password|radio|reset|select|submit|text)$");if(!(A.test(z))){throw (new com.babiel.application.jsctrl.InvalidParameterException('Given "typeName" isn\'t valid'))}var y=new Array();if(z!=="select"){$(n.getMainSelector()).find(n.getFormSelector()).find("input").each(function(){if(this.type==z){y.push(this)}})}else{$(n.getMainSelector()).find(n.getFormSelector()).find("select").each(function(){y.push(this)})}return y};this.getMainSelector=function(){return p};this.getParameters=function(){return h};this.getResultsSelector=function(){return b};this.getUrl=function(){return e};this.setAdvancedSearchButtonSelector=function(y){if(!($(y))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+y+'".'))}d=y};this.setAdvancedSearchContentSelector=function(y){if(!($(y))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+y+'".'))}g=y};this.setAdvancedSearchClosedClassName=function(y){if(typeof y!=="string"){throw (new TypeError('Argument "className" isn\'t a string.'))}u=y};this.setAdvancedSearchOpenedClassName=function(y){if(typeof y!=="string"){throw (new TypeError('Argument "className" isn\'t a string.'))}m=y};this.setFormSelector=function(y){if(!($(y))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+y+'".'))}q=y};this.setFurtherSearchResultsButtonSelector=function(y){if(!($(y))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+y+'".'))}j=y};this.setMainSelector=function(y){if(typeof y!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}p=y};this.setParameters=function(y){if(typeof y!=="object"){throw (new TypeError('Argument "parameters" isn\'t an object.'))}h=y};this.setResultsSelector=function(y){if(typeof y!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}b=y};this.setUrl=function(y){if(typeof y!=="string"){throw (new TypeError('Argument "link" isn\'t a string.'))}e=y};var s=function(){n.getLogger().debug("Sperrung weiterer HTTP-Requests aufheben.");x=false};var l=function(y,B){if(typeof B!=="string"){throw (new TypeError('Argument "value" isn\'t a string.'))}if(!(y instanceof Array)){throw (new com.babiel.application.jsctrl.InvalidParameterException('Argument "arr" isn\'t an array.'))}var A=[];for(var z=0,C=y.length;z<C;z++){if(!(y[z]===B)){A[A.length]=y[z]}}return A};var f=function(z){if(x===true){return}x=true;var y=function(A){$(n.getResultsSelector()).replaceWith(A);n.setup()};r(z,y)};this.setup=function(){$(p).find(n.getFormSelector()).unbind();$(p).find(n.getFormSelector()).submit(function(){n.getLogger().debug("Default form request action deactivated.");try{var z={};z.actualPage=1;z=jQuery.extend(z,n.getParameters());z=jQuery.extend(z,i());f(z)}catch(y){alert(y)}return false});$(p).find(d).unbind();$(p).find(d).click(function(){$(this).attr("href","javascript:void(0)");if($(p).find("."+u).length>0){n.getLogger().debug("Opening advanced search.");$("input[name=showFilters]").val("true");$(p).find(g).css("display","none");$(p).find("."+u).removeClass(u).addClass(m);$(p).find(g).slideDown()}else{if($(p).find("."+m).length>0){n.getLogger().debug("Closing advanced search.");$("input[name=showFilters]").val("false");$(p).find(g).slideUp("fast",function(){$(p).find("."+m).removeClass(m).addClass(u)})}}});$(p).find(j).unbind();$(p).find(j).click(function(){var z={};var y=new RegExp("^a$","i");if(typeof this!=="undefined"&&y.test(this.tagName)){n.getLogger().debug("Button is an A-Tag.");z=jQuery.url.setUrl($(this).attr("href")).params();z=jQuery.extend(z,n.getParameters());z=jQuery.extend(z,i())}f(z);return false})};var o=function(y,C){n.getLogger().debug("Removing duplicates in an array.");if(!(y instanceof Array)){throw new com.babiel.application.jsctrl.InvalidParameterException('Argument "arr" isn\'t an array.')}var B=[];label:for(var A=0;A<y.length;A++){for(var z=0;z<B.length;z++){if(B[z]===y[A]){continue label}}if(C){if(y[A]!==""){B[B.length]=y[A]}}else{B[B.length]=y[A]}}return B};var i=function(){var E={};var y=n.getInputElementsByType("text");if(y.length>0){for(var z=0;z<y.length;z++){E[y[z].name]=y[z].value;n.getLogger().debug('Input field with name is "'+y[z].name+'" and value "'+y[z].value+'".')}}var y=n.getInputElementsByType("hidden");if(y.length>0){for(var z=0;z<y.length;z++){E[y[z].name]=y[z].value;n.getLogger().debug('Hidden input field with name is "'+y[z].name+'" and value "'+y[z].value+'".')}}var C=n.getInputElementsByType("select");if(C.length>0){for(var z=0;z<C.length;z++){E[C[z].name]=C[z].value;n.getLogger().debug('Select element name is "'+C[z].name+'" with value "'+C[z].value+'".')}}var B=n.getInputElementsByType("checkbox");n.getLogger().debug('Checkboxen: "'+B.length+'".');if(B.length>0){for(var z=0;z<B.length;z++){var A=B[z];var D;if(A.name!==""&&typeof A.value!=="undefined"){if(A.checked===true){if(typeof E[A.name]!=="undefined"){if(!(E[A.name] instanceof Array)){D=E[A.name];E[A.name]=[];E[A.name].push(D)}E[A.name].push(A.value);E[A.name]=o(E[A.name],true)}else{E[A.name]=A.value}n.getLogger().debug(z+': Add "'+A.name+'": "'+A.value+'".')}else{if(E[A.name] instanceof Array){E[A.name]=l(E[A.name],A.value)}else{if(A.value===E[A.name]){n.getLogger().debug(z+': Deleting "'+E[A.name]+'" '+(delete E[A.name])+".")}}}}delete A;delete D}}return E};this.__construct(w,a,c,k,v,t);this.constructor()};com.babiel.dfg.js.SearchComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.SmallPictureGalleryComponent=function(W,K,V,s,L,l,t,z,H){var k;var R;var m;var u;var a;var h;var g;var M;var n;var c;var p;var S;var r;var i;var N;var X;var b;var A;var T;var q;var d;var O;var C;var v;var D;var x;var J;this.__construct=function(af,ae,Z,aa,Y,ag,I,ad,ac){k=this;R="";m=false;u=1600;a="linear";h=0;g=0;M=0;c={};n={event:false};r=0;i="openImage";N=false;b=[];d=1;v=[];J=1;try{this.setMainSelector(af);this.setSliderAreaSelector(ae);this.setViewUrl(Z);this.setPictures(aa);this.setPictureSelector(Y);this.setPictureDescriptionSelector(ag);this.setImageSet(I);this.setDoubleCounter(ad);r=ac;$(document).ready(function(){k.loadView(r)})}catch(ab){}};var y=function(){if(v.length>(g+J)){Q()}else{f()}if(g>0){o()}else{w()}};var G=function(){$(p).find(S).find("a").attr("href","javascript:void(0)");$(p).find(X).find("a").attr("href","javascript:void(0)")};var Q=function(){k.getLogger().debug("Creating next button...");if($(p).find(S).find("a").length===0){var I=document.createElement("a");I.href="javascript:void(0);";var Z=$(p).find(S).find("img").clone();if(typeof c.nextActive==="string"){var Y={original:c.nextActive,placeholder:c.nextInactive};jQuery.extend(Y,n);$(Z).lazyload(Y)}$(p).find(S).append(I);$(p).find(S).find("img").remove();$(p).find(S).find("a").append(Z)}};var o=function(){k.getLogger().debug("Creating previous button...");if($(p).find(X).find("a").length===0){var I=document.createElement("a");I.href="javascript:void(0);";var Z=$(p).find(X).find("img").clone();if(typeof c.prevActive==="string"){var Y={original:c.prevActive,placeholder:c.prevInactive};jQuery.extend(Y,n);$(Z).lazyload(Y)}$(p).find(X).append(I);$(p).find(X).find("img").remove();$(p).find(X).find("a").append(Z)}};this.getActiveThumbnailClassName=function(){return R};this.getDuration=function(){return u};this.getEasingType=function(){return a};this.getFocusedThumbnail=function(){return h};this.getLazyloadOptions=function(){return n};this.getMainSelector=function(){return p};this.getNextButtonSelector=function(){return S};this.getOverflowHidden=function(){return N};this.getPictures=function(){return b};this.getPictureDownloadLinkSelector=function(){return A};this.getPictureDescriptionSelector=function(){return T};this.getPictureSelector=function(){return q};this.getPrevButtonSelector=function(){return X};this.getSliderAreaSelector=function(){return O};this.getThumbnails=function(){return v};this.getThumbnailCurrentSelector=function(){return C};this.getThumbnailsSelector=function(){return D};this.getViewUrl=function(){return x};this.getVisibleThumbnails=function(){return J};this.getSlideCount=function(){return d};this.loadView=function(I){$.get(x,{},function(Y){$(p).find(O).replaceWith(Y);$(p).find(k.getThumbnailsSelector()).each(function(Z){v.push(this)});if(v.length>0){if(!N){$(p).find(O).css("width",(v.length*v[0].offsetWidth)+"px")}$(p).find(O).parent().scrollLeft(0)}E();j();if(typeof I==="number"&&I>0){P(I)}},"html")};var f=function(){k.getLogger().debug("Removing next button...");if($(p).find(S).find("a").length>0){var Y=$(p).find(S).find("img");$(p).find(S).find("a").remove();$(p).find(S).append(Y);if(typeof c.nextInactive==="string"){var I={original:c.nextInactive,placeholder:c.nextActive};jQuery.extend(I,n);$(Y).lazyload(I)}}};var w=function(){k.getLogger().debug("Removing previous button...");if($(p).find(X).find("a").length>0){var Y=$(p).find(X).find("img");$(p).find(X).find("a").remove();$(p).find(X).append(Y);if(typeof c.prevInactive==="string"){var I={original:c.prevInactive,placeholder:c.prevActive};jQuery.extend(I,n);$(Y).lazyload(I)}}};this.setActiveThumbnailClassName=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "className" isn\'t a string.'))}R=I};this.setDoubleCounter=function(I){if(typeof I!=="boolean"){throw (new TypeError('Argument "isOn" isn\'t a boolean.'))}m=I};this.setDuration=function(I){if(typeof I!=="number"){throw (new TypeError('Argument "milliseconds" isn\'t a number.'))}u=I};this.setEasingType=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "typeName" isn\'t a string.'))}if(typeof jQuery.easing[I]!=="function"){throw (new Error("Type of easing doesn't exist."))}a=I};var U=function(I){if(typeof I!=="number"){throw (new TypeError('Argument "count" isn\'t a number.'))}g=I;y()};this.setImageSet=function(I){if(typeof I!=="object"){throw (new TypeError('Argument "images" isn\'t an object.'))}c=I};this.setLazyloadOptions=function(I){if(typeof I!=="object"){throw (new TypeError('Argument "settingsions" isn\'t an object.'))}n=I};this.setMainSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}p=I};this.setNextButtonSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}S=I};this.setOverflowHidden=function(I){if(typeof I!=="boolean"){throw (new TypeError('Argument "on" isn\'t a boolean.'))}N=I};this.setPictures=function(I){if(!I instanceof Array){throw (new com.babiel.application.jsctrl.InvalidParameterException('Argument "pictures" isn\'t an "Array".'))}b=I};this.setPictureDownloadLinkSelector=function(I){if(!($(I))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+I+'".'))}A=I};this.setPictureDescriptionSelector=function(I){if(!($(I))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+I+'".'))}T=I};this.setPictureSelector=function(I){if(!($(I))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+I+'".'))}q=I};this.setPrevButtonSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}X=I};this.setSlideCount=function(I){if(typeof I!=="number"){throw (new TypeError('Argument "count" isn\'t a number.'))}d=I};this.setSliderAreaSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}O=I};this.setThumbnailCurrentSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}C=I};this.setThumbnailsSelector=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}D=I};var j=function(){if(typeof S==="string"){$(p).find(S).click(e)}if(typeof X==="string"){$(p).find(X).click(F)}if(R!=""){$(p).find(k.getThumbnailsSelector()).find("a").focus(function(){$(this).parent().addClass(R)});$(p).find(k.getThumbnailsSelector()).find("a").blur(function(){$(this).parent().removeClass(R)})}};var B=function(Z){if(k.isLogger()){k.getLogger().debug('Selecting Thumbnail with index number "'+Z+'".')}var I=k.getPictures();if(typeof I==="undefined"){if(k.isLogger()){k.getLogger().warn("No pictures defined.")}return false}if(typeof I[Z]!=="undefined"){var Y=I[Z];var aa=(typeof Y.url==="string")?Y.url:"";var ae=(typeof Y.alt==="string")?Y.alt:"";var ag=(typeof Y.description==="string")?Y.description:"";var ab=(typeof Y.downloadUrl==="string")?Y.downloadUrl:"javascript:void(0)";$(p).find(T).contents().remove();$(p).find(T).append(ag);$(p).find(k.getPictureDownloadLinkSelector()).attr("href",ab);if(aa!=""){$(p).find(k.getPictureSelector()).attr("href",aa+"?"+i+"="+Z)}}if(m===false){$(p).find(k.getThumbnailCurrentSelector()).text(Z+1)}else{var ad=Z+1;var ac=ad*2-1;var af=ad*2;$(p).find(k.getThumbnailCurrentSelector()).text(ac+" - "+af)}};var E=function(){$(p).find(k.getThumbnailsSelector()).find("a").focus(function(){k.getLogger().debug('Found "'+v.length+'" thumbnails.');var Y=$(p).find(k.getThumbnailsSelector()).find("a").index(this);k.getLogger().debug('Thumbnail "'+Y+'" is selected.');if(h!=Y){var Z=h;if(Y-h>=J||Z>Y){G();h=Y;Z=Y;k.getLogger().debug('Setting index number to "'+Y+'".');U(Y)}Z=(Z>v.length-J)?v.length-J:Z;var I=(Z*v[0].offsetWidth);k.getLogger().debug('Thumbnail position "'+Z+'" multiply with "'+v[0].offsetWidth+'".');$(p).find(O).parent().scrollLeft(I)}})};this.setViewUrl=function(I){if(typeof I!=="string"){throw (new TypeError('Argument "url" isn\'t a string.'))}x=I};this.setVisibleThumbnails=function(I){if(typeof I!=="number"){throw (new TypeError('Argument "count" isn\'t a number.'))}J=I};var F=function(Z){if(typeof Z!=="number"){Z=d}k.getLogger().debug("Sliding "+Z+" thumbnails left... ("+h+")");h=(h-Z>0)?h-Z:0;k.getLogger().debug("Focused thumbnail: "+h);G();if(g===0){return false}var I=(g>Z)?Z:g;var Y=(I*v[0].offsetWidth);$(p).find(O).parent().animate({scrollLeft:"-="+Y},u,a);U(g-I);B(h)};var e=function(aa){if(typeof aa!=="number"){aa=d}k.getLogger().debug("Sliding "+aa+" thumbnails right...");k.getLogger().debug("Focused thumbnail(begin): "+h);k.getLogger().debug("Hidden thumbnails left: "+g);G();if(h+aa>v.length-J){h=v.length-J;k.getLogger().debug("Focused thumbnail(1): "+h);var I=v.length-(g+J);var Y=(I>aa)?aa:I;var Z=(Y*v[0].offsetWidth);$(p).find(O).parent().animate({scrollLeft:"+="+Z},u,a);U(h)}else{h=h+aa;k.getLogger().debug("Focused thumbnail(2): "+h);if(g+aa===v.length){return false}k.getLogger().debug("Hidden thumbnails left: "+g);var I=v.length-(g+aa);var Y=(I>aa)?aa:I;var Z=(Y*v[0].offsetWidth);$(p).find(O).parent().animate({scrollLeft:"+="+Z},u,a);U(g+Y)}B(h)};var P=function(Y){if(typeof Y!=="number"||Y<=0||Y>=v.length){k.getLogger().info('Focusing thumbnails with index "'+Y+'" failed.');return false}k.getLogger().debug('Focusing thumbnails with index "'+Y+'".');G();if(Y>=v.length-J){var I=v.length-(g+J);k.getLogger().debug("Focused thumbnail(1): "+I);k.getLogger().debug("Hidden thumbnails left: "+g);var Z=(I*v[0].offsetWidth)}else{h=Y;k.getLogger().debug("Focused thumbnail(2): "+h);k.getLogger().debug("Hidden thumbnails left: "+g);var Z=(Y*v[0].offsetWidth)}$(p).find(O).parent().animate({scrollLeft:"+="+Z},0);U(h);B(h)};this.__construct(W,K,V,s,L,l,t,z,H);this.constructor()};com.babiel.dfg.js.SmallPictureGalleryComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.TabComponent=function(a,o,e,h,l,b){var i;var d;var m;var n;var g;var k;var c;this.__construct=function(r,u,t,q,p,s){i=this;try{this.setBoxSelector(r);this.setButtonSelector(u);this.setContentSelector(t);this.setActiveButtonClassName(q);this.setInvisibleClassName(p);this.setTabGroupBeginClassNameArg(s);this.setup()}catch(v){throw (new com.babiel.application.jsctrl.InvalidParameterException(v))}};this.getActiveButtonClassName=function(){return d};this.getBoxSelector=function(){return m};this.getButtonSelector=function(){return n};this.getContentSelector=function(){return g};this.getInvisibleClassName=function(){return k};this.getTabGroupBeginClassNameArg=function(){return c};this.setActiveButtonClassName=function(p){if(typeof p!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}d=p};this.setBoxSelector=function(p){if(typeof p!=="string"){throw (new TypeError('Argument "selector" isn\'t a string'))}m=p};this.setButtonSelector=function(p){if(typeof p!=="string"){throw (new TypeError('Argument "selector" isn\'t a string'))}n=p};this.setContentSelector=function(p){if(typeof p!=="string"){throw (new TypeError('Argument "selector" isn\'t a string'))}g=p};this.setInvisibleClassName=function(p){if(typeof p!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}k=p};this.setTabGroupBeginClassNameArg=function(p){if(typeof p!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}c=p};var f=function(){$(m+"."+c).each(function(){$(this).removeClass(c);i.getLogger().debug("Getting tabs.");var q=false;while($(this).next().hasClass(m)&&!$(this).next().hasClass(c)){i.getLogger().debug("Is my tab.");q=$(this).next()[0];var p=$(q).find(n).text();$(q).find(n).text("").append('<a href="javascript:void(0)">'+p+"</a>");$(q).find(n).removeClass(d).insertAfter($(this).find(n+":last"));$(q).find(g).addClass(k).insertAfter($(this).find(g+":last"));$(q).remove()}})};this.setup=function(){f();j()};var j=function(){$(n).click(function(){var r=$(this).parent().find(n).index(this);i.getLogger().debug('Changing content to requested tab "'+r+'".');if($(this).hasClass(d)===true){return}$(this).find("a").attr("href","javascript:void(0)");$(this).parent().find(n).removeClass(d);$(this).parent().find(g).each(function(){if($(this).parent().find(g).index(this)===r){$(this).removeClass(k)}else{if(!($(this).hasClass(k))){$(this).addClass(k)}}});if($(this).hasClass(d)===false){$(this).addClass(d);var q=$(this).find("a");var p=q.text();q.parent().append(p);q.remove();$(this).parent().find(n+":not(:."+d+")").each(function(){var s=$(this).text();if(s!==""){$(this).text("");$(this).append('<a href="javascript:void(0)">'+s+"</a>")}})}})};this.switchContent=function(p){i.getLogger().debug('Switch content to index "'+p+'".');if(typeof p!=="number"){throw (new TypeError('Argument "index" isn\'t a number'))}var r=$(g);for(var q=0;q<r.length;q++){if(q===p){i.getLogger().debug('Show content "'+q+'"');$(g+":not(."+k+")").addClass(k);$(r[q]).removeClass(k)}}};this.__construct(a,o,e,h,l,b);this.constructor()};com.babiel.dfg.js.TabComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.TeaserNavigationComponent=function(l,d,g,k,h){var i;var b;var m;var f;var j;var e;this.__construct=function(r,q,o,n,p){i=this;try{this.setButtonSelector(r);this.setContentSelector(q);this.setActiveButtonClassName(o);this.setInvisibleClassName(n);this.setTimerInterval(p);c()}catch(s){throw (new com.babiel.application.jsctrl.InvalidParameterException(s))}};this.getActiveButtonClassName=function(){return b};this.getButtonSelector=function(){return m};this.getContentSelector=function(){return f};this.getInvisibleClassName=function(){return j};this.getTimerInterval=function(){return e};this.setActiveButtonClassName=function(n){if(typeof n!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}b=n};this.setButtonSelector=function(n){if(typeof n!=="string"){throw (new TypeError('Argument "selector" isn\'t a string'))}m=n};this.setContentSelector=function(n){if(typeof n!=="string"){throw (new TypeError('Argument "selector" isn\'t a string'))}f=n};this.setInvisibleClassName=function(n){if(typeof n!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}j=n};this.setTimerInterval=function(n){if(typeof n!=="number"){throw (new TypeError('Argument "interval" isn\'t a number'))}e=n};var a=function(){$(document).stopTime();$(this).attr("href","javascript:void(0)");var o;$(this).parent().each(function(){o=this});var n=$(m).index(o);i.getLogger().debug('Button with index "'+n+'" selected.');i.switchButton(n);i.switchContent(n)};var c=function(){$(m).find("a").click(a);if($(document).everyTime&&$(f).length>1&&$(m).length>1){var n=1;$(document).everyTime(e,function(){if(n<$(m).length){i.switchButton(n);i.switchContent(n);n++}else{n=0}})}};this.switchButton=function(n){i.getLogger().debug('Switch button to index "'+n+'".');if(typeof n!=="number"){throw (new TypeError('Argument "index" isn\'t a number'))}var q=$(m).find("div").text();var p=document.createElement("a");p.href="javascript:void(0)";p.innerHTML=q;$(m).find("div").replaceWith(p);$(p).click(a);var q=$($(m).get(n)).text();var o=document.createElement("div");o.title=q;o.className=b;o.innerHTML=q;$($(m).get(n)).children().replaceWith(o)};this.switchContent=function(n){i.getLogger().debug('Switch content to index "'+n+'".');if(typeof n!=="number"){throw (new TypeError('Argument "index" isn\'t a number'))}var p=$(f);for(var o=0;o<p.length;o++){if(o===n){i.getLogger().debug('Show content "'+o+'"');$(f+":not(."+j+")").addClass(j);$(p[o]).removeClass(j)}}};this.__construct(l,d,g,k,h);this.constructor()};com.babiel.dfg.js.TeaserNavigationComponent.prototype=new com.babiel.application.jsctrl.Component();com.babiel.dfg.js.TopBoxComponent=function(h,f,n,c,r){var k;var b;var m;var q;var p;var o;var a;var e;var g;this.__construct=function(w,u,s,t,v){k=this;try{o=0;this.setContentSelector(w);this.setButtonAreaSelector(u);this.setActiveButtonClassName(s);this.setInactiveButtonClassName(t);this.setLinkParameterComponent(v);l()}catch(x){}};this.getActiveButtonClassName=function(){return b};this.getButtonAreaSelector=function(){return m};this.getContentSelector=function(){return q};this.getInactiveButtonClassName=function(){return p};this.getLinkParameterComponent=function(){return a};this.setActiveButtonClassName=function(s){if(typeof s!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}b=s};this.setButtonAreaSelector=function(s){if(typeof s!=="string"){throw (new TypeError('Argument "selector" isn\'t a string.'))}if(!$(s)){throw (new com.babiel.application.jsctrl.InvalidParameterException('Can not find an HTML element with selector "'+s+'".'))}m=s};this.setContentSelector=function(s){if(!($(s))){throw (new com.babiel.application.jsctrl.InvalidParameterException("Can't get an HTML ELement with Selector \""+s+'".'))}q=s};this.setInactiveButtonClassName=function(s){if(typeof s!=="string"){throw (new TypeError('Argument "className" isn\'t a string'))}p=s};this.setLinkParameterComponent=function(s){if(typeof s==="string"||(s instanceof com.babiel.dfg.js.LinkParameterComponent)){a=s}else{throw (new TypeError('Argument "component" isn\'t a string or instance of "com.babiel.dfg.js.LinkParameterComponent"'))}};var l=function(){d();$(m).append(' <a class="'+b+'" id="switch" href="javascript:void(0)">'+g+"</a>");o=$(q).height();var s=new com.babiel.application.jsctrl.UserAgent;if(s.getBrowserName()==="Explorer"&&s.getBrowserVersion()===7){$(q).css("overflow","hidden");$(q).animate({height:0},0);$(q).css("overflow","hidden");$(q).animate({height:o},0)}$(m).find("a").click(k.toggleBox)};var d=function(){if(location.pathname.search(new RegExp("^/en/"))>-1){e="open";g="close"}else{e="aufklappen";g="einklappen"}};this.toggleBox=function(t){d();var s=(t==="hide"||t==="show")?t:"";if($(m).find("a").parent().parent().hasClass(b)||s==="hide"){k.getLogger().debug("Hiding box...");$(q).css("overflow","hidden");$(q).animate({height:0});$(m).find("a").parent().parent().removeClass(b);$(m).find("a").parent().parent().addClass(p);$(m).find("a").text(e);i()}else{k.getLogger().debug("Showing box...");$(q).css("overflow","hidden");$(q).animate({height:o});$(m).find("a").parent().parent().removeClass(p);$(m).find("a").parent().parent().addClass(b);$(m).find("a").text(g);j()}};var i=function(){var s=(typeof a==="string")?System.getComponentManager().getComponentById(a):a;if(s instanceof com.babiel.dfg.js.LinkParameterComponent){k.getLogger().debug("Calling function from other component...");s.setupLinkParameter()}else{}};var j=function(){var s=(typeof a==="string")?System.getComponentManager().getComponentById(a):a;if(s instanceof com.babiel.dfg.js.LinkParameterComponent){k.getLogger().debug("Calling function from other component...");s.removeLinkParameter()}else{}};this.__construct(h,f,n,c,r);this.constructor()};com.babiel.dfg.js.TopBoxComponent.prototype=new com.babiel.application.jsctrl.Component();