
function LoadIndexImages() {
  Menu1_on = new Image(80,80);
  Menu1_on.src = "images/i_pc_menu_a.jpg";
  Menu1_off = new Image(80,80);
  Menu1_off.src = "images/i_pc_menu_i.jpg";

  Menu2_on = new Image(90,80);
  Menu2_on.src = "images/i_cc_menu_a.jpg";
  Menu2_off = new Image(90,80);
  Menu2_off.src = "images/i_cc_menu_i.jpg";

  Menu3_on = new Image(125,80);
  Menu3_on.src = "images/i_evs_menu_a.jpg";
  Menu3_off = new Image(125,80);
  Menu3_off.src = "images/i_evs_menu_i.jpg";

  Menu4_on = new Image(130,80);
  Menu4_on.src = "images/i_evh_menu_a.jpg";
  Menu4_off = new Image(130,80);
  Menu4_off.src = "images/i_evh_menu_i.jpg";

  Menu5_on = new Image(80,80);
  Menu5_on.src = "images/i_f_menu_a.jpg";
  Menu5_off = new Image(80,80);
  Menu5_off.src = "images/i_f_menu_i.jpg";
}

function LoadMenuImages() {

  Menu1_on = new Image(53,27);
  Menu1_on.src = "images/menu_home_ro.gif";
  Menu1_off = new Image(53,27);
  Menu1_off.src = "images/menu_home.gif";

  Menu2_on = new Image(95,27);
  Menu2_on.src = "images/menu_pc_ro.gif";
  Menu2_off = new Image(95,27);
  Menu2_off.src = "images/menu_pc.gif";

  Menu3_on = new Image(108,27);
  Menu3_on.src = "images/menu_cc_ro.gif";
  Menu3_off = new Image(108,27);
  Menu3_off.src = "images/menu_cc.gif";

  Menu4_on = new Image(138,27);
  Menu4_on.src = "images/menu_evs_ro.gif";
  Menu4_off = new Image(138,27);
  Menu4_off.src = "images/menu_evs.gif";

  Menu5_on = new Image(151,27);
  Menu5_on.src = "images/menu_eh_ro.gif";
  Menu5_off = new Image(151,27);
  Menu5_off.src = "images/menu_eh.gif";
  
  Menu6_on = new Image(64,27);
  Menu6_on.src = "images/menu_f_ro.gif";
  Menu6_off = new Image(64,27);
  Menu6_off.src = "images/menu_f.gif"; 

  Menu7_on = new Image(60,27);
  Menu7_on.src = "images/menu_contact_ro.gif";
  Menu7_off = new Image(60,27);
  Menu7_off.src = "images/menu_contact.gif";  
  
  Menu8_on = new Image(30,22);
  Menu8_on.src = "images/nav_homea.gif";
  Menu8_off = new Image(30,22);
  Menu8_off.src = "images/nav_home.gif"; 

  Menu9_on = new Image(51,22);
  Menu9_on.src = "images/nav_contacta.gif";
  Menu9_off = new Image(51,22);
  Menu9_off.src = "images/nav_contact.gif";  
}

