????
Current Path : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/js/ |
Current File : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/js/dt50.js |
function loadXMLDoc(){var r;rnd+=1;var a="/design_room/read_state.php?rm="+room+"&trimestamp="+rnd;r=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),r.onreadystatechange=function(){4==r.readyState&&200==r.status&&(state=r.responseText,parseB())},r.open("GET",a,!0),r.send()}function timedCount(){loadXMLDoc(),t=setTimeout("timedCount()",5e3)}function doTimer(r){timer_is_on||(room=r,timer_is_on=1,document.getElementById("txt10").innerHTML="",timedCount())}function parseB(r){switch(state="undefined"!=typeof r?r:state,document.getElementById("L0").src=tpath+"A10BAS000"+state.substring(39,41)+"XXXX00.png",document.getElementById("txt05").innerHTML="BASE: "+CaptArrayBase[state.substring(39,41)],t="CANDY: ",temp=state.substring(16,19),gwrk=state.substring(19,25),wrevers=100,temp){case"310":case"320":case"410":case"510":case"520":wrevers=1;break;case"110":wrevers=0,"BK"==gwrk.substring(0,2)?wrevers=0:"BK"==gwrk.substring(2,4)?wrevers=1:"BL"==gwrk.substring(0,2)?wrevers=0:"BL"==gwrk.substring(2,4)?wrevers=1:"RD"==gwrk.substring(0,2)?wrevers=0:"RD"==gwrk.substring(2,4)?wrevers=1:"GN"==gwrk.substring(0,2)?wrevers=0:"GN"==gwrk.substring(2,4)?wrevers=1:"PP"==gwrk.substring(0,2)?wrevers=0:"PP"==gwrk.substring(2,4)?wrevers=1:"SL"==gwrk.substring(0,2)?wrevers=0:wrevers=1;break;case"330":"WH"==gwrk.substring(0,2)?wrevers=0:"WH"==gwrk.substring(2,4)?wrevers=1:"LA"==gwrk.substring(0,2)?wrevers=0:"LA"==gwrk.substring(2,4)?wrevers=1:"LB"==gwrk.substring(0,2)?wrevers=0:"LB"==gwrk.substring(2,4)?wrevers=1:"PH"==gwrk.substring(0,2)?wrevers=0:"PH"==gwrk.substring(2,4)?wrevers=1:"LG"==gwrk.substring(0,2)?wrevers=0:wrevers=1;break;case"550":"PP"==gwrk.substring(0,2)?wrevers=0:"PP"==gwrk.substring(2,4)?wrevers=1:"RD"==gwrk.substring(0,2)?wrevers=0:"RD"==gwrk.substring(2,4)?wrevers=1:"OR"==gwrk.substring(0,2)?wrevers=0:"OR"==gwrk.substring(2,4)?wrevers=1:"NA"==gwrk.substring(0,2)?wrevers=0:"NA"==gwrk.substring(2,4)?wrevers=1:"BK"==gwrk.substring(0,2)?wrevers=0:"BK"==gwrk.substring(2,4)?wrevers=1:"LA"==gwrk.substring(0,2)?wrevers=0:"LA"==gwrk.substring(2,4)?wrevers=1:"GN"==gwrk.substring(0,2)?wrevers=0:"GN"==gwrk.substring(2,4)?wrevers=1:"LY"==gwrk.substring(0,2)?wrevers=0:"LY"==gwrk.substring(2,4)?wrevers=1:"LP"==gwrk.substring(0,2)?wrevers=0: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}switch(1==wrevers&&(temp=temp.substring(1,2)+temp.substring(0,1)+temp.substring(2,3)),wrevers){case 0:document.getElementById("L1").src=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";break;case 100:document.getElementById("L1").src=tpath+"TUB/A10CAN"+temp+state.substring(19,21)+"XXXX00.png"}t+=CaptArrayCandy[state.substring(16,17)+state.substring(19,21)],"0"!=state.substring(17,18)&&(t=t+", "+CaptArrayCandy[state.substring(17,18)+state.substring(21,23)]),document.getElementById("txt03").innerHTML=t,document.getElementById("L2").src=tpath+"RIB/A10RIB000"+state.substring(37,39)+"XXXX00.png",document.getElementById("txt04").innerHTML="PRINTABLE RIBBON: "+CaptArrayRibbon[state.substring(37,39)],npom=6,t="POMPOMS: ";var a=0;for(a=0;5>=a;a++){if(poms[a]="XX",poms[a]=state.substring(4+2*a,6+2*a),"XX"==poms[a]){npom=a;break}0==a?t+=CaptArrayPom[state.substring(4,6)]:t=t+", "+CaptArrayPom[state.substring(4+2*a,6+2*a)]}for(document.getElementById("txt01").innerHTML=t,0==npom&&(npom=1),a=3;11>=a;a++)document.getElementById("L"+a).src=tpath+"POM/A10POM00"+(a-2)+poms[wPomLists[npom-1].substring(a-3,a-2)-1]+"XXXX00.png";document.getElementById("L12").src=tpath+"POM/A10POM010"+poms[wPomLists[npom-1].substring(9,10)-1]+"XXXX00.png",ntas=6;var t="TASSELS: ";for(a=0;5>=a;a++){if(tassels[a]="XX",tassels[a]=state.substring(25+2*a,27+2*a),"XX"==tassels[a]){ntas=a;break}0==a?t+=CaptArrayTas[state.substring(25+2*a,27+2*a)]:t=t+", "+CaptArrayTas[state.substring(25+2*a,27+2*a)]}for(document.getElementById("txt02").innerHTML=t,0==ntas&&(ntas=1),a=13;18>=a;a++)document.getElementById("L"+a).src=tpath+"TAS/A10TAS00"+(a-12)+tassels[wTasselLists[ntas-1].substring(a-13,a-12)-1]+"XXXX00.png"}function selectLab(r,a){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",r.style.color="#FFFFFF",activeMenu=a,document.getElementById("PL").src=tpath+"palette_bar0"+activeMenu+".jpg",parseB()}function getvClick(r,a){switch(activeMenu){case 1:if(r>44)break;state=state.substring(0,4)+"XX"+state.substring(4,14)+state.substring(16),state=state.substring(0,4)+POMCODES.substring(2*(r-1),2*r)+state.substring(6),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)&&(a=1),a&&(state=state.substring(0,6)+"XXXXXXXXXX"+state.substring(16));break;case 2:if(r>47)break;state=state.substring(0,25)+"XX"+state.substring(25,35)+state.substring(37),state=state.substring(0,25)+TASCODES.substring(2*(r-1),2*r)+state.substring(27),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)&&(a=1),a&&(state=state.substring(0,27)+"XXXXXXXXXX"+state.substring(37));break;case 3:if(r>31)break;state=state.substring(0,16)+CANCODES.substring(5*(r-1),5*r)+state.substring(21);break;case 4:if(r>46)break;state=state.substring(0,37)+RIBCODES.substring(2*(r-1),2*r)+state.substring(39);break;case 5:if(r>12)break;state=state.substring(0,39)+BASCODES.substring(2*(r-1),2*r)+state.substring(41)}parseB()}x=1,npom=1,ntas=1,ncan=1,cpom=1,ctas=1,ccan=1;var tassels=new Array("WH","WH","WH","WH","WH","WH"),poms=new Array("WH","WH","WH","WH","WH","WH"),candies=new Array("1SL","0XX"),tpath="/design/A10/",activeMenu=1,room=2,wPomLists=new Array("111111111111","212111222112","113123223123","243231141234","345421521312","424453326156"),wTasselLists=new Array("111111","122112","123132","123412","123451","123456"),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="",caption="",d=new Date;rnd=d.getTime();var t,timer_is_on=0,POMCODES="WHMSIWIVGYBUMYPLCARDRMORTAMFHPCOAZPKPHMGLYDAMUMILMMNEMHUSABBAQSFTUTLCBMRRBNAMBPWLAMPPPBK",TASCODES="WHMSIWIVGYBUMYBRCARDRMORTAMCCOMFHPMKBPAZPHMGLYDAMULMPGMNHUBBSACEBBAQSFTUTLCBMRRBNAPWLAMPPPEPBK",CANCODES="100SL100GL100RD100BL100PP100BK100GN200GL200SL300LA300WH300PK300LB300LG300LY300PH400WH500LP500DP500LA500PP500NA500GN500WH500BK500LY500RD500OR600FR700JB800WH",RIBCODES="WHMSGYSLBXMYBRCARMRDORTAMCFUHPMHAPMKMOBPAZPHEGGLLYDAMUMILMMNEMHUMLLBAQTUTLCBMRRBNALAMPPPEPBK",BASCODES="SLGLASAGBSBGCSCGDSDGESEG";