ndir="/db/rcimages/navbar/";

function turnOn(nameobject,namestring)
{
nameobject.src=ndir+namestring+".on.gif";
}

function turnOff(button,name)
{
button.src=ndir+name+".off.gif";
}
function navDir(filename){
temp=ndir+filename+".on.gif";
return temp;
}

prenames=new Array("news","view","ae","sports","home","aboutdb","contactus","archives","classifieds");

function preloadImages(preimg) {
aname="";
for (i=0; i<preimg.length; i++){
temp=navDir(preimg[i]);
document.DBOM.loadedImages[i] = new Image();
document.DBOM.loadedImages[i].src = temp;
temp="";
}
} 

document.DBOM = new Object();
document.DBOM.loadedImages=new Array();

//this function is no longer used, but is here to pay homage to Marc Precilla
function writeCartoon(){
thereIsACartoon=false;
cartoontitle="PRESS POUND";
cartoonartist="Scott Comulada";
imagename="/db/rcissues/00/10.16/images/view.cartoon.jpg";
imagewidth=450;
imageheight=143;
imageform="<html><head><title>"+cartoontitle+" by "+cartoonartist+"</title></head><body bgcolor=\"white\" topmargin=0 leftmargin=0 marginheight=0 marginwidth=0><table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><TR><TD valign=\"middle\" align=\"center\"><img src=\""+imagename+"\" border=\"0\"></TD></TR></TABLE></body></html>";
winheight=imageheight+17; winwidth=imagewidth+17;
everything="";
if (thereIsACartoon) everything="<font face=\"arial\" size=2><b><A href=\"#\" onClick='winnie=window.open(\"\",\"display\",\"width="+winwidth+",height="+winheight+",scrollbars=no,status\"); winnie.document.writeln(imageform); winnie.document.close();  winnie.focus(); return false; 'onMouseOver='top.status=\""+cartoontitle+" by "+cartoonartist+"-click to view\"; return true' onMouseOut='top.status=\"\"; return true'>"+cartoontitle+"</A>\r\r</b></FONT><BR>\r<FONT face=\"arial\" size=\"1\"><B>BY:</B> "+cartoonartist+"</FONT><P>\r";
document.writeln(everything); 
}
// end function

function popUp(theUrl,theHeight,theWidth) {
var newWin;
newWin = window.open(theUrl,"DBOnline","status=no,height="+theHeight+",width="+theWidth+",scrollbars=yes,resizable=no,toolbar=no");
}

