mystylesheets()

function mystylesheets()
{
   if (document.all)
      {ref = document.styleSheets[0].rules}
   if (navigator.appName == "Netscape")
      {ref = document.styleSheets[0].cssRules}         
	   //----Define class body = rule 0
   x = 0
   ref[x].style.fontSize = 15 * (screen.width / 1280);
	   //----Define class text2 = rule 1
   x = 1
   ref[x].style.fontSize = 15 * (screen.width / 1280);
   ref[x].style.fontFamily = "arial";
	   //----Define class navigation = rule 2
   x = 2
   ref[x].style.fontSize = 15 * (screen.width / 1280);
   ref[x].style.left = 15 * (screen.width / 1280);
   ref[x].style.top = 5 * (screen.height / 1024);
   ref[x].style.width = 360 * (screen.width / 1280);
   ref[x].style.height = 50 * (screen.height / 1024);
	   //-----Define class text1 = rule 3
   x = 3
   ref[x].style.fontSize = 15 * screen.width / 1280;
   ref[x].style.textAlign = "justify";
   ref[x].style.visibility = "hidden";
   ref[x].style.left = 400 * (screen.width / 1280);
   ref[x].style.top = 5 * (screen.height / 1024);
   ref[x].style.width = 820 * (screen.width / 1280);
   ref[x].style.height = 10 * (screen.height / 1024);
	   //-----Define class table_side = rule 4
   x = 4
   ref[x].style.fontSize = 15 * (screen.width / 1280);
   ref[x].style.textAlign = "justify";
   ref[x].style.visibility = "hidden";
   ref[x].style.left = 2 * (screen.width / 1280);
   ref[x].style.top = 535 * (screen.height / 1024);
   ref[x].style.width = 385 * (screen.width / 1280);
   ref[x].style.height = 10 * (screen.height / 1024);
	   //-----Define class text-blue-noline for rule 5
   x =5
   ref[x].style.fontSize = 15 * (screen.width / 1280);
	   //-----Define class orange for rule 7   
   x =7
   ref[x].style.fontSize = 15 * (screen.width / 1280);
	   //-----Define class text-alone for rule 8   
   x =8
   ref[x].style.fontSize = 15 * (screen.width / 1280);
  	 //-----Define class subbox for rule 9   
   x =9
   ref[x].style.fontSize = 15 * (screen.width / 1280);
   ref[x].style.visibility = "hidden";
 
}//----end of this function--------

function subbox(subbox_id, subboxLeft, subboxTop)
{
	//Close all subbox class----------------
	if (document.all)
	{ref = document.styleSheets[0].rules};
	if (navigator.appName == "Netscape") 
	{ref = document.styleSheets[0].cssRules} ;
	x = 9;
	ref[x].style.visibility = "hidden";
	ref[x].style.display = "none";
	//---------------------------------
sub_box = document.getElementById(subbox_id)

sub_box.style.position = "absolute";

sub_box.style.left = screen.width / 10;
sub_box.style.top = screen.height / 5;
sub_box.style.width = 10;
sub_box.style.height = 10;
sub_box.style.visibility = "visible";
sub_box.style.display="inline";
}

function close_subbox(subbox_id)
{
sub_box = document.getElementById(subbox_id)
sub_box.style.visibility = "visible";
sub_box.style.display="none";
}



function load_home()
{
   clear_tableside();

   ani_can2 = new Image(); 		ani_can2.src = "ani-can1.gif"
   ani_6scr800v1 = new Image();    	ani_6scr800v1.src = "ani-6scr800v1.gif";
   ani_scr800v = new Image();                          ani_scr800v.src = "ani-scr800v.gif";
   ani_scr1000v = new Image();		   ani_scr1000v.src = "ani-scr1000v.gif";	
   ani_coil10 = new Image();		   ani_coil10.src = "ani-coil10.gif";

   img_blank = new Image();		img_blank.src = "img-blank.gif";
   img_cap3 = new Image();		img_cap3.src = "img-cap3.gif";
   img_projectile10 = new Image();	img_projectile10.src = "img-projectile10.gif";


}//--------End of this Function-----------------------

