\n'); } // script voor de onderste swf !!! function fp2_DoFSCommand(command, args) { var flashObj = InternetExplorer ? fp2 : document.fp2; if (command == "close"){ BB_closeApp(); } if (command == "fade_in"){ BB_fadeIn(); } if (command == "fade_out"){ BB_fadeOut(); } if (command == "harder"){ BB_harderVolume(); } if (command == "mute"){ BB_mute(); } if (command == "pause"){ BB_pauseMovie(); } if (command == "play"){ BB_playMovie(); } if (command == "play_title"){ BB_playMovieTitle(args); } if (command == "replay"){ BB_rePlayMovie(); } if (command == "set_volume"){ BB_setVolume(args); } if (command == "stop"){ BB_stopMovie(); } if (command == "zachter"){ BB_zachterVolume(); } } // Hook for Internet Explorer if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1){ document.write(' \n'); } // ----- ----- ----- ----- ----- ----- BB FUNCTIES ----- alfabetische volgorde ----- ----- ----- ----- ----- function BB_bandwidthShow(){ waarde = "De bandbreedte= " + parseInt(mp1.Bandwidth / 1024) + " Kbps"; fp2.SetVariable("melding", waarde); timer=setTimeout("BB_bandwidthShow();",500); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_bufferWaarde(){ waarde = parseInt(mp1.BufferingProgress) + " % van het bufferen is voltooid"; fp2.SetVariable("melding", waarde); timer=setTimeout("BB_bufferWaarde();",500); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_checkScreen(){ // functie om de layer 'main' te centreren ..... // later gebruiken om nwe window te centreren !!!!!!! var foundWidth, foundHeight,newX, newY; var returnWaarde; foundWidth = screen.Width; foundHeight = screen.Height; newX = (foundWidth - 800) / 2; newY = (foundHeight - 600) / 2; eval("main.style.left = " + newX); eval("main.style.top = " + newY); // wachten tot de mediaplayer gereed is ??? returnWaarde = true; return returnWaarde; } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_closeApp(){ self.close(); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_fadeIn(){ timer=setTimeout("BB_fadeIn()",500); var vol=eval(mp1.Volume); vol=(vol/2); if(vol<-0.5){ eval(mp1.Volume=vol); } else{ eval(mp1.Volume=0); clearTimeout(timer); } } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_harderVolume(){ eval(mp1.Mute=false); var vol=eval(mp1.Volume); if (vol<=-250){ filmVol=(mp1.Volume=mp1.Volume+250); eval(filmVol); } } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_mute(){ if (eval(mp1.Mute==true)){ eval(mp1.Mute=false); } else{ eval(mp1.Mute=true); } } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_pauseMovie(){ if(mp1.PlayState==2){ mp1.Pause(); fp2.SetVariable("melding", "Klik op PLAY om de film af te spelen."); } } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_playMovie(){ if(mp1.PlayState==0 || mp1.PlayState==1){ mp1.Play(); } } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_playMovieTitle(title){ viaFlash = true fp2.SetVariable("melding", "Een ogenblik geduld a.u.b.."); mp1.SetCurrentEntry(title); //gegevens = mp1.GetCurrentEntry(); //gegevens = GetMediaParameter( 1, "Producer"); //alert(gegevens); // video op play zetten } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_rePlayMovie(){ if(mp1.PlayState==1 || mp1.PlayState==2){ mp1.CurrentPosition=0; } } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_setVolume(vol){ filmVol=(mp1.Volume=vol); eval(filmVol); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_showTime(){ min = parseInt(mp1.CurrentPosition/60); sec = parseInt(mp1.CurrentPosition - (min*60)); if(sec<10){ sec = "0" + sec; } tijd = min + " : " + sec fp1.SetVariable("tijd", tijd); timer=setTimeout("BB_showTime();",500); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_stopMovie(){ if(mp1.PlayState==2){ mp1.Stop(); mp1.CurrentPosition=0 fp2.SetVariable("melding", "Klik op PLAY om de film af te spelen."); } } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_waitUntilLoaded(){ // testen of swf's volledig geladen zijn !!! timer=setTimeout("BB_waitUntilLoaded()",500); if (fp1.PercentLoaded() == 100 && fp2.PercentLoaded() == 100){ clearTimeout(timer); } } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_waitUntilReady(){ // testen of de media-steam ready is !!! fp2.SetVariable("melding", mp1.BufferingProgress); if (mp1.BufferingProgress == 100){ clearTimeout(timer); } } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - function BB_zachterVolume(){ eval(mp1.Mute=false); var vol=eval(mp1.Volume); if (vol>=-9750){ filmVol=(mp1.Volume=mp1.Volume-250); eval(filmVol); } } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - //-->