functions


          url "javascript:
              function initialize() {
                  // Setup translation so (0,0) is in left/top corner
                  if (!absolute) transform.translation = new SFVec3f(-width/2,height/2,0);
                  countLevels();
                  layoutLevel(0,0);
  
                  var bgBox;
                  // Setup backgroundBox to be size widthXheight
                  if ( bgType == 0 ) {
                  bgBox = Browser.createVrmlFromString('  Shape { appearance Appearance { material Material { diffuseColor  0 0 0 specularColor 0 0 0 emissiveColor ' + bgColor + ' transparency ' +  bgTransparency + ' }  }  geometry Box { size ' + width + ' ' + height + ' 0.01 } } ');
                   } else if ( bgType == 1 ) {
                  bgBox = Browser.createVrmlFromString('  Shape { appearance Appearance { material Material { diffuseColor  0 0 0 specularColor 0 0 0 emissiveColor ' + bgColor + ' transparency ' +  bgTransparency + ' } texture ImageTexture { url \"' + xurl + '\" } } geometry Box { size ' + width + ' ' + height + ' 0.01 } } ');
                   } else if ( bgType == 2 ) {
                   bgBox = Browser.createVrmlFromString('  Shape { appearance Appearance { material Material { diffuseColor  0 0 0 specularColor 0 0 0 emissiveColor ' + bgColor + ' transparency ' +  bgTransparency + ' } texture DEF MOVIE MovieTexture { loop TRUE url \"' + xurl + '\" } } geometry Box { size ' + width + ' ' + height + ' 0.01 } } Sound { source USE MOVIE } ');
                   } else if ( bgType == 3 ) {
                   bgBox = Browser.createVrmlFromString(' slide-vcr { video \"' + xurl + '\"  size ' + width + ' ' + height + ' 0.1 }'); 
                  }
  
                    back = bgBox;
                    boxTransform.children = bgBox;
  //                boxTransform.scale = new SFVec3f(width,height,1);
              }