function load_projects()
{
   clear_tableside();
   clear_cells(20);
   ani_projectilecoil2 = new Image(); 	   ani_projectilecoil2.src = "ani-projectilecoil2.gif"
   img_blank = new Image();		   img_blank.src = "img-blank.gif";
   img_schematic_booster_foundation1 = new Image();
   img_schematic_booster_foundation1.src = "img-schematic-booster-foundation1.gif";
   img_schematic_booster_555ic = new Image();
   img_schematic_booster_555ic.src = "img-schematic-booster-555ic.gif";
   img_schematic_booster_basic555 = new Image();
   img_schematic_booster_basic555.src = "img-schematic-booster-basic555.gif";
   img_schematic_booster_feedback1 = new Image();
   img_schematic_booster_feedback1.src = "img-schematic-booster-feedback1.gif";


   show_cell("cell1");
}//--------End this Function---------------------------------

function load_barriers()
{
   clear_tableside();
   clear_cells(20);
   ani_projectilecoil2 = new Image(); 	   ani_projectilecoil2.src = "ani-projectilecoil2.gif"
   ani_acgbooster4_1 = new Image();	  ani_acgbooster4_1.src = "ani-acgbooster4-1.gif"

   img_blank = new Image();		   img_blank.src = "img-blank.gif";
   img_schematic_booster_foundation1 = new Image();
   img_schematic_booster_foundation1.src = "img-schematic-booster-foundation1.gif";
   img_schematic_booster_555ic = new Image();
   img_schematic_booster_555ic.src = "img-schematic-booster-555ic.gif";
   img_schematic_booster_basic555 = new Image();
   img_schematic_booster_basic555.src = "img-schematic-booster-basic555.gif";
   img_schematic_booster_feedback1 = new Image();
   img_schematic_booster_feedback1.src = "img-schematic-booster-feedback1.gif";
   img_schematic_booster_4049ic = new Image();
   img_schematic_booster_4049ic.src = "img-schematic-booster-4049ic.gif";
   img_schematic_booster_basic4049 = new Image();
   img_schematic_booster_basic4049.src = "img-schematic-booster-basic4049.gif";
   img_schematic_booster_feedback2 = new Image();
   img_schematic_booster_feedback2.src = "img-schematic-booster-feedback2.gif";
   img_schematic_booster_feedback3 = new Image();
   img_schematic_booster_feedback3.src = "img-schematic-booster-feedback3.gif";


   show_cell("cell1");
}//--------End this Function---------------------------------

function load_single()
{
   clear_tableside();
   clear_cells(20);
   show_cell("cell1");
}//--------End this Function---------------------------------

function load_single_news()
{
   clear_tableside();
   clear_cells(20);
   show_cell("cell1");
}//--------End this Function---------------------------------

function load_single_resultsvideo()
{
   clear_tableside();
   clear_cells(20);

   ani_can2 = new Image();		   ani_can2.src = "ani-can1.gif"
   ani_cap1 = new Image();		   ani_cap1.src = "ani-cap1.gif";
   ani_cap2 = new Image();		   ani_cap2.src = "ani-cap2.gif";
   ani_coil2 = new Image();		   ani_coil2.src = "ani-coil2.gif";
   ani_proj_spin1 = new Image();	   ani_proj_spin1.src = "ani-proj-spin1.gif";
   ani_6scr800v1 = new Image();	   ani_6scr800v1.src = "ani-6scr800v1.gif";
   ani_coil10 = new Image();		   ani_coil10.src = "ani-coil10.gif";

   img_cap3 = new Image();		   img_cap3.src = "img-cap3.gif";
   img_projectile2 = new Image();	   img_projectile2.src = "img-projectile2.gif";
   img_projectile3 = new Image();	   img_projectile3.src = "img-projectile3.gif";
   img_projectile10 = new Image();	   img_projectile10.src = "img-projectile10.gif";
   img_6scr800v1 = new Image();	   img_6scr800v1.src = "img-6scr800v1.gif";
   img_coil1 = new Image();		   img_coil1.src = "img-coil1.gif";

   show_cell("cell2");
}//--------End this Function---------------------------------

