/* 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++Products.Stage.stage.js - */
// http://www.bankenverband.de/portal_javascripts/++resource++Products.Stage.stage.js?original=1
jQuery(document).ready(function(){stage.init()});stage={init: function(){jQuery('.stageSwitcher').css('display','block');stage.ajaxstage();stage.scrollstage();stage.autostage()},ajaxstage: function(){jQuery('.ajaxstage div.ajaxSwitcher').tabs('div.ajaxPanes > div',{effect:'ajax'});var api=jQuery('.ajaxstage div.ajaxSwitcher').data('tabs');if(api&&api.getTabs){var index=Math.floor(Math.random() * api.getTabs().length+1);api.click(index)}},scrollstage: function(){var scrollopts={circular:true,mousewheel:false}
jQuery('.scollstage').scrollable(scrollopts).navigator({navi:'.scrollSwitcher',naviItem:'a',activeClass:'current',history:false});jQuery(jQuery('.scrollSwitcher a').get(0)).addClass('current')},autostage: function(){var scrollopts={circular:true,mousewheel:false};var navigatoropts={navi:'.autoSwitcher',naviItem:'a',activeClass:'current',history:false};var autoopts={autoplay:true,autopause:true,interval:5000};jQuery('.autostage').scrollable(scrollopts).navigator(navigatoropts).autoscroll(autoopts)
;jQuery(jQuery('.autoSwitcher a').get(0)).addClass('current')}}


/* - ++resource++Products.TopicBox.topicbox.js - */
// http://www.bankenverband.de/portal_javascripts/++resource++Products.TopicBox.topicbox.js?original=1
jQuery(document).ready(function(){jQuery('.topicboxwrapper div.rightTabs').css('display','block');jQuery('.topicboxwrapper div.panetarget').css('display','block');jQuery('.topicboxwrapper div.rightTabs').tabs('div.panetarget > div');var target='div.horizontaltopics div';jQuery('.topicboxwrapper div.horizontaltopics').tabs(target,{tabs:'img',effect:'horizontal'})});

/* - ++resource++Products.MediaBox.mediabox.js - */
// http://www.bankenverband.de/portal_javascripts/++resource++Products.MediaBox.mediabox.js?original=1
jQuery(document).ready(function(){var target="div.mediatarget > div";jQuery(".mediaboxwrapper div.mediaTabs").tabs(target,{effect:'ajax'})});var media_box_scrollables={};initializeMediaScrollables=function(uid){var context=jQuery('#'+uid).get(0);jQuery(context).scrollable({api:true,next:'.nextPage',prev:'.prevPage'});var api=jQuery(context).data('scrollable');media_box_scrollables[uid]=api;media_box_scrollables[uid].onSeek(function(){var index=media_box_scrollables[uid].getIndex();setActiveMediaScrollableNavItem(index,uid)})}
seekToMediaScrollables=function(index,uid){media_box_scrollables[uid].seekTo(index * 3);setActiveMediaScrollableNavItem(index,uid)}
setActiveMediaScrollableNavItem=function(index,uid){var count=0;jQuery('ul.'+uid+' li a').each(function(){if(index==count){jQuery(this).attr('class','current')} else{jQuery(this).attr('class','')}
count++})}

/* - ++resource++banksearch.js - */
// http://www.bankenverband.de/portal_javascripts/++resource++banksearch.js?original=1
jQuery(document).ready(function(){banksearch.bind()});banksearch={bind: function(){jQuery('a.banksearchlink').bind('click', function(){var link=null;var href=jQuery(this).attr('href');var cat=href.substring(href.lastIndexOf('=')+1,href.length);var url='@@listing?c='+cat;jQuery.get(url,{ajax:1}, function(data){jQuery('#banksearchwrapper').replaceWith(data);banksearch.bind()});return false})}}
