if (document.images) {

//bullet images off

  bullet_process0_off = new Image();
  bullet_process0_off.src = "i/bullet_process0_off.gif";

  bullet_process1_off = new Image();
  bullet_process1_off.src = "i/bullet_process1_off.gif";

  bullet_process2_off = new Image();
  bullet_process2_off.src = "i/bullet_process2_off.gif";
  
  bullet_process3_off = new Image();
  bullet_process3_off.src = "i/bullet_process3_off.gif";  

  bullet_result_off = new Image();
  bullet_result_off.src = "i/bullet_result_off.gif";

  bullet_back_off = new Image();
  bullet_back_off.src = "i/bullet_back_off.gif";

  bullet_sidecar_off = new Image();
  bullet_sidecar_off.src = "i/bullet_sidecar_off.gif";  
  
//bullet images on

  bullet_process0_on = new Image();
  bullet_process0_on.src = "i/bullet_process0_on.gif";

  bullet_process1_on = new Image();
  bullet_process1_on.src = "i/bullet_process1_on.gif";

  bullet_process2_on = new Image();
  bullet_process2_on.src = "i/bullet_process2_on.gif";

  bullet_process3_on = new Image();
  bullet_process3_on.src = "i/bullet_process3_on.gif";

  bullet_result_on = new Image();
  bullet_result_on.src = "i/bullet_result_on.gif";

  bullet_back_on = new Image();
  bullet_back_on.src = "i/bullet_back_on.gif";

  bullet_sidecar_on = new Image();
  bullet_sidecar_on.src = "i/bullet_sidecar_on.gif";
  
//main menu images off

  about_off = new Image();
  about_off.src = "i/about_off.gif";

  process_off = new Image();
  process_off.src = "i/process_off.gif";
  
  portfolio_off = new Image();
  portfolio_off.src = "i/portfolio_off.gif";
  
  contact_off = new Image();
  contact_off.src = "i/contact_off.gif";

//main menu images on

  about_on = new Image();
  about_on.src = "i/about_on.gif";

  process_on = new Image();
  process_on.src = "i/process_on.gif";
  
  portfolio_on = new Image();
  portfolio_on.src = "i/portfolio_on.gif";
  
  contact_on = new Image();
  contact_on.src = "i/contact_on.gif";
  
}

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}

function scrollRight(xPos)
{
	speed = 4;
	distance = 1200;
	for (i=xPos-distance; i<=xPos; i+=speed)
	{
		scroll(i,0);
	}
}

function scrollLeft(xPos)
{
	speed = 4;
	distance=1200;
	for (i=xPos+distance; i>=xPos; i-=speed)
	{
		scroll(i,0);
	}
}

function newWindow(link, width, height) {
   var swidth = screen.width;
   var sheight = screen.height;
   var popup = null;
   var left = (swidth/2) - (width/2);
   var top = (sheight/2) - (height/2);
   var over = "Job Description";


popup=window.open("","msg","scrollbars=no,height="+height+",width="+width+",left="+left+",top="+top); 
   if (popup != null) { 
      if (popup.opener == null) { 
         popup.opener = self;     
      } 
      popup.location.href = link;
   }  
}