function load_single_construction()
{
   clear_tableside();
   clear_cells(20);

   ani_cap2 = new Image();		   ani_cap2.src = "ani-cap2.gif";
   ani_coil2 = new Image();		   ani_coil2.src = "ani-coil2.gif";
   ani_balsadetector1 = new Image();	   ani_balsadetector1.src = "ani-balsadetector1.gif";
   ani_diode1 = new Image();		   ani_diode1.src = "ani-diode1.gif";
   ani_targetmount1 = new Image();	   ani_targetmount1.src = "ani-targetmount1.gif";
   ani_diodeboom1 = new Image();	   ani_diodeboom1.src = "ani-diodeboom1.gif";
   ani_scrcreate = new Image();		   ani_scrcreate.src = "ani-scr-create.gif";

   img_blank = new Image();		   img_blank.src = "img-blank.gif";
   img_pentupler1 = new Image();	   img_pentupler1.src = "img-pentupler1.gif"
   img_30a_terminal1 = new Image();	   img_30a_terminal1.src = "img-30a-terminal1.gif";
   img_coilmount1 = new Image();	   img_coilmount1.src = "img-coilmount1.gif";
   img_bondglue = new Image();	   	   img_bondglue.src = "img-bondglue.gif";
   img_balsa_coilstick1 = new Image();	   img_balsa_coilstick1.src = "img-balsa-coilstick1.gif";
   img_coil1 = new Image();		   img_coil1.src = "img-coil1.gif";

   show_cell("cell3");
}//--------End this Function---------------------------------

function single_construction_cell(cell_id)
{
   clear_cells(20);
   //-----Display the desired cell
   document.getElementById("cell3").style.display = "inline";
   document.getElementById(cell_id).style.display = "inline";
}//--------End this Function--------------------------------------------------


function load_multiple()
{
   clear_tableside();
   clear_cells(20);
   ani_cap2 = new Image();			   ani_cap2.src = "ani-cap2.gif";
   ani_proj_spin1 = new Image();		                     ani_proj_spin1.src = "ani-proj-spin1.gif";
   ani_scr1000v = new Image();			   ani_scr1000v.src = "ani-scr1000v.gif";	

   img_blank = new Image();			   img_blank.src = "img-blank.gif";
   img_cap3 = new Image();			   img_cap3.src = "img-cap3.gif";
   img_projectile3 = new Image();		   img_projectile3.src = "img-projectile3.gif";
   img_projectile4 = new Image();		   img_projectile4.src = "img-projectile4.gif";
   img_projectile10 = new Image();		   img_projectile10.src = "img-projectile10.gif";
   img_6scr800v1 = new Image();			   img_6scr800v1.src = "img-6scr800v1.gif";
   img_coil3 = new Image();			   img_coil3.src = "img-coil3.gif";
   img_blank = new Image();
   img_blank.src = "img-blank.gif";

   show_cell("cell1");
   show_cell("cell20");
}//--------End this Function---------------------------------

function load_multiple_news()
{
   clear_tableside();
   clear_cells(20);

   ani_7daycgcannon1 = new Image();                             ani_7daycgcannon1.src = "ani-7daycgcannon1.gif";
   ani_scr800v = new Image();                                          ani_scr800v.src = "ani-scr800v.gif";
   ani_scr1000v = new Image();                                        ani_scr1000v.src = "ani-scr1000v.gif";

   img_blank = new Image();
   img_blank.src = "img-blank.gif";
   img_mount_coildiodescr1 = new Image();               img_mount_coildiodescr1.src = "img-mount-coildiodescr1.gif";		
   img_mount_coildiodescr2 = new Image();               img_mount_coildiodescr2.src = "img-mount-coildiodescr2.gif";		
   img_schematic_7daycgcannon_p1 = new Image();   
   img_schematic_7daycgcannon_p1.src = "img-schematic-7-day-cg-cannon-p1.gif";
   img_schematic_7daycgcannon_p2 = new Image();   
   img_schematic_7daycgcannon_p2.src = "img-schematic-7-day-cg-cannon-p2.gif";
   img_schematic_7daycgcannon_p3 = new Image();   
   img_schematic_7daycgcannon_p3.src = "img-schematic-7-day-cg-cannon-p3.gif";
   img_packagingtape1 = new Image();	   	img_packagingtape1.src = "img-packagingtape1.gif";

   show_cell("cell1");
   show_cell("cell8");
   show_side(ani_7daycgcannon1,"tableside4")
}//--------End this Function---------------------------------

