function CdCCCreateLogIOBtnObj
(
inp,
normClassName,
emphClassName
)
{
var logIOObj = function (inp, normClassName, emphClassName)
{
var that = this;
this.node = inp;
this.normClassName = normClassName;
this.emphClassName = emphClassName;
this.MouseoverAction = function ()
{
that.node.className = that.emphClassName;
};
this.node.onmouseover = this.MouseoverAction;
this.MouseoutAction = function ()
{
that.node.className = that.normClassName;
};
this.node.onmouseout = this.MouseoutAction;
};
new logIOObj(inp,normClassName,emphClassName);
}
function CdCCGotoTop()
{
self.scrollTo(0,0);
};
function CdCCInit()
{
var input;
input = document.getElementsByName('logoutbtn');
if (input.length)
CdCCCreateLogIOBtnObj(input[0],'norm_logoutbtn','emph_logoutbtn');
else
{
input = document.getElementsByName('loginbtn');
if (input.length)
CdCCCreateLogIOBtnObj(input[0],'norm_loginbtn','emph_loginbtn');
}
}
function CdCCReplaceImage
(
imgID,
src
)
{
var imageElem = document.getElementById(imgID);
imageElem.src = src;
};
function CdCCShowPhoto
(
individualPhotoRefStr
)
{
var photoRefStr = "../individuals/" + individualPhotoRefStr;
overlib('',BACKGROUND,photoRefStr,FGCOLOR,'',ABOVE);
};
function CdCCStart()
{
if (document.addEventListener)
{
window.addEventListener("load",CdCCInit,false);
}
else
{
window.attachEvent("onload",CdCCInit);
}
};
CdCCStart();