
/* 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.proforest.net/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}


/* - javascript-target.js - */
// http://www.proforest.net/portal_javascripts/javascript-target.js?original=1
function addEvent(obj,type,fn){if(obj.addEventListener)
obj.addEventListener(type,fn,false);else if(obj.attachEvent){obj["e"+type+fn]=fn;obj[type+fn]=function(){obj["e"+type+fn](window.event)}
obj.attachEvent("on"+type,obj[type+fn])}}
function removeEvent(obj,type,fn){if(obj.removeEventListener)
obj.removeEventListener(type,fn,false);else if(obj.detachEvent){obj.detachEvent("on"+type,obj[type+fn]);obj[type+fn]=null;obj["e"+type+fn]=null}}
function openInNewWindow(e){var event;if(!e) event=window.event;else event=e;if(event.shiftKey||event.altKey||event.ctrlKey||event.metaKey){return true}
else{var newWindow=window.open(this.getAttribute('href'),'_blank');if(newWindow){if(newWindow.focus){newWindow.focus()}
return false}
return true}}
function getNewWindowLinks(){if(document.getElementById&&document.createElement&&document.appendChild){var links=document.getElementsByTagName('a');var objWarningText;var link;for(var i=0;i<links.length;i++){link=links[i];if (/\bnewwindow\b/.test(link.className)){link.onclick=openInNewWindow}}
objWarningText=null}}
addEvent(window,'load',getNewWindowLinks);