function load_multiple_resultsvideo()
{
   clear_tableside();
   clear_cells(20);

   ani_cap2 = new Image();			   ani_cap2.src = "ani-cap2.gif";
   ani_proj_spin1 = new Image();		                     ani_proj_spin1.src = "ani-proj-spin1.gif";
   ani_scr800v = new Image();                                          ani_scr800v.src = "ani-scr800v.gif";
   ani_scr1000v = new Image();			   ani_scr1000v.src = "ani-scr1000v.gif";	
   ani_coil10 = new Image();			   ani_coil10.src = "ani-coil10.gif";

   img_blank = new Image();			   img_blank.src = "img-blank.gif";
   img_cap3 = new Image();			   img_cap3.src = "img-cap3.gif";
   img_projectile3 = new Image();		   img_projectile3.src = "img-projectile3.gif";
   img_projectile4 = new Image();		   img_projectile4.src = "img-projectile4.gif";
   img_projectile10 = new Image();		   img_projectile10.src = "img-projectile10.gif";
   img_6scr800v1 = new Image();			   img_6scr800v1.src = "img-6scr800v1.gif";
   img_coil3 = new Image();			   img_coil3.src = "img-coil3.gif";
 

   show_cell("cell2");
}//--------End this Function---------------------------------

function load_multiple_construction()
{
   clear_tableside();
   clear_cells(20);

   ani_barrelesscoils1 = new Image();	   ani_barrelesscoils1.src = "ani-barrelesscoils1.gif";
   ani_capconnection1 = new Image();	   ani_capconnection1.src = "ani-capconnection1.gif";
   ani_coil2 = new Image();		   ani_coil2.src = "ani-coil2.gif";
   ani_contactdetector1 = new Image();	   ani_contactdetector1.src = "ani-contactdetector1.gif";
   ani_chargeregulator1 = new Image();	   ani_chargeregulator1.src = "ani-chargeregulator1.gif";
   ani_photodetector1 = new Image();	   ani_photodetector1.src = "ani-photodetector1.gif";
   ani_balsadetector1 = new Image();	   ani_balsadetector1.src = "ani-balsadetector1.gif";
   ani_diode1 = new Image();		   ani_diode1.src = "ani-diode1.gif";
   ani_parallelcharging1 = new Image();	   ani_parallelcharging1.src = "ani-parallelcharging1.gif"
   ani_targetmount1 = new Image();	   ani_targetmount1.src = "ani-targetmount1.gif";
   ani_tripler1 = new Image();		   ani_tripler1.src = "ani-tripler1.gif"
   ani_diodeboom1 = new Image();	   ani_diodeboom1.src = "ani-diodeboom1.gif";
   ani_scrcreate = new Image();		   ani_scrcreate.src = "ani-scr-create.gif";
   ani_detection3 = new Image();                      ani_detection3.src = "ani-detection3.gif";
   ani_detection4 = new Image();                      ani_detection4.src = "ani-detection4.gif";

   img_blank = new Image();		   img_blank.src = "img-blank.gif";
   img_pentupler1 = new Image();	                     img_pentupler1.src = "img-pentupler1.gif"
   img_30a_terminal1 = new Image();	   img_30a_terminal1.src = "img-30a-terminal1.gif";
   img_coilmount1 = new Image();	   img_coilmount1.src = "img-coilmount1.gif";
   img_bondglue = new Image();		   img_bondglue.src = "img-bondglue.gif";
   img_balsa_coilstick1 = new Image();	   img_balsa_coilstick1.src = "img-balsa-coilstick1.gif";
   img_coil3 = new Image();		   img_coil3.src = "img-coil3.gif";
   img_electricalcontact = new Image();           img_electricalcontact.src = "img-electricalcontact.gif";


   show_cell("cell3");
}//--------End this Function---------------------------------

