//------------------------------- // X - Y Translation Function //------------------------------- function Translate_Article_XY(){ 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_Art == 1){ document.layers['Scroll_Imgs_800'].document.layers['img6'].document.layers['article_whta_800'].moveTo(xtr_coorda,ytr_coord); document.layers['Scroll_Imgs_800'].document.layers['img6'].document.layers['article_whtb_800'].moveTo(xtr_coord,ytr_coord); } if(Flag_Slim == 1){ if(xtr_coord <= 380 && xtr_coord >= 370){ Show_Kubrick(); } if(xtr_coord <= 350 && xtr_coord >= 340){ Show_Pakula(); } if(xtr_coord <= 320 && xtr_coord >= 310){ Show_Pickens(); } if(xtr_coord <= 100 && xtr_coord >= 90){ setTimeout('Show_Black_Layer()', 500); } document.layers['Scroll_Imgs_800'].layers['img6'].layers['slim_pickens'].moveTo(xtr_coord,ytr_coord); } //end if Flag_Slim = 1 if(Flag_Swans == 1 || Flag_Swanso == 1){ document.layers['swans'].moveTo(xtr_coord,ytr_coord); } if(Flag_Mansue == 1 || Flag_Mansueo == 1){ document.layers['mansue'].moveTo(xtr_coord,ytr_coord); } itr_transxy = itr_transxy + 1; setTimeout('Translate_Article_XY()',dt_xytr); } else{ if(Flag_Art==1){ Flag_Art=0; //Slide Slim Pickesn Layer setTimeout('Slide_Slim()', 3000); } if(Flag_Slim == 1){ Flag_Slim = 0; setTimeout('Scroll_Imgs()', 3000); } if(Flag_Mansue ==1){ Flag_Mansue = 0; setTimeout('Fly_In_Swans()', 3000); } if(Flag_Swans == 1){ Flag_Swans = 0; // setTimeout('Intro_Seq()',2000); } if(Flag_Swanso == 1){ Flag_Swanso = 0; setTimeout('Fly_Out_Mansue()',2000); } if(Flag_Mansueo == 1){ Flag_Mansueo = 0; // setTimeout('Change_Url()', 2000); { } } }
Make your own free website on Tripod.com