function LoadPistonCrownImages() {

  thumb1_on = new Image(46,46);
  thumb1_on.src = "images/pc01a.jpg";
  thumb1_off = new Image(46,46);
  thumb1_off.src = "images/pc01i.jpg";
  thumb1_main = new Image(228,158);
  thumb1_main.src = "images/pc01.jpg";

  thumb2_on = new Image(46,46);
  thumb2_on.src = "images/pc02a.jpg";
  thumb2_off = new Image(46,46);
  thumb2_off.src = "images/pc02i.jpg";
  thumb2_main = new Image(228,158);
  thumb2_main.src = "images/pc02.jpg";
  
  thumb3_on = new Image(46,46);
  thumb3_on.src = "images/pc03a.jpg";
  thumb3_off = new Image(46,46);
  thumb3_off.src = "images/pc03i.jpg";
  thumb3_main = new Image(228,158);
  thumb3_main.src = "images/pc03.jpg";

  thumb4_on = new Image(46,46);
  thumb4_on.src = "images/pc04a.jpg";
  thumb4_off = new Image(46,46);
  thumb4_off.src = "images/pc04i.jpg";
  thumb4_main = new Image(228,158);
  thumb4_main.src = "images/pc04.jpg";
  
  thumb5_on = new Image(46,46);
  thumb5_on.src = "images/pc05a.jpg";
  thumb5_off = new Image(46,46);
  thumb5_off.src = "images/pc05i.jpg";
  thumb5_main = new Image(228,158);
  thumb5_main.src = "images/pc05.jpg";
  
  thumb6_on = new Image(46,46);
  thumb6_on.src = "images/pc06a.jpg";
  thumb6_off = new Image(46,46);
  thumb6_off.src = "images/pc06i.jpg";
  thumb6_main = new Image(228,158);
  thumb6_main.src = "images/pc06.jpg";
  
  thumb7_on = new Image(46,46);
  thumb7_on.src = "images/pc07a.jpg";
  thumb7_off = new Image(46,46);
  thumb7_off.src = "images/pc07i.jpg";
  thumb7_main = new Image(228,158);
  thumb7_main.src = "images/pc07.jpg";
  
  thumb8_on = new Image(46,46);
  thumb8_on.src = "images/pc08a.jpg";
  thumb8_off = new Image(46,46);
  thumb8_off.src = "images/pc08i.jpg";
  thumb8_main = new Image(228,158);
  thumb8_main.src = "images/pc08.jpg";
  
  thumb9_on = new Image(46,46);
  thumb9_on.src = "images/pc09a.jpg";
  thumb9_off = new Image(46,46);
  thumb9_off.src = "images/pc09i.jpg";
  thumb9_main = new Image(228,158);
  thumb9_main.src = "images/pc09.jpg";
  
  thumb10_on = new Image(46,46);
  thumb10_on.src = "images/pc10a.jpg";
  thumb10_off = new Image(46,46);
  thumb10_off.src = "images/pc10i.jpg";
  thumb10_main = new Image(228,158);
  thumb10_main.src = "images/pc10.jpg";
  
  thumb11_on = new Image(46,46);
  thumb11_on.src = "images/pc11a.jpg";
  thumb11_off = new Image(46,46);
  thumb11_off.src = "images/pc11i.jpg";
  thumb11_main = new Image(228,158);
  thumb11_main.src = "images/pc11.jpg";

  thumb12_on = new Image(46,46);
  thumb12_on.src = "images/pc12a.jpg";
  thumb12_off = new Image(46,46);
  thumb12_off.src = "images/pc12i.jpg";
  thumb12_main = new Image(228,158);
  thumb12_main.src = "images/pc12.jpg";

  thumb13_on = new Image(46,46);
  thumb13_on.src = "images/pc13a.jpg";
  thumb13_off = new Image(46,46);
  thumb13_off.src = "images/pc13i.jpg";
  thumb13_main = new Image(228,158);
  thumb13_main.src = "images/pc13.jpg";
  
  thumb14_on = new Image(46,46);
  thumb14_on.src = "images/pc14a.jpg";
  thumb14_off = new Image(46,46);
  thumb14_off.src = "images/pc14i.jpg";
  thumb14_main = new Image(228,158);
  thumb14_main.src = "images/pc14.jpg";

  thumb15_on = new Image(46,46);
  thumb15_on.src = "images/pc15a.jpg";
  thumb15_off = new Image(46,46);
  thumb15_off.src = "images/pc15i.jpg";
  thumb15_main = new Image(228,158);
  thumb15_main.src = "images/pc15.jpg";
  
  caption1 = 'B&W 67GF';
  caption2 = 'B&W 70MC';
  caption3 = 'Sulzer RT58';
  caption4 = 'B&W 70MC: stress relieved';
  caption5 = 'Sulzer RT58: set up for machine';
  caption6 = 'Sulzer RT58: machining ring grooves';
  caption7 = 'Sulzer RT58: machining combustion surface';
  caption8 = 'B&W 80MC';
  caption9 = 'B&W 80MC: machining combustion surface';
  caption10 = 'B&W 80MC';
  caption11 = 'B&W 80MC: machining ring grooves';
  caption12 = 'B&W 60MC: underway chrome plating';
  caption13 = 'B&W 70MC: grinding ring grooves';
  caption14 = 'Sulzer RT58';
  caption15 = 'B&W 70MC';
  }