function project_cell(cell_id)
{
   clear_cells(20);
   //-----Display the desired cell   
   document.getElementById(cell_id).style.display = "inline";
}//--------End this Function--------------------------------------------------

function barriers_cell(cell_id)
{
   clear_cells(20);
   //-----Display the desired cell
  document.getElementById("cell1").style.display = "inline";   
   document.getElementById(cell_id).style.display = "inline";
}//--------End this Function--------------------------------------------------


function news_cell(cell_id)
{
   clear_cells(20);
   //-----Display the desired cell
   document.getElementById("cell1").style.display = "inline";
   document.getElementById(cell_id).style.display = "inline";
}//--------End this Function--------------------------------------------------

function multiple_construction_cell(cell_id)
{
   clear_cells(20);
   //-----Display the desired cell
   document.getElementById("cell3").style.display = "inline";
   document.getElementById(cell_id).style.display = "inline";
}//--------End this Function--------------------------------------------------


function load_portable_news()
{
   clear_tableside();
   clear_cells(20);

   ani_portable2stage188j = new Image();      ani_portable2stage188j.src = "ani-portable2stage188J.gif";
   ani_375j_pcblayout123 = new Image();	   ani_375j_pcblayout123.src = "ani-375j-pcblayout123.gif";
   ani_375j_cg1 = new Image();		   ani_375j_cg1.src = "ani-375j-cg1.gif";
   ani_acg375_dissection = new Image();      ani_acg375_dissection.src = "ani-acg375-dissection.gif";
   ani_cg760_fab1 = new Image();  	   ani_cg760_fab1.src = "ani-cg760-fab1.gif";
   ani_cg760_fab2 = new Image();	   ani_cg760_fab2.src = "ani-cg760-fab2.gif";
   ani_cg760_fab3 = new Image();	   ani_cg760_fab3.src = "ani-cg760-fab3.gif";
   ani_cg760_pcb1 = new Image();	   ani_cg760_pcb1.src = "ani-cg760-pcb1.gif";
   ani_pic16f628 = new Image();	   ani_pic16f628.src = "ani-pic16f628.gif";	
   ani_acg130_1 = new Image();	                     ani_acg130_1.src = "ani-acg130-1.gif";
   ani_acg130_foundation1 = new Image();   ani_acg130_foundation1.src = "ani-acg130-foundation1.gif";
   ani_acg130_handle1 = new Image();	    ani_acg130_handle1.src = "ani-acg130-handle1.gif";
   ani_acg130_breech1 = new Image();	    ani_acg130_breech1.src = "ani-acg130-breech1.gif";
   ani_acg130_breech2 = new Image();	    ani_acg130_breech2.src = "ani-acg130-breech2.gif";
   ani_acg130_trigger1 = new Image();	    ani_acg130_trigger1.src = "ani-acg130-trigger1.gif";
   ani_acg300_wip1= new Image();	    ani_acg300_wip1.src= "ani-acg300-wip1.gif"
   ani_acg300_wip4= new Image();	    ani_acg300_wip4.src= "ani-acg300-wip4.gif"
   ani_acg300_wip5= new Image();	    ani_acg300_wip5.src= "ani-acg300-wip5.gif"


   img_blank = new Image();		   img_blank.src = "img-blank.gif";
   img_acg375_dissection1 = new Image();   img_acg375_dissection1.src = "img-acg375-dissection1.gif";
   img_acg375_dissection2 = new Image();   img_acg375_dissection2.src = "img-acg375-dissection2.gif";
   img_acg375_dissection3 = new Image();   img_acg375_dissection3.src = "img-acg375-dissection3.gif";
   img_acg375_dissection4 = new Image();   img_acg375_dissection4.src = "img-acg375-dissection4.gif";
   img_acg375_dissection5 = new Image();   img_acg375_dissection5.src = "img-acg375-dissection5.gif";
   img_375j_pcblayout1 = new Image();	   img_375j_pcblayout1.src = "img-375j-pcblayout1.gif";
   img_375j_pcblayout2 = new Image();	   img_375j_pcblayout2.src = "img-375j-pcblayout2.gif";
   img_375j_pcblayout3 = new Image();	   img_375j_pcblayout3.src = "img-375j-pcblayout3.gif";
   img_cg760_present = new Image();	    img_cg760_present.src = "img-cg760-present.gif";
   img_acg130j_development1 = new Image();   img_acg130j_development1.src = "img-acg130j-development-1.gif";
   img_acg130j_development2 = new Image();   img_acg130j_development2.src = "img-acg130j-development-2.gif";
   img_acg130j_development3 = new Image();   img_acg130j_development3.src = "img-acg130j-development-3.gif";
   img_acg130j_development4 = new Image();   img_acg130j_development4.src = "img-acg130j-development-4.gif";
   img_acg130j_development5 = new Image();   img_acg130j_development5.src = "img-acg130j-development-5.gif";
   img_acg130j_development6 = new Image();   img_acg130j_development6.src = "img-acg130j-development-6.gif";
   img_acg130j_development7 = new Image();   img_acg130j_development7.src = "img-acg130j-development-7.gif";
   img_acg130j_development8 = new Image();   img_acg130j_development8.src = "img-acg130j-development-8.gif";
   img_acg130j_development9 = new Image();   img_acg130j_development9.src = "img-acg130j-development-9.gif";
   img_acg130j_pcb1 = new Image();   	     img_acg130j_pcb1.src = "img-acg130j-pcb1.jpg";
   img_acg130j_pcb2 = new Image();   	     img_acg130j_pcb2.src = "img-acg130j-pcb2.jpg";
   img_acg130j_pcb3 = new Image();   	     img_acg130j_pcb3.src = "img-acg130j-pcb3.jpg";
   img_acg130j_pcb4 = new Image();   	     img_acg130j_pcb4.src = "img-acg130j-pcb4.jpg";
   img_acg130j_pcb5 = new Image();   	     img_acg130j_pcb5.src = "img-acg130j-pcb5.jpg";
   img_acg300j_controller = new Image();   	     img_acg300j_controller.src = "img-acg300j-controller.gif";
   img_acg85_dev1 = new Image();	     img_acg85_dev1.src = "img-acg85-dev1.gif";
   img_acg85_pcb1 = new Image();	     img_acg85_pcb1.src = "img-acg85-pcb1.jpg";
   img_acg85_preliminary1 = new Image();     img_acg85_preliminary1.src = "img-acg85-preliminary1.jpg"

   show_cell("cell1");
   show_cell("cell7");
   show_side(img_acg85_preliminary1, "tableside5");
}//--------End this Function---------------------------------

