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

/* - ie5fixes.js - */
// http://www.grosse-caisse.com/portal_javascripts/ie5fixes.js?original=1
function hackPush(el){this[this.length]=el}
function hackPop(){var N=this.length-1,el=this[N];this.length=N
return el}
function hackShift(){var one=this[0],N=this.length;for(var i=1;i<N;i++){this[i-1]=this[i]}
this.length=N-1
return one}
var testPushPop=new Array();if(testPushPop.push){}else{Array.prototype.push=hackPush
Array.prototype.pop=hackPop
Array.prototype.shift=hackShift}


/* - mark_special_links.js - */
// http://www.grosse-caisse.com/portal_javascripts/mark_special_links.js?original=1
function scanforlinks(){if(typeof external_links_open_new_window=='string')
var elonw=external_links_open_new_window.toLowerCase()=='true';else elonw=false;if(typeof mark_special_links=='string')
var mslinks=mark_special_links.toLowerCase()=='true';else mslinks=false;var url=window.location.protocol+'//'+window.location.host;if(elonw)
jq('a[href^=http]:not(.link-plain):not([href^='+url+'])').attr('target','_blank');if(mslinks){var protocols=/^(mailto|ftp|news|irc|h323|sip|callto|https|feed|webcal)/;var contentarea=jq(getContentArea());contentarea.find('a[href^=http]:not(.link-plain):not([href^='+url+']):not(:has(img))').wrap('<span></span>').parent().addClass('link-external')
contentarea.find('a[href]:not([href^=http]):not(.link-plain):not([href^='+url+']):not(:has(img))').each(function(){if(res=protocols.exec(this.href))
jq(this).wrap('<span></span>').parent().addClass('link-'+res[0])})}};jq(scanforlinks);
