/* Start Setting and Storing of Initial ParameterSets */ /* Store Properties of Parameters */ function ParamArray() { this.setname = 0; this.hostfilename = 1; this.bgfile = 2; this.bgfile2 = 3; this.textbgfile = 4; this.textbgfile2 = 5; this.appletname = 6; this.appletpname = 7; this.appletpvalue = 8; this.fontsize = 9; this.tablefontsize = 10; this.intablefontsize = 11; this.titlefontsize = 12; this.bgcolor = 13; this.titlecolor = 14; this.tabletitlecolor = 15; this.intablefontcolor = 16; this.intablebgcolor = 17; this.fgcolor = 18; this.tablefontcolor = 19; this.fontcolor = 20; this.buttoncolor = 21; this.auxbgcolor = 22; this.auxfgcolor = 23; this.auxbuttoncolor = 24; this.imgtitlecolor = 25; this.imgfgcolor = 26; this.linkcolor = 27; this.vlinkcolor = 28; this.alinkcolor = 29; this.imglinkcolor = 30; this.imgvlinkcolor = 31; this.imgalinkcolor = 32; this.tablelinkcolor = 33; this.tablevlinkcolor = 34; this.tablealinkcolor = 35; this.horizimagewidth = 36; this.horizimagestyle = 37; this.vertimagewidth = 38; this.vertimagestyle = 39; this.titleoption = 40; this.textbodyoption = 41; this.audioraramoption = 42; this.timeoutvalue = 43; return true; } ParamIdentify = new ParamArray(); ParamBrowseStatus = new ParamArray(); ParamFormPosition = new ParamArray(); ParamQuickFormPosition = new ParamArray(); ParamFormName = new ParamArray(); var Paramlistlength = 44; ParamFormName[0] = "setname"; ParamBrowseStatus.setname = "browse"; ParamFormPosition.setname = 0; ParamQuickFormPosition.setname = 0; ParamFormName[1] = "hostfilename"; ParamBrowseStatus.hostfilename = "browse"; ParamFormPosition.hostfilename = 4; ParamQuickFormPosition.hostfilename = 4; ParamFormName[2] = "bgfile"; ParamBrowseStatus.bgfile = "notbrowse"; ParamFormPosition.bgfile = 8; ParamQuickFormPosition.bgfile = 8; ParamFormName[3] = "bgfile2"; ParamBrowseStatus.bgfile2 = "notbrowse"; ParamFormPosition.bgfile2 = 12; ParamQuickFormPosition.bgfile2 = 12; ParamFormName[4] = "textbgfile"; ParamBrowseStatus.textbgfile = "notbrowse"; ParamFormPosition.textbgfile = 16; ParamQuickFormPosition.textbgfile = 16; ParamFormName[5] = "textbgfile2"; ParamBrowseStatus.textbgfile2 = "notbrowse"; ParamFormPosition.textbgfile2 = 20; ParamQuickFormPosition.textbgfile2 = 20; ParamFormName[6] = "appletname"; ParamBrowseStatus.appletname = "browse"; ParamFormPosition.appletname = 24; ParamQuickFormPosition.appletname = 24; ParamFormName[7] = "appletpname"; ParamBrowseStatus.appletpname = "notbrowse"; ParamFormPosition.appletpname = 28; ParamQuickFormPosition.appletpname = 28; ParamFormName[8] = "appletpvalue"; ParamBrowseStatus.appletpvalue = "notbrowse"; ParamFormPosition.appletpvalue = 31; ParamQuickFormPosition.appletpvalue = 31; ParamFormName[9] = "fontsize"; ParamBrowseStatus.fontsize = "notbrowse"; ParamFormPosition.fontsize = 34; ParamQuickFormPosition.fontsize = 34; ParamFormName[10] = "tablefontsize"; ParamBrowseStatus.tablefontsize = "notbrowse"; ParamFormPosition.tablefontsize = 37; ParamQuickFormPosition.tablefontsize = 37; ParamFormName[11] = "intablefontsize"; ParamBrowseStatus.intablefontsize = "notbrowse"; ParamFormPosition.intablefontsize = 40; ParamQuickFormPosition.intablefontsize = 40; ParamFormName[12] = "titlefontsize"; ParamBrowseStatus.titlefontsize = "notbrowse"; ParamFormPosition.titlefontsize = 43; ParamQuickFormPosition.titlefontsize = 43; ParamFormName[13] = "bgcolor"; ParamBrowseStatus.bgcolor = "notbrowse"; ParamFormPosition.bgcolor = 46; ParamQuickFormPosition.bgcolor = 46; ParamFormName[14] = "titlecolor"; ParamBrowseStatus.titlecolor = "notbrowse"; ParamFormPosition.titlecolor = 50; ParamQuickFormPosition.titlecolor = 50; ParamFormName[15] = "tabletitlecolor"; ParamBrowseStatus.tabletitlecolor = "notbrowse"; ParamFormPosition.tabletitlecolor = 54; ParamQuickFormPosition.tabletitlecolor = 54; ParamFormName[16] = "intablefontcolor"; ParamBrowseStatus.intablefontcolor = "notbrowse"; ParamFormPosition.intablefontcolor = 58; ParamQuickFormPosition.intablefontcolor = 58; ParamFormName[17] = "intablebgcolor"; ParamBrowseStatus.intablebgcolor = "notbrowse"; ParamFormPosition.intablebgcolor = 62; ParamQuickFormPosition.intablebgcolor = 62; ParamFormName[18] = "fgcolor"; ParamBrowseStatus.fgcolor = "notbrowse"; ParamFormPosition.fgcolor = 66; ParamQuickFormPosition.fgcolor = 66; ParamFormName[19] = "tablefontcolor"; ParamBrowseStatus.tablefontcolor = "notbrowse"; ParamFormPosition.tablefontcolor = 70; ParamQuickFormPosition.tablefontcolor = -1; ParamFormName[20] = "fontcolor"; ParamBrowseStatus.fontcolor = "notbrowse"; ParamFormPosition.fontcolor = 74; ParamQuickFormPosition.fontcolor = -1; ParamFormName[21] = "buttoncolor"; ParamBrowseStatus.buttoncolor = "notbrowse"; ParamFormPosition.buttoncolor = 78; ParamQuickFormPosition.buttoncolor = -1; ParamFormName[22] = "auxbgcolor"; ParamBrowseStatus.auxbgcolor = "notbrowse"; ParamFormPosition.auxbgcolor = 82; ParamQuickFormPosition.auxbgcolor = -1; ParamFormName[23] = "auxfgcolor"; ParamBrowseStatus.auxfgcolor = "notbrowse"; ParamFormPosition.auxfgcolor = 86; ParamQuickFormPosition.auxfgcolor = -1; ParamFormName[24] = "auxbuttoncolor"; ParamBrowseStatus.auxbuttoncolor = "notbrowse"; ParamFormPosition.auxbuttoncolor = 90; ParamQuickFormPosition.auxbuttoncolor = -1; ParamFormName[25] = "imgtitlecolor"; ParamBrowseStatus.imgtitlecolor = "notbrowse"; ParamFormPosition.imgtitlecolor = 94; ParamQuickFormPosition.imgtitlecolor = -1; ParamFormName[26] = "imgfgcolor"; ParamBrowseStatus.imgfgcolor = "notbrowse"; ParamFormPosition.imgfgcolor = 98; ParamQuickFormPosition.imgfgcolor = -1; ParamFormName[27] = "linkcolor"; ParamBrowseStatus.linkcolor = "notbrowse"; ParamFormPosition.linkcolor = 102; ParamQuickFormPosition.linkcolor = -1; ParamFormName[28] = "vlinkcolor"; ParamBrowseStatus.vlinkcolor = "notbrowse"; ParamFormPosition.vlinkcolor = 106; ParamQuickFormPosition.vlinkcolor = -1; ParamFormName[29] = "alinkcolor"; ParamBrowseStatus.alinkcolor = "notbrowse"; ParamFormPosition.alinkcolor = 110; ParamQuickFormPosition.alinkcolor = -1; ParamFormName[30] = "imglinkcolor"; ParamBrowseStatus.imglinkcolor = "notbrowse"; ParamFormPosition.imglinkcolor = 114; ParamQuickFormPosition.imglinkcolor = -1; ParamFormName[31] = "imgvlinkcolor"; ParamBrowseStatus.imgvlinkcolor = "notbrowse"; ParamFormPosition.imgvlinkcolor = 118; ParamQuickFormPosition.imgvlinkcolor = -1; ParamFormName[32] = "imgalinkcolor"; ParamBrowseStatus.imgalinkcolor = "notbrowse"; ParamFormPosition.imgalinkcolor = 122; ParamQuickFormPosition.imgalinkcolor = -1; ParamFormName[33] = "tablelinkcolor"; ParamBrowseStatus.tablelinkcolor = "notbrowse"; ParamFormPosition.tablelinkcolor = 126; ParamQuickFormPosition.tablelinkcolor = -1; ParamFormName[34] = "tablevlinkcolor"; ParamBrowseStatus.tablevlinkcolor = "notbrowse"; ParamFormPosition.tablevlinkcolor = 130; ParamQuickFormPosition.tablevlinkcolor = -1; ParamFormName[35] = "tablealinkcolor"; ParamBrowseStatus.tablealinkcolor = "notbrowse"; ParamFormPosition.tablealinkcolor = 134; ParamQuickFormPosition.tablealinkcolor = -1; ParamFormName[36] = "horizimagewidth"; ParamBrowseStatus.horizimagewidth = "notbrowse"; ParamFormPosition.horizimagewidth = 138; ParamQuickFormPosition.horizimagewidth = 70; ParamFormName[37] = "horizimagestyle"; ParamBrowseStatus.horizimagestyle = "notbrowse"; ParamFormPosition.horizimagestyle = 141; ParamQuickFormPosition.horizimagestyle = 73; ParamFormName[38] = "vertimagewidth"; ParamBrowseStatus.vertimagewidth = "notbrowse"; ParamFormPosition.vertimagewidth = 144; ParamQuickFormPosition.vertimagewidth = 76; ParamFormName[39] = "vertimagestyle"; ParamBrowseStatus.vertimagestyle = "notbrowse"; ParamFormPosition.vertimagestyle = 147; ParamQuickFormPosition.vertimagestyle = 79; ParamFormName[40] = "titleoption"; ParamBrowseStatus.titleoption = "notbrowse"; ParamFormPosition.titleoption = 150; ParamQuickFormPosition.titleoption = 82; ParamFormName[41] = "textbodyoption"; ParamBrowseStatus.textbodyoption = "notbrowse"; ParamFormPosition.textbodyoption = 153; ParamQuickFormPosition.textbodyoption = 85; ParamFormName[42] = "audioraramoption"; ParamBrowseStatus.audioraramoption = "notbrowse"; ParamFormPosition.audioraramoption = 156; ParamQuickFormPosition.audioraramoption = 88; ParamFormName[43] = "timeoutvalue"; ParamBrowseStatus.timeoutvalue = "notbrowse"; ParamFormPosition.timeoutvalue = 159; ParamQuickFormPosition.timeoutvalue = 91; /* Constructor for Parameter Value Set */ function Parameterset(no) { this.count=44; this.setname = null; this.hostfilename = null; this.bgfile = null; this.bgfile2 = null; this.textbgfile = null; this.textbgfile2 = null; this.appletname = null; this.appletpname = null; this.appletpvalue = null; this.fontsize = null; this.tablefontsize = null; this.intablefontsize = null; this.titlefontsize = null; this.bgcolor = null; this.titlecolor = null; this.tabletitlecolor = null; this.intablefontcolor = null; this.intablebgcolor = null; this.fgcolor = null; this.tablefontcolor = null; this.fontcolor = null; this.buttoncolor = null; this.auxbgcolor = null; this.auxfgcolor = null; this.auxbuttoncolor = null; this.imgtitlecolor = null; this.imgfgcolor = null; this.linkcolor = null; this.vlinkcolor = null; this.alinkcolor = null; this.imglinkcolor = null; this.imgvlinkcolor = null; this.imgalinkcolor = null; this.tablelinkcolor = null; this.tablevlinkcolor = null; this.tablealinkcolor = null; this.horizimagewidth = null; this.horizimagestyle = null; this.vertimagewidth = null; this.vertimagestyle = null; this.titleoption = null; this.textbodyoption = null; this.audioraramoption = null; this.timeoutvalue = null; this.no=no; return true; } function Parameterset_init(newset,label,oldset) { parameters[newset].setname = parameters[oldset].setname; parameters[newset].hostfilename = parameters[oldset].hostfilename; parameters[newset].bgfile = parameters[oldset].bgfile; parameters[newset].bgfile2 = parameters[oldset].bgfile2; parameters[newset].textbgfile = parameters[oldset].textbgfile; parameters[newset].textbgfile2 = parameters[oldset].textbgfile2; parameters[newset].appletname = parameters[oldset].appletname; parameters[newset].appletpname = parameters[oldset].appletpname; parameters[newset].appletpvalue = parameters[oldset].appletpvalue; parameters[newset].fontsize = parameters[oldset].fontsize; parameters[newset].tablefontsize = parameters[oldset].tablefontsize; parameters[newset].intablefontsize = parameters[oldset].intablefontsize; parameters[newset].titlefontsize = parameters[oldset].titlefontsize; parameters[newset].bgcolor = parameters[oldset].bgcolor; parameters[newset].titlecolor = parameters[oldset].titlecolor; parameters[newset].tabletitlecolor = parameters[oldset].tabletitlecolor; parameters[newset].intablefontcolor = parameters[oldset].intablefontcolor; parameters[newset].intablebgcolor = parameters[oldset].intablebgcolor; parameters[newset].fgcolor = parameters[oldset].fgcolor; parameters[newset].tablefontcolor = parameters[oldset].tablefontcolor; parameters[newset].fontcolor = parameters[oldset].fontcolor; parameters[newset].buttoncolor = parameters[oldset].buttoncolor; parameters[newset].auxbgcolor = parameters[oldset].auxbgcolor; parameters[newset].auxfgcolor = parameters[oldset].auxfgcolor; parameters[newset].auxbuttoncolor = parameters[oldset].auxbuttoncolor; parameters[newset].imgtitlecolor = parameters[oldset].imgtitlecolor; parameters[newset].imgfgcolor = parameters[oldset].imgfgcolor; parameters[newset].linkcolor = parameters[oldset].linkcolor; parameters[newset].vlinkcolor = parameters[oldset].vlinkcolor; parameters[newset].alinkcolor = parameters[oldset].alinkcolor; parameters[newset].imglinkcolor = parameters[oldset].imglinkcolor; parameters[newset].imgvlinkcolor = parameters[oldset].imgvlinkcolor; parameters[newset].imgalinkcolor = parameters[oldset].imgalinkcolor; parameters[newset].tablelinkcolor = parameters[oldset].tablelinkcolor; parameters[newset].tablevlinkcolor = parameters[oldset].tablevlinkcolor; parameters[newset].tablealinkcolor = parameters[oldset].tablealinkcolor; parameters[newset].horizimagewidth = parameters[oldset].horizimagewidth; parameters[newset].horizimagestyle = parameters[oldset].horizimagestyle; parameters[newset].vertimagewidth = parameters[oldset].vertimagewidth; parameters[newset].vertimagestyle = parameters[oldset].vertimagestyle; parameters[newset].titleoption = parameters[oldset].titleoption; parameters[newset].textbodyoption = parameters[oldset].textbodyoption; parameters[newset].audioraramoption = parameters[oldset].audioraramoption; parameters[newset].timeoutvalue = parameters[oldset].timeoutvalue; parameters[newset].setname = label; return true; } var maxparmset = 10; var actualtopparmsetnum = 3; parameters = new MakeArray(maxparmset); for( var l=1; l <= maxparmset; l++) { parameters[l] = new Parameterset(l); } parameters[3].setname = "default"; parameters[3].hostfilename = "hostdefault"; parameters[3].bgfile = "embossed/SciTech.gif"; parameters[3].bgfile2 = "embossed/lighnpac.gif"; parameters[3].textbgfile = "clouds/clouds.gif"; parameters[3].textbgfile2 = "textures/soft-grid.gif"; parameters[3].appletname = "CrazyText.class,100%,75"; parameters[3].appletpname = ""; parameters[3].appletpvalue = ""; parameters[3].fontsize = "5"; parameters[3].tablefontsize = "5"; parameters[3].intablefontsize = "6"; parameters[3].titlefontsize = "8"; parameters[3].bgcolor = "blue"; parameters[3].titlecolor = "goldenrod"; parameters[3].tabletitlecolor = "darkviolet"; parameters[3].intablefontcolor = "black"; parameters[3].intablebgcolor = "navajowhite"; parameters[3].fgcolor = "white"; parameters[3].tablefontcolor = "black"; parameters[3].fontcolor = "black"; parameters[3].buttoncolor = "salmon"; parameters[3].auxbgcolor = "yellow"; parameters[3].auxfgcolor = "red"; parameters[3].auxbuttoncolor = "salmon"; parameters[3].imgtitlecolor = "black"; parameters[3].imgfgcolor = "black"; parameters[3].linkcolor = "cyan"; parameters[3].vlinkcolor = "magenta"; parameters[3].alinkcolor = "red"; parameters[3].imglinkcolor = "cyan"; parameters[3].imgvlinkcolor = "magenta"; parameters[3].imgalinkcolor = "red"; parameters[3].tablelinkcolor = "darkgreen"; parameters[3].tablevlinkcolor = "magenta"; parameters[3].tablealinkcolor = "red"; parameters[3].horizimagewidth = "569"; parameters[3].horizimagestyle = "maximum"; parameters[3].vertimagewidth = "320"; parameters[3].vertimagestyle = "native"; parameters[3].titleoption = "0"; parameters[3].textbodyoption = "2"; parameters[3].audioraramoption = "1"; parameters[3].timeoutvalue = "150000"; defaultparameters = parameters[3]; Parameterset_init(2,'initial',3); currentparameters = parameters[2]; Parameterset_init(1,'onentry',3); onentryparameters = parameters[1];