// Generic code for creating javascript objects var isNS = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4); var HIDDEN = (isNS) ? 'hide' : 'hidden'; var VISIBLE = (isNS) ? 'show' : 'visible'; function showObject(object) { object.visibility = VISIBLE; } function hideObject(object) { object.visibility = HIDDEN; } function moveObject(object, inX, inY) { object.left=inX object.top=inY } function createObject(inName, inText) { document.write("
")
}
function setIndex(object, inIndex)
{
object.zIndex = inIndex
}
// note: this takes a string name
// not an object
function changeObject(inName, inText)
{
if (isNS)
{
eval(inName + '.document.open()')
eval(inName + '.document.write(inText')
eval(inName + '.document.close()')
}
else
{
eval('document.all.' + inName + '.innerHTML = ' + inText )
}
}
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i