function load_portable_resultsvideo()
{
   clear_tableside();
   clear_cells(20);

   ani_cap3 = new Image();		   ani_cap3.src = "ani-cap3.gif";
   ani_coil4 = new Image();		   ani_coil4.src = "ani-coil4.gif";
   ani_cg2_4coilassy1 = new Image();	   ani_cg2_4coilassy1.src = "ani-cg2-4coilassy1.gif";
   ani_4scrbanks_375j = new Image();	   ani_4scrbanks_375j.src = "ani-4scrbanks-375j.gif";
   ani_coil6 = new Image();		   ani_coil6.src = "ani-coil6.gif";
   ani_coil7 = new Image();		   ani_coil7.src = "ani-coil7.gif";
   ani_5stage = new Image();		   ani_5stage.src = "ani-5stage.gif";
   ani_6stage = new Image();		   ani_6stage.src = "ani-6stage.gif";
   ani_7stage = new Image();		   ani_7stage.src = "ani-7stage.gif";
   ani_scrcreate = new Image();		   ani_scrcreate.src = "ani-scr-create.gif";

   img_blank = new Image();		   img_blank.src = "img-blank.gif";
   img_projectile5 = new Image();	   img_projectile5.src = "img-projectile5.gif";
   img_coil3 = new Image();		   img_coil3.src = "img-coil1.gif";
   img_cap4 = new Image();		   img_cap4.src = "img-cap4.gif";
   img_8stages = new Image();		   img_8stages.src = "img-8stages.gif";	
   img_projectile6_3 = new Image();	   img_projectile6_3.src = "img-projectile6-3.gif";

   show_cell("cell4");
}//--------End this Function---------------------------------

