/*
FairSky Pages
-------------
Copyright 2004-2005 Joshua Paine
Created by Joshua Paine of FairSky Networks
Contact at
Documentation at
Updated 2005-03-25
The latest version should be available at
You may copy, reuse, or produce derivative works of this code
only under the terms of the Linky License v0.1 or later.
The Linky License can be found at .
The main points of the license are:
1) Do not alter or remove this notice.
2) Notify me of your usage through one of the means listed
at .
*/
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;
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)
{
return el.attachEvent("on"+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