function LoadCylinderCoverImages(){
  thumb1_on = new Image(46,46);
  thumb1_on.src = "images/cc01a.jpg";
  thumb1_off = new Image(46,46);
  thumb1_off.src = "images/cc01i.jpg";
  thumb1_main = new Image(228,158);
  thumb1_main.src = "images/cc01.jpg";

  thumb2_on = new Image(46,46);
  thumb2_on.src = "images/cc02a.jpg";
  thumb2_off = new Image(46,46);
  thumb2_off.src = "images/cc02i.jpg";
  thumb2_main = new Image(228,158);
  thumb2_main.src = "images/cc02.jpg";
  
  thumb3_on = new Image(46,46);
  thumb3_on.src = "images/cc03a.jpg";
  thumb3_off = new Image(46,46);
  thumb3_off.src = "images/cc03i.jpg";
  thumb3_main = new Image(228,158);
  thumb3_main.src = "images/cc03.jpg";

  thumb4_on = new Image(46,46);
  thumb4_on.src = "images/cc04a.jpg";
  thumb4_off = new Image(46,46);
  thumb4_off.src = "images/cc04i.jpg";
  thumb4_main = new Image(228,158);
  thumb4_main.src = "images/cc04.jpg";
  
  thumb5_on = new Image(46,46);
  thumb5_on.src = "images/cc05a.jpg";
  thumb5_off = new Image(46,46);
  thumb5_off.src = "images/cc05i.jpg";
  thumb5_main = new Image(228,158);
  thumb5_main.src = "images/cc05.jpg";
  
  thumb6_on = new Image(46,46);
  thumb6_on.src = "images/cc06a.jpg";
  thumb6_off = new Image(46,46);
  thumb6_off.src = "images/cc06i.jpg";
  thumb6_main = new Image(228,158);
  thumb6_main.src = "images/cc06.jpg";
 
  thumb7_on = new Image(46,46);
  thumb7_on.src = "images/cc07a.jpg";
  thumb7_off = new Image(46,46);
  thumb7_off.src = "images/cc07i.jpg";
  thumb7_main = new Image(228,158);
  thumb7_main.src = "images/cc07.jpg";
   
  caption1 = 'UEC 37L';
  caption2 = 'Sulzer RTA62';
  caption3 = 'Sulzer RTA58';
  caption4 = 'Sulzer RTA58: stress relieved';          
  caption5 = 'Sulzer RTA58: set up for machine';
  caption6 = 'Sulzer RTA58: machining combustion surface and contact face';
  caption7 = '';               
}

function LoadExhaustValveSeatImages() {

  thumb1_on = new Image(46,46);
  thumb1_on.src = "images/evs01a.jpg";
  thumb1_off = new Image(46,46);
  thumb1_off.src = "images/evs01i.jpg";
  thumb1_main = new Image(228,158);
  thumb1_main.src = "images/evs01.jpg";

  thumb2_on = new Image(46,46);
  thumb2_on.src = "images/evs02a.jpg";
  thumb2_off = new Image(46,46);
  thumb2_off.src = "images/evs02i.jpg";
  thumb2_main = new Image(228,158);
  thumb2_main.src = "images/evs02.jpg";
  
  thumb3_on = new Image(46,46);
  thumb3_on.src = "images/evs03a.jpg";
  thumb3_off = new Image(46,46);
  thumb3_off.src = "images/evs03i.jpg";
  thumb3_main = new Image(228,158);
  thumb3_main.src = "images/evs03.jpg";
  
  thumb4_on = new Image(46,46);
  thumb4_on.src = "images/evs04a.jpg";
  thumb4_off = new Image(46,46);
  thumb4_off.src = "images/evs04i.jpg";
  thumb4_main = new Image(228,158);
  thumb4_main.src = "images/evs04.jpg"; 
  
  thumb5_on = new Image(46,46);
  thumb5_on.src = "images/evs05a.jpg";
  thumb5_off = new Image(46,46);
  thumb5_off.src = "images/evs05i.jpg";
  thumb5_main = new Image(228,158);
  thumb5_main.src = "images/evs05.jpg"; 
  
  thumb6_on = new Image(46,46);
  thumb6_on.src = "images/evs06a.jpg";
  thumb6_off = new Image(46,46);
  thumb6_off.src = "images/evs06i.jpg";
  thumb6_main = new Image(228,158);
  thumb6_main.src = "images/evs06.jpg";
  
  thumb7_on = new Image(46,46);
  thumb7_on.src = "images/evs07a.jpg";
  thumb7_off = new Image(46,46);
  thumb7_off.src = "images/evs07i.jpg";
  thumb7_main = new Image(228,158);
  thumb7_main.src = "images/evs07.jpg";

  thumb8_on = new Image(46,46);
  thumb8_on.src = "images/evs08a.jpg";
  thumb8_off = new Image(46,46);
  thumb8_off.src = "images/evs08i.jpg";
  thumb8_main = new Image(228,158);
  thumb8_main.src = "images/evs08.jpg"; 

  thumb9_on = new Image(46,46);
  thumb9_on.src = "images/evs09a.jpg";
  thumb9_off = new Image(46,46);
  thumb9_off.src = "images/evs09i.jpg";
  thumb9_main = new Image(228,158);
  thumb9_main.src = "images/evs09.jpg";
  
  caption1 = '';
  caption2 = '';
  caption3 = '';
  caption4 = '';
  caption5 = 'Stellite welding';
  caption6 = '';
  caption7 = '';
  caption8 = '';
  caption9 = '';
  }

