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.blinking_lit.src = Light[0].src; document.tanker_img.src = Prev_Slide[0].src; Timer_Prev_0=setTimeout("Preview_Slide_1()",200); } function Preview_Slide_1(){ if(preview_flag == 1){ document.tanker_img.src = Prev_Slide[1].src; Timer_Prev_1=setTimeout("Preview_Slide_2()",1500); } } function Preview_Slide_2(){ if(preview_flag == 1){ document.tanker_img.src = Prev_Slide[2].src; Timer_Prev_2=setTimeout("Preview_Slide_3()",1500); } } function Preview_Slide_3(){ if(preview_flag == 1){ document.tanker_img.src = Prev_Slide[3].src; Timer_Prev_3=setTimeout("Preview_Slide_4()",800); } } function Preview_Slide_4(){ if(preview_flag == 1){ document.tanker_img.src = Prev_Slide[4].src; Timer_Prev_4=setTimeout("Preview_Slide_5()",800); } } function Preview_Slide_5(){ if(preview_flag == 1){ document.tanker_img.src = Prev_Slide[5].src; Timer_Prev_5=setTimeout("Preview_Slide_6()",800); } } function Preview_Slide_6(){ if(preview_flag == 1){ document.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.tanker_img.src = Prev_Slide[7].src; Timer_Prev_7=setTimeout("Preview_Slide_1()",800); } } function clear_prev_clock(){ document.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.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.tanker_img.src = Tanker_Txt[0].src; //Timer_SS_0=setTimeout("Slide_1()",100); } function Slide_1(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[1].src; Timer_SS_1=setTimeout("Slide_2()",2000); } } function Slide_2(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[2].src; Timer_SS_2=setTimeout("Slide_3()",3000); } } function Slide_3(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[3].src; Timer_SS_3=setTimeout("Slide_4()",1000); } } function Slide_4(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[4].src; Timer_SS_4=setTimeout("Slide_5()",1000); } } function Slide_5(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[5].src; Timer_SS_5=setTimeout("Slide_6()",1000); } } function Slide_6(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[6].src; Timer_SS_6=setTimeout("Slide_7()",800); } } function Slide_7(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[7].src; Timer_SS_7=setTimeout("Slide_8()",1000); } } function Slide_8(){ if(slide_flag == 1){ document.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.tanker_img.src = Tanker_Txt[9].src; Timer_SS_9=setTimeout("Slide_10()",2000); } } function Slide_10(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[10].src; Timer_SS_10=setTimeout("Slide_11()",2000); } } function Slide_11(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[11].src; Timer_SS_11=setTimeout("Slide_12()",2000); } } function Slide_12(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[12].src; Timer_SS_12=setTimeout("Slide_13()",2000); } } function Slide_13(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[13].src; Timer_SS_13=setTimeout("Slide_14()",3000); } } function Slide_14(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[14].src; Timer_SS_14=setTimeout("Slide_15()",3000); } } function Slide_15(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[15].src; Timer_SS_15=setTimeout("Slide_16()",3000); } } function Slide_16(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[16].src; Timer_SS_16=setTimeout("Slide_17()",3000); } } function Slide_17(){ if(slide_flag == 1){ document.tanker_img.src = Tanker_Txt[0].src; //alert("before changing the ligth back to red") document.blinking_lit.src = Light[0].src; preview_flag = 0; Run_Preview() //Timer_SS_17=setTimeout("Run_Preview()",500); } } function clear_slide_clock(){ document.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); } Roll= new Array() Roll[0] = new Image(100,20) Roll[0].src = "themovie_blktxt_100x20.gif" Roll[1] = new Image(100,20) Roll[1].src = "menu_blktxt_100x20.gif" Roll[2] = new Image(100,20) Roll[2].src = "imgscroll_blktxt_100x20.gif" Roll[3] = new Image(100,20) Roll[3].src = "feedback_blktxt_100x20.gif" Roll[4] = new Image(100,20) Roll[4].src = "bookstore_blktxt_100x20.gif" Roll[5] = new Image(100,20) Roll[5].src = "introa800_blktxt_100x20.gif" Roll[6] = new Image(100,20) Roll[6].src = "introa1024_blktxt_100x20.gif" Roll[7] = new Image(100,20) Roll[7].src = "themoviea_blue_100x20.gif" Roll[8] = new Image(100,20) Roll[8].src = "menua_blue_100x20.gif" Roll[9] = new Image(100,20) Roll[9].src = "imgscrolla_blue_100x20.gif" Roll[10] = new Image(100,20) Roll[10].src = "feedbacka_blue_100x20.gif" Roll[11] = new Image(100,20) Roll[11].src = "bookstorea_blue_100x20.gif" Roll[12] = new Image(100,20) Roll[12].src = "intro800a_blue_100x20.gif" Roll[13] = new Image(100,20) Roll[13].src = "intro1024a_blue_100x20.gif" Roll[14] = new Image(100,20) Roll[14].src = "site_map_black_100x200.gif" Roll[15] = new Image(40,20) Roll[15].src = "blank_0033FF_40x20.gif" Roll[16] = new Image(40,20) Roll[16].src = "blank_blk_40x20.gif" Roll[17] = new Image(100,20) Roll[17].src = "blank_blk_100x20.gif" function On_Themovie() { Un_Cover(); if(uncover_flag == 1){ Stop_Hidelink_Clock(); } uncover_flag=1; document.sm_themovie.src = Roll[7].src;} function Of_Themovie(){ Un_Cover(); Start_Hidelink_Clock();} function On_Menu() { Un_Cover(); if(uncover_flag == 1){ Stop_Hidelink_Clock(); } uncover_flag=1; document.sm_menu.src = Roll[8].src;} function Of_Menu(){ Un_Cover(); Start_Hidelink_Clock();} function On_Imgscroll(){ Un_Cover(); if(uncover_flag == 1){ Stop_Hidelink_Clock(); } uncover_flag=1; document.sm_imgscroll.src = Roll[9].src;} function Of_Imgscroll(){ Un_Cover(); Start_Hidelink_Clock();} function On_Feedback() { Un_Cover(); if(uncover_flag == 1){ Stop_Hidelink_Clock(); } uncover_flag=1; document.sm_feedback.src = Roll[10].src;} function Of_Feedback(){ Un_Cover(); Start_Hidelink_Clock();} function On_Bookstore() { Un_Cover(); if(uncover_flag == 1){ Stop_Hidelink_Clock(); } uncover_flag=1; document.sm_bookstore.src = Roll[11].src;} function Of_Bookstore(){ Un_Cover(); Start_Hidelink_Clock();} function On_Introa_800(){ Un_Cover(); if(uncover_flag == 1){ Stop_Hidelink_Clock(); } uncover_flag=1; document.sm_introa_800.src = Roll[12].src;} function Of_Introa_800(){ Un_Cover(); Start_Hidelink_Clock();} function On_Introa_1024() { Un_Cover(); if(uncover_flag == 1){ Stop_Hidelink_Clock(); } uncover_flag=1; document.sm_introa_1024.src = Roll[13].src;} function Of_Introa_1024(){ Un_Cover(); Start_Hidelink_Clock();} function Un_Cover(){ document.sm_themovie.src=Roll[0].src; document.sm_menu.src=Roll[1].src; document.sm_imgscroll.src=Roll[2].src; document.sm_feedback.src=Roll[3].src; document.sm_bookstore.src=Roll[4].src; document.sm_introa_800.src=Roll[5].src; document.sm_introa_1024.src=Roll[6].src; document.sm_blank1.src=Roll[15].src; document.sm_blank2.src=Roll[15].src; } function Hide_Links(){ document.sm_themovie.src=Roll[17].src; document.sm_menu.src=Roll[17].src; document.sm_imgscroll.src=Roll[17].src; document.sm_feedback.src=Roll[14].src; document.sm_bookstore.src=Roll[17].src; document.sm_introa_800.src=Roll[17].src; document.sm_introa_1024.src=Roll[17].src; document.sm_blank1.src=Roll[16].src; document.sm_blank2.src=Roll[16].src; } function Start_Hidelink_Clock(){ timer_hidelink=setTimeout("Hide_Links()",2000); } function Stop_Hidelink_Clock(){ clearTimeout(timer_hidelink);}
Make your own free website on Tripod.com