home *** CD-ROM | disk | FTP | other *** search
- /**
- * setup(): INIT FUNCTION: called when the page loads:
- */
- function setup(aceIsHigh)
- {
- if ( StartStage( document.game, document.scene ) )
- updateSettings( aceIsHigh == true );
- }
-
- function updateSettings( aceIsHigh )
- {
- aceIsHigh = aceIsHigh == true;
- var applet = document.game == null ? opener ? opener.document.game : null : document.game;
- if ( applet != null ) {
- applet.setAnimation ( GetCookie("animate") );
- applet.setTextures ( GetCookie("textures") );
- applet.setAudio ( GetCookie("audio") );
- applet.setCheat ( GetCookie("cheat") );
- applet.setSkill ( GetCookie("skill") );
- applet.setThink ( GetCookie("think") );
- applet.setFirst ( GetCookie("first") );
- applet.setSort ( GetCookie("sort"), aceIsHigh );
- }
- }
- function loadPage( url, name, options )
- {
- if ( !options )
- window.open( url, name );
- else
- window.open( url, name, options );
- }
-