var preview_flag = 0; var slide_flag = 0; var Timer_Prev_0; var Timer_Prev_1; var Timer_Prev_2; var Timer_Prev_3; var Timer_Prev_4; var Timer_Prev_5; var Timer_Prev_6; var Timer_SS_1; var Timer_SS_2; var Timer_SS_3; var Timer_SS_4; var Timer_SS_5; var Timer_SS_6; var Timer_SS_7; var Timer_SS_8; var Timer_SS_9; var Timer_SS_10; var Timer_SS_11; var Timer_SS_12; var Timer_SS_13; var Timer_SS_14; var Timer_SS_15; var Timer_SS_16; var Timer_SS_17; var uncover_flag=0; //Initialize the Preview Slide Array Prev_Slide = new Array(8); Prev_Slide[0] = new Image(350,233); Prev_Slide[0].src = "clear_350x233.gif"; Prev_Slide[1] = new Image(350,233); Prev_Slide[1].src = "scobee_gray_350x233.gif"; Prev_Slide[2] = new Image(350,233); Prev_Slide[2].src = "smith_gray_350x233.gif"; Prev_Slide[3] = new Image(350,233); Prev_Slide[3].src = "resnick_gray_350x233.gif"; Prev_Slide[4] = new Image(350,233); Prev_Slide[4].src = "mcnair_gray_350x233.gif"; Prev_Slide[5] = new Image(350,233); Prev_Slide[5].src = "onizuka_gray_350x233.gif"; Prev_Slide[6] = new Image(350,233); Prev_Slide[6].src = "jarvis_gray_350x233.gif"; Prev_Slide[7] = new Image(350,233); Prev_Slide[7].src = "mcauliffe_gray_350x233.gif"; //Initialize Slide Show Array Tanker_Txt = new Array(); Tanker_Txt[0] = new Image(350,233); Tanker_Txt[0].src = "clear_350x233.gif"; Tanker_Txt[1] = new Image(350,233); Tanker_Txt[1].src = "51L_liftoff_350x233.jpg"; Tanker_Txt[2] = new Image(350,233); Tanker_Txt[2].src = "sevenkilledcrew_350x233.gif"; Tanker_Txt[3] = new Image(350,233); Tanker_Txt[3].src = "scobee_350x233.gif"; Tanker_Txt[4] = new Image(350,233); Tanker_Txt[4].src = "smith_350x233.gif"; Tanker_Txt[5] = new Image(350,233); Tanker_Txt[5].src = "resnick_350x233a.gif"; Tanker_Txt[6] = new Image(350,233); Tanker_Txt[6].src = "mcnair_350x233.gif"; Tanker_Txt[7] = new Image(350,233); Tanker_Txt[7].src = "onizuka_350x233.gif"; Tanker_Txt[7] = new Image(350,233); Tanker_Txt[7].src = "jarvis_350x233a.gif"; Tanker_Txt[8] = new Image(350,233); Tanker_Txt[8].src = "mcauliffe_350x233aa.gif"; Tanker_Txt[9] = new Image(350,233); Tanker_Txt[9].src = "51l_crew_350x233.jpg"; Tanker_Txt[10] = new Image(350,233); Tanker_Txt[10].src = "51L_nyt_311x250.jpg"; Tanker_Txt[11] = new Image(350,233); Tanker_Txt[11].src = "leakyorings_350x233.gif"; Tanker_Txt[12] = new Image(350,233); Tanker_Txt[12].src = "plugged_350x233.gif"; Tanker_Txt[13] = new Image(350,233); Tanker_Txt[13].src = "51L_Explsn_Txt350x233.gif"; Tanker_Txt[14] = new Image(350,233); Tanker_Txt[14].src = "51-L_explos_350x233.jpg"; Tanker_Txt[15] = new Image(350,233); Tanker_Txt[15].src = "challsystem_350x233.gif"; Tanker_Txt[16] = new Image(350,233); Tanker_Txt[16].src = "aliensyst_350x233.gif"; //Initialize Light Array Light = new Array(); Light[0] = new Image(13,13); Light[0].src = "red_blinking.gif"; Light[1] = new Image(13,13); Light[1].src = "green_blinking.gif" //Preview Slide Functions //Preview Gray Crew Text Slide Functions function Run_Preview(){ if(preview_flag == 0){ //Start the Preview Cycle preview_flag = 1; Timer_Prev=setTimeout("Preview_Slide_0()", 10000) } else{ //Stop the Preview Cycle preview_flag = 0; clear_prev_clock(); timer_stop_prev=setTimeout("Preview_Slide_0()",100) } } function Preview_Slide_0(){ //Show the Blinking Red Light document.tankerelements.document.images["blinking_lit"].src = Light[0].src; document.tankerelements.document.images["tanker_img"].src = Prev_Slide[0].src; Timer_Prev_0=setTimeout("Preview_Slide_1()",200); } function Preview_Slide_1(){ if(preview_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Prev_Slide[1].src; Timer_Prev_1=setTimeout("Preview_Slide_2()",1500); } } function Preview_Slide_2(){ if(preview_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Prev_Slide[2].src; Timer_Prev_2=setTimeout("Preview_Slide_3()",1500); } } function Preview_Slide_3(){ if(preview_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Prev_Slide[3].src; Timer_Prev_3=setTimeout("Preview_Slide_4()",800); } } function Preview_Slide_4(){ if(preview_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Prev_Slide[4].src; Timer_Prev_4=setTimeout("Preview_Slide_5()",800); } } function Preview_Slide_5(){ if(preview_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Prev_Slide[5].src; Timer_Prev_5=setTimeout("Preview_Slide_6()",800); } } function Preview_Slide_6(){ if(preview_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Prev_Slide[6].src; Timer_Prev_6=setTimeout("Preview_Slide_7()",800); } } function Preview_Slide_7(){ timer_prev_number=7; if(preview_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Prev_Slide[7].src; Timer_Prev_7=setTimeout("Preview_Slide_1()",800); } } function clear_prev_clock(){ document.tankerelements.document.images["blinking_lit"].src = Light[0].src; //Clear the Clocks clearTimeout(Timer_Prev_0); clearTimeout(Timer_Prev_1); clearTimeout(Timer_Prev_2); clearTimeout(Timer_Prev_3); clearTimeout(Timer_Prev_4); clearTimeout(Timer_Prev_5); clearTimeout(Timer_Prev_6); } //Slide-Show Functions function Slide_Show(){ //Stop the Preview Cycle clear_prev_clock(); preview_flag = 0; if(slide_flag == 0){ //Start the Slide Sequence slide_flag = 1; document.tankerelements.document.images["blinking_lit"].src = Light[1].src; Timer_Slide=setTimeout("Slide_1()",50) } else{ //Stop the Slide Sequnece slide_flag = 0; clear_slide_clock(); } } function Slide_0(){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[0].src; //Timer_SS_0=setTimeout("Slide_1()",100); } function Slide_1(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[1].src; Timer_SS_1=setTimeout("Slide_2()",2000); } } function Slide_2(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[2].src; Timer_SS_2=setTimeout("Slide_3()",3000); } } function Slide_3(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[3].src; Timer_SS_3=setTimeout("Slide_4()",1000); } } function Slide_4(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[4].src; Timer_SS_4=setTimeout("Slide_5()",1000); } } function Slide_5(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[5].src; Timer_SS_5=setTimeout("Slide_6()",1000); } } function Slide_6(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[6].src; Timer_SS_6=setTimeout("Slide_7()",800); } } function Slide_7(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[7].src; Timer_SS_7=setTimeout("Slide_8()",1000); } } function Slide_8(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[8].src; Timer_SS_8=setTimeout("Slide_9()",1000); } } //Shuttle Crew Photo function Slide_9(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[9].src; Timer_SS_9=setTimeout("Slide_10()",2000); } } function Slide_10(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[10].src; Timer_SS_10=setTimeout("Slide_11()",2000); } } function Slide_11(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[11].src; Timer_SS_11=setTimeout("Slide_12()",2000); } } function Slide_12(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[12].src; Timer_SS_12=setTimeout("Slide_13()",2000); } } function Slide_13(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[13].src; Timer_SS_13=setTimeout("Slide_14()",3000); } } function Slide_14(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[14].src; Timer_SS_14=setTimeout("Slide_15()",3000); } } function Slide_15(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[15].src; Timer_SS_15=setTimeout("Slide_16()",3000); } } function Slide_16(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[16].src; Timer_SS_16=setTimeout("Slide_17()",3000); } } function Slide_17(){ if(slide_flag == 1){ document.tankerelements.document.images["tanker_img"].src = Tanker_Txt[0].src; //alert("before changing the ligth back to red") document.tankerelements.document.images["blinking_lit"].src = Light[0].src; preview_flag = 0; Run_Preview() //Timer_SS_17=setTimeout("Run_Preview()",500); } } function clear_slide_clock(){ document.tankerelements.document.images["blinking_lit"].src = Light[0].src; //Clear the Slide Clocks clearTimeout(Timer_SS_1);clearTimeout(Timer_SS_2); clearTimeout(Timer_SS_3);clearTimeout(Timer_SS_4); clearTimeout(Timer_SS_5);clearTimeout(Timer_SS_6); clearTimeout(Timer_SS_7);clearTimeout(Timer_SS_8); clearTimeout(Timer_SS_9);clearTimeout(Timer_SS_10); clearTimeout(Timer_SS_11);clearTimeout(Timer_SS_12); clearTimeout(Timer_SS_13);clearTimeout(Timer_SS_14); clearTimeout(Timer_SS_15);clearTimeout(Timer_SS_16); clearTimeout(Timer_SS_17); slide_flag=0; Timer_Reset=setTimeout("Slide_Show()", 100); }
Make your own free website on Tripod.com