var N_imgs = 10,L_imgs = 0,X_end,Timer_Scroll,x_cora; var x_corb,x_stack,flag_coll=0,flag_art=0,flag_makrop=0; var flag_makropa=0,flag_rent=0,flag_mcsherry=0,flag_mcsherrya=0; var flag_mcsherryb=0,flag_mars=0,dx = 10,dtscroll = 50; var Toggle = 0,screen_width = 800; var i_grn = 10,y_cor_cover=400,y_cor_cover_min=97,y_cor_cover_max=343; var flag_cycle = 0,flag_scroll = 0,flag_wtc = 0,Cycle_count; var ytr_cor=0, ywtr_cor=0, Ytr_max=140, ytr_corr=340, dydxtr; var Xtr1=0, Ytr1=0, Xtr2=-800, Ytr2=500; var xtr_coord, xtr_coorda, ytr_coord, ytr_cor_cover=400, itr_grn = 10; var itr_transxy = 0; var itrmax_transxy = 30; var Flag_Slim = 0, dt=100; var y_wtc_cover=0; slim_on = new Image();slim_on.src = "slim_bomb_200x240.jpg"; stanley_on = new Image();stanley_on.src = "kubrick_gray_200x240.jpg"; pakula_on = new Image();pakula_on.src = "pakula_200x240.jpg" Img_Scroll = new Array(); X_cor = new Array(); if(screen_width <= 800){ W_imgs = new Array(1111,375,308,380,367,612,553,550,376,325,530) } for(var i=1; i <= N_imgs; i++) { L_imgs = L_imgs + W_imgs[i]; X_cor[i] = L_imgs - W_imgs[i]; }; function Stop_scroll(){ clearTimeout(Timer_Scroll); } function Scroll_Imgs(){ X_end = L_imgs; Timer_Scroll=setInterval("New_Cords()",dtscroll); } function New_Cords(){ X_end = X_end - dx; for(var i=1; i <= N_imgs; ++i){ x_cora = X_cor[i] - dx; x_corb = X_cor[i] + W_imgs[i]; X_cor[i] = x_cora; x_cor_stack = x_cora + L_imgs - dx; if(x_corb < 0){ X_cor[i] = x_cor_stack; } if(flag_coll == 0){ if(X_cor[3] <= 80){ flag_coll = 1; Stop_scroll(); Timer_Scrollz=setTimeout('Scroll_Imgs()',5000); } } if(flag_art == 0){ if(X_cor[5] <= 80){ flag_art = 1; Stop_scroll(); Timer_Wipe=setTimeout('Clip_Article_Grn()', 4000); } } if(flag_makrop == 0){ if(X_cor[6] <= 105){ flag_makrop = 1; Stop_scroll(); Timer_Scrolla=setTimeout('Scroll_Imgs()',5000); } } if(flag_makropa == 0){ if(X_cor[7] <= 105){ flag_makropa = 1; Stop_scroll(); Timer_Scrollb=setTimeout('Scroll_Imgs()',5000); } } if(flag_rent == 0){ if(X_cor[8] <= 200){ flag_rent = 1; Stop_scroll(); Timer_Scrollc=setTimeout('Scroll_Imgs()',5000); } } if(flag_mcsherry == 0){ if(X_cor[9] <= 230){ flag_mcsherry = 1; Stop_scroll(); Timer_Scrolld=setTimeout('Scroll_Imgs()',2000); } } if(flag_mcsherrya == 0){ if(X_cor[10] <= 150){ flag_mcsherrya = 1; Stop_scroll(); Timer_Scrolle=setTimeout('Scroll_Imgs()',3000); document.swansa_800.clip.right += 10; dtscroll = 200; Timer_Clip_Closed=setTimeout('Un_Clip_Coverlayer()',6000); } } if(flag_mcsherryb == 0){ if(X_cor[10] <= -400){ flag_mcsherryb = 1; Stop_scroll(); } } if(i == N_imgs){ Move_imgs(); } } } function Move_imgs(){ document.layers["scroll_window_800"].layers["img1"].moveTo(X_cor[1],0); document.layers["scroll_window_800"].layers["img2"].moveTo(X_cor[2],0); document.layers["scroll_window_800"].layers["img3"].moveTo(X_cor[3],0); document.layers["scroll_window_800"].layers["img4"].moveTo(X_cor[4],0); document.layers["scroll_window_800"].layers["img5"].moveTo(X_cor[5],0); document.layers["scroll_window_800"].layers["img6"].moveTo(X_cor[6],0); document.layers["scroll_window_800"].layers["img7"].moveTo(X_cor[7],0); document.layers["scroll_window_800"].layers["img8"].moveTo(X_cor[8],0); document.layers["scroll_window_800"].layers["img9"].moveTo(X_cor[9],0); document.layers["scroll_window_800"].layers["img10"].moveTo(X_cor[10],0); } Count_Down = new Array(); Count_Down[0] = new Image(5,15); Count_Down[0].src = "countdown_grn_5x15.gif"; Count_Down[1] = new Image(5,15); Count_Down[1].src = "countdown_red_5x15.gif"; function Hide_Page_Cover(){ document.layers.page_cover_1024.visibility="hide" } function Show_Countdown(){ document.layers.countdown.visibility="show"; } function Hide_Countdown(){ document.layers.countdown.visibility = "hide"; document.layers.forg_1024.visibility = "hide"; document.layers.forg_800.visibility = "hide"; } function Show_Scroll_Imgs(){ document.layers.scroll_window_800.moveTo(x_scrl,y_scrl); document.layers.scroll_window_800.visibility="show"; } function Countdown_Seq(){ Green_Light(); } function Green_Light(){ if(i_grn >=1){ stringa = "document.layers['countdown'].document.images['cd_" ; stringb = "'].src = Count_Down[0].src" eval( stringa + i_grn + stringb ); i_grn = i_grn - 1; setTimeout('Green_Light()',800); } else{ setTimeout('Hide_Countdown()', 500); setTimeout('Show_Swans()', 700) setTimeout('Show_Scroll_Imgs()', 900); setTimeout('Swans_Clip()', 1000); } } function Show_Swans(){ document.layers.swansa_800.moveTo(x_sw,y_sw); document.layers.swansb_800.moveTo(x_sw,y_sw); document.layers.swans_bot.moveTo(x_sw,y_sw); document.layers.swansa_800.visibility="show"; document.layers.swansb_800.visibility="show"; document.layers.swans_bot.visibility="show"; } function Clip_Coverlayer(){ y_cor_cover = y_cor_cover - 3; if(flag_scroll == 0){ if( y_cor_cover <= 120){ flag_scroll = 1; Scroll_Imgs(); } } document.swansa_800.clip.right -= 3; document.swansb_800.clip.left += 3; if (y_cor_cover > y_cor_cover_min){ setTimeout('Clip_Coverlayer()', 50); } else{ if(flag_cycle != 1){ document.swansa_800.clip.right -= 10; } if(flag_cycle == 1){ Cycle_count = Cycle_count + 1; setTimeout('Un_Clip_Coverlayer()', 100) } } } function Un_Clip_Coverlayer(){ y_cor_cover = y_cor_cover + 1; if(flag_wtc == 0){ if( y_cor_cover >= 150){ flag_wtc = 1; Un_Clip_WTC(); } } document.swansa_800.clip.right += 1; document.swansb_800.clip.left -= 1; if (y_cor_cover <= y_cor_cover_max){ setTimeout('Un_Clip_Coverlayer()', 20); } else{ if(flag_cycle != 1){ setTimeout('Cycle_clip()',1000) } if(flag_cycle == 1){ if(Cycle_count < 5){ Cycle_count = Cycle_count + 1; setTimeout('Clip_Coverlayer()', 1000) } if(Cycle_count == 5){ Mansuedotcom_Tri(); } } } } function Swans_Clip(){ Show_Swans(); setTimeout('Show_Scroll_Imgs()',2000); setTimeout('Clip_Coverlayer()',3000); } function Un_Clip_Swans(){ document.swansa_800.clip.right += 10; y_cor_cover_max = 343; Un_Clip_Coverlayer(); } function Cycle_clip(){ flag_cycle = 1; Cycle_count = 0; y_cor_cover_min = 310; y_cor_cover_max=343; Clip_Coverlayer(); } function Show_Scroll_Imgs(){ document.layers.scroll_window_800.moveTo(x_scrl,y_scrl); document.layers.scroll_window_800.visibility="show"; } function Show_Page_Cover(){ if( swidth >= 900 ){ document.layers.forg_1024.visibility = "show"; } else{ document.layers.forg_800.visibility = "show"; } document.layers.countdown.moveTo(x_cd,y_cd); setTimeout("Show_Countdown()", 500); setTimeout("Countdown_Seq()", 1000); } function Introahtml(){ location = "http://alienxnation.tripod.com/introa.html"; } function Slim_Kubrick(){ layer1 = "scroll_window_800";layer2 = "img5"; layer3 = "slim";imgName = "slim_pick";imgObj = "stanley_on"; eval('document.'+layer1+'.document.'+layer2+'.document.'+layer3+'.document.images["'+imgName+'"].src = '+imgObj+'.src') } function Kubrick_Pakula(){ layer1 = "scroll_window_800"; layer2 = "img5"; layer3 = "slim"; imgName = "slim_pick"; imgObj = "pakula_on"; eval('document.'+layer1+'.document.'+layer2+'.document.'+layer3+'.document.images["'+imgName+'"].src = '+imgObj+'.src') } function Pakula_Slim(){ layer1 = "scroll_window_800";layer2 = "img5";layer3 = "slim"; imgName = "slim_pick";imgObj = "slim_on"; eval('document.'+layer1+'.document.'+layer2+'.document.'+layer3+'.document.images["'+imgName+'"].src = '+imgObj+'.src') } function Trans_Slim(){ Show_Slim(); Flag_Slim = 1;dt=50;Xtr1=430;Ytr1=0; Xtr2=-200; Ytr2=290;itr_transxy = 0;itrmax_transxy = 50; setTimeout('Translate_Article_XY()',1000); } function Show_Slim(){ document.layers['scroll_window_800'].document.layers['img5'].document.layers['slim'].visibility="show"; } function Show_Black_Layer(){ document.layers['scroll_window_800'].document.layers['img5'].document.layers['black_layer'].visibility="show"; } function Hide_Black_Layer(){ document.layers['scroll_window_800'].document.layers['img5'].document.layers['black_layer'].visibility="hide"; } function Clip_Article_Grn(){ ytr_cor = ytr_cor + 5; document.layers['scroll_window_800'].layers['img5'].layers['article_grn_800'].clip.top += 5; if (ytr_cor < 450){ setTimeout('Clip_Article_Grn()', 20); } else{ document.layers['scroll_window_800'].layers['img5'].layers['article_grn_800'].visibility="hide"; setTimeout('Translate_Article_XY()',1000); } } function Translate_Article_XY(){ document.layers['scroll_window_800'].document.layers['img5'].document.layers['scott_patton_800'].visibility="show"; if( itr_transxy <= itrmax_transxy) { if( (Xtr2 - Xtr1) != 0 ) { dydxtr = (Ytr2 - Ytr1)/(Xtr2 - Xtr1); xtr_coord = Math.round((itr_transxy/itrmax_transxy) * (Xtr2 - Xtr1) + Xtr1); xtr_coorda = Math.round(-(itr_transxy/itrmax_transxy) * (Xtr2 - Xtr1) + Xtr1); ytr_coord = Math.round(dydxtr * (xtr_coord - Xtr1) + Ytr1); } if( (Xtr2 - Xtr1) == 0 ) { xtr_coord = Xtr1; ytr_coord = (itr_transxy/itrmax_transxy) * (Ytr2 - Ytr1) + Ytr1; } if(Flag_Slim == 0){ document.layers['scroll_window_800'].document.layers['img5'].document.layers['article_whta_800'].moveTo(xtr_coord,ytr_coord); document.layers['scroll_window_800'].document.layers['img5'].document.layers['article_whtb_800'].moveTo(xtr_coorda,ytr_coord); } if(Flag_Slim == 1){ if(ytr_coord >= 50 && ytr_coord <= 60){ Slim_Kubrick(); } if(ytr_coord >= 80 && ytr_coord <= 90){ Kubrick_Pakula(); } if(ytr_coord >= 120 && ytr_coord <= 130){ Pakula_Slim(); } if(ytr_coord >= 290 && ytr_coord <= 300){ Show_Black_Layer(); } document.layers['scroll_window_800'].document.layers['img5'].document.layers['slim'].moveTo(xtr_coord,ytr_coord); } itr_transxy = itr_transxy + 1; setTimeout('Translate_Article_XY()',dt); } else{ if(Flag_Slim == 0){ setTimeout('Trans_Slim()', 1000); } if(Flag_Slim == 1){ setTimeout('Scroll_Imgs()', 6000); } } } function Un_Clip_WTC(){ y_wtc_cover = y_wtc_cover + 2; // document.wtc.clip.bottom += 2; document.layers['scroll_window_800'].document.layers['wtc'].clip.bottom +=2; if (y_wtc_cover <= 300){ setTimeout('Un_Clip_WTC()', 50); } } function Mansuedotcom_Tri(){ location = "http://mansuedotcom.tripod.com/index_a1.html"; }
Make your own free website on Tripod.com