home *** CD-ROM | disk | FTP | other *** search
- var JS_PATH = "http://www.maxtor.com/en/scripts/thing/";
- var USE_THING_THING = true;
- var USE_THING_FLIP = true;
- window.hasScripts = true;
-
- /********************************************************************************
-
- use files
-
- ********************************************************************************/
- function use( what ){
- what = what.toLowerCase();
- if( ! usedFiles[what] )
- document.write( '<script language="javascript" src="' + JS_PATH + what + '.js"></script>\n' );
-
- usedFiles[ what ] = true;
- }
- var usedFiles = new Array();
- use( "thing.browser" );
- if( USE_THING_THING ) {use( "thing.point" ); use( "thing.thing" );}
- if( USE_THING_FLIP ) use( "thing.flip" );
-
-
- /********************************************************************************
-
- init
-
- ********************************************************************************/
- function init(fcn){
- if( ! window.initFunctions )
- window.initFunctions = new Array();
- if( typeof(fcn) == "string")
- window.initFunctions[ window.initFunctions.length ] = fcn;
- else
- for( var i=0; i<window.initFunctions.length; i++ ){
- eval(window.initFunctions[i]);
- }
- }
- onload=init;
-
- /********************************************************************************
-
- debug info
-
- ********************************************************************************/
- function puke( it, showValues, showEmpty ){
- var s = '';
- for( var i in it ){
- if( typeof(it[i]) != 'function' )
- if( showEmpty || it[i] ){
- s += '\n' + i + ' ';
- if( showValues ) s += it[i];
- }
- }
- alert(s);
- }
-
-
-