function addcat(ctype,objid)
{
tiframe.addcat(ctype,objid);
}
function MaxWidth()
{
if (width>0)
{
if (document.getElementById("outerSVtable").offsetWidth>width)
{
document.getElementById("outerSVtable").width=width;
}
}
}
function popMessage(title, message) {
var screenTop = window.scrollY;
if (message.length == 0) {
document.getElementById("outMessage").style.display = "none";
HideFade();
}
else {
var intCenter = document.body.clientWidth / 2;
intWidth = 500;
intTop = screenTop + 100;
document.getElementById("outMessage").innerHTML = "
" + title + "
" + message + "
Close";
document.getElementById("outMessage").style.width = intWidth + "px";
document.getElementById("outMessage").style.top = intTop + "px";
document.getElementById("outMessage").style.left = (intCenter - (intWidth / 2)) + "px";
document.getElementById("outMessage").style.display = "inline";
document.getElementById("outMessage").style.zIndex = "1500";
FadeBackground();
}
}
function refreshB(id)
{
document.getElementById("bhl"+id).innerHTML = "Refreshing...";
requestFile("/asp/bhlW.asp?id=" + id + "&svid=2418" ,"bhl"+id,"Y", "N");
}
function emptyBox(text,formname,fieldname)
{
var ThisCode="if (document."+formname+"."+fieldname+".value==text) { document."+formname+"."+fieldname+".value=''; }"
eval(ThisCode);
}
var rePOS = "Y";
function POPRepos(height)
{
if (rePOS=="Y")
{
var screenw = window.innerWidth;
var screenh = window.innerHeight;
var ypos = 0;
ypos = ((screenh)/2)-(height/2);
if (ypos<0)
{
ypos=0;
}
ypos = ypos + document.body.scrollTop;
document.getElementById("svPOP").style.top = ypos;
}
}
var lastID = 0;
function POP(borderwidth, bordercolor, innerborderwidth, innerbordercolor, innerpadding, SVID, height, width, fade, fadeopacity, x, y, ptype, scroll, forcewidth, poptype, id, topbrowser)
{
if (document.getElementById("svPOP").style.display == 'none')
{
var screenw = window.innerWidth;
var screenh = window.innerHeight;
var xpos = 0;
var ypos = 0;
if (x==0)
{
xpos = ((screenw)/2)-(width/2);
}
else
{
xpos = x;
}
if (y==0)
{
ypos = ((screenh)/2)-(height/2);
rePOS="Y";
}
else
{
ypos = y;
rePOS="N";
}
if (topbrowser != "N")
{
ypos = ypos + document.body.scrollTop;
}
var scrolling = "N";
document.getElementById("svPOP").style.zIndex=15000;
document.getElementById("svPOP").style.display = '';
document.getElementById("svPOP").style.left = xpos;
document.getElementById("svPOP").style.top = ypos;
document.getElementById("svPOP").style.height = height;
document.getElementById("svPOP").style.width = width;
document.getElementById("svPOP").style.padding = innerpadding;
if (forcewidth!="Y")
{
forcewidth="N";
}
if (poptype == "P")
{
if (scroll == "Y")
{
document.getElementById("svPOP").innerHTML = '';
}
else
{
document.getElementById("svPOP").innerHTML = '';
}
}
else
{
if (scroll == "Y")
{
document.getElementById("svPOP").innerHTML = '';
}
else
{
document.getElementById("svPOP").innerHTML = '';
}
}
if (poptype == "P")
{
FadeBackground();
lastID = id;
}
}
else
{
document.getElementById("svPOP").style.display = 'none';
document.getElementById("svPOP").innerHTML = '';
HideFade();
if (document.getElementById("TSIF" + lastID)!=null)
{
document.getElementById('TSIF' + lastID).src = document.getElementById('TSIF' + lastID).src;
}
lastID=0;
}
}
function swapPW()
{
document.getElementById("dummyBox").style.display="none";
document.getElementById("passwordBox").style.display="";
document.loginfrm.password.focus();
}
function SwitchGR()
{
}
function curspos2()
{
}
function curspos(e)
{
if (!e)
var e = window.event||window.Event;
if('undefined'!=typeof e.pageX)
{
tempX = e.pageX;
tempY = e.pageY;
}
else
{
tempX = e.clientX + document.body.scrollLeft;
tempY = e.clientY + document.body.scrollTop;
}
}
// You need to tell Mozilla to start listening:
if(window.Event && document.captureEvents)
document.captureEvents(Event.MOUSEMOVE);
// Then assign the mouse handler
document.onmousemove = curspos;
// Then your mouseover function can just read mouseX and mouseY directly.
function resizentthemetable(theight,twidth){
document.getElementById('tiframe').style.height=theight+5;
}
function resizelt(theight){
document.getElementById('ifrnavlet').style.height=theight+25;
}
function resizetablepoll(wid,theight)
{
var ifrm = 'ltiframe'+wid;
document.getElementById(ifrm).style.height=theight+5;
}
function resizetablequote(wid,theight){
var ifrm = 'wiframe'+wid;
document.getElementById(ifrm).style.height=theight+5;
}
function resizetable(wid,theight){
var ifrm = 'wiframe'+wid;
document.getElementById(ifrm).style.height=theight+5;
}
function popThatTicker()
{
}
function showwidget(id)
{
alert("WIDGET: " + id);
}
function showdropsub(lname,lw,lh,lxp,lyp,objid,objid2)
{
if (lname=='ct') {
FadeBackground();
srcpgw="/Asp/DirectoryCreateTopic.aspx?w=" + objid + "&c=" + objid2;
srcnm="Create Topic";
lh= window.innerHeight-50;
lw = 1100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
reload="Y";
}
if (lname=='af') {
srcpgw="/Asp/CRCDSBioFIles.aspx?bioid=" + objid + "&u=" + objid2;
srcnm="Add Files to BIO";
lh = 700;
lw = 700;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
reload="N";
}
if (lname=='mt') {
srcpgw="/Asp/DirectoryCreateTopic.aspx?r=" + objid + "&c=" + objid2;
srcnm="Save/Add to My Topics";
lh= window.innerHeight-50;
lw = 1100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
reload="Y";
}
if (lname=='no') {
srcpgw="/admin/notifications.aspx";
srcnm="Notifications";
lh= 677;
lw = 1100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
}
if (lname=='nou') {
srcpgw="/asp/notifications.aspx";
srcnm="Notifications";
lh= 677;
lw = 1100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
}
if (lname=='bio') {
srcpgw="/Asp/crcdsbioview.aspx?fp=Y&WidgetID=" + objid2 + "&bioid=" + objid;
srcnm="Bio";
lh= window.innerHeight-50;
lw = 1100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
}
if (lname=='widg') {
srcpgw="/inc/incGetSVWidgetContent_DWView.asp?SVID=2418&widgetid=" + objid;
srcnm="";
lh= window.innerHeight-50;
lw = 800;
lyp=window.scrollY + 10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("player").style.zIndex = "5";
}
if (document.getElementById("playersub").style.display == "none" && lname != "C")
{
document.getElementById("playersub").style.display = "inline";
document.getElementById("playersub").style.height = lh + "px";
document.getElementById("playersub").style.width = lw + "px";
document.getElementById("playersub").style.top = lyp + "px";
document.getElementById("playersub").style.left = lxp + "px";
document.getElementById("playersub").innerHTML = " | " + srcnm + " |  |
";
}
else
{
document.getElementById("playersub").innerHTML = "";
document.getElementById("playersub").style.display = "none";
document.getElementById("player").style.zIndex = "100";
}
}
var rl="N";
function showdrop(lname,lw,lh,lxp,lyp,objid,objid2)
{
var srcpgw;
var srcnm;
var sg=0;
var currselect;
sl="N";
if (lname=='ct') {
FadeBackground();
srcpgw="/Asp/DirectoryCreateTopic.aspx?w=" + objid + "&c=" + objid2;
srcnm="Create Topic";
lh= window.innerHeight-50;
lw = 1100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
reload="Y";
}
if (lname=='el') {
FadeBackground();
srcpgw="/Asp/DirectoryManageLinks.aspx?wid=" + objid + "&c=" + objid2;
srcnm="Manage Links";
lh= window.innerHeight-300;
lw = 400;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
rl = "Y";
}
if (lname=='et') {
FadeBackground();
srcpgw="/Asp/DirectoryCreateTopicManage.aspx";
srcnm="Create Topic";
lh= 1100;
lw = 1000;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
}
if (lname=='dw') {
FadeBackground();
srcpgw="/Asp/DirectoryPop.asp?wid=" + objid + "&t=" + objid2;
srcnm="Directory";
lh= window.innerHeight-50;
lw = window.innerWidth-100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
}
if (lname=='dws') {
FadeBackground();
srcpgw="/Asp/DirectoryPop.asp?fl=s&wid=" + objid + "&c=" + objid2;
srcnm="Directory Studios";
lh= window.innerHeight-50;
lw = window.innerWidth-100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
}
if (lname=='dp') {
FadeBackground();
srcpgw="/Asp/DirectoryPopPersonal.asp?tid=" + lxp + "&sid=" + lyp + "&wid=" + objid + "&c=" + objid2;
srcnm="Personal Directory";
lh= window.innerHeight-50;
lw = window.innerWidth-100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
}
if (lname=='dl') {
FadeBackground();
srcpgw="/Asp/DirectoryPopPersonal.asp?cid=" + lxp + "&sid=" + lyp + "&wid=" + objid + "&c=" + objid2;
srcnm="Personal Community Directory";
lh= window.innerHeight-50;
lw = window.innerWidth-100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
}
if (lname=='dc') {
FadeBackground();
srcpgw="/Asp/DirectoryPop.asp?cid=" + lxp + "&sid=" + lyp + "&wid=" + objid + "&c=" + objid2;
srcnm="Community Directory";
lh= window.innerHeight-50;
lw = window.innerWidth-100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
}
if (lname=='dpu') {
FadeBackground();
srcpgw="/Asp/DirectoryPopPersonal.asp?v=U&tid=" + lxp + "&sid=" + lyp + "&wid=" + objid + "&c=" + objid2;
srcnm="Personal Directory";
lh= window.innerHeight-50;
lw = window.innerWidth-100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
}
if (lname=='dt') {
FadeBackground();
srcpgw="/Asp/DirectoryPopPersonal.asp?t=Y&wid=" + objid + "&c=" + objid2;
srcnm="Personal Directory";
lh= window.innerHeight-50;
lw = window.innerWidth-100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
document.getElementById("playersub").style.zIndex = "1000";
}
if (lname=="emailarticle")
{
FadeBackground();
srcnm = "";
lxp=((document.body.offsetWidth)/2)-(lw/2);
lhp=((document.body.offsetHeight)/2)-(lh/2);
lyp=document.body.scrollTop+10;
srcpgw="/rss/email.asp?id=" + objid + "&layer=Y";
}
if (lname=="cc")
{
FadeBackground();
srcnm = "Content Creator";
lxp=((document.body.offsetWidth)/2)-(lw/2);
lhp=((document.body.offsetHeight)/2)-(lh/2);
lyp=document.body.scrollTop+10;
srcpgw="/asp/CRCDS_Terms.aspx";
}
if (lname=="pe")
{
FadeBackground();
srcnm = "Contact";
lxp=((document.body.offsetWidth)/2)-(lw/2);
lhp=((document.body.offsetHeight)/2)-(lh/2);
lyp=document.body.scrollTop+10;
srcpgw="/asp/NT_PeopleContact.aspx?pid=" + objid + "&widgetid=" + objid2;
}
if (lname=="pc")
{
FadeBackground();
srcnm = "Contact";
lxp=((document.body.offsetWidth)/2)-(lw/2);
lhp=((document.body.offsetHeight)/2)-(lh/2);
lyp=document.body.scrollTop+10;
srcpgw="/asp/NT_PeopleContactCC.aspx?uid=" + objid;
}
if (lname=="wd")
{
FadeBackground();
srcnm = "";
lxp=((document.body.offsetWidth)/2)-(lw/2);
lhp=((document.body.offsetHeight)/2)-(lh/2);
lyp=document.body.scrollTop+10;
srcpgw="/asp/widgetthread.aspx?widgetid=" + objid;
}
if (lname=="tx")
{
FadeBackground();
srcnm = "Intro Text";
lxp=((document.body.offsetWidth)/2)-(lw/2);
lhp=((document.body.offsetHeight)/2)-(lh/2);
lyp=document.body.scrollTop+10;
srcpgw="/asp/IntroText.aspx?it=" + objid;
}
if (lname=='moreFBTweet')
{
srcnm = "";
lw = window.innerWidth*.90;
if (lh==0)
{
lh = window.innerHeight*.90;
}
if (lw>1000)
{
lw = 1000;
}
lxp=((document.body.offsetWidth)/2)-(lw/2);
lhp=((document.body.offsetHeight)/2)-(lh/2);
lyp=document.body.scrollTop+10;
srcpgw="/asp/NT_More.aspx?wd=" + Math.round(lw) + "&ht=" + Math.round(lh) + "&id=" + objid;
}
if (lname=='moreFBTweetM')
{
srcnm = "";
lw = window.innerWidth*.90;
if (lh==0)
{
lh = window.innerHeight*.90;
}
if (lw>1000)
{
lw = 1000;
}
lxp=((document.body.offsetWidth)/2)-(lw/2);
lhp=((document.body.offsetHeight)/2)-(lh/2);
lyp=document.body.scrollTop+10;
srcpgw="/asp/Member_More.aspx?wd=" + Math.round(lw) + "&ht=" + Math.round(lh) + "&id=" + objid;
}
if (lname=='manLinks')
{
srcnm = "Manage Link Bar"
srcpgw="/asp/manageLBlinks.asp?id="+objid
}
if (lname=='ts')
{
srcnm = "Change Page Colors";
srcpgw="/asp/changetheme.asp?SVID=2418";
}
if (lname=='cal')
{
srcnm="Event Calendar";
srcpgw="/announcements/list.asp?events="+objid+"&date="+objid2
var calPOSy=document.getElementById("CalSpacer").offsetTop;
var calPOSx=document.getElementById("CalSpacer").offsetLeft;
lxp=lxp+calPOSx-20;
lyp=lyp+calPOSy+15;
}
if (lname=='exw') {
FadeBackground();
srcnm="Adding External Nugget";
srcpgw="/links/exwarning.asp?id="+objid;
lxp=((document.body.offsetWidth)/2)-(lw/2);
}
if (lname=='vd') {
srcpgw="/asp/videoviewer.aspx?widgetid=" + objid;
if (objid2 == 'Y')
{
srcpgw="https://www.youtube.com/embed/" + objid + "?rel=0";
}
else
{
srcpgw="//player.vimeo.com/video/" + objid;
}
lh= 677;
lw = 1100;
srcnm="Intro Video";
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
}
if (lname=='tsrc') {
srcpgw="/Asp/crcdstrustedsources.aspx?WidgetID=" + objid2;
srcnm="Trusted Sources";
lh= 200;
lw = 400;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
}
if (lname=='bio') {
srcpgw="/Asp/crcdsbioview.aspx?fp=Y&WidgetID=" + objid2 + "&bioid=" + objid;
srcnm="";
lh= window.innerHeight-50;
lw = 1100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
}
if (lname=='bionew') {
srcpgw="/Asp/crcdsbioform_edit.aspx";
srcnm="Bio";
lh = window.innerHeight*.96;
lw = 1100;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
reload="Y";
}
if (lname=='widg') {
srcpgw="/inc/incGetSVWidgetContent_DWView.asp?SVID=2418&widgetid=" + objid;
srcnm="Directory Content";
lh = 675;
lw = 650;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
}
if (lname=='nd') {
if (objid=="XCI")
{
srcnm="Google Gadgets and more";
}
else
{
srcnm="Nugget Description";
}
srcpgw="/links/nuggethelp.asp?ntype="+objid+"&id="+objid2+"&f=MP"
lxp=((document.body.offsetWidth)/2)-(lw/2);
}
if (lname=='callistwidget')
{
srcnm="Event Calendar";
srcpgw="/announcements/fulllistconv_widget.asp?NuggetID="+objid+"&date="+objid2
lh=document.body.offsetHeight-60;
lw = 1000;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2)
}
if (lname=='fullcallistwidget')
{
srcnm="Event Calendar";
srcpgw="/announcements/fulllistconv_widget.asp?NuggetID="+objid+"&date="+objid2
lh=document.body.offsetHeight-60;
lh = window.innerHeight*.90;
lw = 800;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2)
}
if (lname=='callist')
{
FadeBackground();
srcnm="Event Calendar";
srcpgw="/announcements/fulllistconv.asp?date="+objid2
//var calPOSy=document.getElementById("CalSpacer").offsetTop;
//var calPOSx=document.getElementById("CalSpacer").offsetLeft;
lh = document.body.offsetHeight-60;
lw = 800;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2)
}
if (lname=='fullcallist')
{
FadeBackground();
srcnm="Event Calendar";
srcpgw="/announcements/fulllistconv.asp?date="+objid2
//var calPOSy=document.getElementById("CalSpacer").offsetTop;
//var calPOSx=document.getElementById("CalSpacer").offsetLeft;
lh=document.body.offsetHeight-60;
lw = 800;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2)
}
if (lname=='calSide')
{
srcnm="Event Calendar";
srcpgw="/announcements/list.asp?events="+objid+"&date="+objid2;
var calPOSy=document.getElementById("topBottom").offsetTop;
lyp = lyp + calPOSy;
}
if (lname=='fullbio')
{
srcnm = "Full Bio";
srcpgw="/asp/blogfullbio.asp?id="+objid;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
//lh=window.innerHeight-60;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2)
}
if (lname=='fullbioarticle')
{
srcnm = "Full Bio";
srcpgw="/asp/articlefullbio.asp?id="+objid;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2);
//lh=window.innerHeight-60;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2)
}
if (lname=='contact')
{
srcnm = "Contact Author";
srcpgw="/asp/blogcontact.asp?id="+objid;
lyp=document.body.scrollTop+10;
lxp=(document.body.offsetWidth/2)-(lw/2)
}
if (lname=='fbfansetup')
{
FadeBackground();
srcnm = "How do I add a Facebook Fanpage?";
srcpg="/asp/fbfansetup.aspx";
lw = window.innerWidth*.90;
lh = window.innerHeight*.90;
lxp=((document.body.offsetWidth)/2)-(lw/2);
lhp=((document.body.offsetHeight)/2)-(lh/2);
lyp=document.body.scrollTop+10;
}
if (lname=='fbfanconnect')
{
FadeBackground();
srcnm = "Why Connect?";
srcpg="/asp/fbfanconnect.aspx";
lxp=((document.body.offsetWidth)/2)-(lw/2);
lhp=((document.body.offsetHeight)/2)-(lh/2);
lyp=document.body.scrollTop+10;
}
if (lname=='fbfanbecome')
{
FadeBackground();
srcnm = "How do I Become a Fan?";
srcpg="/asp/fbfanbecome.aspx";
lxp=((document.body.offsetWidth)/2)-(lw/2);
lhp=((document.body.offsetHeight)/2)-(lh/2);
lyp=document.body.scrollTop+10;
}
if (srcnm!="")
{
document.getElementById('srcn').innerHTML=srcnm;
}
else
{
document.getElementById('srcn').innerHTML='';
}
document.getElementById('player').style.width=lw+'px';
document.getElementById('player').style.height=lh+30+'px';
if (lxp==0)
{
lxp=tempX-100;
}
if (lyp==0 || lyp==1)
{
if (lyp==0)
{
lyp=tempY+10;
}
else
{
lyp=tempY-lh;
}
}
// dimension and position it
var bW=document.body.offsetWidth;
if (lxp+lw>bW) {
lxp=(bW-lw)-30;
}
if (lxp<1) lxp=1;
document.getElementById("player").style.zIndex=200;
document.getElementById('player').style.left=lxp+'px';
document.getElementById('player').style.top=lyp+'px';
document.getElementById('tab1').style.width=lw-15+'px';
document.getElementById('tab1').style.height=lh-15+'px';
document.getElementById('ifp').style.height=lh-20+'px';
//document.getElementById('ifp').style.width=lw-5+'px';
frames['ifp'].location.replace(srcpgw);
if (sg==1) document.getElementById(lname+"g").src="/graphics/lminus.gif";
document.getElementById('player').style.display="";
}
function hidedrop()
{
HideFade();
if (document.getElementById('pdrop').style.display=='')
{
document.getElementById('pdrop').style.display="none";
}
}
function oif(src,id,ht,wd,sc,tr)
{
document.write('');
}
function shw()
{
}
function hde()
{
}
function swapWOC(nteid,graphic,divType) {
if (document.getElementById("divWOC"+nteid).style.display=="none")
{
if (graphic=="fl")
{
document.getElementById("imgWOC"+nteid).src="/graphics/fliparrowdown.gif";
}
if (graphic!="fl")
{
document.getElementById("imgWOC"+nteid).src="/graphics/arrowdown_"+graphic+".gif";
}
document.getElementById("divWOC"+nteid).style.display="";
if (divType=='S' || divType=='T')
{
document.getElementById("ph"+nteid).style.display="none";
}
}
else
{
if (graphic=="fl")
{
document.getElementById("imgWOC"+nteid).src="/graphics/fliparrowright.gif";
}
if (graphic!="fl")
{
document.getElementById("imgWOC"+nteid).src="/graphics/arrowright_"+graphic+".gif";
}
document.getElementById("divWOC"+nteid).style.display="none";
if (divType=='S' || divType=='T')
{
document.getElementById("ph"+nteid).style.display="";
}
}
}
var DefThemeID = 0;
var Custom = "N";
var lastthemeid=0;
function setThemeMarker(ThemeID)
{
if (document.getElementById("bullet"+ThemeID) != null)
{
document.getElementById("bullet"+ThemeID).innerHTML="";
lastthemeid = ThemeID
}
}
var LastBarFontColor = "";
var LastBarBGColor = "";
var LastEntryID = 0;
var ThemeID = new Array(20);
var FontColor = new Array(20);
var BarColor = new Array(20);
var SelectedFontColor = new Array(20);
var SelectedBarColor = new Array(20);
function setBarInit(inputThemeID)
{
for (x=1; x<21; x++)
{
if (ThemeID[x]==inputThemeID)
{
if (document.getElementById("lnk"+inputThemeID) != null && SelectedFontColor[x]!="")
{
document.getElementById("lnk"+inputThemeID).style.color = SelectedFontColor[x];
LastBarFontColor = FontColor[x];
}
if (document.getElementById("bar"+inputThemeID) != null && SelectedBarColor[x]!="")
{
document.getElementById("bar"+inputThemeID).style.backgroundColor = SelectedBarColor[x];
LastBarBGColor = BarColor[x];
}
if (document.getElementById("bulletTD"+inputThemeID) != null && SelectedBarColor[x]!="")
{
document.getElementById("bulletTD"+inputThemeID).style.backgroundColor = SelectedBarColor[x];
LastBarBGColor = BarColor[x];
}
LastEntryID = inputThemeID;
}
}
}
function setBarColor(EntryID,SelectedBarBGColor,SelectedBarFontColor,BarBGColor,BarFontColor)
{
if (document.getElementById("lnk"+LastEntryID) != null && LastBarFontColor!="")
{
document.getElementById("lnk"+LastEntryID).style.color = LastBarFontColor;
}
if (document.getElementById("bar"+LastEntryID) != null && LastBarBGColor!="")
{
document.getElementById("bar"+LastEntryID).style.backgroundColor = LastBarBGColor;
}
if (document.getElementById("bulletTD"+LastEntryID) != null && LastBarBGColor!="")
{
document.getElementById("bulletTD"+LastEntryID).style.backgroundColor = LastBarBGColor;
}
if (document.getElementById("lnk"+EntryID) != null && SelectedBarFontColor!="")
{
document.getElementById("lnk"+EntryID).style.color = SelectedBarFontColor;
LastBarFontColor = BarFontColor;
}
if (document.getElementById("bar"+EntryID) != null && SelectedBarBGColor!="")
{
document.getElementById("bar"+EntryID).style.backgroundColor = SelectedBarBGColor;
LastBarBGColor = BarBGColor;
}
if (document.getElementById("bulletTD"+EntryID) != null && SelectedBarBGColor!="")
{
document.getElementById("bulletTD"+EntryID).style.backgroundColor = SelectedBarBGColor;
LastBarBGColor = BarBGColor;
}
LastEntryID = EntryID;
}
function FadeBackground()
{
document.getElementById("darkBackgroundLayer").style.display="";
var bodyHeight = document.getElementById("outertable").offsetHeight;
var screenHeight = document.body.offsetHeight;
if (screenHeight>bodyHeight)
{
bodyHeight=screenHeight;
}
var bodyWidth = document.getElementById("outertable").offsetWidth;
var bodyWidth2 = document.body.offsetWidth;
if (bodyWidth2 > bodyWidth)
{
bodyWidth = bodyWidth2;
}
document.getElementById("darkBackgroundLayer").style.height=bodyHeight+'px';
document.getElementById("darkBackgroundLayer").style.width=bodyWidth+'px';
}
function HideFade()
{
document.getElementById("darkBackgroundLayer").style.display="none";
}
function clearField(frmName,fldName,fieldText,field)
{
var ifst = "if (document."+frmName+"."+fldName+".value == '"+fieldText+"') { document."+frmName+"."+fldName+".value = ''; }";
eval(ifst)
document.getElementById(field).style.color = '#000000';
}