function load_portable_construction()
{
   clear_tableside();
   clear_cells(20);

   ani_barrelesscoils1 = new Image();	   ani_barrelesscoils1.src = "ani-barrelesscoils1.gif";
   ani_capconnection1 = new Image();	   ani_capconnection1.src = "ani-capconnection1.gif";
   ani_cap3 = new Image();		   ani_cap3.src = "ani-cap3.gif";
   ani_coil4 = new Image();		   ani_coil4.src = "ani-coil4.gif";
   ani_contactdetector1 = new Image();	   ani_contactdetector1.src = "ani-contactdetector1.gif";
   ani_24vbattery1 = new Image();	   ani_24vbattery1.src = "ani-24vbattery1.gif";
   ani_parallelcharging1 = new Image();	   ani_parallelcharging1.src = "ani-parallelcharging1.gif"
   ani_portable2stage188J = new Image();     ani_portable2stage188J.src = "ani-portable2stage188J.gif";
   ani_targetmount1 = new Image();	   ani_targetmount1.src = "ani-targetmount1.gif";
   ani_tripler1 = new Image();		   ani_tripler1.src = "ani-tripler1.gif"
   ani_diodeboom1 = new Image();	   ani_diodeboom1.src = "ani-diodeboom1.gif";
   ani_fabricate_projectile5 = new Image();   ani_fabricate_projectile5.src = "ani-fabricate-projectile5.gif";
   ani_375j_caps = new Image();	   ani_375j_caps.src = "ani-375j-caps.gif";
   ani_photodetector2 = new Image();	   ani_photodetector2.src = "ani-photodetector2.gif";
   ani_scrcreate = new Image();		   ani_scrcreate.src = "ani-scr-create.gif";
   ani_acgbooster3 = new Image();                 ani_acgbooster3.src = "ani-acgbooster3.gif"

   img_blank = new Image();		   img_blank.src = "img-blank.gif";
   img_pentupler1 = new Image();	   img_pentupler1.src = "img-pentupler1.gif"
   img_30a_terminal1 = new Image();	   img_30a_terminal1.src = "img-30a-terminal1.gif";
   img_bondglue = new Image();		   img_bondglue.src = "img-bondglue.gif";
   img_portable2stage1 = new Image();	   img_portable2stage1.src = "img-portable2stage1.gif";
   img_diode1000v30a = new Image();	   img_diode1000v30a.src = "img-diode1000v30a.gif";
   show_cell("cell3");
}//--------End this Function---------------------------------

function load_rapidfire_news()
{
   clear_tableside();
   clear_cells(20);

   ani_cg760_pcb1 = new Image();	   ani_cg760_pcb1.src = "ani-cg760-pcb1.gif";
   img_blank = new Image();		   img_blank.src = "img-blank.gif";

   show_cell("cell1");
   show_cell("cell2");
   show_side(img_blank, "tableside20");
}//--------End this Function---------------------------------

function load_rapidfire_resultsvideo()
{
   clear_tableside();
   clear_cells(20);

   ani_scrcreate = new Image();		   ani_scrcreate.src = "ani-scr-create.gif";
   ani_coil4 = new Image();		   ani_coil4.src="ani-coil4.gif";

   img_blank = new Image();		   img_blank.src = "img-blank.gif";
   img_projectile5 = new Image();	   img_projectile5.src = "img-projectile5.gif";
   img_12vlawnbattery1 = new Image();	   img_12vlawnbattery1.src = "img-12vlawnbattery1.gif";

   show_cell("cell1");
}//--------End this Function---------------------------------

function load_rapidfire_construction()
{
   clear_tableside();
   clear_cells(20);

   ani_cap2 = new Image();		   ani_cap2.src = "ani-cap2.gif";
   ani_injector1 = new Image();		   ani_injector1.src = "ani-injector1.gif";
   ani_spring1 = new Image();		   ani_spring1.src = "ani-spring1.gif";
   ani_magazine1 = new Image();	   ani_magazine1.src = "ani-magazine1.gif";
   ani_magazine2 = new Image();	   ani_magazine2.src = "ani-magazine2.gif";
   ani_magazine3 = new Image();	   ani_magazine3.src = "ani-magazine3.gif";
   ani_magazine4 = new Image();	   ani_magazine4.src = "ani-magazine4.gif";

   img_blank = new Image();		   img_blank.src = "img-blank.gif";
   img_12vlawnbattery1 = new Image();	   img_12vlawnbattery1.src = "img-12vlawnbattery1.gif";
   img_single_injector2 = new Image();	   img_single_injector2.src = "img-single-injector2.gif";
   img_dual_magazine1 = new Image();	   img_dual_magazine1.src = "img-dual-magazine1.gif";

   show_cell("cell3");
}//--------End this Function---------------------------------


