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

/* - jquery.ba-dotimeout.min.js - */
// http://zestsoftware.nl/portal_javascripts/jquery.ba-dotimeout.min.js?original=1
(function($){var a={},c="doTimeout",d=Array.prototype.slice;$[c]=function(){return b.apply(window,[0].concat(d.call(arguments)))};$.fn[c]=function(){var f=d.call(arguments),e=b.apply(this,[c+f[0]].concat(f));return typeof f[0]==="number"||typeof f[1]==="number"?this:e};function b(l){var m=this,h,k={},g=l?$.fn:$,n=arguments,i=4,f=n[1],j=n[2],p=n[3];if(typeof f!=="string"){i--;f=l=0;j=n[1];p=n[2]}if(l){h=m.eq(0);h.data(l,k=h.data(l)||{})}else{if(f){k=a[f]||(a[f]={})}}k.id&&clearTimeout(k.id);delete k.id;function e(){if(l){h.removeData(l)}else{if(f){delete a[f]}}}function o(){k.id=setTimeout(function(){k.fn()},j)}if(p){k.fn=function(q){if(typeof p==="string"){p=g[p]}p.apply(m,d.call(n,i))===true&&!q?o():e()};o()}else{if(k.fn){j===undefined?e():k.fn(j===false);return true}else{e()}}}})(jQuery);

/* - teammember.js - */
// http://zestsoftware.nl/portal_javascripts/teammember.js?original=1
function get_random_teammember(){viewlet=document.getElementById("teammember_viewlet");if(viewlet!=null){var xmlDoc=null ;if(typeof window.ActiveXObject!='undefined'){xmlDoc=new ActiveXObject("Microsoft.XMLHTTP")}
else{xmlDoc=new XMLHttpRequest()}
xmlDoc.open("GET","@@random_teammember/get_random_teammember",false);xmlDoc.send(null);var url=xmlDoc.responseText;if(url!=''){xmlDoc.open("GET",url,false);xmlDoc.send(null);value=xmlDoc.responseText;var start=value.indexOf('<div id="teammember_introduction">');var end=value.lastIndexOf('</body>');var introduction=value.substring(start,end);viewlet.innerHTML=introduction}}}
registerPloneFunction(get_random_teammember);