function LoadExhaustValveHousingImages() {

  thumb1_on = new Image(158,46);
  thumb1_on.src = "images/eh01a.jpg";
  thumb1_off = new Image(158,46);
  thumb1_off.src = "images/eh01i.jpg";
  thumb1_main = new Image(495,158);
  thumb1_main.src = "images/eh01.jpg";

  thumb2_on = new Image(102,46);
  thumb2_on.src = "images/eh02a.jpg";
  thumb2_off = new Image(102,46);
  thumb2_off.src = "images/eh02i.jpg";
  thumb2_main = new Image(495,158);
  thumb2_main.src = "images/eh02.jpg";
  
  thumb3_on = new Image(102,46);
  thumb3_on.src = "images/eh03a.jpg";
  thumb3_off = new Image(102,46);
  thumb3_off.src = "images/eh03i.jpg";
  thumb3_main = new Image(495,158);
  thumb3_main.src = "images/eh03.jpg";

  thumb4_on = new Image(46,46);
  thumb4_on.src = "images/eh04a.jpg";
  thumb4_off = new Image(46,46);
  thumb4_off.src = "images/eh04i.jpg";
  thumb4_main = new Image(495,158);
  thumb4_main.src = "images/eh04.jpg";
  
  thumb5_on = new Image(46,46);
  thumb5_on.src = "images/eh05a.jpg";
  thumb5_off = new Image(46,46);
  thumb5_off.src = "images/eh05i.jpg";
  thumb5_main = new Image(495,158);
  thumb5_main.src = "images/eh05.jpg";

  caption1 = '';
  caption2 = '';
  caption3 = '';
  caption4 = '';
  caption5 = '';                                                 
}

function LoadFacilityImages() {

  thumb1_on = new Image(46,46);
  thumb1_on.src = "images/f01a.jpg";
  thumb1_off = new Image(46,46);
  thumb1_off.src = "images/f01i.jpg";
  thumb1_main = new Image(228,158);
  thumb1_main.src = "images/f01.jpg";

  thumb2_on = new Image(46,46);
  thumb2_on.src = "images/f02a.jpg";
  thumb2_off = new Image(46,46);
  thumb2_off.src = "images/f02i.jpg";
  thumb2_main = new Image(228,158);
  thumb2_main.src = "images/f02.jpg";
  
  thumb3_on = new Image(46,46);
  thumb3_on.src = "images/f03a.jpg";
  thumb3_off = new Image(46,46);
  thumb3_off.src = "images/f03i.jpg";
  thumb3_main = new Image(228,158);
  thumb3_main.src = "images/f03.jpg";

  thumb4_on = new Image(46,46);
  thumb4_on.src = "images/f04a.jpg";
  thumb4_off = new Image(46,46);
  thumb4_off.src = "images/f04i.jpg";
  thumb4_main = new Image(228,158);
  thumb4_main.src = "images/f04.jpg";
  
  thumb5_on = new Image(46,46);
  thumb5_on.src = "images/f05a.jpg";
  thumb5_off = new Image(46,46);
  thumb5_off.src = "images/f05i.jpg";
  thumb5_main = new Image(228,158);
  thumb5_main.src = "images/f05.jpg";

  thumb6_on = new Image(46,46);
  thumb6_on.src = "images/f06a.jpg";
  thumb6_off = new Image(46,46);
  thumb6_off.src = "images/f06i.jpg";
  thumb6_main = new Image(228,158);
  thumb6_main.src = "images/f06.jpg";

  caption1 = 'Submerged arc welding<br>on combustion surface of piston crown';
  caption2 = 'Flux cord wire mig welding<br>on fire side of exhaust valve';
  caption3 = 'Stress relieving furnace';
  caption4 = 'Chrome plating facility<br>Stationary type';
  caption5 = 'Templates for current B&W and<br>Sulzer type pistons and valves';
  caption6 = 'Metric micrometers<br>ranging from 150 to 900 mm';
}

function switchImg(imgDocID,imgObjName) {
	document.getElementById(imgDocID).src = eval(imgObjName + '.src');
}

function displayMainImg(objNum, objMode) {
    eval('document.getElementById("img'+objNum+'").src = thumb'+objNum+'_'+objMode+'.src')	
	if (objMode == 'on') {
	  document.getElementById("imgDisplay").src = eval('thumb'+objNum +'_main.src');
	  document.getElementById("TDCaption").innerHTML = eval('caption'+objNum);	  
	}
}