//var filebase = "file:///srv2/elmiWeb/";
var filebase = "";
var overcolor = "'#ff8888'";
var bordercolor = "'#0000ff'";
var thisdoc = ""

// Function:	elmiTitle
// Description:	Places ELMI title on a window
// Arguments:	
function elmiTitle( )
{
    top.document.write('<h1 class="title">Electro-Logic Machines, Inc.</h1>');
}

function setBody( msg, bgimage )
{
    top.document.write('<body background="/images/' + bgimage + '">');
    top.document.write('<h3 class="topic">' + msg + '</h3>');
}

function navButton(w, page, img, title, alt)
{
    var tmsg = '<a href="' + filebase + page + '">' + 
	'<img class="navBut" src="/images/' + img + '" title="' + title + '" alt="' + alt + '"' +
	' onMouseOver="this.style.borderColor=' + overcolor + '; top.status = \'' + title + '\'; return true;"' +
	' onMouseOut="this.style.borderColor=' + bordercolor + '; top.status = \'\'; return true;"' +
	' ></a><br>';
    w.document.write(tmsg);
}

function setNavPanel(w)
{
    thisdoc = document.URL;
    var cmsg = '<a href="/cgi-bin/contact.cgi?ppage=' + thisdoc + '">' + 
	'<img class="navBut" src="/images/contact.gif" title="Contact Us" alt="Contact Us"' +
	' onMouseOver="this.style.borderColor=' + overcolor + '; top.status = \'Contact Us\'; return true;"' +
	' onMouseOut="this.style.borderColor=' + bordercolor + '; top.status = \'\'; return true;"' +
	' ></a><br>';
    w.document.write('<td style="vertical-align: top; text-align: center; width: 104;">');
    navButton(w, '/index.html', 'home.gif', 'Home Page', 'Home Page' );
    navButton(w, '/engineControl.html', 'engineControl.gif', 'Internal Combustion Engine Control', 'Engine Control');
    navButton(w, '/tpuProg.html', 'tpuProgramming.gif', 'Custom TPU Programming Services and Software', 'TPU Programming' );
    navButton(w, '/esd.html', 'embeddedSystems.gif', 'Embedded System Engineering', 'Embedded System Engineering' );
    navButton(w, '/freeware/', 'freeSoftware.gif', 'Free Software for Embedded Systems', 'Free Software' );
    navButton(w, '/ClientWeb/', 'clientAccess.gif', 'File Access for Clients', 'Client Access' );
    w.document.write(cmsg);
    w.document.write('<td width:10></td>');
}

function setInfoPanel(w)
{
    w.document.write("<center><small>Copyright &#169; 2006, Electro-Logic Machines, Inc.");
}

function tpuContact(w, msg )
{
    w.document.write('<a href="/cgi-bin/tpucontact.cgi?ppage=' + document.URL + '">' + msg + '</a>');
}
