
/* 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 -
 */

/* - unitheme.js - */
// http://www.husserlarchiv.de/portal_javascripts/unitheme.js?original=1
(function(jq){jq.fn.extend({getUniqueId: function(p){return p+(new Date()).getTime()},accessibleTabs: function(config){var defaults={wrapperClass:'content',currentClass:'current',tabhead:'h4',tabbody:'.tabbody',fx:'show',fxspeed:'normal',currentInfoText:'current tab: ',currentInfoPosition:'prepend',currentInfoClass:'current-info',callback:false};var options=jq.extend(defaults,config);var o=this;return this.each(function(){var el=jq(this);var list='';var contentAnchor=o.getUniqueId('accessibletabscontent');var tabsAnchor=o.getUniqueId('accessibletabs');jq(el).wrapInner('<div class="'+options.wrapperClass+'"></div>');jq(el).find(options.tabhead).each(function(i){var id='';if(i===0){id=' id="'+tabsAnchor+'"'}
list+='<li><a'+id+' href="#'+contentAnchor+'">'+jq(this).html()+'</a></li>';jq(this).remove()});jq(el).prepend('<ul>'+list+'</ul>');jq(el).find(options.tabbody).hide();jq(el).find(options.tabbody+':first').
show().
before('<'+options.tabhead+'><a tabindex="0" class="'+'accessibletabsanchor" name="'+contentAnchor+'" id="'+contentAnchor+'">'+jq(el).find(">ul>li:first").text()+'</a></'+options.tabhead+'>');jq(el).find(">ul>li:first").
addClass(options.currentClass).
find('a')[options.currentInfoPosition]('<span class="'+options.currentInfoClass+'">'+options.currentInfoText+'</span>');jq(el).find('>ul>li>a').each(function(i){jq(this).click(function(event){event.preventDefault();jq(el).find('>ul>li.current').
removeClass(options.currentClass).
find("span."+options.currentInfoClass).
remove();jq(this).blur();jq(el).find(options.tabbody+':visible').
hide();var tbody=jq(el).find(options.tabbody).eq(i);if(typeof options.callback=='function'){options.callback(jq(this),jq(tbody))}
jq(tbody)[options.fx](options.fxspeed);jq('#'+contentAnchor).
text(jq(this).text()).
focus();jq(this)[options.currentInfoPosition]('<span class="'+options.currentInfoClass+'">'+options.currentInfoText+'</span>').
parent().
addClass(options.currentClass)})})})}})})(jQuery);jq(document).ready(function(){if(jq('.tabs').length==0) return;var headStyle=null;var height=28;if(jq('.tabs > #tabheadsettings').length>0){headStyle=jq('.tabs > #tabheadsettings').text();jq('.tabs > #tabheadsettings').remove()}
if(jq('.tabs > #tabsettings').length>0){var newHeight=parseInt(jq('.tabs > #tabsettings').
text().split(':')[1],10);if(newHeight){height=newHeight}
jq('.tabs > #tabsettings').remove()}
var tabDistance=-Math.round(height * 1.57);var spaceWidth=Math.round(height-(height *(2.0-1.57)));jq('.tabs').accessibleTabs({tabhead:'h1.tabhead',wrapperClass:'tabcontent',currentInfoText:'current',tabbody:'.tabbody',fx:'fadeIn'});jq('.tabs > ul').addClass('tabmenu');if(headStyle){jq('.tabs > ul > li > a').wrapInner('<em style="'+headStyle+'" />')} else{jq('.tabs > ul > li > a').wrapInner('<em />')}
jq('.tabs > ul > li > a:not(:first)').prepend('<b class="spacebefore"/>');jq('.tabs > ul > li > a').append('<b class="spaceafter"/>');if(jq.browser.msie&&jq.browser.version.substring(0,1)<='6'){msie6=1} else{msie6=0}
var before='';var after='';for(i=1;i<=height-msie6*2;i++){var btag='<b style="height:'+(height-i)+'px; margin-top: '+i+'px"/>';before=btag+before;after=after+btag}
var tabcount=jq('.tabs > ul > li').length;jq('.tabs > ul > li > a:not(:first)').prepend(before);jq('.tabs > ul > li > a').append(after);jq('.tabs > ul > li > a').each(function(i){jq(this).find('b').css('z-index',300+tabcount-i)});jq('.tabs > ul.tabmenu').css('height',(height+1)+'px');jq('.tabs > ul.tabmenu > li').css('height',height+'px');jq('.tabs > ul.tabmenu > li').css('margin-right',tabDistance);jq('.tabs > ul.tabmenu > li > a > em').css('height',height+'px');jq('.tabs > ul.tabmenu > li > a > em').css('line-height',height+'px');jq('.tabs > ul.tabmenu > li > a > b.spaceafter').
css('height',height+'px').css('width',spaceWidth+'px');jq('.tabs > ul.tabmenu > li > a > b.spacebefore').
css('height',height+'px').css('width',spaceWidth+'px')});

/* - unithemeCustom.js - */
// http://www.husserlarchiv.de/portal_javascripts/unithemeCustom.js?original=1


