
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - ++resource++carousel.js - */
// http://www.sc-klecken.de/portal_javascripts/++resource++carousel.js?original=1
var carousel_interval;if(jq('#carousel')){var carousel_rotate=function(){features=jq('.carousel-banner');if(features.length<2)
return;jq('.carousel-banner:visible').fadeOut(300);jq('.carousel-button.selected').removeClass('selected');next=jq('.carousel-banner:visible').next('.carousel-banner');if(next.length){next.fadeIn(300);jq('#carousel-button-'+next.attr('id').substr(16)).addClass('selected')} else{jq('#carousel-banner-0').fadeIn(300);jq('.carousel-button:first').addClass('selected')}};jq(function(){carousel_interval=setInterval(carousel_rotate,8000);setTimeout(function(){jq('#carousel .link-https, #carousel .link-external').each( function(){jq(this).replaceWith(jq(this).html())})},1000);jq('#carousel').hover(
function(){clearInterval(carousel_interval)},
function(){carousel_interval=setInterval(carousel_rotate,8000)})})}


/* - jquery.colorbox-min.js - */
// http://www.sc-klecken.de/portal_javascripts/jquery.colorbox-min.js?original=1
(function(jq,window){var
defaults={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",fulllink:"",next:"next",close:"close",open:false,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},colorbox='colorbox',prefix='cbox',event_open=prefix+'_open',event_load=prefix+'_load',event_complete=prefix+'_complete',event_cleanup=prefix+'_cleanup',event_closed=prefix+'_closed',isIE=jq.browser.msie&&!jq.support.opacity,isIE6=isIE&&jq.browser.version<7,event_ie6=prefix+'_IE6',jqoverlay,jqbox,jqwrap,jqcontent,jqtopBorder,jqleftBorder,jqrightBorder,jqbottomBorder,jqrelated,jqwindow,jqloaded,jqloadingBay,jqloadingOverlay,jqtitle,jqfulllink,jqcurrent,jqslideshow,jqnext,jqprev,jqclose,interfaceHeight,interfaceWidth,loadedHeight,loadedWidth,element,bookmark,index,settings,open,active,publicMethod,boxElement=prefix+'Element';
function jqdiv(id,css){id=id?' id="'+prefix+id+'"':'';css=css?' style="'+css+'"':'';return jq('<div'+id+css+'/>')}
function setSize(size,dimension){dimension=dimension==='x'?jqwindow.width():jqwindow.height();return(typeof size==='string')?Math.round((size.match(/%/) ? (dimension / 100) * parseInt(size,10):parseInt(size,10))):size}
function isImage(url){url=jq.isFunction(url)?url.call(element):url;return settings.photo||url.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?jq/i)}
function process(){for(var i in settings){if(jq.isFunction(settings[i])&&i.substring(0,2)!=='on'){settings[i]=settings[i].call(element)}}
settings.rel=settings.rel||element.rel||'nofollow';settings.href=settings.href||jq(element).attr('href');settings.title=settings.title||element.title;settings.fulllink=settings.fulllink||element.fulllink}
function launch(elem){element=elem;settings=jq.extend({},jq(element).data(colorbox));process();if(settings.rel!=='nofollow'){jqrelated=jq('.'+boxElement).filter(function(){var relRelated=jq(this).data(colorbox).rel||this.rel;return(relRelated===settings.rel)});index=jqrelated.index(element);if(index===-1){jqrelated=jqrelated.add(element);index=jqrelated.length-1}} else{jqrelated=jq(element);index=0}
if(!open){open=active=true;bookmark=element;try{bookmark.blur()}catch(e){}
jq.event.trigger(event_open);if(settings.onOpen){settings.onOpen.call(element)}
jqoverlay.css({"opacity":+settings.opacity,"cursor":settings.overlayClose?"pointer":"auto"}).show();settings.w=setSize(settings.initialWidth,'x');settings.h=setSize(settings.initialHeight,'y');publicMethod.position(0);if(isIE6){jqwindow.bind('resize.'+event_ie6+' scroll.'+event_ie6, function(){jqoverlay.css({width:jqwindow.width(),height:jqwindow.height(),top:jqwindow.scrollTop(),left:jqwindow.scrollLeft()})}).trigger('scroll.'+event_ie6)}}
jqcurrent.add(jqprev).add(jqnext).add(jqslideshow).add(jqtitle).add(jqfulllink).hide();jqclose.html(settings.close).show();publicMethod.slideshow();publicMethod.load()}
publicMethod=jq.fn[colorbox]=jq[colorbox]=function(options,callback){var jqthis=this;if(!jqthis[0]&&jqthis.selector){return jqthis}
options=options||{};if(callback){options.onComplete=callback}
if(!jqthis[0]||jqthis.selector===undefined){jqthis=jq('<a/>');options.open=true}
jqthis.each(function(){jq(this).data(colorbox,jq.extend({},jq(this).data(colorbox)||defaults,options)).addClass(boxElement)});if(options.open){launch(jqthis[0])}
return jqthis};publicMethod.init=function(){jqwindow=jq(window);jqbox=jqdiv().attr({id:colorbox,'class':isIE?prefix+'IE':''});jqoverlay=jqdiv("Overlay",isIE6?'position:absolute':'').hide();jqwrap=jqdiv("Wrapper");jqcontent=jqdiv("Content").append(jqloaded=jqdiv("LoadedContent",'width:0; height:0'),jqloadingOverlay=jqdiv("LoadingOverlay").add(jqdiv("LoadingGraphic")),jqtitle=jqdiv("Title"),jqfulllink=jqdiv("Fulllink"),jqcurrent=jqdiv("Current"),jqnext=jqdiv("Next"),jqprev=jqdiv("Previous"),jqslideshow=jqdiv("Slideshow"),jqclose=jqdiv("Close"));jqwrap.append(jqdiv().append(jqdiv("TopLeft"),jqtopBorder=jqdiv("TopCenter"),jqdiv("TopRight")),jqdiv().append(jqleftBorder=jqdiv("MiddleLeft"),jqcontent,jqrightBorder=jqdiv("MiddleRight")),jqdiv().append(jqdiv("BottomLeft"),jqbottomBorder=jqdiv("BottomCenter"),jqdiv("BottomRight"))).children().children().css({'float':'left'});jqloadingBay=jqdiv(false,'position:absolute; width:9999px; visibility:hidden; display:none');jq('body').prepend(jqoverlay,jqbox.append(jqwrap,jqloadingBay));jqcontent.children().hover(function(){jq(this).addClass('hover')}, function(){jq(this).removeClass('hover')}).addClass('hover');interfaceHeight=jqtopBorder.height()+jqbottomBorder.height()+jqcontent.outerHeight(true)-jqcontent.height();interfaceWidth=jqleftBorder.width()+jqrightBorder.width()+jqcontent.outerWidth(true)-jqcontent.width();loadedHeight=jqloaded.outerHeight(true);loadedWidth=jqloaded.outerWidth(true);jqbox.css({"padding-bottom":interfaceHeight,"padding-right":interfaceWidth}).hide();jqnext.click(publicMethod.next);jqprev.click(publicMethod.prev);jqclose.click(publicMethod.close);jqcontent.children().removeClass('hover');jq('.'+boxElement).live('click', function(e){if((e.button!==0&&typeof e.button!=='undefined')||e.ctrlKey||e.shiftKey||e.altKey){return true} else{launch(this);return false}});jqoverlay.click(function(){if(settings.overlayClose){publicMethod.close()}});jq(document).bind("keydown", function(e){if(open&&settings.escKey&&e.keyCode===27){e.preventDefault();publicMethod.close()}
if(open&&settings.arrowKey&&!active&&jqrelated[1]){if(e.keyCode===37&&(index||settings.loop)){e.preventDefault();jqprev.click()} else if(e.keyCode===39&&(index<jqrelated.length-1||settings.loop)){e.preventDefault();jqnext.click()}}})};publicMethod.remove=function(){jqbox.add(jqoverlay).remove();jq('.'+boxElement).die('click').removeData(colorbox).removeClass(boxElement)};publicMethod.position=function(speed,loadedCallback){var
animate_speed,posTop=Math.max(jqwindow.height()-settings.h-loadedHeight-interfaceHeight,0)/2+jqwindow.scrollTop(),posLeft=Math.max(jqwindow.width()-settings.w-loadedWidth-interfaceWidth,0)/2+jqwindow.scrollLeft();animate_speed=(jqbox.width()===settings.w+loadedWidth&&jqbox.height()===settings.h+loadedHeight)?0:speed;jqwrap[0].style.width=jqwrap[0].style.height="9999px";
function modalDimensions(that){jqtopBorder[0].style.width=jqbottomBorder[0].style.width=jqcontent[0].style.width=that.style.width;jqloadingOverlay[0].style.height=jqloadingOverlay[1].style.height=jqcontent[0].style.height=jqleftBorder[0].style.height=jqrightBorder[0].style.height=that.style.height}
jqbox.dequeue().animate({width:settings.w+loadedWidth,height:settings.h+loadedHeight,top:posTop,left:posLeft},{duration:animate_speed,complete: function(){modalDimensions(this);active=false;jqwrap[0].style.width=(settings.w+loadedWidth+interfaceWidth)+"px";jqwrap[0].style.height=(settings.h+loadedHeight+interfaceHeight)+"px";if(loadedCallback){loadedCallback()}},step: function(){modalDimensions(this)}})};publicMethod.resize=function(options){if(open){options=options||{};if(options.width){settings.w=setSize(options.width,'x')-loadedWidth-interfaceWidth}
if(options.innerWidth){settings.w=setSize(options.innerWidth,'x')}
jqloaded.css({width:settings.w});if(options.height){settings.h=setSize(options.height,'y')-loadedHeight-interfaceHeight}
if(options.innerHeight){settings.h=setSize(options.innerHeight,'y')}
if(!options.innerHeight&&!options.height){var jqchild=jqloaded.wrapInner("<div style='overflow:auto'></div>").children();settings.h=jqchild.height();jqchild.replaceWith(jqchild.children())}
jqloaded.css({height:settings.h});publicMethod.position(settings.transition==="none"?0:settings.speed)}};publicMethod.prep=function(object){if(!open){return}
var photo,speed=settings.transition==="none"?0:settings.speed;jqwindow.unbind('resize.'+prefix);jqloaded.remove();jqloaded=jqdiv('LoadedContent').html(object);
function getWidth(){settings.w=settings.w||jqloaded.width();settings.w=settings.mw&&settings.mw<settings.w?settings.mw:settings.w;return settings.w}
function getHeight(){settings.h=settings.h||jqloaded.height();settings.h=settings.mh&&settings.mh<settings.h?settings.mh:settings.h;return settings.h}
jqloaded.hide().appendTo(jqloadingBay.show()).css({width:getWidth(),overflow:settings.scrolling?'auto':'hidden'}).css({height:getHeight()}).prependTo(jqcontent);jqloadingBay.hide();jq('#'+prefix+'Photo').css({cssFloat:'none'});if(isIE6){jq('select').not(jqbox.find('select')).filter(function(){return this.style.visibility!=='hidden'}).css({'visibility':'hidden'}).one(event_cleanup, function(){this.style.visibility='inherit'})}
function setPosition(s){var prev,prevSrc,next,nextSrc,total=jqrelated.length,loop=settings.loop;publicMethod.position(s, function(){
function defilter(){if(isIE){jqbox[0].style.removeAttribute("filter")}}
if(!open){return}
if(isIE){if(photo){jqloaded.fadeIn(100)}}
if(settings.iframe){jq("<iframe frameborder=0"+(settings.scrolling?"":" scrolling='no'")+(isIE?" allowtransparency='true'":'')+"/>").appendTo(jqloaded).attr({src:settings.href,name:new Date().getTime()})}
jqloaded.show();jqtitle.show().html(settings.title);if(settings.fulllink==true){var f='<a href="'+settings.href.replace('_large','')+'" title="foo">Download</a>';jqfulllink.show().html(f)}
if(total>1){jqcurrent.html(settings.current.replace(/\{current\}/, index + 1).replace(/\{total\}/,total)).show();jqnext[(loop||index<total-1)?"show":"hide"]().html(settings.next);jqprev[(loop||index)?"show":"hide"]().html(settings.previous);prev=index?jqrelated[index-1]:jqrelated[total-1];next=index<total-1?jqrelated[index+1]:jqrelated[0];if(settings.slideshow){jqslideshow.show();if(index===total-1&&!loop&&jqbox.is('.'+prefix+'Slideshow_on')){jqslideshow.click()}}
if(settings.preloading){nextSrc=jq(next).data(colorbox).href||next.href;prevSrc=jq(prev).data(colorbox).href||prev.href;if(isImage(nextSrc)){jq('<img/>')[0].src=nextSrc}
if(isImage(prevSrc)){jq('<img/>')[0].src=prevSrc}}}
jqloadingOverlay.hide();if(settings.transition==='fade'){jqbox.fadeTo(speed,1, function(){defilter()})} else{defilter()}
jqwindow.bind('resize.'+prefix, function(){publicMethod.position(0)});jq.event.trigger(event_complete);if(settings.onComplete){settings.onComplete.call(element)}})}
if(settings.transition==='fade'){jqbox.fadeTo(speed,0, function(){setPosition(0)})} else{setPosition(speed)}};publicMethod.load=function(){var href,img,setResize,prep=publicMethod.prep;active=true;element=jqrelated[index];settings=jq.extend({},jq(element).data(colorbox));process();jq.event.trigger(event_load);if(settings.onLoad){settings.onLoad.call(element)}
settings.h=settings.height?setSize(settings.height,'y')-loadedHeight-interfaceHeight:settings.innerHeight&&setSize(settings.innerHeight,'y');settings.w=settings.width?setSize(settings.width,'x')-loadedWidth-interfaceWidth:settings.innerWidth&&setSize(settings.innerWidth,'x');settings.mw=settings.w;settings.mh=settings.h;if(settings.maxWidth){settings.mw=setSize(settings.maxWidth,'x')-loadedWidth-interfaceWidth;settings.mw=settings.w&&settings.w<settings.mw?settings.w:settings.mw}
if(settings.maxHeight){settings.mh=setSize(settings.maxHeight,'y')-loadedHeight-interfaceHeight;settings.mh=settings.h&&settings.h<settings.mh?settings.h:settings.mh}
href=settings.href;jqloadingOverlay.show();if(settings.inline){jqdiv('InlineTemp').hide().insertBefore(jq(href)[0]).bind(event_load+' '+event_cleanup, function(){jq(this).replaceWith(jqloaded.children())});prep(jq(href))} else if(settings.iframe){prep(" ")} else if(settings.html){prep(settings.html)} else if(isImage(href)){img=new Image();img.onload=function(){var percent;img.onload=null;img.id=prefix+'Photo';jq(img).css({margin:'auto',border:'none',display:'block',cssFloat:'left'});if(settings.scalePhotos){setResize=function(){img.height-=img.height * percent;img.width-=img.width * percent};if(settings.mw&&img.width>settings.mw){percent=(img.width-settings.mw)/img.width;setResize()}
if(settings.mh&&img.height>settings.mh){percent=(img.height-settings.mh)/img.height;setResize()}}
if(settings.h){img.style.marginTop=Math.max(settings.h-img.height,0)/2+'px'}
setTimeout(function(){prep(img)},1);if(jqrelated[1]&&(index<jqrelated.length-1||settings.loop)){jq(img).css({cursor:'pointer'}).click(publicMethod.next)}
if(isIE){img.style.msInterpolationMode='bicubic'}};img.src=href} else{jqdiv().appendTo(jqloadingBay).load(href, function(data,status,xhr){prep(status==='error'?'Request unsuccessful: '+xhr.statusText:this)})}};publicMethod.next=function(){if(!active){index=index<jqrelated.length-1?index+1:0;publicMethod.load()}};publicMethod.prev=function(){if(!active){index=index?index-1:jqrelated.length-1;publicMethod.load()}};publicMethod.slideshow=function(){var stop,timeOut,className=prefix+'Slideshow_';jqslideshow.bind(event_closed, function(){jqslideshow.unbind();clearTimeout(timeOut);jqbox.removeClass(className+"off "+className+"on")});
function start(){jqslideshow.text(settings.slideshowStop).bind(event_complete, function(){timeOut=setTimeout(publicMethod.next,settings.slideshowSpeed)}).bind(event_load, function(){clearTimeout(timeOut)}).one("click", function(){stop()});jqbox.removeClass(className+"off").addClass(className+"on")}
stop=function(){clearTimeout(timeOut);jqslideshow.text(settings.slideshowStart).unbind(event_complete+' '+event_load).one("click", function(){start();timeOut=setTimeout(publicMethod.next,settings.slideshowSpeed)});jqbox.removeClass(className+"on").addClass(className+"off")};if(settings.slideshow&&jqrelated[1]){if(settings.slideshowAuto){start()} else{stop()}}};publicMethod.close=function(){if(open){open=false;jq.event.trigger(event_cleanup);if(settings.onCleanup){settings.onCleanup.call(element)}
jqwindow.unbind('.'+prefix+' .'+event_ie6);jqoverlay.fadeTo('fast',0);jqbox.stop().fadeTo('fast',0, function(){jqbox.find('iframe').attr('src','about:blank');jqloaded.remove();jqbox.add(jqoverlay).css({'opacity':1,cursor:'auto'}).hide();try{bookmark.focus()} catch(e){}
setTimeout(function(){jq.event.trigger(event_closed);if(settings.onClosed){settings.onClosed.call(element)}},1)})}};publicMethod.element=function(){return jq(element)};publicMethod.settings=defaults;jq(publicMethod.init)}(jQuery,this));

