????
Current Path : /home2/morganrand/backup.morganrand.com/lightbox/ |
Current File : /home2/morganrand/backup.morganrand.com/lightbox/dt50.js |
/* */ x = 1; npom = 1; ntas = 1; ncan = 1; cpom = 1; ctas = 1; ccan = 1; var tassels = new Array("WH","WH","WH","WH","WH","WH"); var poms = new Array("WH","WH","WH","WH","WH","WH"); var candies = new Array("1SL","0XX"); var tpath = "design/A10/"; var activeMenu = 1; var room = 2; //var wPomLists = new Array("111111111111", "221111222112", "132311223123","233142141234","352144521312","415324326156"); - from flash script var wPomLists = new Array("111111111111", "212111222112", "113123223123","243231141234","345421521312","424453326156"); var wTasselLists = new Array("111111", "122112", "123132","123412","123451","123456"); var CaptArrayPom = new Array(); CaptArrayPom["WH"] = "White"; CaptArrayPom["MS"] = "Metallic Silver"; CaptArrayPom["IW"] = "Iridescent White"; CaptArrayPom["IV"] = "Ivory"; CaptArrayPom["GY"] = "Grey"; CaptArrayPom["BU"] = "Burgundy"; CaptArrayPom["MY"] = "Metallic Burgundy"; CaptArrayPom["PL"] = "Plum"; CaptArrayPom["BR"] = "Brown"; CaptArrayPom["CA"] = "Cabernet"; CaptArrayPom["MA"] = "Maroon"; CaptArrayPom["RM"] = "Metallic Red"; CaptArrayPom["RD"] = "Red"; CaptArrayPom["OR"] = "Orange"; CaptArrayPom["TA"] = "Tangerine"; CaptArrayPom["CO"] = "Coral"; CaptArrayPom["FU"] = "Fuchsia"; CaptArrayPom["MF"] = "Metallic Fuchsia"; CaptArrayPom["HP"] = "Hot Pink"; CaptArrayPom["MK"] = "Metallic Pink"; CaptArrayPom["AP"] = "Apricot"; CaptArrayPom["PK"] = "Pink"; CaptArrayPom["AZ"] = "Azalea"; CaptArrayPom["PH"] = "Peach"; CaptArrayPom["MG"] = "Metallic Gold"; CaptArrayPom["LY"] = "Light Yellow"; CaptArrayPom["YE"] = "Yellow"; CaptArrayPom["DA"] = "Daffodil"; CaptArrayPom["MU"] = "Mustard"; CaptArrayPom["MI"] = "Mint"; CaptArrayPom["LM"] = "Lime Green"; CaptArrayPom["MN"] = "Metallic Green"; CaptArrayPom["FG"] = "Forest Green"; CaptArrayPom["EM"] = "Emerald Green"; CaptArrayPom["HU"] = "Hunter Green"; CaptArrayPom["SA"] = "Sage"; CaptArrayPom["ML"] = "Metallic Light Blue"; CaptArrayPom["CE"] = "Celedon"; CaptArrayPom["BB"] = "Baby Blue"; CaptArrayPom["AQ"] = "Aqua"; CaptArrayPom["SF"] = "Seafoam"; CaptArrayPom["TU"] = "Turquoise"; CaptArrayPom["TL"] = "Teal"; CaptArrayPom["MR"] = "Metallic Royal Blue"; CaptArrayPom["CB"] = "Cornflower"; CaptArrayPom["OB"] = "Light Royal Blue"; CaptArrayPom["RB"] = "Royal Blue"; CaptArrayPom["NA"] = "Navy"; CaptArrayPom["MB"] = "Midnight Blue"; CaptArrayPom["PW"] = "Periwinkle"; CaptArrayPom["LA"] = "Lavender"; CaptArrayPom["MP"] = "Metallic Purple"; CaptArrayPom["PP"] = "Purple"; CaptArrayPom["EP"] = "Eggplant"; CaptArrayPom["BK"] = "Black"; var CaptArrayTas = new Array(); CaptArrayTas["WH"] = "White"; CaptArrayTas["MS"] = "Metallic Silver"; CaptArrayTas["IW"] = "Iridescent White"; CaptArrayTas["IV"] = "Ivory"; CaptArrayTas["GY"] = "Grey"; CaptArrayTas["BU"] = "Burgundy"; CaptArrayTas["MY"] = "Metallic Burgundy"; CaptArrayTas["PL"] = "Plum"; CaptArrayTas["BR"] = "Brown"; CaptArrayTas["MA"] = "Maroon"; CaptArrayTas["CA"] = "Cabernet"; CaptArrayTas["RD"] = "Red"; CaptArrayTas["RM"] = "Metallic Red"; CaptArrayTas["OR"] = "Orange"; CaptArrayTas["TA"] = "Tangerine"; CaptArrayTas["MC"] = "Metallic Copper"; CaptArrayTas["CO"] = "Coral"; CaptArrayTas["FU"] = "Fuchsia"; CaptArrayTas["MF"] = "Metallic Fuchsia"; CaptArrayTas["HP"] = "Hot Pink"; CaptArrayTas["AP"] = "Apricot"; CaptArrayTas["IA"] = "Iridescent Apricot"; CaptArrayTas["MK"] = "Metallic Pink"; CaptArrayTas["BP"] = "Baby Pink"; CaptArrayTas["AZ"] = "Azalea"; CaptArrayTas["PH"] = "Peach"; CaptArrayTas["MG"] = "Metallic Gold"; CaptArrayTas["LY"] = "Light Yellow"; CaptArrayTas["DA"] = "Daffodil Yellow"; CaptArrayTas["YE"] = "Yellow"; CaptArrayTas["MU"] = "Mustard"; CaptArrayTas["LM"] = "Lime Green"; CaptArrayTas["PG"] = "Mint"; CaptArrayTas["MN"] = "Metallic Green"; CaptArrayTas["FG"] = "Forest Green"; CaptArrayTas["HU"] = "Hunter Green"; CaptArrayTas["SA"] = "Sage"; CaptArrayTas["CE"] = "Celedon"; CaptArrayTas["BB"] = "Baby Blue"; CaptArrayTas["AQ"] = "Aqua"; CaptArrayTas["SF"] = "Seafoam"; CaptArrayTas["TU"] = "Turquoise"; CaptArrayTas["TL"] = "Teal"; CaptArrayTas["CB"] = "Cornflower"; CaptArrayTas["MR"] = "Metallic Royal Blue"; CaptArrayTas["RB"] = "Royal Blue"; CaptArrayTas["NA"] = "Navy"; CaptArrayTas["MB"] = "Midnight Blue"; CaptArrayTas["PW"] = "Periwinkle"; CaptArrayTas["LA"] = "Lavender"; CaptArrayTas["MP"] = "Metallic Purple"; CaptArrayTas["PP"] = "Purple"; CaptArrayTas["EP"] = "Eggplant"; CaptArrayTas["BK"] = "Black"; var CaptArrayCandy = new Array(); CaptArrayCandy["1SL"] = "Silver Foil Wrapped Candy"; CaptArrayCandy["1GL"] = "Gold Foil Wrapped Candy"; CaptArrayCandy["1RD"] = "Red Foil Wrapped Candy"; CaptArrayCandy["1BL"] = "Blue Foil Wrapped Candy"; CaptArrayCandy["1PP"] = "Purple Foil Wrapped Candy"; CaptArrayCandy["1BK"] = "Black Foil Wrapped Candy"; CaptArrayCandy["1GN"] = "Green Foil Wrapped Candy"; CaptArrayCandy["2GL"] = "Gold Hershey Kisses"; CaptArrayCandy["2SL"] = "Silver Hershey Kisses"; CaptArrayCandy["3WH"] = "White Jordan Almonds"; CaptArrayCandy["3LA"] = "Lavender Jordan Almonds"; CaptArrayCandy["3PK"] = "Pink Jordan Almonds"; CaptArrayCandy["3LB"] = "Light Blue Jordan Almonds"; CaptArrayCandy["3LG"] = "Light Green Jordan Almonds"; CaptArrayCandy["3LY"] = "Light Yellow Jordan Almonds"; CaptArrayCandy["3PH"] = "Peach Jordan Almonds"; CaptArrayCandy["4WH"] = "After Dinner Mints"; CaptArrayCandy["5LP"] = "Light Pink Lentils"; CaptArrayCandy["5DP"] = "Dark Pink Lentils"; CaptArrayCandy["5LA"] = "Lavender Lentils"; CaptArrayCandy["5PP"] = "Purple Lentils"; CaptArrayCandy["5NA"] = "Navy Lentils"; CaptArrayCandy["5GN"] = "Green Lentils"; CaptArrayCandy["5WH"] = "White Lentils"; CaptArrayCandy["5BK"] = "Black Lentils"; CaptArrayCandy["5LY"] = "Light Yellow Lentils"; CaptArrayCandy["5RD"] = "Red Lentils"; CaptArrayCandy["5OR"] = "Orange Lentils"; CaptArrayCandy["6FR"] = "Fruit Runts"; CaptArrayCandy["7JB"] = "Jelly Beans"; CaptArrayCandy["8WH"] = "Gumballs"; var CaptArrayRibbon = new Array(); CaptArrayRibbon["WH"] = "White"; CaptArrayRibbon["MS"] = "Metallic Silver"; CaptArrayRibbon["GY"] = "Grey"; CaptArrayRibbon["SL"] = "Silver"; CaptArrayRibbon["BX"] = "Burgundy Dark"; CaptArrayRibbon["BU"] = "Burgundy"; CaptArrayRibbon["MY"] = "Metallic Burgundy"; CaptArrayRibbon["BW"] = "Burgundy Light Wide"; CaptArrayRibbon["BR"] = "Brown"; CaptArrayRibbon["CA"] = "Cabernet"; CaptArrayRibbon["CH"] = "Chocolate"; CaptArrayRibbon["MR"] = "Metallic Red"; CaptArrayRibbon["RD"] = "Red"; CaptArrayRibbon["OR"] = "Orange"; CaptArrayRibbon["TA"] = "Tangerine"; CaptArrayRibbon["MC"] = "Metallic Copper"; CaptArrayRibbon["FU"] = "Fuchsia"; CaptArrayRibbon["HP"] = "Hot Pink"; CaptArrayRibbon["MH"] = "Metallic Hot Pink"; CaptArrayRibbon["AP"] = "Apricot"; CaptArrayRibbon["MK"] = "Metallic Pink"; CaptArrayRibbon["MO"] = "Mauve"; CaptArrayRibbon["BP"] = "Baby Pink"; CaptArrayRibbon["AZ"] = "Azalea"; CaptArrayRibbon["PH"] = "Peach"; CaptArrayRibbon["EG"] = "Eggshell"; CaptArrayRibbon["GL"] = "Gold"; CaptArrayRibbon["LY"] = "Light Yellow"; CaptArrayRibbon["OG"] = "Old Gold"; CaptArrayRibbon["DA"] = "Daffodil"; CaptArrayRibbon["MU"] = "Mustard"; CaptArrayRibbon["MI"] = "Mint"; CaptArrayRibbon["LM"] = "Lime Green"; CaptArrayRibbon["MN"] = "Metallic Green"; CaptArrayRibbon["GN"] = "Green"; CaptArrayRibbon["FG"] = "Forest Green"; CaptArrayRibbon["EM"] = "Emerald Green"; CaptArrayRibbon["HU"] = "Hunter Green"; CaptArrayRibbon["ML"] = "Metallic Light Blue"; CaptArrayRibbon["LB"] = "Light Blue"; CaptArrayRibbon["AQ"] = "Aqua"; CaptArrayRibbon["SF"] = "Seafoam"; CaptArrayRibbon["TU"] = "Turquoise"; CaptArrayRibbon["TL"] = "Teal"; CaptArrayRibbon["CB"] = "Cornflower"; CaptArrayRibbon["MR"] = "Metallic Royal Blue"; CaptArrayRibbon["RB"] = "Royal Blue"; CaptArrayRibbon["NA"] = "Navy"; CaptArrayRibbon["PW"] = "Periwinkle"; CaptArrayRibbon["LA"] = "Lavender"; CaptArrayRibbon["MP"] = "Metallic Purple"; CaptArrayRibbon["PP"] = "Purple"; CaptArrayRibbon["EP"] = "Eggplant"; CaptArrayRibbon["BK"] = "Black"; CaptArrayRibbon["BA"] = "Black 2"; var CaptArrayBase = new Array(); CaptArrayBase["GL"] = "Gold Base"; CaptArrayBase["SL"] = "Silver Base"; CaptArrayBase["AG"] = "White Lace Gold Base"; CaptArrayBase["AS"] = "White Lace Silver Base"; CaptArrayBase["BG"] = "Blue Lace Gold Base"; CaptArrayBase["BS"] = "Blue Lace Silver Base"; CaptArrayBase["CG"] = "Blue Stripes Gold Base"; CaptArrayBase["CS"] = "Blue Stripes Silver Base"; CaptArrayBase["DG"] = "Wanderfuls I Gold Base"; CaptArrayBase["DS"] = "Wanderfuls I Silver Base"; CaptArrayBase["EG"] = "Wanderfuls II Gold Base"; CaptArrayBase["ES"] = "Wanderfuls II Silver Base"; CaptArrayBase["undefined"] = "undefined"; rnd = 142077; var state = ""; var caption = ""; var d = new Date(); rnd = d.getTime(); function loadXMLDoc() { // works var xmlhttp; rnd=rnd+1; var urlZ = "read_state.php?rm=" + room + "&trimestamp=" + rnd; //document.getElementById("txt06").innerHTML = "CALL: " + urlZ; //document.getElementById("myDiv").innerHTML=urlZ; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { state = xmlhttp.responseText; //document.getElementById("myDiv").innerHTML=state; parseB(); } } //xmlhttp.open("GET","../../read_stated.php?rm=1&×tamp=" + rnd, true); xmlhttp.open("GET",urlZ, true); xmlhttp.send(); } var t; var timer_is_on=0; function timedCount() { loadXMLDoc(); t=setTimeout("timedCount()",5000); } function doTimer(num) { if (!timer_is_on) { room = num; timer_is_on=1; document.getElementById("txt10").innerHTML = ""; timedCount(); } } function parseB(par) { state = typeof par !== 'undefined' ? par : state; // initState = "A101IWXXXXXXXXXX400WHXXXXPPXXXXXXXXXXPPGL"; // 0123456789a123456789b123456789c123456789d // oooN112233445566ccc112233tt2233445566rrbb // base document.getElementById("L0").src = tpath + "A10BAS000" + state.substring(39,41) + "XXXX00.png"; document.getElementById("txt05").innerHTML = "BASE: " + CaptArrayBase[state.substring(39,41)]; // candy caption = "CANDY: "; temp = state.substring(16,19); gwrk = state.substring(19,25); wrevers = 100; switch (temp) { case "310": case "320": case "410": case "510": case "520": wrevers = 1; break; case "110": wrevers = 0; if (gwrk.substring(0,2) == "BK") {wrevers = 0;} else if (gwrk.substring(2,4) == "BK") {wrevers = 1;} else { if (gwrk.substring(0,2) == "BL") {wrevers = 0;} else if (gwrk.substring(2,4) == "BL") {wrevers = 1;} else { if (gwrk.substring(0,2) == "RD") {wrevers = 0;} else if (gwrk.substring(2,4) == "RD") {wrevers = 1;} else { if (gwrk.substring(0,2) == "GN") {wrevers = 0;} else if (gwrk.substring(2,4) == "GN") {wrevers = 1;} else { if (gwrk.substring(0,2) == "PP") {wrevers = 0;} else if (gwrk.substring(2,4) == "PP") {wrevers = 1;} else { if (gwrk.substring(0,2) == "SL") {wrevers = 0;} else {wrevers = 1;} } } } } } break; case "330": if (gwrk.substring(0,2) == "WH") {wrevers = 0;} else if (gwrk.substring(2,4) == "WH") {wrevers = 1;} else { if (gwrk.substring(0,2) == "LA") {wrevers = 0;} else if (gwrk.substring(2,4) == "LA") {wrevers = 1;} else { if (gwrk.substring(0,2) == "LB") {wrevers = 0;} else if (gwrk.substring(2,4) == "LB") {wrevers = 1;} else { if (gwrk.substring(0,2) == "PH") {wrevers = 0;} else if (gwrk.substring(2,4) == "PH") {wrevers = 1;} else { if (gwrk.substring(0,2) == "LG") {wrevers = 0;} else {wrevers = 1;} } } } } break; case "550": if (gwrk.substring(0,2) == "PP") {wrevers = 0;} else if (gwrk.substring(2,4) == "PP") {wrevers = 1;} else { if (gwrk.substring(0,2) == "RD") {wrevers = 0;} else if (gwrk.substring(2,4) == "RD") {wrevers = 1;} else { if (gwrk.substring(0,2) == "OR") {wrevers = 0;} else if (gwrk.substring(2,4) == "OR") {wrevers = 1;} else { if (gwrk.substring(0,2) == "NA") {wrevers = 0;} else if (gwrk.substring(2,4) == "NA") {wrevers = 1;} else { if (gwrk.substring(0,2) == "BK") {wrevers = 0;} else if (gwrk.substring(2,4) == "BK") {wrevers = 1;} else { if (gwrk.substring(0,2) == "LA") {wrevers = 0;} else if (gwrk.substring(2,4) == "LA") {wrevers = 1;} else { if (gwrk.substring(0,2) == "GN") {wrevers = 0;} else if (gwrk.substring(2,4) == "GN") {wrevers = 1;} else { if (gwrk.substring(0,2) == "LY") {wrevers = 0;} else if (gwrk.substring(2,4) == "LY") {wrevers = 1;} else { if (gwrk.substring(0,2) == "LP") {wrevers = 0;} else {wrevers = 1;} } } } } } } } } break; case "100": case "200": case "300": case "400": case "500": case "600": case "700": case "800": case "900": wrevers = 100; break; default: wrevers = 0; } if (wrevers == 1) {temp = temp.substring(1,2) + temp.substring(0,1) + temp.substring(2,3);} switch (wrevers) { case 0: document.getElementById("L1").src = tpath + "TUB/A10CAN" + temp + state.substring(19,23) + "XX00.png"; // document.getElementById("debug").innerHTML = tpath + "TUB/A10CAN" + temp + state.substring(19,23) + "XX00.png"; break; case 1: document.getElementById("L1").src = tpath + "TUB/A10CAN" + temp + state.substring(21,23) + state.substring(19,21) + "XX00.png"; // document.getElementById("debug").innerHTML = tpath + "TUB/A10CAN" + temp + state.substring(21,23) + state.substring(19,21) + "XX00.png"; break; case 100: document.getElementById("L1").src = tpath + "TUB/A10CAN" + temp + state.substring(19,21) + "XXXX00.png"; // document.getElementById("debug").innerHTML = tpath + "TUB/A10CAN" + temp + state.substring(19,21) + "XXXX00.png"; break; } caption = caption + CaptArrayCandy[state.substring(16,17) + state.substring(19,21)]; if (state.substring(17,18) != "0") caption = caption + ", " + CaptArrayCandy[state.substring(17,18) + state.substring(21,23)]; document.getElementById("txt03").innerHTML = caption; // ribbon document.getElementById("L2").src = tpath + "RIB/A10RIB000" + state.substring(37,39) + "XXXX00.png"; document.getElementById("txt04").innerHTML = "PRINTABLE RIBBON: " + CaptArrayRibbon[state.substring(37,39)]; // poms npom = 6; caption = "POMPOMS: "; var i = 0; for (i=0;i<=5;i++) { poms[i] = "XX"; poms[i] = state.substring(4+i*2,6+i*2); if (poms[i]=="XX") { npom = i; break; } if (i == 0) { caption = caption + CaptArrayPom[state.substring(4,6)]; } else { caption = caption + ", " + CaptArrayPom[state.substring(4+i*2,6+i*2)]; } } document.getElementById("txt01").innerHTML = caption; if (npom == 0) npom = 1; for (i=3;i<=11;i++) { document.getElementById("L"+i).src = tpath + "POM/A10POM00" + (i-2) + poms[wPomLists[npom-1].substring(i-3,i-2) - 1] + "XXXX00.png"; } document.getElementById("L12").src = tpath + "POM/A10POM010" + poms[wPomLists[npom-1].substring(9,10)-1] + "XXXX00.png"; //document.getElementById("debug").innerHTML =(poms.toString()); // tassels ntas = 6; var caption = "TASSELS: "; for (i=0;i<=5;i++) { tassels[i] = "XX"; tassels[i] = state.substring(25+i*2,27+i*2); if (tassels[i]=="XX") { ntas = i; break; } if (i == 0) { caption = caption + CaptArrayTas[state.substring(25+i*2,27+i*2)]; } else { caption = caption + ", " + CaptArrayTas[state.substring(25+i*2,27+i*2)]; } } document.getElementById("txt02").innerHTML = caption; if (ntas == 0) ntas = 1; // if (ntas < 6) { // for (i=ntas+1;i<=6;i++) { // tassels[i-1] = tassels[i-ntas-1]; // } // } for (i=13;i<=18;i++) { document.getElementById("L"+i).src = tpath + "TAS/A10TAS00" + (i-12) + tassels[wTasselLists[ntas-1].substring(i-13,i-12) - 1] + "XXXX00.png"; } } var POMCODES = "WHMSIWIVGYBUMYPLCARDRMORTAMFHPCOAZPKPHMGLYDAMUMILMMNEMHUSABBAQSFTUTLCBMRRBNAMBPWLAMPPPBK"; var TASCODES = "WHMSIWIVGYBUMYBRCARDRMORTAMCCOMFHPMKBPAZPHMGLYDAMULMPGMNHUBBSACEBBAQSFTUTLCBMRRBNAPWLAMPPPEPBK"; var CANCODES = "100SL100GL100RD100BL100PP100BK100GN200GL200SL300LA300WH300PK300LB300LG300LY300PH400WH500LP500DP500LA500PP500NA500GN500WH500BK500LY500RD500OR600FR700JB800WH"; var RIBCODES = "WHMSGYSLBXMYBRCARMRDORTAMCFUHPMHAPMKMOBPAZPHEGGLLYDAMUMILMMNEMHUMLLBAQTUTLCBMRRBNALAMPPPEPBK"; var BASCODES = "SLGLASAGBSBGCSCGDSDGESEG"; function selectLab(obj,n){ // document.getElementById(id).style.color = "#ff0000"; document.getElementById('txt01').style.color = "#B8B8B8"; document.getElementById('txt02').style.color = "#B8B8B8"; document.getElementById('txt03').style.color = "#B8B8B8"; document.getElementById('txt04').style.color = "#B8B8B8"; document.getElementById('txt05').style.color = "#B8B8B8"; obj.style.color = "#FFFFFF"; activeMenu = n; document.getElementById("PL").src = tpath + "palette_bar0" + activeMenu + ".jpg"; //state = 'A101MRXXXXXXXXXX200SLXXXXBKMRRMRMRMMRBKSL'; parseB(); } function getvClick(n,reset){ //activeMenu = 1; switch (activeMenu) { case 1: if (n>44){break;} state = state.substring(0,4) + "XX" + state.substring(4,14)+ state.substring(16); state = state.substring(0,4) + POMCODES.substring((n-1)*2,n*2) + state.substring(6); if (state.substring(4,6) == state.substring(6,8) && state.substring(4,6) == state.substring(8,10) && state.substring(4,6) == state.substring(10,12) && state.substring(4,6) == state.substring(12,14) && state.substring(4,6) == state.substring(14,16)) {reset = 1;} if (reset) {state = state.substring(0,6) + "XXXXXXXXXX" + state.substring(16);} break; case 2: if (n>47){break;} state = state.substring(0,25) + "XX" + state.substring(25,35)+ state.substring(37); state = state.substring(0,25) + TASCODES.substring((n-1)*2,n*2) + state.substring(27); if (state.substring(25,27) == state.substring(27,29) && state.substring(25,27) == state.substring(29,31) && state.substring(25,27) == state.substring(31,33) && state.substring(25,27) == state.substring(33,35) && state.substring(25,27) == state.substring(35,37)) {reset = 1;} if (reset) {state = state.substring(0,27) + "XXXXXXXXXX" + state.substring(37);} break; case 3: if (n>31){break;} state = state.substring(0,16) + CANCODES.substring((n-1)*5,n*5) + state.substring(21); break; case 4: if (n>46){break;} state = state.substring(0,37) + RIBCODES.substring((n-1)*2,n*2) + state.substring(39); break; case 5: if (n>12){break;} state = state.substring(0,39) + BASCODES.substring((n-1)*2,n*2) + state.substring(41); break; default: //wrevers = 0; } parseB(); }