
//swapper [t = target; p = postfix; T = target object; s = source]
function imgSwap( t, p )
{
  if ( document.images )
  {
    var T = document.images[t];
    var s = T.src;
    s = s.substring(0,s.lastIndexOf(p ? '.' : '_')) + p + s.substring(s.lastIndexOf('.'));
    T.src = s;
  }
}

//preloader [s = stash; l = list; c = caret]
function imgLoad( s, l )
{
  if ( document.images ) while ( l )
  {
    var c = l.indexOf('|');
    (new Image()).src = s + l.substring(0,c);
    l = ( c == l.length ? '' : l.substring(c+1) );
  }
}

function docStartUp()
{
  var DIR = '/img/nav/';
  var GFX = 'company_o.gif|strategy_o.gif|integration_o.gif|perspectives_o.gif|arcos_o.gif|contactus_o.gif|newsdesk_o.gif|';

  imgLoad( DIR, GFX );
}

window.onload = docStartUp;