function load_measurements()
{
   clear_tableside();
   clear_cells(10);
   ani_velopcb1 = new Image();		   ani_velopcb1.src = "ani-velopcb1.gif";
   ani_chrono1 = new Image();		   ani_chrono1.src = "ani-chrono1.gif";
   ani_photodetector1 = new Image();	   ani_photodetector1.src = "ani-photodetector1.gif";   

   img_electricalcontact = new Image();   img_electricalcontact.src = "img-electricalcontact.gif";
   img_diagram_detectiondelay1 = new Image();
   img_diagram_detectiondelay1.src = "img-diagram-detectiondelay1.gif";

   show_cell("cell1");
}//--------End this Function---------------------------------

function multi_construction_cell(cell_id)
{
   //-----Clear all cells
   for (i = 1; i <=20; i++)
      {
      cellX = "cell" + i;
      document.getElementById(cellX).style.display = "none";
      }
      document.getElementById("cell3").style.display = "inline";
      document.getElementById(cell_id).style.display = "inline";
}//--------End this Function--------------------------------------------------

function clear_tableside()
{
   table_visible();
   cell_range = 20;   //-----Clear all cells
   for (i = 1; i <=cell_range; i++)
      {
      cellX = "tableside" + i;
      document.getElementById(cellX).style.display = "none";
      }
}//--------End of this Function-----------------------

function clear_cell(cell_id)
{//-----Clear individual cell------------------
   document.getElementById(cell_id).style.display="none";
}//--------End of Function--------------------

function clear_cells(cell_range)
{
   for (i = 1; i <=cell_range; i++)
      {
      cellX = "cell" + i;
      document.getElementById(cellX).style.display="none";
      }
}//--------End of Function-------------------

function show_cell(cell_id)
{
   document.getElementById(cell_id).style.display="inline";
}//--------End of Function--------------------


function table_visible()
{  //The javascript sets Tables to "hidden" during page loading.
   //This funtion sets Tables to "visible" after the page is loaded.
if (document.all) {ref = document.styleSheets[0].rules}
if (navigator.appName == "Netscape") {ref = document.styleSheets[0].cssRules}  
 
   ref[3].style.visibility = "visible";
   ref[4].style.visibility = "visible";
}//-------End of Function---------------------


function show_side(image_id, cell_id)
{
   img_blank = new Image();
   img_blank.src = "img-blank.gif";

   clear_tableside()
   //----------Swap image in view
   swaper = document.getElementById("blank");
   swaper.src = image_id.src;
   img_left = 20;
   img_top = 250;
   //----Adjust for screen resolution.  Reference to native 1280x1024.

   imgRatio = image_id.width / image_id.height;
   if (image_id.width - image_id.height <= -1){
      swaper.style.left = img_left * (screen.width / 1280);
      swaper.style.top = img_top * (screen.height / 1024);

      swaper.style.width = image_id.width * (screen.width / 1280);
      swaper.style.height = parseFloat(swaper.style.width) * parseFloat(imgRatio);

      }


   if (image_id.width - image_id.height >= 0){
      swaper.style.left = img_left * (screen.width / 1280);
      swaper.style.top = img_top * (screen.height / 1024);

      swaper.style.height = image_id.height * (screen.height / 1024);      
      swaper.style.width = parseFloat(swaper.style.height) * parseFloat(imgRatio);
      }



    //-----Position cell in view directly under image.
   document.getElementById(cell_id).style.display = "inline";
}//~~~~~~~~~~~~~End Of Function~~~~~~~~~~~~~~~~~~~~~~~~~




