document.write('<br>');

document.write('<TABLE align=center WIDTH=700 BORDER=0 CELLSPACING=0 CELLPADDING=0>');

if (document.title == 'Kenray K32 Supply Chain System - Overview')
{ 
document.write('  <tr><td height=30><img src="images/first_tab_dark.gif"></td>');
}
else
{
document.write('  <tr><td height=30><img name="overviewleft" src="images/first_tab_light.gif"></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - Overview')
{ 
document.write('  <td><img src="images/overview_dark.gif"></td>');
}
else
{
document.write('  <td><a href="index.html"><img name="overview" border=0 src="images/overview_light.gif" onMouseOver="ChangeOverview()" onMouseOut="BackOverview()"></a></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - Overview')
{ 
document.write('  <td><img name="orderentryleft" src="images/dark_light.gif"></td>');
}
else if (document.title == 'Kenray K32 Supply Chain System - Order Entry')
{
document.write('  <td><img name="orderentryleft" src="images/light_dark.gif"></td>');
}
else
{
document.write('  <td><img name="orderentryleft" src="images/light_light.gif"></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - Order Entry')
{ 
document.write('  <td><img src="images/orderentry_dark.gif"></td>');
}
else
{
document.write('  <td><a href="orderentry.html"><img name="orderentry" border=0 src="images/orderentry_light.gif" onMouseOver="ChangeOrderEntry()" onMouseOut="BackOrderEntry()"></a></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - Order Entry')
{ 
document.write('  <td><img name="reportingleft" src="images/dark_light.gif"></td>');
}
else if (document.title == 'Kenray K32 Supply Chain System - Reporting')
{
document.write('  <td><img name="reportingleft" src="images/light_dark.gif"></td>');
}
else
{
document.write('  <td><img name="reportingleft" src="images/light_light.gif"></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - Reporting')
{ 
document.write('  <td><img src="images/reporting_dark.gif"></td>');
}
else
{
document.write('  <td><a href="reporting.html"><img name="reporting" border=0 src="images/reporting_light.gif" onMouseOver="ChangeReporting()" onMouseOut="BackReporting()"></a></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - Reporting')
{ 
document.write('  <td><img name="accountingleft" src="images/dark_light.gif"></td>');
}
else if (document.title == 'Kenray K32 Supply Chain System - Accounting')
{
document.write('  <td><img name="accountingleft" src="images/light_dark.gif"></td>');
}
else
{
document.write('  <td><img name="accountingleft" src="images/light_light.gif"></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - Accounting')
{ 
document.write('  <td><img src="images/accounting_dark.gif"></td>');
}
else
{
document.write('  <td><a href="accounting.html"><img name="accounting" border=0 src="images/accounting_light.gif" onMouseOver="ChangeAccounting()" onMouseOut="BackAccounting()"></a></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - Accounting')
{ 
document.write('  <td><img name="callmgmtleft" src="images/dark_light.gif"></td>');
}
else if (document.title == 'Kenray K32 Supply Chain System - Call Management')
{
document.write('  <td><img name="callmgmtleft" src="images/light_dark.gif"></td>');
}
else
{
document.write('  <td><img name="callmgmtleft" src="images/light_light.gif"></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - Call Management')
{ 
document.write('  <td><img src="images/callmgmt_dark.gif"></td>');
}
else
{
document.write('  <td><a href="callmgmt.html"><img name="callmgmt" border=0 src="images/callmgmt_light.gif" onMouseOver="ChangeCallMgmt()" onMouseOut="BackCallMgmt()"></a></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - Call Management')
{ 
document.write('  <td><img name="edileft" src="images/dark_light.gif"></td>');
}
else if (document.title == 'Kenray K32 Supply Chain System - EDI')
{
document.write('  <td><img name="edileft" src="images/light_dark.gif"></td>');
}
else
{
document.write('  <td><img name="edileft" src="images/light_light.gif"></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - EDI')
{ 
document.write('  <td><img src="images/edi_dark.gif"></td>');
}
else
{
document.write('  <td><a href="edi.html"><img name="edi" border=0 src="images/edi_light.gif" onMouseOver="ChangeEDI()" onMouseOut="BackEDI()"></a></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - EDI')
{ 
document.write('  <td><img name="inventoryleft" src="images/dark_light.gif"></td>');
}
else if (document.title == 'Kenray K32 Supply Chain System - Inventory Management')
{
document.write('  <td><img name="inventoryleft" src="images/light_dark.gif"></td>');
}
else
{
document.write('  <td><img name="inventoryleft" src="images/light_light.gif"></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - Inventory Management')
{ 
document.write('  <td><img src="images/inventory_dark.gif"></td>');
}
else
{
document.write('  <td><a href="inventory.html"><img name="inventory" border=0 src="images/inventory_light.gif" onMouseOver="ChangeInventory()" onMouseOut="BackInventory()"></a></td>');
}

if (document.title == 'Kenray K32 Supply Chain System - Inventory Management')
{ 
document.write('  <td><img name="inventoryright" src="images/last_tab_dark.gif"></td>');
}
else
{
document.write('  <td><img name="inventoryright" src="images/last_tab_light.gif"></td>');
}
document.write('  </tr>');
document.write('  </table>');


FirstTabLight = new Image(20,30);
FirstTabLight.src = "images/first_tab_light.gif";
FirstTabGray = new Image(20,30);
FirstTabGray.src = "images/first_tab_gray.gif";
DarkLight= new Image(20,30);
DarkLight.src = "images/dark_light.gif";
DarkGray = new Image(20,30);
DarkGray.src = "images/dark_gray.gif";
LightLight = new Image(20,30);
LightLight.src = "images/light_light.gif";
LightDark = new Image(20,30);
LightDark.src = "images/light_dark.gif";
LightGray = new Image(20,30);
LightGray.src = "images/light_gray.gif";
GrayLight = new Image(20,30);
GrayLight.src = "images/gray_light.gif";
GrayDark = new Image(20,30);
GrayDark.src = "images/gray_dark.gif";
LastTabLight = new Image(20,30);
LastTabLight.src = "images/last_tab_light.gif";
LastTabGray = new Image(20,30);
LastTabGray.src = "images/last_tab_gray.gif";

Overview1= new Image(180,90);
Overview1.src = "images/overview_light.gif";
Overview2 = new Image(180,90);
Overview2.src = "images/overview_gray.gif";

OrderEntry1= new Image(180,90);
OrderEntry1.src = "images/orderentry_light.gif";
OrderEntry2 = new Image(180,90);
OrderEntry2.src = "images/orderentry_gray.gif";

Reporting1= new Image(180,90);
Reporting1.src = "images/reporting_light.gif";
Reporting2 = new Image(180,90);
Reporting2.src = "images/reporting_gray.gif";

Accounting1= new Image(180,90);
Accounting1.src = "images/accounting_light.gif";
Accounting2 = new Image(180,90);
Accounting2.src = "images/accounting_gray.gif";

CallMgmt1= new Image(180,90);
CallMgmt1.src = "images/callmgmt_light.gif";
CallMgmt2 = new Image(180,90);
CallMgmt2.src = "images/callmgmt_gray.gif";

EDI1= new Image(180,90);
EDI1.src = "images/edi_light.gif";
EDI2 = new Image(180,90);
EDI2.src = "images/edi_gray.gif";

Inventory1= new Image(180,90);
Inventory1.src = "images/inventory_light.gif";
Inventory2 = new Image(180,90);
Inventory2.src = "images/inventory_gray.gif";

function BackOverview() {
  document.overview.src = Overview1.src;
  document.overviewleft.src = FirstTabLight.src;
  if (document.title == 'Kenray K32 Supply Chain System - Order Entry')
  {  
    document.orderentryleft.src = LightDark.src; return true;   
  }
  else 
  {  
    document.orderentryleft.src = LightLight.src; return true;   
  }
}

function ChangeOverview() {
  document.overview.src = Overview2.src;
  document.overviewleft.src = FirstTabGray.src;
  if (document.title == 'Kenray K32 Supply Chain System - Order Entry')
  {  document.orderentryleft.src = GrayDark.src; return true;  }
  else  
  {  document.orderentryleft.src = GrayLight.src; return true; }
}

function BackOrderEntry() {
  document.orderentry.src = OrderEntry1.src;
  if (document.title == 'Kenray K32 Supply Chain System - Overview')
  {  document.orderentryleft.src = DarkLight.src;  }
  else  {  document.orderentryleft.src = LightLight.src;  }  

  if (document.title == 'Kenray K32 Supply Chain System - Reporting')
  {  document.reportingleft.src = LightDark.src; return true;  }
  else  {  document.reportingleft.src = LightLight.src; return true;  } 
}

function ChangeOrderEntry() {
  document.orderentry.src = OrderEntry2.src;
  if (document.title == 'Kenray K32 Supply Chain System - Overview')
  {  document.orderentryleft.src = DarkGray.src;  }
  else  {  document.orderentryleft.src = LightGray.src;  }

  if (document.title == 'Kenray K32 Supply Chain System - Reporting')
  {  document.reportingleft.src = GrayDark.src; return true;  }
  else  {  document.reportingleft.src = GrayLight.src; return true;  }
}

function BackReporting() {
  document.reporting.src = Reporting1.src;
  if (document.title == 'Kenray K32 Supply Chain System - Order Entry')
  {  document.reportingleft.src = DarkLight.src;  }
  else  {  document.reportingleft.src = LightLight.src;  }  

  if (document.title == 'Kenray K32 Supply Chain System - Accounting')
  {  document.accountingleft.src = LightDark.src; return true;  }
  else  {  document.accountingleft.src = LightLight.src; return true;  } 
}

function ChangeReporting() {
  document.reporting.src = Reporting2.src;
  if (document.title == 'Kenray K32 Supply Chain System - Order Entry')
  {  document.reportingleft.src = DarkGray.src;  }
  else  {  document.reportingleft.src = LightGray.src;  }

  if (document.title == 'Kenray K32 Supply Chain System - Accounting')
  {  document.accountingleft.src = GrayDark.src; return true;  }
  else  {  document.accountingleft.src = GrayLight.src; return true;  }
}

function BackAccounting() {
  document.accounting.src = Accounting1.src;
  if (document.title == 'Kenray K32 Supply Chain System - Reporting')
  {  document.accountingleft.src = DarkLight.src;  }
  else  {  document.accountingleft.src = LightLight.src;  }  

  if (document.title == 'Kenray K32 Supply Chain System - Call Management')
  {  document.callmgmtleft.src = LightDark.src; return true;  }
  else  {  document.callmgmtleft.src = LightLight.src; return true;  } 
}

function ChangeAccounting() {
  document.accounting.src = Accounting2.src;
  if (document.title == 'Kenray K32 Supply Chain System - Reporting')
  {  document.accountingleft.src = DarkGray.src;  }
  else  {  document.accountingleft.src = LightGray.src;  }

  if (document.title == 'Kenray K32 Supply Chain System - Call Management')
  {  document.callmgmtleft.src = GrayDark.src; return true;  }
  else  {  document.callmgmtleft.src = GrayLight.src; return true;  }
}

function BackCallMgmt() {
  document.callmgmt.src = CallMgmt1.src;
  if (document.title == 'Kenray K32 Supply Chain System - Accounting')
  {  document.callmgmtleft.src = DarkLight.src;  }
  else  {  document.callmgmtleft.src = LightLight.src;  }  

  if (document.title == 'Kenray K32 Supply Chain System - EDI')
  {  document.edileft.src = LightDark.src; return true;  }
  else  {  document.edileft.src = LightLight.src; return true;  } 
}

function ChangeCallMgmt() {
  document.callmgmt.src = CallMgmt2.src;
  if (document.title == 'Kenray K32 Supply Chain System - Accounting')
  {  document.callmgmtleft.src = DarkGray.src;  }
  else  {  document.callmgmtleft.src = LightGray.src;  }

  if (document.title == 'Kenray K32 Supply Chain System - EDI')
  {  document.edileft.src = GrayDark.src; return true;  }
  else  {  document.edileft.src = GrayLight.src; return true;  }
}

function BackEDI() {
  document.edi.src = EDI1.src;
  if (document.title == 'Kenray K32 Supply Chain System - Call Management')
  {  document.edileft.src = DarkLight.src;  }
  else  {  document.edileft.src = LightLight.src;  }  

  if (document.title == 'Kenray K32 Supply Chain System - Inventory Management')
  {  document.inventoryleft.src = LightDark.src; return true;  }
  else  {  document.inventoryleft.src = LightLight.src; return true;  } 
}

function ChangeEDI() {
  document.edi.src = EDI2.src;
  if (document.title == 'Kenray K32 Supply Chain System - Call Management')
  {  document.edileft.src = DarkGray.src;  }
  else  {  document.edileft.src = LightGray.src;  }

  if (document.title == 'Kenray K32 Supply Chain System - Inventory Management')
  {  document.inventoryleft.src = GrayDark.src; return true;  }
  else  {  document.inventoryleft.src = GrayLight.src; return true;  }
}

function BackInventory() {
  document.inventory.src = Inventory1.src;
  if (document.title == 'Kenray K32 Supply Chain System - EDI')
  {  document.inventoryleft.src = DarkLight.src;  }
  else  {  document.inventoryleft.src = LightLight.src;  }  

  document.inventoryright.src = LastTabLight.src; return true; 
}

function ChangeInventory() {
  document.inventory.src = Inventory2.src;
  if (document.title == 'Kenray K32 Supply Chain System - EDI')
  {  document.inventoryleft.src = DarkGray.src;  }
  else  {  document.inventoryleft.src = LightGray.src;  }

  document.inventoryright.src = LastTabGray.src; return true; 
}
