/* Created 2004-2006 by Joshua Paine Links are appreciated. Telling me when you use this is really appreciated. Nothing is required: I hereby place the code contained in this file in the public domain and disclaim any and all proprietary rights to it. See Last Update: 2006-05-25 */ function documentRegister(tag,effect,func,ev,exclusive) { document.toRegister[document.toRegister.length] = { tag:tag, effect:effect, func:func, event:ev, exclusive:exclusive }; } function doRegister(n) { if(!n) n = document; if(!n.fspAlreadyRegistered) { n.fspAlreadyRegistered = true; var t, y; var r = document.toRegister; for(var x=0; x -1 || t[y].className.indexOf("Fsp."+r[x].effect+".") > -1) { if(r[x].event == 'load') { t[y].load = r[x].func; t[y].load({ currentTarget:t[y] }); } else { addEventHandler(t[y],r[x].event,r[x].func,r[x].exclusive); } } } } } } function addEventHandler(el,ev,func,exclusive) { if(exclusive) { if(eval("el.on"+ev+" = func;")) return true; else return false; } else { if(el.addEventListener) { el.addEventListener(ev,func,false); return true; } else if(el.attachEvent) { el['e'+ev+func] = func; el[ev+func] = function(){el['e'+ev+func]( window.event );} return el.attachEvent( 'on'+ev, el[ev+func] ); } else return false; } } function dumpProps(obj) { var str, p, i, val; i = 0; str=''; for(p in obj) { val = ''+eval('obj.'+p); val = val.substring(0,300); str += p+' = '+val+'\n'; if(i++==15){ alert(str); str=''; i=0; } } alert(str); } function fspImageToolbarRemoval() { this.setAttribute('galleryimg','false'); } function addClassName(el,newClass) { var ary = el.className.split(' '); var x=0; while(x<'+'/script>'); /*@end @*/