var items = new Array(); var n1m = 0; var hours = 0; var total = 0; var OrdWin2 = ""; var n1w = '', n3w = '', n4w = '', n6w = '', n10w = '', n13w = '', n20w = '', scrapper2 = '', scrapper20a = ''; var nu = navigator.userAgent; var tboxsize = 2; if (nu.indexOf("MSIE") != -1 && nu.indexOf("Mac") == -1 && nu.indexOf("Opera") == -1) { tboxsize = 1; } var macmatch = 0, uamatch = 0; if (nu.indexOf("Mac") != -1 && nu.indexOf("AOL") == -1 && nu.indexOf("MSIE 4.0") != -1) { macmatch = 1; } if (nu.indexOf("MSIE") != -1 && nu.indexOf("Opera") == -1) { if (!macmatch) { uamatch = 1; } if (nu.indexOf("MSIE 9.") != -1 || nu.indexOf("MSIE 1") != -1 || nu.indexOf("Trident/") != -1) { uamatch = 2; } } else if (nu.indexOf("Gecko") != -1 || nu.indexOf("Opera") != -1 || nu.indexOf("Konqueror") != -1) { if (nu.indexOf("Linux") == -1 || (nu.indexOf("Opera/6.") == -1 && nu.indexOf("Opera / 6") == -1)) { uamatch = 2; } } else if (nu.indexOf("Mozilla/4.") != -1) { if (nu.indexOf("Mac") == -1) { uamatch = 3; } } var OW = ""; var AOW2 = ''; var win_sz, win_id; var qd227 = "capicola & salami"; var qd191 = "tortilla strips"; var qd104 = "spanish rice"; var qd33 = "gluten free white"; var qd229 = "chopped bacon"; var qd95 = "fruit salad"; var qd39 = "pickles"; var qd25 = "sliced multi grain bread"; var qd15 = "small garden salad"; var qd106 = "lettuce"; var qd49 = "extra cheese"; var qd99 = "tuna salad"; var qd138 = "caramelized onion"; var qd36 = "sliced sour dough"; var qd91 = "cup of vegan vegetable soup"; var qd88 = "baked lays"; var qd237 = "cherry tomatoes"; var qd187 = "chicken breast"; var qd143 = "peanut butter"; var qd230 = "olive oil"; var qd173 = "egg"; var qd204 = "crumbled egg"; var qd176 = "roasted red pepper"; var qd239 = "brown rice"; var qd213 = "rice noodles"; var qd90 = "cheetos"; var qd154 = "candied walnuts"; var qd60 = "cup of daily soup"; var qd147 = "capicola"; var qd107 = "carlitos salsa"; var qd152 = "cranberries"; var qd89 = "doritos"; var qd244 = "yes please"; var qd225 = "tender chicken"; var qd179 = "diced tomatoes"; var qd201 = "dried cranberries"; var qd190 = "toasted almonds"; var qd197 = "mango vinaigrette"; var qd82 = "1000 island"; var qd110 = "jd sauce"; var qd165 = "corn"; var qd115 = "roasted chicken"; var qd215 = "parmesan"; var qd205 = "chiptole ranch dressing"; var qd75 = "1/2 fruit salad"; var qd48 = "brie"; var qd78 = "small chinese chicken salad"; var qd64 = "half tuna"; var qd47 = "swiss"; var qd140 = "roast beef"; var qd128 = "jalapeno"; var qd210 = "iceberg"; var qd163 = "blue cheese dressing"; var qd137 = "mustard"; var qd121 = "sliced turkey"; var qd37 = "shredded iceberg"; var qd212 = "carrots"; var qd71 = "half honey chicken melt"; var qd59 = "cup of hearty vegetable"; var qd240 = "shredded cheddar"; var qd141 = "mixed greens"; var qd77 = "1/2 pasta salad"; var qd136 = "pastrami"; var qd235 = "toasted pumpkin seeds"; var qd209 = "iceburg"; var qd53 = "cheddar"; var qd125 = "onion"; var qd70 = "half ham & swiss melt"; var qd166 = "black beans"; var qd188 = "dates"; var qd170 = "basil"; var qd11 = "no"; var qd167 = "blue cheese crumbles"; var qd72 = "half client melt"; var qd200 = "baby kale"; var qd108 = "pickle"; var qd92 = "cup of creamy tomato basil soup"; var qd12 = "with a bag of chips & fountain drink"; var qd69 = "half classic tuna melt"; var qd8 = "dirty chips cracked pepper"; var qd169 = "chicken"; var qd139 = "cole slaw"; var qd84 = "bbq ranch"; var qd119 = "peppers"; var qd218 = "crumbled bleu cheese"; var qd178 = "grilled corn"; var qd86 = "caesar"; var qd58 = "no cheese"; var qd196 = "oil only dressing"; var qd40 = "red onions"; var qd38 = "tomato"; var qd149 = "pepperoncini"; var qd134 = "marinara"; var qd131 = "sauerkraut"; var qd98 = "ham"; var qd117 = "cucumbers"; var qd228 = "crisp iceberg"; var qd198 = "oil & red wine vinegar dressing"; var qd146 = "prosciutto"; var qd80 = "bowl of chef soup"; var qd150 = "apples"; var qd109 = "red onion"; var qd202 = "diced green apple"; var qd23 = "no dressing"; var qd66 = "half four cheese melt"; var qd31 = "ciabatta"; var qd129 = "sauteed jalapenos"; var qd9 = "dirty chips maui onion"; var qd236 = "red bell peppers"; var qd94 = "house salad"; var qd133 = "meatball"; var qd243 = "no thanks"; var qd180 = "diced red onions"; var qd168 = "tuna"; var qd79 = "cup of vegetable soup"; var qd155 = "tomatoes"; var qd83 = "ranch"; var qd112 = "cranberry mayo"; var qd16 = "balsamic vinaigrette"; var qd13 = "substitute beyond meat"; var qd175 = "sliced carrots"; var qd207 = "lemon citrus vinaigrette"; var qd144 = "honey"; var qd85 = "italian"; var qd102 = "turkey"; var qd171 = "tangy balsamic"; var qd214 = "sesame seeds"; var qd164 = "romaine"; var qd132 = "swiss cheese"; var qd206 = "cotija cheese"; var qd42 = "yellow mustard"; var qd111 = "garlic mayo"; var qd232 = "daikon sprouts"; var qd194 = "balsamic vinegar only dressing"; var qd145 = "banana"; var qd103 = "cranberry relish"; var qd54 = "mozzarella"; var qd148 = "seasoned iceberg"; var qd62 = "half turkey"; var qd221 = "grapes"; var qd181 = "cilantro"; var qd158 = "havarti cheese"; var qd151 = "celery"; var qd135 = "goat cheese spread"; var qd51 = "pepper jack"; var qd113 = "alfalfa sprouts"; var qd174 = "fresh mushrooms"; var qd44 = "oil & vinegar"; var qd2 = "dirty chips salt & vinegar"; var qd29 = "white sub roll"; var qd74 = "1/2 house salad"; var qd10 = "deep river dill pickle"; var qd81 = "bowl of special soup"; var qd223 = "spinach"; var qd160 = "cucumber"; var qd32 = "hawaiian bun"; var qd41 = "mayo"; var qd156 = "roasted red peppers"; var qd153 = "leaf lettuce"; var qd19 = "bbq ranch dressing"; var qd18 = "ranch dressing"; var qd142 = "roasted red pepper aioli"; var qd105 = "pinto beans"; var qd177 = "hummus"; var qd183 = "beyond meat"; var qd162 = "frank's hot sauce"; var qd87 = "classic lays"; var qd114 = "chipotle mayo"; var qd93 = "caesar salad"; var qd195 = "red wine vinegar only dressing"; var qd34 = "gluten free wheat"; var qd63 = "half ham"; var qd208 = "chopped egg"; var qd118 = "tzatziki"; var qd172 = "sprouts"; var qd24 = "dressing on the side"; var qd216 = "bacon bits"; var qd35 = "make it a wrap"; var qd30 = "wheat sub roll"; var qd122 = "salami"; var qd57 = "havarti"; var qd28 = "croissant"; var qd21 = "caesar dressing"; var qd161 = "basil pesto"; var qd182 = "chipotle ranch"; var qd55 = "american"; var qd50 = "provolone"; var qd241 = "shredded mozzarella"; var qd219 = "feta cheese"; var qd116 = "olives"; var qd101 = "honey mustard"; var qd189 = "croutons"; var qd96 = "cheddar cheese"; var qd4 = "dirty chips sea salt"; var qd120 = "onions"; var qd242 = "fire roasted salsa"; var qd68 = "half grilled cheese"; var qd184 = "goat cheese"; var qd6 = "dirty chips jalapeno"; var qd73 = "1/2 caesar salad"; var qd17 = "1000 island dressing"; var qd1 = "fresh fruit salad"; var qd5 = "dirty chips sour cream & onion"; var qd226 = "egg salad"; var qd46 = "avocado"; var qd157 = "caramelized onions"; var qd97 = "turkey breast"; var qd126 = "grilled romaine"; var qd186 = "herb vinaigrette"; var qd61 = "chips & soda"; var qd56 = "feta"; var qd224 = "smoked ham"; var qd14 = "small caesar salad"; var qd67 = "half tuna melt"; var qd233 = "soy poke sauce"; var qd211 = "almonds"; var qd22 = "sesame vinaigrette"; var qd192 = "bbq sauce"; var qd45 = "bacon"; var qd76 = "1/2 potato salad"; var qd130 = "corned beef"; var qd231 = "carrot"; var qd124 = "pickled jalapenos"; var qd222 = "kalamata olives"; var qd185 = "asian pears"; var qd3 = "dirty chips chipotle"; var qd20 = "italian dressing"; var qd27 = "sliced sour dough bread"; var qd199 = "tossed dressing"; var qd52 = "blue cheese"; var qd127 = "provolone cheese"; var qd234 = "roasted quinoa"; var qd193 = "citrus vinaigrette"; var qd43 = "pepperoncinis"; var qd26 = "sliced rye bread"; var qd7 = "dirty chips bbq"; var qd217 = "bell peppers"; var qd65 = "half egg"; var qd238 = "white rice"; var qd220 = "garbanzo beans"; var qd203 = "shaved parmesan"; var qd159 = "horseradish cream"; var qd123 = "pepper jack cheese"; var qd100 = "spicy dijon"; var y1, r4r, c4, c5p, tg0, dq15, n_5, ar_len041, r4, dq14, r3r, dq12, c_h6, ar_len081, tx0, y4, qa0, ar_len030, ar_len091, c_h3, ar_len011, dq1, r4p, r5r, ar_len031, ar_len0, tbl21, r5, jim0, ck6, ck4, v0, tbl10, r2, dq13, r_h1, tv0, c_h2, n_2, r3, r0r, n_1, ar_len010, r3p, tbl13, c0, r_h2, ar_len051, y3, r2r, r1r, dq6, r0p, ck3, c_h1, tq0, n_0, tbl20, ar_len000, ck2, c1, ck1, q0, r_h3, tbl15, tbl12, c6p, dq3, c2, y6, y0, ar_len001, tbl14, dq4, c_h5, tbl24, ar_len020, dq10, r1, dq2, r_h5, t0, ar_len0101, dq7, c6, ts0, c_h4, vv0, c_h0, c3p, r0, ar_len071, dq16, qamin0, dq5, c1p, c3, r5p, qq0, r_h0, c2p, n_4, ck0, r_h4, c4p, dq9, c5, tbl22, ck5, r2p, ar_len021, tbl23, r1p, dq11, tbl25, y5, qanumon0, c0p, ar_len061, tbl11, n_6, tl0, tr0, dq8, y2, n_3, op, needle, oP, mimic, w1d, w1h, icol_a, icol_b, subprice, prearray, p1n, winqty, svhn = 0, callcent = 0, callcomcent1 = "Comment", callcomcent2 = 0, totalcost = 0, delchrg = 0, franco = 0, drop_titl = 0, drop_oclk = 0, full_scrn = 0, site_wnmr = 0, drop_hovr = 0, drop_slim = 0, drop_prob = 0, drop_save = 0, addrcent = 0, cker1 = 0, bsite = "", csite = "", urlsitus = "", urlsitus2 = "", cthru = 0, cthruleft = 0, extracthru = 0, extracthruleft = 0, sitecmnt = 0, menuforward = 0, newdivstyle = 0, imgx = 0, deeon = 0, orvse = 0, ppp1 = 0, mphone = 0, menuoff = 0, menuoff2 = "", weaccept1 = "", sizefull = 0, sizefull2 = 0, sizefull3 = 0, sizefuller2 = 0, freep2 = 0, freep3 = 0, freep4 = 0, forced2 = 0, forced3 = 0, forced4 = 0, forced5 = 0, forced6 = 0, roundh2 = 0, roundh3 = 0, roundh4 = 0, roundh5 = 0, roundh6 = 0, roundh7 = 0, newlook = 0, popupless = 0, lpast = 0, newshowhide = 0, csspop = 0, csspopup = 1, csscolumn = 0, newdivstyler = 0, scrapper = 0, tampm = '', newlookphone = 0, qlessi = "", qlessd = "", qlesss = "", numcnt = 0, numcnt2 = 0, keep = -1, logcustom = 0, logstring = "", logcuser = "", rfrming = 1, alertchk = 0, nomen = "", nomon = "", ineo = "", ineon = "", calmod = "", datelist = "", datestr = "", datearg = "", dateprearg = "", mphonevar = 0, chromevar = 0, pckaobj, json2fds, taxvar = 1.0950, q1, v1; var superqty, ropez; var extras501_0 = new Array(qd1, qd2, qd3, qd4, qd5, qd6, qd7, qd8, qd9, qd10); var extras501_0p = new Array(2.94, 1.13, 1.13, 1.13, 1.13, 1.13, 1.13, 1.13, 1.13, 1.13); var extras502_0 = new Array(qd1, qd2, qd3, qd4, qd5, qd6, qd7, qd8, qd9, qd10); var extras502_0p = new Array(3.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25); var radio500_0 = new Array(qd11, qd12); var radio500_0p = new Array(0, 2.50); var extras50_0 = new Array(qd13); var extras50_0p = new Array(1.25, 0); var extras777_0 = new Array(qd14, qd15); var extras777_0p = new Array(3.95, 3.95); var salad1149_0 = new Array(qd16, qd17, qd18, qd19, qd20, qd21, qd22, qd23, qd24); var ssalad1149_0 = new Array(qd16, qd17, qd18, qd19, qd20, qd21, qd22, qd23, qd24); var radio115_0 = new Array(qd25, qd26, qd27, qd28, qd29, qd30, qd31, qd32, qd33, qd34, qd35); var radio115_0p = new Array(0.00, 0.00, 0.00, 0.75, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.55); var extras125_0 = new Array(qd25, qd26, qd36, qd28, qd29, qd30, qd31); var extras125_0p = new Array(0, 0, 0, 0.75, 0.75, 0.75, .50); var extras115_0 = new Array(qd37, qd38, qd39, qd40, qd41, qd42, qd43, qd44, qd45, qd46); var extras115_0p = new Array(0, 0, 0, 0, 0, 0, 0, 0, 1.10, 1.10); var radio105_0 = new Array(qd47, qd48, qd49, qd50, qd51, qd52, qd53, qd54, qd55, qd56, qd57, qd58); var radio105_0p = new Array(0.00, 1.10, 0.55, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00); var radio111_0 = new Array(qd59, qd60, qd61); var radio111_0p = new Array(0, 0.50, 0.00); var salad1149_1 = new Array(qd16, qd17, qd18, qd19, qd20, qd21, qd22, qd23, qd24); var ssalad1149_1 = new Array(qd16, qd17, qd18, qd19, qd20, qd21, qd22, qd23, qd24); var radio110_0 = new Array(qd62, qd63, qd64, qd65, qd66, qd67); var radio140_0 = new Array(qd68, qd69, qd70, qd71, qd72); var radio141_0 = new Array(qd73, qd74, qd75, qd76, qd77, qd78); var radio141_0p = new Array(0, 0, 0, 0, 0, 0.75); var radio144_0 = new Array(qd73, qd74, qd75, qd76, qd77, qd78, qd79, qd80, qd81); var radio144_0p = new Array(0, 0, 0, 0, 0, 0.75, 0.00, 1.25, 1.25); var tiesalady141_0 = new Array(qd16, qd82, qd83, qd84, qd85, qd86, qd22); var tiessalady141_0 = new Array(qd16, qd82, qd83, qd84, qd85, qd86, qd22); var radio142_0 = new Array(qd79, qd80, qd81); var radio142_0p = new Array(0, 1.25, 1.25); var radio6565_0 = new Array(qd87, qd88, qd89, qd90); var radio8768_0 = new Array(qd91, qd92, qd93, qd94, qd95); var radio8768_0p = new Array(1.50, 1.50, 1.50, 1.50, 1.50); var radio1151_0 = new Array(qd25, qd26, qd27, qd28, qd29, qd30, qd31, qd32, qd33, qd34, qd35); var radio1151_0p = new Array(0.00, 0.00, 0.00, 0.68, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.50); var extras1151_0 = new Array(qd37, qd38, qd39, qd40, qd41, qd42, qd43, qd44, qd45, qd46); var extras1151_0p = new Array(0, 0, 0, 0, 0, 0, 0, 0, 1.00, 1.00); var radio1051_0 = new Array(qd47, qd48, qd49, qd50, qd51, qd52, qd53, qd54, qd55, qd56, qd57, qd58); var radio1051_0p = new Array(0.00, 1.00, 0.50, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00); var extras118_0 = new Array(qd37, qd38, qd39, qd40, qd41, qd42, qd43, qd44, qd45, qd46); var extras118_0p = new Array(0, 0, 0, 0, 0, 0, 0, 0, 1.00, 1.00); var with115_0 = new Array(qd38, qd96); var with1161_0 = new Array(qd47, qd53, qd50, qd54); var with120_0 = new Array(qd53, qd47, qd54, qd38); var extras120_0 = new Array(qd45, qd46, qd97, qd98); var extras120_0p = new Array(1.00, 1.00, 2.25, 2.25); var with125_0 = new Array(qd99, qd53, qd38); var with130_0 = new Array(qd98, qd47, qd38, qd100); var with135_0 = new Array(qd50, qd38, qd101); var with175_0 = new Array(qd102, qd48, qd103, qd41); var with1603_0 = new Array(qd104, qd105, qd106, qd96, qd107); var with1703_0 = new Array(qd106, qd38, qd108, qd109, qd110); var with1103_0 = new Array(qd106, qd38, qd47, qd109, qd111); var with1003_0 = new Array(qd106, qd47, qd38, qd109, qd112); var with903_0 = new Array(qd50, qd113, qd38, qd114); var with1502_0 = new Array(qd115, qd116, qd56, qd40, qd38, qd117, qd118); var with149_0 = new Array(qd119, qd120, qd41, qd96); var with1554_0 = new Array(qd121, qd98, qd122, qd123, qd124, qd106, qd38, qd125, qd114); var with1557_0 = new Array(qd126, qd127, qd109, qd128); var with1558_0 = new Array(qd53, qd106, qd38, qd129); var with1501_0 = new Array(qd130, qd131, qd17, qd132); var salad1150_0 = new Array(qd16, qd17, qd18, qd19, qd20, qd21, qd22, qd23, qd24); var ssalad1150_0 = new Array(qd16, qd17, qd18, qd19, qd20, qd21, qd22, qd23, qd24); var with150_0 = new Array(qd133, qd134, qd135, qd54); var with155_0 = new Array(qd136, qd47, qd39, qd137, qd43); var with160_0 = new Array(qd97, qd135, qd138, qd38); var with160_1 = new Array(qd130, qd47, qd82, qd139); var with165_0 = new Array(qd140, qd57, qd141, qd38, qd142); var with170_0 = new Array(qd143, qd144, qd145); var extras170_0 = new Array(qd45); var extras170_0p = new Array(1.00, 0); var with180_0 = new Array(qd146, qd147, qd122, qd148, qd50, qd149); var with1160_0 = new Array(qd41, qd150, qd151, qd109, qd152, qd153, qd154, qd155); var with51160_0 = new Array(qd156, qd157, qd158, qd159); var with451160_0 = new Array(qd127, qd113, qd160, qd46, qd38, qd161); var with185_0 = new Array(qd106, qd38, qd162, qd151, qd163); var with1878_0 = new Array(qd164, qd38, qd165, qd166, qd120, qd167, qd84); var with190_0 = new Array(qd168, qd106, qd38, qd160); var extras190_0 = new Array(qd46); var extras190_0p = new Array(1.00, 0); var with195_0 = new Array(qd97, qd45, qd106, qd38, qd18); var extras7777_0 = new Array(qd102, qd169); var extras7777_0p = new Array(2.25, 2.00); var with200_0 = new Array(qd54, qd38, qd170, qd171); var with205_0 = new Array(qd106, qd38, qd46, qd172, qd160, qd171); var with117_0 = new Array(qd106, qd45, qd38, qd46, qd173, qd167, qd18); var with1174_0 = new Array(qd174, qd175, qd160, qd46, qd172, qd16); var with1174_1 = new Array(qd160, qd38, qd20, qd176, qd177); var with11174_0 = new Array(qd178, qd166, qd179, qd180, qd181, qd96, qd182); var with511174_0 = new Array(qd38, qd165, qd166, qd182); var extras778_0 = new Array(qd169, qd183); var extras778_0p = new Array(2.50, 2.50); var salad1_0 = new Array(qd16, qd17, qd18, qd19, qd20, qd21, qd22, qd23, qd24); var ssalad1_0 = new Array(qd16, qd17, qd18, qd19, qd20, qd21, qd22, qd23, qd24); var with2102_0 = new Array(qd184, qd185, qd156, qd117); var salad11_0 = new Array(qd186, qd16, qd17, qd18, qd19, qd20, qd21, qd22, qd23, qd24); var ssalad11_0 = new Array(qd186, qd16, qd17, qd18, qd19, qd20, qd21, qd22, qd23, qd24); var extras5432_0 = new Array(qd187); var extras5432_0p = new Array(3.00, 0); var with3102_0 = new Array(qd141, qd184, qd188, qd46, qd189, qd190, qd155, qd117); var salad12_0 = new Array(qd19, qd16, qd17, qd18, qd20, qd21, qd22, qd23, qd24); var ssalad12_0 = new Array(qd19, qd16, qd17, qd18, qd20, qd21, qd22, qd23, qd24); var with9102_0 = new Array(qd164, qd38, qd109, qd46, qd167, qd191, qd192); var salad13_0 = new Array(qd193, qd194, qd16, qd195, qd196, qd163, qd21, qd197, qd198, qd18, qd22, qd17, qd199, qd23, qd24); var ssalad13_0 = new Array(qd193, qd194, qd16, qd195, qd196, qd163, qd21, qd197, qd198, qd18, qd22, qd17, qd199, qd23, qd24); var with6102_0 = new Array(qd200, qd155, qd117, qd201, qd154, qd202, qd203); var salad2_0 = new Array(qd18, qd19, qd16, qd17, qd20, qd21, qd22, qd23, qd24); var ssalad2_0 = new Array(qd18, qd19, qd16, qd17, qd20, qd21, qd22, qd23, qd24); var with2101_0 = new Array(qd97, qd38, qd46, qd204, qd45, qd167); var salad52_0 = new Array(qd205, qd18, qd194, qd16, qd195, qd196, qd163, qd21, qd197, qd198, qd22, qd17, qd199, qd23, qd24); var ssalad52_0 = new Array(qd205, qd18, qd194, qd16, qd195, qd196, qd163, qd21, qd197, qd198, qd22, qd17, qd199, qd23, qd24); var with12101_0 = new Array(qd166, qd178, qd155, qd191, qd206); var with122101_0 = new Array(qd166, qd178, qd155, qd191, qd206); var salad452_0 = new Array(qd207, qd18, qd19, qd16, qd17, qd20, qd21, qd22, qd23, qd24); var ssalad452_0 = new Array(qd207, qd18, qd19, qd16, qd17, qd20, qd21, qd22, qd23, qd24); var with4122101_0 = new Array(qd102, qd98, qd53, qd47, qd208, qd209, qd117, qd82); var salad3_0 = new Array(qd22, qd18, qd19, qd16, qd17, qd20, qd21, qd22, qd23, qd24); var ssalad3_0 = new Array(qd22, qd18, qd19, qd16, qd17, qd20, qd21, qd22, qd23, qd24); var with210_0 = new Array(qd187, qd210, qd211, qd212, qd213, qd214); var salad4_0 = new Array(qd21, qd18, qd19, qd16, qd17, qd20, qd22, qd23, qd24); var ssalad4_0 = new Array(qd21, qd18, qd19, qd16, qd17, qd20, qd22, qd23, qd24); var with215_0 = new Array(qd164, qd215, qd189); var extras235_0 = new Array(qd187); var extras235_0p = new Array(2.50, 0); var extras220_0 = new Array(qd211, qd216, qd217, qd212, qd151, qd189, qd218, qd117, qd219, qd220, qd221, qd222, qd54, qd43, qd40, qd155, qd208, qd166, qd178, qd154, qd201, qd124); var salad89_0 = new Array(qd18, qd19, qd16, qd17, qd20, qd21, qd22, qd23, qd24); var ssalad89_0 = new Array(qd18, qd19, qd16, qd17, qd20, qd21, qd22, qd23, qd24); var radio220_0 = new Array(qd141, qd210, qd164, qd223); var radio220_0p = new Array(0, 0, 0, 0.50); var extras221_0 = new Array(qd211, qd216, qd217, qd212, qd151, qd189, qd218, qd117, qd219, qd220, qd221, qd222, qd54, qd43, qd40, qd155, qd166, qd178, qd154, qd201, qd124); var extras221_0p = new Array(0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50); var extras222_0 = new Array(qd102, qd140, qd224, qd122, qd225, qd226, qd46, qd99); var extras222_0p = new Array(2.25, 3.00, 2.25, 3.00, 2.50, 3.29, 1.00, 3.00); var salad5_0 = new Array(qd18, qd19, qd16, qd17, qd20, qd21, qd22, qd23, qd24); var ssalad5_0 = new Array(qd18, qd19, qd16, qd17, qd20, qd21, qd22, qd23, qd24); var extras55_0 = new Array(qd227); var extras55_0p = new Array(2.00, 0); var with220_0 = new Array(qd122, qd147, qd50, qd167, qd220, qd43); var with225_0 = new Array(qd228, qd229, qd38, qd167); var salad6_0 = new Array(qd16, qd18, qd19, qd17, qd20, qd21, qd22, qd23, qd24); var ssalad6_0 = new Array(qd16, qd18, qd19, qd17, qd20, qd21, qd22, qd23, qd24); var with230_0 = new Array(qd54, qd38, qd170, qd230); var with235_0 = new Array(qd56, qd160, qd231, qd40, qd222, qd38); var extras778_1 = new Array(qd187, qd183); var extras778_1p = new Array(2.00, 3.50); var salad7_0 = new Array(qd16, qd198, qd21, qd22, qd18, qd194, qd195, qd196, qd163, qd197, qd17, qd199, qd23, qd24); var ssalad7_0 = new Array(qd16, qd198, qd21, qd22, qd18, qd194, qd195, qd196, qd163, qd197, qd17, qd199, qd23, qd24); var with240_0 = new Array(qd232, qd160, qd38, qd233); var salad8_0 = new Array(qd197, qd16, qd18, qd19, qd17, qd20, qd21, qd22, qd23, qd24); var ssalad8_0 = new Array(qd197, qd16, qd18, qd19, qd17, qd20, qd21, qd22, qd23, qd24); var with245_0 = new Array(qd234, qd46, qd181, qd235, qd223, qd236, qd237); var radio250_0 = new Array(qd238, qd239); var with34234_0 = new Array(qd166, qd240, qd241, qd178, qd242, qd182); var with34234_1 = new Array(qd166, qd240, qd241, qd178, qd242, qd182); var with843_0 = new Array(qd56, qd155, qd117, qd222, qd40); var with887_0 = new Array(qd127, qd113, qd38, qd160, qd46); var radio832_0 = new Array(qd243, qd244); var radio832_0p = new Array(0, 1.50); var extras778_2 = new Array(qd169, qd183); var extras778_2p = new Array(2.00, 3.50); function visvals() { if (document.getElementById('visphon') != null) { document.getElementById('visphon').innerHTML = '(213) 622-0175'; } if (document.getElementById('visaddr') != null) { document.getElementById('visaddr').innerHTML = '707 Wilshire Blvd'; } if (document.getElementById('viscity') != null) { document.getElementById('viscity').innerHTML = 'Los Angeles'; } if (document.getElementById('visstat') != null) { document.getElementById('visstat').innerHTML = 'CA'; } if (document.getElementById('visname') != null) { document.getElementById('visname').innerHTML = 'Just Downstairs'; } //fix this if (document.getElementById('vishomeurl') != null) { document.getElementById('vishomeurl').innerHTML = ''; } } function getOffsetRect(elem) { // (1) var box = elem.getBoundingClientRect(); var body = document.body; var docElem = document.documentElement; // (2) var scrollTop = window.pageYOffset || docElem.scrollTop || body.scrollTop; var scrollLeft = window.pageXOffset || docElem.scrollLeft || body.scrollLeft; // (3) var clientTop = docElem.clientTop || body.clientTop || 0; var clientLeft = docElem.clientLeft || body.clientLeft || 0; // (4) var top = box.top + scrollTop - clientTop; var left = box.left + scrollLeft - clientLeft; return { top: Math.round(top), left: Math.round(left) }; } var jquerychk = 0, jquerycook = 0; var checkjQuery = function() { if (!window.jQuery && jquerychk < 50) { jquerychk++; return false; } else if (!jQuery.cookie && jquerychk < 50) { if (!jquerycook) { jquerycook++; jqcookload(); } jquerychk++; return false; } else { clearTimeout(jqinterval); grabord(); } } var jqinterval= setInterval(checkjQuery,400); (function() { var srcfile, jsfile; if (!window.jQuery) { srcfile = "/icons/js/jquery-1.7.1.min.js"; jsfile = document.createElement('script'); jsfile.setAttribute("type","text/javascript"); jsfile.setAttribute("src",srcfile); document.getElementsByTagName("head")[0].appendChild(jsfile); } var jnug = navigator.userAgent; if (jnug.indexOf("MSIE") != -1 && jnug.indexOf("MSIE 9") == -1 && jnug.indexOf("MSIE 1") == -1) { srcfile = "/icons/js/json2.js"; jsfile = document.createElement('script'); jsfile.setAttribute("type","text/javascript"); jsfile.setAttribute("src",srcfile); document.getElementsByTagName("head")[0].appendChild(jsfile); } })(); function jqcookload() { if (!jQuery.cookie) { srcfile = "/icons/js/jquery.cookie.js"; jsfile = document.createElement('script'); jsfile.setAttribute("type","text/javascript"); jsfile.setAttribute("src",srcfile); document.getElementsByTagName("head")[0].appendChild(jsfile); } } var timeobj = ''; var timenowobj = ''; function sveord() { var ltrns = 'ENG'; if (!localStorage) { $.cookie('eatord1001693',JSON.stringify(items), {expires: 1, path : '/' }); } else { localStorage.setItem('eatord1001693',JSON.stringify(items)); timeobj = { itmtime: new Date().getTime() }; localStorage.setItem('eattime1001693',JSON.stringify(timeobj)); localStorage.setItem('langtrans1001693',JSON.stringify(ltrns)); } } function grabord() { var pieitems,pienum,langtrans,clang; clang = 'ENG'; if (!ropez) { if (!localStorage) { if ($ && $.cookie && JSON.parse($.cookie('eatord1001693'))) { items = JSON.parse($.cookie('eatord1001693')); } } else { pieitems = JSON.parse(localStorage.getItem('eatord1001693')); langtrans = JSON.parse(localStorage.getItem('langtrans1001693')); if (pieitems && pieitems[1]) { pienum = pieitems.length - 1; items = new Array(); piecount = 1; for (var i=1;i<=pienum;i++) { if (pieitems[i] && pieitems[i].code && pieitems[i].code < 95000) { items[piecount++] = pieitems[i]; } } } timeobj = JSON.parse(localStorage.getItem('eattime1001693')); timenowobj = new Date().getTime().toString(); if (timeobj && timeobj.itmtime != null) { if (timenowobj > timeobj.itmtime + 7200000 || clang != langtrans) { items = ''; } } } if (items && items[1]) { n1m = items.length - 1; displaymenuorder(); } else { items = new Array(); } } } var taxing = new Object(); taxing[60151.101613] = 1; taxing[60023.121110] = 1; taxing[60088.121110] = 1; taxing[60027.121110] = 1; taxing[60032.121110] = 1; taxing[10190.032614] = 1; taxing[10056.121110] = 1; taxing[60146.101613] = 1; taxing[60028.121110] = 1; taxing[60179.032614] = 1; taxing[60018.121110] = 1; taxing[10171.032614] = 1; taxing[60033.121110] = 1; taxing[10191.032614] = 1; taxing[60016.121110] = 1; taxing[10193.032614] = 1; taxing[60025.121110] = 1; taxing[60001.121110] = 1; taxing[60087.121110] = 1; taxing[60150.101613] = 1; taxing[10075.121110] = 1; taxing[60152.101613] = 1; taxing[60019.121110] = 1; taxing[10069.121110] = 1; taxing[60091.121110] = 1; taxing[60128.040411] = 1; taxing[10085.121110] = 1; taxing[60177.032614] = 1; taxing[10192.032614] = 1; taxing[10189.032614] = 1; taxing[60145.101613] = 1; taxing[60031.121110] = 1; taxing[60139.091613] = 1; taxing[60125.030611] = 1; taxing[60090.121110] = 1; taxing[60030.121110] = 1; var ld1 = ""; var ld16 = ""; var ld17 = ""; var ld12 = ""; var ld7 = ""; var ld9 = ""; var ld10 = ""; var ld18 = ""; var ld3 = ""; var ld4 = ""; var ld8 = ""; var ld6 = ""; var ld14 = ""; var ld15 = ""; var ld11 = ""; var ld13 = ""; var ld2 = ""; var ld5 = ""; var wu9 = ""; var wu5 = ""; var wu2 = ""; var wu8 = ""; var wu15 = ""; var wu13 = ""; var wu3 = ""; var wu11 = ""; var wu16 = ""; var wu14 = ""; var wu1 = ""; var wu7 = ""; var wu10 = ""; var wu12 = ""; var wu17 = ""; var wu18 = ""; var wu6 = ""; var wu4 = ""; var wq1 = ''; var wq2 = ''; function namehasher() { var mixx; ld1 = "Bread Choice "; ld16 = "Premium Ingredients "; ld17 = "Extra Meat "; ld12 = "Extras "; ld7 = "Comes with "; ld9 = "Make It a Combo "; ld10 = "Salad Add On "; ld18 = "Salad Add Ons "; ld3 = "Cheese Choice "; ld4 = "Add Sides "; ld8 = "Add "; ld6 = "Dressing "; ld14 = "Choice of 5 Items "; ld15 = "Additional Ingredients "; ld11 = "Dressing Choice "; ld13 = "Salad Base "; ld2 = "Comes With "; ld5 = "Chips, Soup Or Salad "; wu9 = "
Make It a Combo: "; wu5 = "
Chips, Soup Or Salad: "; wu2 = "
Comes With: "; wu8 = "
Add: "; wu15 = "
Additional Ingredients: "; wu13 = "
Salad Base: "; wu3 = "
Cheese Choice: "; wu11 = "
Dressing Choice: "; wu16 = "
Premium Ingredients: "; wu14 = "
Pick Up To 5: "; wu1 = "
Bread Choice: "; wu7 = "
Without: "; wu10 = "
Salad Add On: "; wu12 = "
With: "; wu17 = "
Extra Meat: "; wu18 = "
Salad Add Ons: "; wu6 = "
Dressing: "; wu4 = "
Add Sides: "; cx1 = ' CHECKED'; cx2 = ' value=1'; wq1 = '
With: '; wq2 = '
w/: '; return 1; } function goanchor(id) { if (id) { location.hash ='#' + id; } } function qlessing(qlpos,qljay,qlfds) { var qreti = ""; if (!qlfds) { qreti = fds[qlpos][3]; qreti = qreti.replace(/'/g,"’"); qreti = qreti.replace(/"/g,"”"); return qreti; } else if (qlfds == 1) { qreti = fds[qlpos][4]; qreti = qreti.replace(/'/g,"’"); qreti = qreti.replace(/"/g,"”"); return qreti; } else if (qlfds == 2) { qljay = qljay - 0; if (fds[qlpos][qljay+5]) { qreti = fds[qlpos][qljay+5]; qreti = qreti.replace(/'/g,"’"); qreti = qreti.replace(/"/g,"”"); qreti = " - " + qreti; return qreti; } else { return ""; } } return ""; } logcustom = "https://www.eatkey.com/apps/EatCustomer/?rids=1001693&hubco=&menuturn=0&situs=justdownstairs&franco=1&csite=order707wilshire.justdownstairs.com&ck="; logstring = "Login"; weaccept1 = "WE ACCEPT VISA, MASTERCARD, AMERICAN EXPRESS AND DISCOVER"; function posOflex() { } function lT2(lF, lC, lN) { if (lF.value.length > lN) { lF.value = lF.value.substring(0, lN); } else { lC.value = lN - lF.value.length; } } function openPreOrderWin(id) { var tmpQty = 0, qtyObjCount = 0; totalcost = 0; var sh = parent.document; if (ppp1 != 1) { updatemenuorder(1); } for (var i = 1;i <= n1m; i++) { totalcost += (items[i].price * items[i].quantity); tmpQty = 0; if (n1m == 1) { tmpQty = parseInt(sh.forms[0].qty.value); } else { qtyObjCount = 0; for (var j = 1; j <= sh.forms[0].elements.length-3; j++) { if (sh.forms[0].elements[j-1].name != "qty") { continue; } else { qtyObjCount++; if (qtyObjCount == i) { tmpQty = parseInt(sh.forms[0].elements[j-1].value); break; } } } } if (isNaN(tmpQty)) { alert("You Inadvertantly Entered a Blank Space or a Letter in the Quantity Box for Item Number " + i + ". Please Re-enter a Number."); return; } if (tmpQty < 0) { alert("Please Do Not Order Negative Numbers of Food Items."); return; } if ((tmpQty * items[i].price) != (items[i].quantity * items[i].price)) { alert("Please Hit the Update Button and then Hit the Order Button Again."); return; } } if (0.00 > totalcost) { alert("The $" + cent(totalcost) + " Amount of Items You Ordered Is Below the 0.00 Minimum Order Amount."); return; } openPreOrderWin1(id); } function openPreOrderWin1(id,id2) { var wdt = 475; var sh = parent.document; if (callcent == 1) { if (!ordersubmit()) { return; } } if (id == -1) { sh.forms[0].method = 'post'; sh.forms[0].target = '_parent'; sh.forms[0].submit(); return; } if (id) { wdt += 25; } var jh = screen.availHeight; jh = jh - (jh / 8); jh = Math.round(jh); if (OrdWin2 && !OrdWin2.closed) { OrdWin2.close(); } OrdWin2 = window.open("","preOrderWin","location=yes,toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes,width=" + wdt + ",height=" + jh + ",screenX=20,screenY=0"); if (!id) { sh.forms[0].submit(); } } function openPreOrderWin2(id) { var sh = parent.document; if (sh.forms != null && sh.forms[0]) { if (!id || id == null) { if (n1m) { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001693&menu2=0&hubco=&menuturn=0&situs=justdownstairs&franco=1&csite=order707wilshire.justdownstairs.com&ck=&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001693&menu2=0&hubco=&menuturn=0&situs=justdownstairs&franco=1&csite=order707wilshire.justdownstairs.com&ck='; } } else { if (id != 3) { if (franco == 1) { if (cker1 == 1) { if (n1m) { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001693&menu2=0&hubco=&menuturn=0&situs=' + bsite + '&csite=' + csite + '&franco=1&ck=1&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001693&menu2=0&hubco=&menuturn=0&situs=' + bsite + '&csite=' + csite + '&franco=1&ck=1'; } } else { if (n1m) { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001693&menu2=0&hubco=&menuturn=0&situs=' + bsite + '&csite=' + csite + '&franco=1&ck=&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001693&menu2=0&hubco=&menuturn=0&situs=' + bsite + '&csite=' + csite + '&franco=1&ck='; } } } else { if (cker1 == 1) { if (n1m) { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001693&menu2=0&hubco=&menuturn=0&situs=justdownstairs&franco=1&csite=order707wilshire.justdownstairs.com&ck=1&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001693&menu2=0&hubco=&menuturn=0&situs=justdownstairs&franco=1&csite=order707wilshire.justdownstairs.com&ck=1'; } } else { if (n1m) { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001693&menu2=0&hubco=&menuturn=0&situs=justdownstairs&franco=1&csite=order707wilshire.justdownstairs.com&ck=&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001693&menu2=0&hubco=&menuturn=0&situs=justdownstairs&franco=1&csite=order707wilshire.justdownstairs.com&ck='; } } } } } sh.forms[0].method = 'post'; sh.forms[0].target = '_parent'; sh.forms[0].submit(); } else { top.location.href = 'https://www.eatkey.com/apps/EatCustomer/?rids=1001693&menu2=0&hubco=&menuturn=0&situs=justdownstairs&franco=1&csite=order707wilshire.justdownstairs.com&ck='; } } function updatemenuorder(id) { var sh = parent.document; var test = 0, tmpQty = 0, itmlmt = 0, qtyObjCount = 0; if (id && popupless == 1) { return true; } if (n1m > 0 && callcent == 1 && callcomcent2 == 1 && sitecmnt == 0) { callcomcent1 = sh.forms[0].comments.value; } for (var i=1;i<=n1m;i++) { tmpQty = 0; if (n1m == 1) { tmpQty = parseInt(sh.forms[0].qty.value); } else { qtyObjCount = 0; for (var j=1; j <= sh.forms[0].elements.length-3; j++) { if (sh.forms[0].elements[j-1].name != "qty") { continue; } else { qtyObjCount++; if (qtyObjCount == i) { tmpQty = parseInt(sh.forms[0].elements[j-1].value); break; } } } } if (items[i].quantity == tmpQty) { continue; } test++; if (isNaN(tmpQty)) { tmpQty = 0; } else if (tmpQty < 0) { tmpQty = 0; } items[i].quantity = tmpQty; if (id) { return true; } } if (test) { sveord(); update(); } } function decreaseitem(itemno) { for (i=1;i<=n1m;i++) { if (itemno == items[i].itemno) { if (items[i].quantity > 0) { items[i].quantity--; } else { items[i].quantity = 0; } } } displaymenuorder(); } function Item(i,d,d2,dd,p,c,q) { this.itemno = i; this.desc = d; this.desc2 = d2; this.dsub = dd; this.price = p; this.code = c; this.quantity = q; } function mr_clean(desc) { var here, storage, caboose; var comma = '"'; if (desc.indexOf("^") >= 0) { for (var i = 0; i < desc.length; i++ ) { if (desc.indexOf("^") >= 0) { here = desc.indexOf("^"); storage = desc.substring(0,here); here += 1; caboose = desc.substring(here,desc.length); desc = "" + storage + comma + caboose; } else { break; } } } if (desc.indexOf("`") >= 0) { for (var i = 0; i < desc.length; i++ ) { if (desc.indexOf("`") >= 0) { here = desc.indexOf("`"); storage = desc.substring(0,here); here += 1; caboose = desc.substring(here,desc.length); desc = "" + storage + "'" + caboose; } else { break; } } } return desc; } function additem(itemno,d1,d2,dsub,price,code,slctqty) { var here, storage, caboose, desc, t1s = 0, comma = '"'; if (d1 >= 0) { desc = fds[d1][d2]; } else { desc = d2; } var desc2 = desc; desc = mr_clean(desc); if (desc2.indexOf("'") >= 0) { for (var i = 0; i < desc2.length; i++ ) { if (desc2.indexOf("'") >= 0) { here = desc2.indexOf("'"); storage = desc2.substring(0,here); here += 1; caboose = desc2.substring(here,desc2.length); desc2 = "" + storage + "`" + caboose; } else { break; } } } var foundIt = false; var quantity; if (!op) { p1n = 0; } if (!p1n) { for (var i=1;i<=n1m;i++) { if (slctqty && slctqty > 0) { break; } if (desc == items[i].desc && itemno == items[i].itemno) { if (items[i].quantity >= 0) { items[i].quantity++; } else { items[i].quantity = 0; } foundIt = true; break; } } if (!foundIt) { if (!slctqty || slctqty == 0) { quantity = 1; } else { quantity = slctqty; } items[++n1m] = new Item(itemno,desc,desc2,dsub,price,code,quantity); t1s = n1m; if (op) { items[n1m].basedesc = oP.basedesc; items[n1m].baseprice = oP.baseprice; items[n1m].tracker = oP.tracker; items[n1m].sz = oP.sz; items[n1m].ider = oP.ider; items[n1m].ayray = arrayplay(); if (winqty) { items[n1m].quantity = winqty; } } } } else { items[p1n].desc = desc; items[p1n].desc2 = desc2; items[p1n].dsub = dsub; items[p1n].price = price; items[p1n].tracker = oP.tracker; items[p1n].ayray = arrayplay(); if (winqty) { items[p1n].quantity = winqty; } t1s = p1n; } op = ''; winqty = 0; prearray = p1n = ''; displaymenuorder(); sveord(); } //top to bottom function jslim(sz,code2) { //dq1 = new Array( arlens in here); //dq2 = new Array( r0/c0 in here); //dq3 = new Array( ck0 in here); //dq4 = new Array( r0r in here); //dq5 = new Array( r0p in here); //dq6 = new Array( shutoff + menu_number value }; //dq7 = new Array{ shutoff0 + tiresome value }; //dq8 = new Array( potato value ); //dq9 = new Array( names ); //dq10 = new Array ( halves ); //dq11 = new Array ( 'gj' values ); //dq12 = new Array { set values }; //dq13 = new Array ( subchk values }; //dq14 = new Array ( headers ); code2 = parseInt(code2); var f5 = f52 = f53 = pricon = check5 = fives = 0; var rgen = 0; var rmlt = 0; var rmlt2 = 0; var r9e = 0; var r8e = 0; var r5e = 0; var r6e = 0; var cbr5 = 0; var dq20null = ''; var cspn1, cspn5, cspna, cspnb, cspnc, cwdth, czr1, czr2, czr3, czr4, czr5, czr6, czr7, czr8, czr45, czr445, fiver45, fiver455, in5, in8, here, mox, mox1, mox2, thar, tspn1, tspn2, tspn5, tspn55, twra, twrb, twrc, twend, tline, sbm, sbm2, sz2, subfive, five1, multi8, multi9, newcspna, cspna2, newcspna2, cspnafull, cspnhalf, cspnar; cspnhalf = 0; cspnafull = 0; cspnar = 0; sz = "" + sz; if (sz.indexOf("9") >= 0) { rgen = rmlt = r9e = 1; } if (sz.indexOf("8") >= 0) { rgen = rmlt = r8e = 1; } if (sz.indexOf("6") >= 0) { rgen = r6e = 1; } if (sz.indexOf("5") >= 0) { rgen = r5e = 1; } // n1w += ""; if (rmlt == 0) { twend = sz.lastIndexOf("1"); if (sz.lastIndexOf("2") > twend) { twend = sz.lastIndexOf("2"); } if (sz.lastIndexOf("3") > twend) { twend = sz.lastIndexOf("3"); } if (sz.lastIndexOf("4") > twend) { twend = sz.lastIndexOf("4"); } } td1 = (sz.length != 1 ? '' : ''); jps = jps1 = jps3 = jpse = 0; var jout = pls2 = pls22 = pls4 = place = 0; //fives if (r6e == 0) { // n1w += ''; for (var i = 0; i < sz.length; i++) { czr1 = sz.charAt(i); czr4 = (sz.length > i - 1 ? sz.charAt(i-1) : -1); czr45 = (i > 1 && sz.length > i - 2 ? sz.charAt(i-2) : -1); if (rmlt == 1) { rmlt2 = 1; if (i == 0 || (i > 1 && czr4 >= 8)) { place = (i != 0 ? i : 1); sbm = sz.substring(place,sz.length); sz2 = 0; if (r9e == 1) { sz2 = sbm.indexOf("9"); } else if (r8e == 1) { sz2 = sbm.indexOf("8"); } if (sz2 >= 0) { sbm = sbm.substring(0,sz2); } if (sbm.indexOf("5") >= 0) { subfive = 1; } else { subfive = 0; } } else { sbm = sz.substring(i,sz.length); sz2 = 0; if (r9e == 1) { sz2 = sbm.indexOf("9"); } else if (r8e == 1) { sz2 = sbm.indexOf("8"); } if (sz2 >= 0) { sbm = sbm.substring(0,sz2); if (r9e == 1) { if (sbm.indexOf("9") == -1) { rmlt2 = 0; } } else if (r8e == 1) { if (sbm.indexOf("8") == -1) { rmlt2 = 0; } } } else { rmlt2 = 0; } } } else { subfive = 1; } if (subfive == 1) { if (czr1 != 1 && czr1 != 3) { continue; } czr2 = (sz.length > i + 1 ? sz.charAt(i+1) : -1); czr3 = (sz.length > i + 2 ? sz.charAt(i+2) : -1); mox2 = 0; if (rmlt == 1) { czr5 = (sz.length > i + 3 ? sz.charAt(i+3) : -1); czr8 = (i > 1 ? sz.charAt(i-2) : -1); if (czr2 >= 8 || czr3 >= 8 || czr5 >= 8) { if (czr2 >= 8) { mox2 = 1; twend = i; } else if (czr3 >= 8 && czr2 != 1 && czr2 != 3) { mox2 = 1; // twend = (czr2 == 2 || czr2 == 4 ? i + 1 : -1); twend = (czr2 == 2 || czr2 == 4 || czr2 == 5 ? i + 1 : -1); } else if (czr5 >= 8 && czr2 != 1 && czr2 != 3 && czr3 != 1 && czr3 != 3) { mox2 = 1; twend = (czr2 == 2 || czr2 == 4 ? i + 1 : -1); } } if (czr4 == 8 || czr8 == 8) { fives = f5 = f52 = f53 = check5 = cbr5 = tspn2 = 0; // fives = f5 = 0; czr6 = 0; for (var j = i+1; j < sz.length; j++) { czr7 = sz.charAt(j); if (czr7 == 8) { break; } if (czr7 == 1 || czr7 == 3) { czr6 += 2; } else if (czr7 == 2 || czr7 == 4) { czr6 += 1; } } if (cbr5 == 1) { n1w += ";" } else { n1w += ""; } jps3++; } else if (czr4 == 9 || czr8 == 9) { if (cbr5 == 1) { n1w += ''; } fives = f5 = f52 = f53 = check5 = cbr5 = tspn2 = 0; } } if (czr4 == 5 || (czr4 == 7 && czr45 == 5)) { if (i > 2) { tspn55 = sz.substring(i-3,i); if (tspn55.indexOf("555") == -1) { fives = (fives == 1 ? 0 : 1); } } else { fives = (fives == 1 ? 0 : 1); } } tspn5 = ''; cspn5 = sz.substring(i); if (cspn5.indexOf("5") >= 0) { if (rmlt == 0 || rmlt2 == 0) { tspn5 = 1; //new 04/28 if (rmlt == 1) { multi8 = cspn5.indexOf("8"); multi9 = cspn5.indexOf("9"); if (multi8 > -1) { tspn5 = (five1 < multi8 ? 1 : 0); if (tspn5 == 0 && fives == 0) { f5 = 0; } } else if (multi9 > -1) { tspn5 = (five1 < multi9 ? 1 : 0); if (tspn5 == 0 && fives == 0) { f5 = 0; } } } } else { five1 = cspn5.indexOf("5"); multi8 = cspn5.indexOf("8"); multi9 = cspn5.indexOf("9"); if (multi8 > -1) { tspn5 = (five1 < multi8 ? 1 : 0); } else { tspn5 = (five1 < multi9 ? 1 : 0); } } } else if (fives == 0) { f5 = 0; } if (f5 == 0 && (czr4 == 5 || (czr4 == 7 && czr45 == 5))) { f5 = 1; f53++; } twra = ''; if (czr2 != 2 && czr2 != 4) { cwdth = 2; twrb = ''; twrc = ''; } else { cwdth = 3; twrb = ''; twrc = ''; } if (czr2 != 7 && czr3 != 7 && czr4 != 7) { if ((czr4 != 5 && f5 == 0) || (!tspn5 && fives == 0)) { cspnafull = 0; if (dq10[jps] != -8 && dq10[jps] != -1.5) { //topbot n1w += ""; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += "
" + dq14[jps3] + "
" + dq14[jps3] + "
"; if (cspnhalf == 0 && cspnar != 1) { n1w += ''; } if (cspnar != 1) { n1w += "
"; } else { n1w += "
"; } } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps] != -6 && dq10[jps] != -3.5 && dq10[jps] != -8 && dq10[jps] != -1.5) { if (czr2 != 2 && czr2 != 4) { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 4; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 2; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } else { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 6; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 3; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } } else if (dq10[jps] == -6 || dq10[jps] == -3.5) { algn = (dq10[jps] == -3.5 ? 'center' : 'left'); if (czr2 != 2 && czr2 != 4) { n1w += ""; } else{ n1w += ""; } } else if (dq10[jps] == -8 || dq10[jps] == -1.5) { algn = (dq10[jps] == -1.5 ? 'center' : 'left'); cspnafull = 0; if (czr2 != 2 && czr2 != 4) { n1w += ""; } else { n1w += ""; } } if (cspnafull > 0 && cspnhalf == 0 && cspnar != 2) { n1w += ""; } if (cspnar == 2) { cspnar = 0; } if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + " 
" + dq9[jps1] + " 
Full 
Full 
"; } if (dq1[jps]) { jpse = jps; } if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate1(jps,dq3[jps],j,dq4[jps],dq2[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } // else { n1w += "" + twra + "" + twrb; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate1(jps,dq3[jps],j,dq2[jps],'',dq13[jps],'',1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,dq13[jps],'','',jps); } } // else { n1w += "" + twra + "" + twrb; } } } n1w += ""; if ((cspnafull > 0 && cspnhalf == 0 && cspnar != 1) || cspnar == 2) { // if (cspnafull > 0 && cspnhalf == 0 && cspnar != 1) { n1w += "

"; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } check5 = 1; } else { thar = i; cspn1 = sz.substring(i); tspn1 = ''; if (cspn1.indexOf("5") >= 0) { here = cspn1.indexOf("5"); thar = cspn1; cspn1 = cspn1.substring(0,here); tspn1 = thar.substring(here,here+3); thar = cspn1; check5 = 0; } else { thar = czr1; } //topbot if (!tspn2 && tspn1.indexOf("555") >= 0) { tspn2 = 1; } tspn55 = ''; //topbot if (tspn1.indexOf("555") >= 0) { tspn55 = 1; } if (thar.indexOf("2") < 0 && thar.indexOf("4") < 0) { cspna = 1; cspnb = 2; twrd = ''; } else { cspna = 2; cspnb = 3; twrd = ''; // if (czr2 == 2 && czr2 == 4) { twrd = ''; } else { twrd = ''; cspna = 1; cspnb = 2; } } //tobbotend cspnafull = 0; if (dq10[jps] != -8 && dq10[jps] != -1.5) { // n1w += ""; //tobot if (cspnhalf == 0 && cspnar != 1) { n1w += ''; } if (cspnar != 1) { n1w += "
"; } else { n1w += "
"; } } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps1] != -8 && dq10[jps1] != -1.5) { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnafull = newcspna = (cspna == 2 ? 6 : 4); newcspna2 = (cspna == 2 ? 5 : 3); cspnar = 1; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = cspna + 1; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } else { cspnafull = 0; n1w += ""; } if (cspnafull > 0 && cspnhalf == 0 && cspnar != 2) { n1w += ""; } if (cspnar == 2) { cspnar = 0; } //topbotstart if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
Full 
"; } if (dq1[jps]) { jpse = jps; } if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate1(jps,dq3[jps],j,dq4[jps],dq2[jps],twrd,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate1(jps,dq3[jps],j,dq2[jps],twrd,dq13[jps],'',1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,dq13[jps],'','',jps); } } } } n1w += ""; if ((cspnafull > 0 && cspnhalf == 0 && cspnar != 1) || cspnar == 2) { // if (cspnafull > 0 && cspnhalf == 0 && cspnar != 1) { n1w += "

"; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += ""; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } //topbotend } //sevens } else { if (czr4 != 5 && f5 == 0) { cspnafull = 0; if (dq10[jps] != -8 && dq10[jps] != -1.5) { //topbot n1w += ""; if (cspnhalf == 0) { n1w += ''; } n1w += "
"; } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps] != -6 && dq10[jps] != -3.5 && dq10[jps] != -8 && dq10[jps] != -1.5) { if (czr2 != 2 && czr2 != 4) { cspnafull = 2; n1w += ""; } else { cspnafull = 3; n1w += ""; } } else if (dq10[jps] == -6 || dq10[jps] == -3.5) { algn = (dq10[jps] == -3.5 ? 'center' : 'left'); if (czr2 != 2 && czr2 != 4) { n1w += ""; } else{ n1w += ""; } } else if (dq10[jps] == -8 || dq10[jps] == -1.5) { algn = (dq10[jps] == -1.5 ? 'center' : 'left'); cspnafull = 0; if (czr2 != 2 && czr2 != 4) { n1w += ""; } else { n1w += ""; } } if (cspnafull > 0 && cspnhalf == 0) { n1w += ""; } if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + " 
" + dq9[jps1] + " 
Full 
Full 
"; } if (dq1[jps]) { jpse = jps; } if (czr4 != 7) { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate2(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } // else { n1w += "" + twra + "" + twrb; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } // else { n1w += "" + twra + "" + twrb; } } } } else { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate4(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } // else { n1w += "" + twra + "" + twrb; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } // else { n1w += "" + twra + "" + twrb; } } } } n1w += ""; if (cspnafull > 0 && cspnhalf == 0) { n1w += "

"; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += ""; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } check5 = 1; } else { thar = i; cspn1 = sz.substring(i); tspn1 = ''; if (cspn1.indexOf("5") >= 0) { here = cspn1.indexOf("5"); thar = cspn1; cspn1 = cspn1.substring(0,here); tspn1 = thar.substring(here,here+3); check5 = 0; } else { thar = cspn1; } //topbot if (!tspn2 && tspn1.indexOf("555") >= 0) { tspn2 = 1; } tspn55 = ''; //topbot if (tspn1.indexOf("555") >= 0) { tspn55 = 1; } if (thar.indexOf("2") < 0 && thar.indexOf("4") < 0) { cspna = 1; cspnb = 2; twrd = ''; } else { cspna = 2; cspnb = 3; twrd = ''; // if (czr2 == 2 && czr2 == 4) { twrd = ''; } else { twrd = ''; cspna = 1; cspnb = 2; } } cspnafull = 0; if (dq10[jps] != -8 && dq10[jps] != -1.5) { // n1w += ""; //tobot if (cspnhalf == 0) { n1w += ''; } n1w += "
"; } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps1] != -8 && dq10[jps1] != -1.5) { cspnafull = cspna + 1; n1w += ""; } else { cspnafull = cspna + 1; n1w += ""; } if (cspnafull > 0 && cspnhalf == 0) { n1w += ""; } //topbotstart if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
Full 
"; } if (dq1[jps]) { jpse = jps; } if (czr4 != 7) { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate2(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],twrd,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } // else { n1w += "" + twra + "" + twrb; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],twrd,twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } } } } else { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate4(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],twrd,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],twrd,twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } } } } n1w += ""; if (cspnafull > 0 && cspnhalf == 0) { n1w += "

"; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += ""; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } } } jps++; jps1++; if (mox2) { i = twend; //new 04/28 n1w += "
"; // n1w += "
"; n1w += ""; cbr5 = 1; } } else { in8 = (r8e != 1 ? 0 : 1); in5 = 0; if (i == 0) { if (r9e == 1 || r8e == 1) { sbm2 = sz.substring(sz2,sz.length); if (sbm2.indexOf("5") == -1) { i = sz.length; } else { in5 = 1; } } } else { if (r9e == 1 || r8e == 1) { sbm2 = sz.substring(sz2,sz.length); if (sz2 > 0 && sbm2.indexOf("5") == -1) { i = sz.length; } else if (sz2 <= 0 && sbm && sbm.indexOf("5") == -1) { id5 = 0; } else { in5 = 1; } // if ((sz2 > 0 && sbm2.indexOf("5") == -1) || (sz2 <= 0 && sbm.indexOf("5") == -1)) { // i = sz.length; // } else { // in5 = 1; // } } else { i = sz.length; } } jout = jslimmer2(sbm,1,in8,in5,code2); if (in5 == 1) { // i = sz2 + 1; if (jout != 0) { //new 04/28 n1w += "

"; // n1w += "
"; n1w += ""; cbr5 = 1; } i += jout; } else { i += jout; } } } n1w += '
'; //sixes } else { // n1w += ''; for (var i = 0; i < sz.length; i++) { czr1 = sz.charAt(i); czr4 = (sz.length > i - 1 ? sz.charAt(i-1) : -1); czr45 = (sz.length > i - 2 ? sz.charAt(i-2) : -1); if (rmlt == 1) { if (i == 0 || (i > 1 && czr4 >= 8)) { place = (i != 0 ? i : 1); sz2 = 0; sbm = sz.substring(place,sz.length); if (r9e == 1) { sz2 = sbm.indexOf("9"); } else if (r8e == 1) { sz2 = sbm.indexOf("8"); } if (sz2 >= 0) { sbm = sbm.substring(0,sz2); } if (sbm.indexOf("5") >= 0) { subfive = 1; } else { subfive = 0; } } } else { subfive = 1; } if (subfive == 1) { if (czr1 != 1 && czr1 != 3) { continue; } czr2 = (sz.length > i + 1 ? sz.charAt(i+1) : -1); czr3 = (sz.length > i + 2 ? sz.charAt(i+2) : -1); mox2 = 0; if (rmlt == 1) { czr5 = (sz.length > i + 3 ? sz.charAt(i+3) : -1); czr8 = (i > 1 ? sz.charAt(i-2) : -1); if (czr2 >= 8 || czr3 >= 8 || czr5 >= 8) { if (czr2 >= 8) { mox2 = 1; twend = i; } else if (czr3 >= 8 && czr2 != 1 && czr2 != 3) { mox2 = 1; // twend = (czr2 == 2 || czr2 == 4 ? i + 1 : -1); twend = (czr2 == 2 || czr2 == 4 || czr2 == 5 ? i + 1 : -1); } else if (czr5 >= 8 && czr2 != 1 && czr2 != 3 && czr3 != 1 && czr3 != 3) { mox2 = 1; twend = (czr2 == 2 || czr2 == 4 ? i + 1 : -1); } } if (czr4 == 8 || czr8 == 8) { fives = f5 = f52 = f53 = check5 = cbr5 = tspn2 = 0; czr6 = 0; for (var j = i+1; j < sz.length; j++) { czr7 = sz.charAt(j); if (czr7 == 8) { break; } if (czr7 == 1 || czr7 == 3) { czr6 += 2; } else if (czr7 == 2 || czr7 == 4) { czr6 += 1; } } if (cbr5 == 1) { n1w += "" + dq14[jps3] + ""; } else { n1w += "" + dq14[jps3] + ""; } jps3++; } else if (czr4 == 9 || czr8 == 9) { if (cbr5 == 1) { n1w += ''; } fives = f5 = f52 = f53 = check5 = cbr5 = tspn2 = 0; } } if (czr4 == 5 || (czr4 == 6 && czr45 == 5)) { if (i > 2) { tspn55 = sz.substring(i-3,i); if (tspn55.indexOf("555") == -1) { fives = (fives == 1 ? 0 : 1); } } else { fives = (fives == 1 ? 0 : 1); } } tspn5 = ''; cspn5 = sz.substring(i); if (cspn5.indexOf("5") >= 0) { if (rmlt == 0) { tspn5 = 1; } else { five1 = cspn5.indexOf("5"); multi8 = cspn5.indexOf("8"); multi9 = cspn5.indexOf("9"); if (multi8 > -1) { tspn5 = (five1 < multi8 ? 1 : 0); } else { tspn5 = (five1 < multi9 ? 1 : 0); } } } else if (f53 != 1) { f5 = 0; } if (f5 == 0 && (czr4 == 5 || (czr4 == 6 && czr45 == 5))) { f5 = 1; f53++; } twra = ''; if (czr2 != 2 && czr2 != 4) { cwdth = 2; twrb = ''; twrc = ''; } else { cwdth = 3; twrb = ''; twrc = ''; } if (czr2 != 7 && czr3 != 7 && czr4 != 7) { if ((czr4 != 5 && f5 == 0) || (!tspn5 && fives == 0)) { if (dq10[jps] != -8 && dq10[jps] != -1.5) { //topbot n1w += ""; if (cspnhalf == 0 && cspnar != 1) { n1w += ''; } if (cspnar != 1) { n1w += "
"; } else { n1w += "
"; } } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps] != -6 && dq10[jps] != -3.5 && dq10[jps] != -8 && dq10[jps] != -1.5) { if (czr2 != 2 && czr2 != 4) { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 4; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 2; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } else { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 6; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 3; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } } else if (dq10[jps] == -6 || dq10[jps] == -3.5) { algn = (dq10[jps] == -3.5 ? 'center' : 'left'); if (czr2 != 2 && czr2 != 4) { n1w += ""; } else{ n1w += ""; } } else if (dq10[jps] == -8 || dq10[jps] == -1.5) { algn = (dq10[jps] == -1.5 ? 'center' : 'left'); cspnafull = 0; if (czr2 != 2 && czr2 != 4) { n1w += ""; } else { n1w += ""; } } if (cspnafull > 0 && cspnhalf == 0 && cspnar != 2) { n1w += ""; } if (cspnar == 2) { cspnar = 0; } if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + " 
" + dq9[jps1] + " 
Full 
Full 
"; } if (dq1[jps]) { jpse = jps; } //withsubs if (!dq11[jps]) { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate1(jps,dq3[jps],j,dq4[jps],dq2[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } // else { n1w += "" + twra + "" + twrb; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate1(jps,dq3[jps],j,dq2[jps],'',dq13[jps],twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,dq13[jps],'','',jps); } } // else { n1w += "" + twra + "" + twrb; } } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate3(jps,dq3[jps],j,dq2[jps],dq6[jps],dq11[jps],dq12[jps],dq13[jps],twrb,'',dq15[jps],'','','',''); } // else { n1w += "" + twra + "" + twrb; } } } n1w += ""; if ((cspnafull > 0 && cspnhalf == 0 && cspnar != 1) || cspnar == 2) { // if (cspnafull > 0 && cspnhalf == 0 && cspnar != 1) { n1w += "

"; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += ""; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } } else { thar = i; cspn1 = sz.substring(i); tspn1 = ''; var cspn111; if (cspn1.indexOf("5") >= 0) { here = cspn1.indexOf("5"); thar = cspn1; cspn1 = cspn1.substring(0,here); tspn1 = thar.substring(here,here+3); thar = cspn1; } else { thar = czr1; } if (!tspn2 && tspn1.indexOf("555") >= 0) { tspn2 = 1; } tspn55 = ''; if (tspn1.indexOf("555") >= 0) { tspn55 = 1; } if (thar.indexOf("2") < 0 && thar.indexOf("4") < 0) { cspna = 1; cspnb = 2; twrd = ''; } else { cspna = 2; cspnb = 3; twrd = ''; // if (czr2 == 2 && czr2 == 4) { twrd = ''; } else { twrd = ''; cspna = 1; cspnb = 2; } // if (czr2 == 2 && czr2 == 4) { twrd = ''; } else { twrd = ''; cspna = 2; cspnb = 3; } } cspnafull = 0; if (dq10[jps] != -8 && dq10[jps] != -1.5) { // n1w += ""; //topbot if (cspnhalf == 0 && cspnar != 1) { n1w += ''; } if (cspnar != 1) { n1w += "
"; } else { n1w += "
"; } } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps1] != -8 && dq10[jps1] != -1.5) { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnafull = newcspna = (cspna == 2 ? 6 : 4); newcspna2 = (cspna == 2 ? 5 : 3); cspnar = 1; n1w += ""; // + twrb; } else if (dq9[jps1] != '
') { cspnafull = cspna + 1; if (cspnhalf == 0) { n1w += ""; // + twrb; } else { if (dq10[jps1] == 0) { n1w += ""; // + twrb; // n1w += ""; // + twrb; } else { n1w += ""; // + twrb; // n1w += ""; // + twrb; } } } else if (dq9[jps1] == '
') { cspnar = 2; } } else { cspnafull = 0; n1w += ""; // " + twrb; } if (cspnafull > 0 && cspnhalf == 0 && cspnar != 2) { n1w += ""; } if (cspnar == 2) { cspnar = 0; } //topbotstart if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + "
" + dq9[jps1] + "
" + dq9[jps1] + "
" + dq9[jps1] + "
Full 
"; } if (dq1[jps]) { jpse = jps; } if (!dq11[jps]) { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate1(jps,dq3[jps],j,dq4[jps],dq2[jps],twrd,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate1(jps,dq3[jps],j,dq2[jps],twrd,dq13[jps],twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,dq13[jps],'','',jps); } } } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate3(jps,dq3[jps],j,dq2[jps],dq6[jps],dq11[jps],dq12[jps],dq13[jps],twrb,1,dq15[jps],'','','',''); } } } n1w += "" + twrb; if ((cspnafull > 0 && cspnhalf == 0 && cspnar != 1) || cspnar == 2) { // if (cspnafull > 0 && cspnhalf == 0 && cspnar != 1) { n1w += "

"; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += ""; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } } //sevens } else { if (czr4 != 5 && f5 == 0) { //topbot n1w += ""; n1w += ""; n1w += "
"; if (czr2 != 2 && czr2 != 4) { cspnafull = 2; n1w += ""; } else { cspnafull = 3; n1w += ""; } if (cspnafull > 0 && cspnhalf == 0) { n1w += ""; } //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
"; } if (dq1[jps]) { jpse = jps; } if (czr4 != 7) { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate2(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } } } } else { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate4(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } } } } n1w += ""; if (cspnafull > 0 && cspnhalf == 0) { n1w += "

"; } else { thar = i; cspn1 = sz.substring(i); tspn1 = ''; if (cspn1.indexOf("5") >= 0) { here = cspn1.indexOf("5"); thar = cspn1; cspn1 = cspn1.substring(0,here); tspn1 = thar.substring(here,here+3); } else { thar = cspn1; } //topbot if (!tspn2 && tspn1.indexOf("555") >= 0) { tspn2 = 1; } tspn55 = ''; //topbot if (tspn1.indexOf("555") >= 0) { tspn55 = 1; } if (thar.indexOf("2") < 0 && thar.indexOf("4") < 0) { cspna = 1; cspnb = 2; twrd = ''; } else { cspna = 2; cspnb = 3; twrd = ''; // if (czr2 == 2 && czr2 == 4) { twrd = ''; } else { twrd = ''; cspna = 1; cspnb = 2; } } cspnafull = 0; if (dq10[jps] != -8 && dq10[jps] != -1.5) { // n1w += ""; //topbot if (cspnhalf == 0) { n1w += ''; } n1w += "
"; } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps1] != -8 && dq10[jps1] != -1.5) { cspnafull = cspna + 1; n1w += ""; // + twrb; } else { cspnafull = 0; n1w += ""; } if (cspnafull > 0 && cspnhalf == 0) { n1w += ""; } //topbotstart if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
Full 
"; } if (dq1[jps]) { jpse = jps; } if (czr4 != 7) { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate2(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],twrd,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],twrd,twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } } } } else { if (czr1 == 1) { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { radiate4(jps,dq3[jps],j,dq4[jps],dq2[jps],dq6[jps],dq7[jps],twrd,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],j,twrc,'','','',jps); } dq3[jps] = ''; } } } else { for (var j = 0; j < dq1[jpse].length; j++) { var dqlen = (dq2[jps].length >= dq1[jpse].length ? dq2[jps].length : dq1[jpse].length); if (j < dqlen) { checkerate2(jps,dq3[jps],j,dq2[jps],dq6[jps],dq7[jps],dq8[jps],twrd,twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],j,twrc,'','','',jps); } } } } } n1w += ""; if (cspnafull > 0 && cspnhalf == 0) { n1w += "

"; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += ""; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } } } jps++; jps1++; if (mox2) { i = twend; //new 04/28 n1w += "
"; // n1w += "
"; n1w += ""; cbr5 = 1; // break; } } else { in8 = (r8e != 1 ? 0 : 1); in5 = 0; if (i == 0) { if (r9e == 1 || r8e == 1) { sbm2 = sz.substring(sz2,sz.length); if (sbm2.indexOf("5") == -1) { i = sz.length; } else { in5 = 1; } } } else { if (r9e == 1 || r8e == 1) { sbm2 = sz.substring(sz2,sz.length); if (sz2 > 0 && sbm2.indexOf("5") == -1) { i = sz.length; } else if (sz2 <= 0 && sbm && sbm.indexOf("5") == -1) { id5 = 0; } else { in5 = 1; } // if ((sz2 > 0 && sbm2.indexOf("5") == -1) || (sz2 <= 0 && sbm.indexOf("5") == -1)) { // i = sz.length; // } else { // in5 = 1; // } } else { i = sz.length; } } jout = jslimmer2(sbm,1,in8,in5,code2); if (in5 == 1) { // i = sz2 + 1; if (jout != 0) { //new 04/28 n1w += "

"; // n1w += "
"; n1w += ""; cbr5 = 1; } i += jout; } else { i += jout; } } } } } function jslimmer2(sz,inout,in8,in5,code2) { var f5 = f52 = f53 = pricon = 0; var rgen = 0; var rmlt = 0; var r9e = 0; var r8e = 0; var r5e = 0; var r6e = 0; var dq20null = ''; var cspn1, cspna, cspnb, cspnc, cwdth, czr1, czr2, czr3, czr4, czr5, czr6, czr7, here, mox, mox1, mox2, thar, tspn1, tspn2, twra, twrb, twrc, twend, tline, cspnhalf, cspnafull, cspnar; cspnhalf = 0; cspnafull = 0; cspnar = 0; if (in5 == null) { in5 = 0; } sz = "" + sz; if (sz.indexOf("9") >= 0) { rgen = rmlt = r9e = 1; } if (sz.indexOf("8") >= 0) { rgen = rmlt = r8e = 1; } if (sz.indexOf("6") >= 0) { rgen = r6e = 1; } if (sz.indexOf("5") >= 0) { rgen = r5e = 1; } if (rmlt == 0) { twend = sz.lastIndexOf("1"); if (sz.lastIndexOf("2") > twend) { twend = sz.lastIndexOf("2"); } if (sz.lastIndexOf("3") > twend) { twend = sz.lastIndexOf("3"); } if (sz.lastIndexOf("4") > twend) { twend = sz.lastIndexOf("4"); } } td1 = (sz.length != 1 ? '' : ''); var jps10 = pls2 = pls4 = jstart = jps1 = jps; var czr1a = jps11 = 0; if (inout == null || !inout) { inout = 0; } if (inout == 1) { for (var j = 0; j < sz.length; j++) { czr1a = sz.charAt(j); if (czr1a != 1 && czr1a != 3) { continue; } jps10++; jps11++; } } var jout = loops = looper = pls22 = pls44 = pls3 = offnine = 0; if (r6e == 0) { for (var i = jstart; i < dq1.length; i++) { if (!dq1[i]) { continue; } tline = ''; offnine = 0; if (in5 == 1 && pls44 == jps11) { break; } // if (in5 == 1 && jps >= sz.length) { break; } for (var j = loops; j < sz.length; j++) { czr1 = sz.charAt(j); if ((rmlt == 1 && czr1 >= 8) || in8 == 1) { if (offnine == 1) { break; } if (offnine == 0) { offnine = 1 ; } if (czr1 == 8 || in8 == 1) { czr6 = 0; for (var k = j+1; k < sz.length; k++) { czr7 = sz.charAt(k); if (czr7 == 8) { break; } if (czr7 == 1 || czr7 == 3) { czr6 += 2; } else if (czr7 == 2 || czr7 == 4) { czr6 += 1; } } n1w += ""; jps3++; if (j == 0) { in8 = 0; } } } } // n1w += ''; for (var j = loops; j < sz.length; j++) { jout = j; czr1 = sz.charAt(j); if (czr1 != 1 && czr1 != 3) { continue; } pls3++; czr2 = (sz.length > j + 1 ? sz.charAt(j+1) : -1); czr3 = (sz.length > j + 2 ? sz.charAt(j+2) : -1); czr4 = (sz.length > j - 1 ? sz.charAt(j-1) : -1); mox2 = 0; if (rmlt == 1) { twend = -1; czr5 = (sz.length > j + 3 ? sz.charAt(j+3) : -1); if (czr2 >= 8 || czr3 >= 8 || czr5 >= 8) { if (czr2 >= 8) { looper = j + 1; mox2 = 1; twend = j; } else if (czr3 >= 8 && czr2 != 1 && czr2 != 3) { looper = j + 2; mox2 = 1; // twend = (czr2 == 2 || czr2 == 4 ? j + 1 : -1); twend = (czr2 == 2 || czr2 == 4 || czr2 == 5 ? j + 1 : -1); } else if (czr5 >= 8 && czr2 != 1 && czr2 != 3 && czr3 != 1 && czr3 != 3) { looper = j + 3; mox2 = 1; twend = (czr2 == 2 || czr2 == 4 ? j + 1 : -1); } } } twrd = (pls22 == 0 ? 1 : 0); twra = ''; if (czr2 != 2 && czr2 != 4) { cwdth = 2; twrb = ''; twrc = ''; } else { cwdth = 3; twrb = ''; twrc = ''; } cspnafull = 0; if (inout == 1 && !dq2[jps]) { break; } if (czr2 != 7 && czr3 != 7 && czr4 != 7) { if (dq10[jps] != -8 && dq10[jps] != -1.5) { //topbot n1w += ""; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += "
" + dq14[jps3] + "
"; if (cspnhalf == 0 && cspnar != 1) { n1w += ''; } if (cspnar != 1) { n1w += "
"; } else { n1w += "
"; } // n1w += "
"; } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { n1w += "
  " + dq9[jps1] + " 
"; if (cspnar != 1) { n1w += "
"; } if (dq10[jps] != -6 && dq10[jps] != -3.5 && dq10[jps] != -8 && dq10[jps] != -1.5) { if (czr2 != 2 && czr2 != 4) { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 4; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 2; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } else { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 6; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 3; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } } else if (dq10[jps] == -6 || dq10[jps] == -3.5) { algn = (dq10[jps] == -3.5 ? 'center' : 'left'); if (czr2 != 2 && czr2 != 4) { n1w += ""; } else{ n1w += ""; } } else if (dq10[jps] == -8 || dq10[jps] == -1.5) { algn = (dq10[jps] == -1.5 ? 'center' : 'left'); cspnafull = 0; if (czr2 != 2 && czr2 != 4) { n1w += ""; } else { n1w += ""; } } if (cspnafull > 0 && cspnhalf == 0 && cspnar != 2) { n1w += ""; } if (cspnar == 2) { cspnar = 0; } if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + " 
" + dq9[jps1] + " 
Full 
Full 
"; } if (czr1 == 1) { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { radiate1(jps,dq3[jps],k,dq4[jps],dq2[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],k,twrc,'','','',jps); } dq3[jps] = ''; } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate1(jps,dq3[jps],k,dq2[jps],'',dq13[jps],'',1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],k,twrc,dq13[jps],'','',jps); } } } } } n1w += ""; if ((cspnafull > 0 && cspnhalf == 0 && cspnar != 1) || cspnar == 2) { n1w += "

"; } } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
"; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } //sevens } else { if (dq10[jps] != -8 && dq10[jps] != -1.5) { //topbot n1w += ""; if (cspnhalf == 0) { n1w += ''; } n1w += "
"; } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps] != -6 && dq10[jps] != -3.5 && dq10[jps] != -8 && dq10[jps] != -1.5) { if (czr2 != 2 && czr2 != 4) { cspnafull = 2; n1w += ""; } else { cspnafull = 3; n1w += ""; } } else if (dq10[jps] == -6 || dq10[jps] == -3.5) { algn = (dq10[jps] == -3.5 ? 'center' : 'left'); if (czr2 != 2 && czr2 != 4) { n1w += ""; } else{ n1w += ""; } } else if (dq10[jps] == -8 || dq10[jps] == -1.5) { algn = (dq10[jps] == -1.5 ? 'center' : 'left'); cspnafull = 0; if (czr2 != 2 && czr2 != 4) { n1w += ""; } else { n1w += ""; } } if (cspnafull > 0 && cspnhalf == 0) { n1w += ""; } if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + " 
" + dq9[jps1] + " 
Full 
Full 
"; } if (czr4 != 7) { if (czr1 == 1) { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { radiate2(jps,dq3[jps],k,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],k,twrc,'','','',jps); } dq3[jps] = ''; } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate2(jps,dq3[jps],k,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],k,twrc,'','','',jps); } } } } } } else { if (czr1 == 1) { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { radiate4(jps,dq3[jps],k,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],k,twrc,'','','',jps); } dq3[jps] = ''; } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate2(jps,dq3[jps],k,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],k,twrc,'','','',jps); } } } } } } n1w += ""; if (cspnafull > 0 && cspnhalf == 0) { n1w += "

"; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += ""; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } } jps++; jps1++; pls22++; if (mox2 == 1) { //new 04/28 n1w += "
"; // n1w += "
"; n1w += ""; loops = looper; mox2 = 0; if (inout == 1) { jout = looper + 1; return(jout); } break; } } pls44 = pls22; } if (inout == 1) { jps = jps10; } //sixes } else { for (var i = jstart; i < dq1.length; i++) { if (!dq1[i]) { continue; } tline = ''; offnine = 0; if (in5 == 1 && pls44 == jps11) { break; } for (var j = loops; j < sz.length; j++) { czr1 = sz.charAt(j); if ((rmlt == 1 && czr1 >= 8) || in8 == 1) { if (offnine == 1) { break; } if (offnine == 0) { offnine = 1 ; } if (czr1 == 8 || in8 == 1) { czr6 = 0; for (var k = j+1; k < sz.length; k++) { czr7 = sz.charAt(k); if (czr7 == 8) { break; } if (czr7 == 1 || czr7 == 3) { czr6 += 1; } else if (czr7 == 2 || czr7 == 4) { } } n1w += ""; jps3++; if (j == 0) { in8 = 0; } } } } n1w += ''; for (var j = loops; j < sz.length; j++) { jout = j; czr1 = sz.charAt(j); if (czr1 != 1 && czr1 != 3) { continue; } czr2 = (sz.length > j + 1 ? sz.charAt(j+1) : -1); czr3 = (sz.length > j + 2 ? sz.charAt(j+2) : -1); czr4 = (sz.length > j - 1 ? sz.charAt(j-1) : -1); mox2 = 0; if (rmlt == 1) { twend = -1; czr5 = (sz.length > j + 3 ? sz.charAt(j+3) : -1); if (czr2 >= 8 || czr3 >= 8 || czr5 >= 8) { if (czr2 >= 8) { looper = j + 1; mox2 = 1; twend = j; } else if (czr3 >= 8 && czr2 != 1 && czr2 != 3) { looper = j + 2; mox2 = 1; // twend = (czr2 == 2 || czr2 == 4 ? j + 1 : -1); twend = (czr2 == 2 || czr2 == 4 || czr2 == 5 ? j + 1 : -1); } else if (czr5 >= 8 && czr2 != 1 && czr2 != 3 && czr3 != 1 && czr3 != 3) { looper = j + 3; mox2 = 1; twend = (czr2 == 2 || czr2 == 4 ? j + 1 : -1); } } } twrd = (pls22 == 0 ? 1 : 0); twra = ''; if (czr2 != 2 && czr2 != 4) { cwdth = 2; twrb = ''; twrc = ''; } else { cwdth = 3; twrb = ''; twrc = ''; } cspnafull = 0; if (inout == 1 && !dq2[jps]) { break; } if (czr2 != 7 && czr3 != 7 && czr4 != 7) { if (dq10[jps] != -8 && dq10[jps] != -1.5) { //topbot n1w += ""; cspnhalf = 0; } else { if (cspnhalf == 1 && (mox2 == 1 || dq13.length == jps || dq13.length == jps + 1)) { n1w += "
" + dq14[jps3] + "
"; if (cspnhalf == 0 && cspnar != 1) { n1w += ''; } if (cspnar != 1) { n1w += "
"; } else { n1w += "
"; } } else { if (cspnhalf == 0) { n1w += ''; } cspnhalf = 1; n1w += ""; } else { if (dq13[jps] && dq13[jps] != 0 && (dq13.length == jps || dq13.length == jps + 1 || !dq13[jps+1] || dq13[jps+1] == 0 || dq13[jps+1] == 2)) { n1w += "
  " + dq9[jps1] + " 
"; n1w += "
"; } if (dq10[jps] != -6 && dq10[jps] != -3.5 && dq10[jps] != -8 && dq10[jps] != -1.5) { if (czr2 != 2 && czr2 != 4) { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 4; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 2; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } else { if (dq9[jps1+1] && dq9[jps1+1] == '
') { cspnar = 1; cspnafull = 6; n1w += ""; } else if (dq9[jps1] != '
') { cspnafull = 3; n1w += ""; } else if (dq9[jps1] == '
') { cspnar = 2; } } } else if (dq10[jps] == -6 || dq10[jps] == -3.5) { algn = (dq10[jps] == -3.5 ? 'center' : 'left'); if (czr2 != 2 && czr2 != 4) { n1w += ""; } else{ n1w += ""; } } else if (dq10[jps] == -8 || dq10[jps] == -1.5) { algn = (dq10[jps] == -1.5 ? 'center' : 'left'); cspnafull = 0; if (czr2 != 2 && czr2 != 4) { n1w += ""; } else { n1w += ""; } } if (cspnafull > 0 && cspnhalf == 0 && cspnar != 2) { n1w += ""; } if (cspnar == 2) { cspnar = 0; } if (!cspnhalf) { //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
" + dq9[jps1] + " 
" + dq9[jps1] + " 
Full 
Full 
"; } if (!dq11[jps]) { if (czr1 == 1) { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { radiate1(jps,dq3[jps],k,dq4[jps],dq2[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],k,twrc,'','','',jps); } dq3[jps] = ''; } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate1(jps,dq3[jps],k,dq2[jps],'',dq13[jps],'',1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],k,twrc,dq13[jps],'','',jps); } } } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate3(jps,dq3[jps],k,dq2[jps],dq6[jps],dq11[jps],dq12[jps],dq13[jps],twrb,1,dq15[jps],'','','',''); } } } } n1w += ""; if ((cspnafull > 0 && cspnhalf == 0 && cspnar != 1) || cspnar == 2) { // if (cspnafull > 0 && cspnhalf == 0 && cspnar != 1) { n1w += "

"; } else { //topbot n1w += ""; n1w += ""; if (cspnhalf == 0) { n1w += ''; } } } } //sevens } else { //topbot n1w += ""; n1w += ""; n1w += "
"; cspnafull = 0; if (czr2 != 2 && czr2 != 4) { cspnafull = 1; n1w += ""; } else { cspnafull = 2; n1w += ""; } if (cspnafull > 0) { n1w += ""; } //topbot n1w += "
  " + dq9[jps1] + "
  " + dq9[jps1] + "
"; } if (czr4 != 7) { if (!dq11[jps]) { if (czr1 == 1) { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { radiate2(jps,dq3[jps],k,dq4[jps],dq2[jps],dq6[jps],dq7[jps],'',twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],k,twrc,'','','',jps); } dq3[jps] = ''; } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate2(jps,dq3[jps],k,dq2[jps],dq6[jps],dq7[jps],dq8[jps],'',twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],k,twrc,'','','',jps); } } } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate3(jps,dq3[jps],k,dq2[jps],dq6[jps],dq11[jps],dq12[jps],dq13[jps],twrb,twrd,dq15[jps],'','','',''); } } } } } else { if (czr1 == 1) { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { radiate4(jps,dq3[jps],k,dq4[jps],dq2[jps],dq6[jps],dq7[jps],td1,twrb,1,dq15[jps],'',''); if (czr2 == 2) { radcheck1(dq5[jps],k,twrc,'','','',jps); } dq3[jps] = ''; } } } } else { if (dq2[jps]) { for (var k = 0; k < dq2[jps].length; k++) { if (k < dq2[jps].length) { checkerate2(jps,dq3[jps],k,dq2[jps],dq6[jps],dq7[jps],dq8[jps],td1,twrb,1,dq15[jps],'','','',''); if (czr2 == 4) { radcheck1(dq5[jps],k,twrc,'','','',jps); } } } } } } n1w += ""; if (cspnafull > 0 && cspnhalf == 0) { n1w += "

"; } jps++; jps1++; pls22++; if (mox2 == 1) { n1w += "
"; n1w += ""; loops = looper; mox2 = 0; if (inout == 1) { jout = looper + 1; return(jout); } break; } } n1w += ''; pls44 = pls22; } if (inout == 1) { jps = jps10; } } if (inout == 1) { return(jout); } } function a1() { w1h = 620; n_0 = ld1; ck0 = cx1; r_h0 = wu1; r0 = radio115_0; r0p = radio115_0p; ar_len001 = radio115_0; n_1 = ld2; ck1 = ""; c_h1 = wu2; c1 = extras115_0; c1p = extras115_0p; ar_len021 = extras115_0; n_2 = ld3; ck2 = cx1; r_h2 = wu3; r2 = radio105_0; r2p = radio105_0p; ar_len041 = radio105_0; n_3 = ld4; ck3 = ""; c_h3 = wu4; c3 = extras502_0; c3p = extras502_0p; ar_len061 = extras502_0; w1d = 1054; icol_a = 10; icol_b = 12; dq1 = new Array(radio115_0,extras115_0,radio105_0,extras502_0); dq2 = new Array(r0,c1,r2,c3); dq3 = new Array(ck0,ck1,ck2,ck3); dq4 = new Array(r0r,'',r2r,''); dq5 = new Array(r0p,c1p,r2p,c3p); dq6 = new Array('','','',''); dq7 = new Array('','','',''); dq8 = new Array('','','',''); dq9 = new Array(n_0,n_1,n_2,n_3); dq10 = new Array(0,0,0,0); dq11 = new Array('','','',''); dq12 = new Array('','','',''); dq13 = new Array('','0','','0'); dq15 = new Array('','1,2,3,4,5,6,7,8','',''); dq16 = new Array('0','','0',''); dq17 = new Array(1,1,1,1); dq19 = new Array('','','',''); } function a2() { w1h = 620; n_0 = ld1; ck0 = cx1; r_h0 = wu1; r0 = radio1151_0; r0p = radio1151_0p; ar_len001 = radio1151_0; n_1 = ld2; ck1 = ""; c_h1 = wu2; c1 = extras1151_0; c1p = extras1151_0p; ar_len021 = extras1151_0; n_2 = ld3; ck2 = cx1; r_h2 = wu3; r2 = radio1051_0; r2p = radio1051_0p; ar_len041 = radio1051_0; n_3 = ld5; tg0 = ""; t0 = "r3"; tq0 = "3,4,5"; ck3 = cx1; r_h3 = wu5; r3 = radio8768_0; r3p = radio8768_0p; ar_len061 = radio8768_0; n_4 = ld6; tl0 = "r4"; r4r = 2; ts0 = 2; ck4 = ""; r_h4 = wu6; r4 = tiesalady141_0; ar_len081 = tiesalady141_0; n_5 = ld4; ck5 = ""; c_h5 = wu4; c5 = extras501_0; c5p = extras501_0p; ar_len091 = extras501_0; tv0 = r3; tr0 = r4; w1d = 1075; icol_a = 15; icol_b = 17; dq1 = new Array(radio1151_0,extras1151_0,radio1051_0,radio8768_0,tiesalady141_0,extras501_0); dq2 = new Array(r0,c1,r2,r3,r4,c5); dq3 = new Array(ck0,ck1,ck2,ck3,ck4,ck5); dq4 = new Array(r0r,'',r2r,r3r,r4r,''); dq5 = new Array(r0p,c1p,r2p,r3p,'',c5p); dq6 = new Array('0','0','0','0','0','0'); dq7 = new Array('','','','','',''); dq8 = new Array('','','','','',''); dq9 = new Array(n_0,n_1,n_2,n_3,n_4,n_5); dq10 = new Array(0,0,0,0,0,0); dq11 = new Array('','','','','',''); dq12 = new Array('','','','','',''); dq13 = new Array('','0','','','','0'); dq15 = new Array('','1,2,3,4,5,6,7','','','',''); dq16 = new Array('0','','0','0','0',''); dq17 = new Array(1,1,1,1,1,1); dq19 = new Array('','','','','',''); } function a3() { w1h = 620; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with125_0; ar_len001 = with125_0; n_1 = ld8; ck1 = ""; c_h1 = wu8; c1 = extras120_0; c1p = extras120_0p; ar_len011 = extras120_0; n_2 = ld4; ck2 = ""; c_h2 = wu4; c2 = extras501_0; c2p = extras501_0p; ar_len030 = extras501_0; w1d = 627; icol_a = 6; icol_b = 8; dq1 = new Array(with125_0,extras120_0,extras501_0); dq2 = new Array(c0,c1,c2); dq3 = new Array(ck0,ck1,ck2); dq4 = new Array('','',''); dq5 = new Array('',c1p,c2p); dq6 = new Array('','',''); dq7 = new Array('','',''); dq8 = new Array('','',''); dq9 = new Array(n_0,n_1,n_2); dq10 = new Array(0,0,0); dq11 = new Array('','',''); dq12 = new Array('','',''); dq13 = new Array('0','0','0'); dq15 = new Array('','',''); dq16 = new Array('','',''); dq17 = new Array(1,1,1); dq19 = new Array('','',''); } function a4() { w1h = 490; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with175_0; n_1 = ld4; ck1 = ""; c_h1 = wu4; c1 = extras501_0; c1p = extras501_0p; w1d = 583; icol_a = 3; icol_b = 5; dq1 = new Array(extras501_0,''); dq2 = new Array(c0,c1); dq3 = new Array(ck0,ck1); dq4 = new Array('',''); dq5 = new Array('',c1p); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0','0'); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,1); dq19 = new Array('',''); } function a5() { w1h = 490; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with1703_0; n_1 = ld4; ck1 = ""; c_h1 = wu4; c1 = extras501_0; c1p = extras501_0p; w1d = 554; icol_a = 3; icol_b = 5; dq1 = new Array(extras501_0,''); dq2 = new Array(c0,c1); dq3 = new Array(ck0,ck1); dq4 = new Array('',''); dq5 = new Array('',c1p); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0','0'); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,1); dq19 = new Array('',''); } function a6() { w1h = 490; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with1103_0; n_1 = ld4; ck1 = ""; c_h1 = wu4; c1 = extras501_0; c1p = extras501_0p; w1d = 554; icol_a = 3; icol_b = 5; dq1 = new Array(extras501_0,''); dq2 = new Array(c0,c1); dq3 = new Array(ck0,ck1); dq4 = new Array('',''); dq5 = new Array('',c1p); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0','0'); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,1); dq19 = new Array('',''); } function a7() { w1h = 490; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with903_0; n_1 = ld4; ck1 = ""; c_h1 = wu4; c1 = extras501_0; c1p = extras501_0p; w1d = 581; icol_a = 3; icol_b = 5; dq1 = new Array(extras501_0,''); dq2 = new Array(c0,c1); dq3 = new Array(ck0,ck1); dq4 = new Array('',''); dq5 = new Array('',c1p); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0','0'); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,1); dq19 = new Array('',''); } function a8() { w1h = 490; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with1501_0; n_1 = ld4; ck1 = ""; c_h1 = wu4; c1 = extras501_0; c1p = extras501_0p; w1d = 591; icol_a = 3; icol_b = 5; dq1 = new Array(extras501_0,''); dq2 = new Array(c0,c1); dq3 = new Array(ck0,ck1); dq4 = new Array('',''); dq5 = new Array('',c1p); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0','0'); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,1); dq19 = new Array('',''); } function a9() { w1h = 490; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with155_0; n_1 = ld4; ck1 = ""; c_h1 = wu4; c1 = extras501_0; c1p = extras501_0p; w1d = 575; icol_a = 3; icol_b = 5; dq1 = new Array(extras501_0,''); dq2 = new Array(c0,c1); dq3 = new Array(ck0,ck1); dq4 = new Array('',''); dq5 = new Array('',c1p); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0','0'); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,1); dq19 = new Array('',''); } function a10() { w1h = 490; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with180_0; n_1 = ld4; ck1 = ""; c_h1 = wu4; c1 = extras502_0; c1p = extras502_0p; w1d = 583; icol_a = 3; icol_b = 5; dq1 = new Array(extras502_0,''); dq2 = new Array(c0,c1); dq3 = new Array(ck0,ck1); dq4 = new Array('',''); dq5 = new Array('',c1p); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0','0'); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,1); dq19 = new Array('',''); } function a11() { w1h = 490; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with451160_0; n_1 = ld4; ck1 = ""; c_h1 = wu4; c1 = extras502_0; c1p = extras502_0p; w1d = 583; icol_a = 3; icol_b = 5; dq1 = new Array(extras502_0,''); dq2 = new Array(c0,c1); dq3 = new Array(ck0,ck1); dq4 = new Array('',''); dq5 = new Array('',c1p); dq6 = new Array('',''); dq7 = new Array('',''); dq8 = new Array('',''); dq9 = new Array(n_0,n_1); dq10 = new Array(0,0); dq11 = new Array('',''); dq12 = new Array('',''); dq13 = new Array('0','0'); dq15 = new Array('',''); dq16 = new Array('',''); dq17 = new Array(1,1); dq19 = new Array('',''); } function a12() { w1h = 525; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with190_0; ar_len001 = with190_0; n_1 = ld8; ck1 = ""; c_h1 = wu8; c1 = extras190_0; c1p = extras190_0p; ar_len011 = extras190_0; n_2 = ld9; ck2 = cx1; r_h2 = wu9; r2 = radio500_0; r2p = radio500_0p; ar_len031 = radio500_0; n_3 = ld4; ck3 = ""; c_h3 = wu4; c3 = extras502_0; c3p = extras502_0p; ar_len051 = extras502_0; y2 = 1; w1d = 674; icol_a = 9; icol_b = 11; dq1 = new Array(with190_0,extras190_0,radio500_0,extras502_0); dq2 = new Array(c0,c1,r2,c3); dq3 = new Array(ck0,ck1,ck2,ck3); dq4 = new Array('','',r2r,''); dq5 = new Array('',c1p,r2p,c3p); dq6 = new Array('','','',''); dq7 = new Array('','','',''); dq8 = new Array('','','',''); dq9 = new Array(n_0,n_1,n_2,n_3); dq10 = new Array(0,0,0,0); dq11 = new Array('','','',''); dq12 = new Array('','','',''); dq13 = new Array('0','0','','0'); dq15 = new Array('','','',''); dq16 = new Array('','','0',''); dq17 = new Array(1,1,1,1); dq19 = new Array('','','',''); } function a13() { w1h = 525; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with195_0; ar_len001 = with195_0; n_1 = ld8; ck1 = ""; c_h1 = wu8; c1 = extras190_0; c1p = extras190_0p; ar_len011 = extras190_0; n_2 = ld9; ck2 = cx1; r_h2 = wu9; r2 = radio500_0; r2p = radio500_0p; ar_len031 = radio500_0; n_3 = ld4; ck3 = ""; c_h3 = wu4; c3 = extras502_0; c3p = extras502_0p; ar_len051 = extras502_0; y2 = 1; w1d = 697; icol_a = 9; icol_b = 11; dq1 = new Array(with195_0,extras190_0,radio500_0,extras502_0); dq2 = new Array(c0,c1,r2,c3); dq3 = new Array(ck0,ck1,ck2,ck3); dq4 = new Array('','',r2r,''); dq5 = new Array('',c1p,r2p,c3p); dq6 = new Array('','','',''); dq7 = new Array('','','',''); dq8 = new Array('','','',''); dq9 = new Array(n_0,n_1,n_2,n_3); dq10 = new Array(0,0,0,0); dq11 = new Array('','','',''); dq12 = new Array('','','',''); dq13 = new Array('0','0','','0'); dq15 = new Array('','','',''); dq16 = new Array('','','0',''); dq17 = new Array(1,1,1,1); dq19 = new Array('','','',''); } function a14() { w1h = 525; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with1174_0; ar_len000 = with1174_0; n_1 = ld9; ck1 = cx1; r_h1 = wu9; r1 = radio500_0; r1p = radio500_0p; ar_len011 = radio500_0; n_2 = ld4; ck2 = ""; c_h2 = wu4; c2 = extras502_0; c2p = extras502_0p; ar_len031 = extras502_0; y1 = 1; w1d = 659; icol_a = 6; icol_b = 8; dq1 = new Array(with1174_0,radio500_0,extras502_0); dq2 = new Array(c0,r1,c2); dq3 = new Array(ck0,ck1,ck2); dq4 = new Array('',r1r,''); dq5 = new Array('',r1p,c2p); dq6 = new Array('','',''); dq7 = new Array('','',''); dq8 = new Array('','',''); dq9 = new Array(n_0,n_1,n_2); dq10 = new Array(0,0,0); dq11 = new Array('','',''); dq12 = new Array('','',''); dq13 = new Array('0','','0'); dq15 = new Array('','',''); dq16 = new Array('','0',''); dq17 = new Array(1,1,1); dq19 = new Array('','',''); } function a15() { w1h = 620; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with3102_0; ar_len001 = with3102_0; n_1 = ld10; ck1 = ""; c_h1 = wu10; c1 = extras5432_0; c1p = extras5432_0p; ar_len011 = extras5432_0; n_2 = ld11; r2r = 1; ck2 = cx1; r_h2 = wu11; r2 = ssalad11_0; ar_len030 = ssalad11_0; n_3 = ld9; ck3 = cx1; r_h3 = wu9; r3 = radio500_0; r3p = radio500_0p; ar_len041 = radio500_0; n_4 = ld4; ck4 = ""; c_h4 = wu4; c4 = extras502_0; c4p = extras502_0p; ar_len061 = extras502_0; y2 = 1; y3 = 1; w1d = 882; icol_a = 11; icol_b = 13; dq1 = new Array(with3102_0,extras5432_0,ssalad11_0,radio500_0,extras502_0); dq2 = new Array(c0,c1,r2,r3,c4); dq3 = new Array(ck0,ck1,ck2,ck3,ck4); dq4 = new Array('','',r2r,r3r,''); dq5 = new Array('',c1p,'',r3p,c4p); dq6 = new Array('','','','',''); dq7 = new Array('','','','',''); dq8 = new Array('','','','',''); dq9 = new Array(n_0,n_1,n_2,n_3,n_4); dq10 = new Array(0,0,0,0,0); dq11 = new Array('','','','',''); dq12 = new Array('','','','',''); dq13 = new Array('0','0','','','0'); dq15 = new Array('','','','',''); dq16 = new Array('','','0','0',''); dq17 = new Array(1,1,1,1,1); dq19 = new Array('','','','',''); } function a16() { w1h = 620; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with9102_0; ar_len000 = with9102_0; n_1 = ld11; r1r = 1; ck1 = cx1; r_h1 = wu11; r1 = ssalad12_0; ar_len010 = ssalad12_0; n_2 = ld9; ck2 = cx1; r_h2 = wu9; r2 = radio500_0; r2p = radio500_0p; ar_len021 = radio500_0; n_3 = ld4; ck3 = ""; c_h3 = wu4; c3 = extras501_0; c3p = extras501_0p; ar_len041 = extras501_0; y1 = 1; y2 = 1; w1d = 782; icol_a = 8; icol_b = 10; dq1 = new Array(with9102_0,ssalad12_0,radio500_0,extras501_0); dq2 = new Array(c0,r1,r2,c3); dq3 = new Array(ck0,ck1,ck2,ck3); dq4 = new Array('',r1r,r2r,''); dq5 = new Array('','',r2p,c3p); dq6 = new Array('','','',''); dq7 = new Array('','','',''); dq8 = new Array('','','',''); dq9 = new Array(n_0,n_1,n_2,n_3); dq10 = new Array(0,0,0,0); dq11 = new Array('','','',''); dq12 = new Array('','','',''); dq13 = new Array('0','','','0'); dq15 = new Array('','','',''); dq16 = new Array('','0','0',''); dq17 = new Array(1,1,1,1); dq19 = new Array('','','',''); } function a17() { w1h = 620; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with2101_0; ar_len000 = with2101_0; n_1 = ld11; r1r = 1; ck1 = cx1; r_h1 = wu11; r1 = ssalad2_0; ar_len010 = ssalad2_0; n_2 = ld9; ck2 = cx1; r_h2 = wu9; r2 = radio500_0; r2p = radio500_0p; ar_len021 = radio500_0; n_3 = ld4; ck3 = ""; c_h3 = wu4; c3 = extras502_0; c3p = extras502_0p; ar_len041 = extras502_0; y1 = 1; y2 = 1; w1d = 780; icol_a = 8; icol_b = 10; dq1 = new Array(with2101_0,ssalad2_0,radio500_0,extras502_0); dq2 = new Array(c0,r1,r2,c3); dq3 = new Array(ck0,ck1,ck2,ck3); dq4 = new Array('',r1r,r2r,''); dq5 = new Array('','',r2p,c3p); dq6 = new Array('','','',''); dq7 = new Array('','','',''); dq8 = new Array('','','',''); dq9 = new Array(n_0,n_1,n_2,n_3); dq10 = new Array(0,0,0,0); dq11 = new Array('','','',''); dq12 = new Array('','','',''); dq13 = new Array('0','','','0'); dq15 = new Array('','','',''); dq16 = new Array('','0','0',''); dq17 = new Array(1,1,1,1); dq19 = new Array('','','',''); } function a18() { w1h = 620; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with4122101_0; ar_len000 = with4122101_0; n_1 = ld11; r1r = 1; ck1 = cx1; r_h1 = wu11; r1 = ssalad452_0; ar_len010 = ssalad452_0; n_2 = ld9; ck2 = cx1; r_h2 = wu9; r2 = radio500_0; r2p = radio500_0p; ar_len021 = radio500_0; n_3 = ld4; ck3 = ""; c_h3 = wu4; c3 = extras502_0; c3p = extras502_0p; ar_len041 = extras502_0; y1 = 1; y2 = 1; w1d = 764; icol_a = 8; icol_b = 10; dq1 = new Array(with4122101_0,ssalad452_0,radio500_0,extras502_0); dq2 = new Array(c0,r1,r2,c3); dq3 = new Array(ck0,ck1,ck2,ck3); dq4 = new Array('',r1r,r2r,''); dq5 = new Array('','',r2p,c3p); dq6 = new Array('','','',''); dq7 = new Array('','','',''); dq8 = new Array('','','',''); dq9 = new Array(n_0,n_1,n_2,n_3); dq10 = new Array(0,0,0,0); dq11 = new Array('','','',''); dq12 = new Array('','','',''); dq13 = new Array('0','','','0'); dq15 = new Array('','','',''); dq16 = new Array('','0','0',''); dq17 = new Array(1,1,1,1); dq19 = new Array('','','',''); } function a19() { w1h = 620; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with210_0; ar_len000 = with210_0; n_1 = ld11; r1r = 1; ck1 = cx1; r_h1 = wu11; r1 = ssalad3_0; ar_len010 = ssalad3_0; n_2 = ld9; ck2 = cx1; r_h2 = wu9; r2 = radio500_0; r2p = radio500_0p; ar_len021 = radio500_0; n_3 = ld4; ck3 = ""; c_h3 = wu4; c3 = extras502_0; c3p = extras502_0p; ar_len041 = extras502_0; y1 = 1; y2 = 1; w1d = 770; icol_a = 8; icol_b = 10; dq1 = new Array(with210_0,ssalad3_0,radio500_0,extras502_0); dq2 = new Array(c0,r1,r2,c3); dq3 = new Array(ck0,ck1,ck2,ck3); dq4 = new Array('',r1r,r2r,''); dq5 = new Array('','',r2p,c3p); dq6 = new Array('','','',''); dq7 = new Array('','','',''); dq8 = new Array('','','',''); dq9 = new Array(n_0,n_1,n_2,n_3); dq10 = new Array(0,0,0,0); dq11 = new Array('','','',''); dq12 = new Array('','','',''); dq13 = new Array('0','','','0'); dq15 = new Array('','','',''); dq16 = new Array('','0','0',''); dq17 = new Array(1,1,1,1); dq19 = new Array('','','',''); } function a20() { w1h = 525; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with215_0; ar_len001 = with215_0; n_1 = ld11; r1r = 1; ck1 = cx1; r_h1 = wu11; r1 = salad4_0; ar_len011 = salad4_0; n_2 = ld12; ck2 = ""; c_h2 = wu12; c2 = extras235_0; c2p = extras235_0p; ar_len021 = extras235_0; n_3 = ld9; ck3 = cx1; r_h3 = wu9; r3 = radio500_0; r3p = radio500_0p; ar_len041 = radio500_0; n_4 = ld4; ck4 = ""; c_h4 = wu4; c4 = extras502_0; c4p = extras502_0p; ar_len061 = extras502_0; y3 = 1; w1d = 711; icol_a = 11; icol_b = 13; dq1 = new Array(with215_0,salad4_0,extras235_0,radio500_0,extras502_0); dq2 = new Array(c0,r1,c2,r3,c4); dq3 = new Array(ck0,ck1,ck2,ck3,ck4); dq4 = new Array('',r1r,'',r3r,''); dq5 = new Array('','',c2p,r3p,c4p); dq6 = new Array('','','','',''); dq7 = new Array('','','','',''); dq8 = new Array('','','','',''); dq9 = new Array(n_0,n_1,n_2,n_3,n_4); dq10 = new Array(0,0,0,0,0); dq11 = new Array('','','','',''); dq12 = new Array('','','','',''); dq13 = new Array('0','','0','','0'); dq15 = new Array('','','','',''); dq16 = new Array('','0','','0',''); dq17 = new Array(1,1,1,1,1); dq19 = new Array('','','','',''); } function a21() { w1h = 620; n_0 = ld13; ck0 = cx1; r_h0 = wu13; r0 = radio220_0; r0p = radio220_0p; ar_len001 = radio220_0; n_1 = ld14; q0 = "c1"; qa0 = 5; qamin0 = 0; qanumon0 = 0; ck1 = ""; c_h1 = wu14; c1 = extras220_0; ar_len021 = extras220_0; n_2 = ld15; ck2 = ""; c_h2 = wu15; c2 = extras221_0; c2p = extras221_0p; ar_len031 = extras221_0; n_3 = ld16; ck3 = ""; c_h3 = wu16; c3 = extras222_0; c3p = extras222_0p; ar_len051 = extras222_0; n_4 = ld11; r4r = 1; ck4 = cx1; r_h4 = wu11; r4 = ssalad89_0; ar_len071 = ssalad89_0; n_5 = ld9; ck5 = cx1; r_h5 = wu9; r5 = radio500_0; r5p = radio500_0p; ar_len081 = radio500_0; n_6 = ld4; ck6 = ""; c_h6 = wu4; c6 = extras502_0; c6p = extras502_0p; ar_len0101 = extras502_0; v0 = c1; y5 = 1; w1d = 1277; icol_a = 17; icol_b = 19; dq1 = new Array(radio220_0,extras220_0,extras221_0,extras222_0,ssalad89_0,radio500_0,extras502_0); dq2 = new Array(r0,c1,c2,c3,r4,r5,c6); dq3 = new Array(ck0,ck1,ck2,ck3,ck4,ck5,ck6); dq4 = new Array(r0r,'','','',r4r,r5r,''); dq5 = new Array(r0p,'',c2p,c3p,'',r5p,c6p); dq6 = new Array('','','','','','',''); dq7 = new Array('','','','','','',''); dq8 = new Array('','','','','','',''); dq9 = new Array(n_0,n_1,n_2,n_3,n_4,n_5,n_6); dq10 = new Array(0,0,0,0,0,0,0); dq11 = new Array('','','','','','',''); dq12 = new Array('','','','','','',''); dq13 = new Array('','0','0','0','','','0'); dq15 = new Array('','','','','','',''); dq16 = new Array('0','','','','0','0',''); dq17 = new Array(1,1,1,1,1,1,1); dq19 = new Array('','','','','','',''); } function a22() { w1h = 620; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with220_0; ar_len000 = with220_0; n_1 = ld11; r1r = 1; ck1 = cx1; r_h1 = wu11; r1 = ssalad5_0; ar_len010 = ssalad5_0; n_2 = ld17; ck2 = ""; c_h2 = wu17; c2 = extras55_0; c2p = extras55_0p; ar_len020 = extras55_0; n_3 = ld9; ck3 = cx1; r_h3 = wu9; r3 = radio500_0; r3p = radio500_0p; ar_len041 = radio500_0; n_4 = ld4; ck4 = ""; c_h4 = wu4; c4 = extras502_0; c4p = extras502_0p; ar_len061 = extras502_0; y3 = 1; w1d = 1021; icol_a = 11; icol_b = 13; dq1 = new Array(with220_0,ssalad5_0,extras55_0,radio500_0,extras502_0); dq2 = new Array(c0,r1,c2,r3,c4); dq3 = new Array(ck0,ck1,ck2,ck3,ck4); dq4 = new Array('',r1r,'',r3r,''); dq5 = new Array('','',c2p,r3p,c4p); dq6 = new Array('','','','',''); dq7 = new Array('','','','',''); dq8 = new Array('','','','',''); dq9 = new Array(n_0,n_1,n_2,n_3,n_4); dq10 = new Array(0,0,0,0,0); dq11 = new Array('','','','',''); dq12 = new Array('','','','',''); dq13 = new Array('0','','0','','0'); dq15 = new Array('','','','',''); dq16 = new Array('','0','','0',''); dq17 = new Array(1,1,1,1,1); dq19 = new Array('','','','',''); } function a23() { w1h = 620; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with235_0; ar_len001 = with235_0; n_1 = ld11; r1r = 1; ck1 = cx1; r_h1 = wu11; r1 = ssalad5_0; ar_len011 = ssalad5_0; n_2 = ld18; ck2 = ""; c_h2 = wu18; c2 = extras778_1; c2p = extras778_1p; ar_len021 = extras778_1; n_3 = ld9; ck3 = cx1; r_h3 = wu9; r3 = radio500_0; r3p = radio500_0p; ar_len041 = radio500_0; n_4 = ld4; ck4 = ""; c_h4 = wu4; c4 = extras502_0; c4p = extras502_0p; ar_len061 = extras502_0; y3 = 1; w1d = 701; icol_a = 11; icol_b = 13; dq1 = new Array(with235_0,ssalad5_0,extras778_1,radio500_0,extras502_0); dq2 = new Array(c0,r1,c2,r3,c4); dq3 = new Array(ck0,ck1,ck2,ck3,ck4); dq4 = new Array('',r1r,'',r3r,''); dq5 = new Array('','',c2p,r3p,c4p); dq6 = new Array('','','','',''); dq7 = new Array('','','','',''); dq8 = new Array('','','','',''); dq9 = new Array(n_0,n_1,n_2,n_3,n_4); dq10 = new Array(0,0,0,0,0); dq11 = new Array('','','','',''); dq12 = new Array('','','','',''); dq13 = new Array('0','','0','','0'); dq15 = new Array('','','','',''); dq16 = new Array('','0','','0',''); dq17 = new Array(1,1,1,1,1); dq19 = new Array('','','','',''); } function a24() { w1h = 620; n_0 = ld7; ck0 = cx1; c_h0 = wu7; c0 = with245_0; ar_len000 = with245_0; n_1 = ld11; r1r = 1; ck1 = cx1; r_h1 = wu11; r1 = ssalad8_0; ar_len010 = ssalad8_0; n_2 = ld18; ck2 = ""; c_h2 = wu18; c2 = extras778_1; c2p = extras778_1p; ar_len020 = extras778_1; n_3 = ld9; ck3 = cx1; r_h3 = wu9; r3 = radio500_0; r3p = radio500_0p; ar_len041 = radio500_0; n_4 = ld4; ck4 = ""; c_h4 = wu4; c4 = extras502_0; c4p = extras502_0p; ar_len061 = extras502_0; y1 = 1; y3 = 1; w1d = 1019; icol_a = 11; icol_b = 13; dq1 = new Array(with245_0,ssalad8_0,extras778_1,radio500_0,extras502_0); dq2 = new Array(c0,r1,c2,r3,c4); dq3 = new Array(ck0,ck1,ck2,ck3,ck4); dq4 = new Array('',r1r,'',r3r,''); dq5 = new Array('','',c2p,r3p,c4p); dq6 = new Array('','','','',''); dq7 = new Array('','','','',''); dq8 = new Array('','','','',''); dq9 = new Array(n_0,n_1,n_2,n_3,n_4); dq10 = new Array(0,0,0,0,0); dq11 = new Array('','','','',''); dq12 = new Array('','','','',''); dq13 = new Array('0','','0','','0'); dq15 = new Array('','','','',''); dq16 = new Array('','0','','0',''); dq17 = new Array(1,1,1,1,1); dq19 = new Array('','','','',''); } function wier(ider) { window[ider](); } function offsider() { y1 = 0; r4r = 0; c4 = 0; c5p = 0; dq15 = 0; n_5 = 0; ar_len041 = 0; r4 = 0; dq14 = 0; r3r = 0; dq12 = 0; ar_len081 = 0; tx0 = 0; y4 = 0; ar_len030 = 0; ar_len091 = 0; ar_len011 = 0; dq1 = 0; r5r = 0; ar_len031 = 0; ar_len0 = 0; tbl21 = 0; r5 = 0; ck6 = 0; ck4 = 0; v0 = 0; tbl10 = 0; r2 = 0; dq13 = 0; tv0 = 0; n_2 = 0; r3 = 0; r0r = 0; n_1 = 0; ar_len010 = 0; r3p = 0; tbl13 = 0; c0 = 0; ar_len051 = 0; y3 = 0; r2r = 0; r1r = 0; dq6 = 0; r0p = 0; ck3 = 0; tq0 = 0; n_0 = 0; tbl20 = 0; ar_len000 = 0; ck2 = 0; c1 = 0; ck1 = 0; q0 = 0; tbl15 = 0; tbl12 = 0; c6p = 0; dq3 = 0; c2 = 0; y6 = 0; y0 = 0; ar_len001 = 0; tbl14 = 0; dq4 = 0; tbl24 = 0; ar_len020 = 0; dq10 = 0; r1 = 0; dq2 = 0; t0 = 0; ar_len0101 = 0; dq7 = 0; c6 = 0; ts0 = 0; vv0 = 0; c3p = 0; r0 = 0; ar_len071 = 0; dq16 = 0; dq5 = 0; c1p = 0; c3 = 0; r5p = 0; qq0 = 0; n_4 = 0; c2p = 0; ck0 = 0; c4p = 0; dq9 = 0; c5 = 0; tbl22 = 0; r2p = 0; ck5 = 0; ar_len021 = 0; tbl23 = 0; r1p = 0; dq11 = 0; tbl25 = 0; y5 = 0; ar_len061 = 0; tbl11 = 0; n_6 = 0; tr0 = 0; dq8 = 0; n_3 = 0; y2 = 0; } function SuperItem(i,d,dd,p,c,sized,ider) { this.itemno = i; this.desc = d; this.basedesc = d; this.dsub = dd; this.price = p; this.baseprice = p; this.code = c; this.tracker = new Array(); this.sz = sized; this.ider = ider; } function radiate1(znum,zcheck,zeye,ztype,zrad,zadd,zend,zback,defset,zcsstag,zmdesc) { var zbegin = (!znum || zback ? "" : ''); var plus = 0; if (prearray) { plus = znum; zcheck = ((prearray[plus][zeye] == null || !prearray[plus][zeye]) ? '' : ' CHECKED'); } if (!zrad[zeye]) { return; } if ((!prearray || prearray == null) && defset != null && defset) { zcheck = ''; var defshow = ''; var defshow2 = ''; var defstring = ''; for (var j = 0; j < defset.length; j++) { defshow = defset.charAt(j); if (defshow == ",") { defstring = ""; continue; } else { defstring = defstring + defshow; if (j != defset.length - 1) { defshow2 = defset.charAt(j+1); if (defshow2 == ",") { if (zeye == defstring - 1) { zcheck = ' CHECKED'; break; } } } else { if (zeye == defstring - 1) { zcheck = ' CHECKED'; break; } } } // deftring = ""; // defshow = defset.charAt(j); // if (defshow == ",") { // continue; // } else { // if (zeye == defshow - 1) { // zcheck = ' CHECKED'; // break; // } // } } } if (!ztype) { n1w += "" + zbegin + ""; } else { if (zeye < zrad.length - ztype) { n1w += "" + zbegin + ""; } else { n1w += "" + zbegin + ""; } } n1w += "" + zadd + zend; } function radiate2(znum,zcheck,zeye,ztype,zrad,zmenu,ztire,zadd,zend,zback,defset,zcsstag,zmdesc) { var zbegin = (!znum || zback ? "" : ''); var plus = 0; if (prearray) { plus = znum; zcheck = ((prearray[plus][zeye] == null || !prearray[plus][zeye]) ? '' : ' CHECKED'); } if (!zrad[zeye]) { return; } if ((!prearray || prearray == null) && defset != null && defset) { zcheck = ''; var defshow = ''; var defshow2 = ''; var defstring = ''; for (var j = 0; j < defset.length; j++) { defshow = defset.charAt(j); if (defshow == ",") { defstring = ""; continue; } else { defstring = defstring + defshow; if (j != defset.length - 1) { defshow2 = defset.charAt(j+1); if (defshow2 == ",") { if (zeye == defstring - 1) { zcheck = ' CHECKED'; break; } } } else { if (zeye == defstring - 1) { zcheck = ' CHECKED'; break; } } } // deftring = ""; // defshow = defset.charAt(j); // if (defshow == ",") { // continue; // } else { // if (zeye == defshow - 1) { // zcheck = ' CHECKED'; // break; // } // } } } if (!ztype) { n1w += "" + zbegin + ""; } else { if (zeye < zrad.length - ztype) { n1w += "" + zbegin + ""; } else { n1w += "" + zbegin + ""; } } n1w += "" + zadd + zend; } function radiate4(znum,zcheck,zeye,ztype,zrad,zmenu,ztire,zadd,zend,zback,defset,zcsstag,zmdesc) { var zbegin = (!znum || zback ? "" : ''); var plus = 0; if (prearray) { plus = znum; zcheck = ((prearray[plus][zeye] == null || !prearray[plus][zeye]) ? '' : ' CHECKED'); } if (!zrad[zeye]) { return; } if ((!prearray || prearray == null) && defset != null && defset) { zcheck = ''; var defshow = ''; var defshow2 = ''; var defstring = ''; for (var j = 0; j < defset.length; j++) { defshow = defset.charAt(j); if (defshow == ",") { defstring = ""; continue; } else { defstring = defstring + defshow; if (j != defset.length - 1) { defshow2 = defset.charAt(j+1); if (defshow2 == ",") { if (zeye == defstring - 1) { zcheck = ' CHECKED'; break; } } } else { if (zeye == defstring - 1) { zcheck = ' CHECKED'; break; } } } // deftring = ""; // defshow = defset.charAt(j); // if (defshow == ",") { // continue; // } else { // if (zeye == defshow - 1) { // zcheck = ' CHECKED'; // break; // } // } } } if (!ztype) { n1w += "" + zbegin + ""; } else { if (zeye < zrad.length - ztype) { n1w += "" + zbegin + ""; } else { n1w += "" + zbegin + ""; } } n1w += "" + zadd + zend; } function checkerate1(znum,zcheck,zeye,zrad,zadd,zshort,zend,zback,defset,znumon,subset,zcsstag,zmdesc) { var zbegin = (!znum || zback ? "" : ''); var plus = 0; var ckz = zcheck; var znumon2 = (!znumon || znumon == null ? '0' : znumon); if (prearray) { plus = znum; ckz = ((prearray[plus][zeye] == null || !prearray[plus][zeye]) ? '' : ' CHECKED'); } if (!zrad[zeye]) { return; } if ((!prearray || prearray == null) && defset != null && defset) { ckz = ''; var defshow = ''; var defshow2 = ''; var defstring = ''; for (var j = 0; j < defset.length; j++) { defshow = defset.charAt(j); if (defshow == ",") { defstring = ""; continue; } else { defstring = defstring + defshow; if (j != defset.length - 1) { defshow2 = defset.charAt(j+1); if (defshow2 == ",") { if (zeye == defstring - 1) { ckz = ' CHECKED'; break; } } } else { if (zeye == defstring - 1) { ckz = ' CHECKED'; break; } } } } // var defshow = ''; // var defstring = ''; // for (var j = 0; j < defset.length; j++) { // deftring = ""; // defshow = defset.charAt(j); // if (defshow == ",") { // continue; // } else { // if (zeye == defshow - 1) { // ckz = ' CHECKED'; // break; // } // } // } } if (zshort == 0) { n1w += "" + zbegin + ""; n1w += "" + zadd + zend; } else if (zshort == 1) { n1w += "" + zbegin + ""; n1w += "" : ''); var plus = 0; var ckz = zcheck; var znumon2 = (!znumon || znumon == null ? '0' : znumon); if (prearray) { plus = znum; ckz = ((prearray[plus][zeye] == null || !prearray[plus][zeye]) ? '' : ' CHECKED'); } if (!zrad[zeye]) { return; } if ((!prearray || prearray == null) && defset != null && defset) { ckz = ''; var defshow = ''; var defshow2 = ''; var defstring = ''; for (var j = 0; j < defset.length; j++) { defshow = defset.charAt(j); if (defshow == ",") { defstring = ""; continue; } else { defstring = defstring + defshow; if (j != defset.length - 1) { defshow2 = defset.charAt(j+1); if (defshow2 == ",") { if (zeye == defstring - 1) { ckz = ' CHECKED'; break; } } } else { if (zeye == defstring - 1) { ckz = ' CHECKED'; break; } } } } // var defshow = ''; // var defstring = ''; // for (var j = 0; j < defset.length; j++) { // deftring = ""; // defshow = defset.charAt(j); // if (defshow == ",") { // continue; // } else { // if (zeye == defshow - 1) { // ckz = ' CHECKED'; // break; // } // } // } } n1w += "" + zbegin + ""; n1w += "" + zadd + zend; } var doubleprices = 0; var dpchg = 0; function radcheck1(zrad,zeye,zend,zshort,zpshow,zcsstag,jps) { if (zrad[zeye] == undefined) { return; } if (!zshort || zshort == 0) { if (zrad[zeye] != 0 && (!zpshow || zpshow == null)) { n1w += "" + zend; } else { n1w += "" + zend; } } else { if (!doubleprices || doubleprices == 0 || !zshort || zshort != 1) { if (zrad[zeye] != 0 && (!zpshow || zpshow == null)) { n1w += "" + cent(zrad[zeye]) + " " + zend; } else { n1w += " " + zend; } } else { if (dq13[jps-1] == 2) { dpchg = dq5[jps-1][zeye]; } else { dpchg = dq5[jps-2][zeye]; } if (zrad[zeye] != 0 && (!zpshow || zpshow == null)) { n1w += "" + cent(dpchg) + " " + zend; } else { n1w += " " + zend; } } } } function upadd(id,id2) { if (!id) { OW.document.order.qtyy.value = OW.document.order.qtyy.value; } else { OW.document.order.qtyy.value = OW.document.order.qtyy.value; } return 1; } var imgbkgr = ""; function showPizzaWin(itemno,d1,d2,price,code,qt,sz,ider) { var desc, owinqty = 1; var qwinmtch = 0; var dsub = ''; var nug = navigator.userAgent; op = ''; ropez = 0; if (d1 >= 0 || d1 == -2) { if (d1 != -2) { desc = fds[d1][d2]; dsub = fds[d1][4]; } else { desc = d2; dsub = itemno; } } else { owinqty = items[p1n].quantity; desc = d2; //new dsub = items[p1n].dsub; // dsub = items[p1n].dsub; } n1w = ''; var here, storage, caboose, plus; if (!prearray) { p1n = 0; } var comma = '"'; if (desc.indexOf("^") >= 0) { for ( var i = 0; i < desc.length; i++ ) { if (desc.indexOf("^") >= 0) { here = desc.indexOf("^"); storage = desc.substring(0,here); here += 1; caboose = desc.substring(here,desc.length); desc = "" + storage + comma + caboose; } else { break; } } } if (desc.indexOf("`") >= 0) { for ( var i = 0; i < desc.length; i++ ) { if (desc.indexOf("`") >= 0) { here = desc.indexOf("`"); storage = desc.substring(0,here); here += 1; caboose = desc.substring(here,desc.length); desc = "" + storage + "'" + caboose; } else { break; } } } if (dsub && dsub != '') { here = 0; if (dsub.indexOf("^") >= 0) { for ( var j = 0; j < dsub.length; j++ ) { if (dsub.indexOf("^") >= 0) { here = dsub.indexOf("^"); storage = dsub.substring(0,here); here += 1; caboose = dsub.substring(here,dsub.length); dsub = "" + storage + comma + caboose; } else { break; } } } if (dsub.indexOf("`") >= 0) { for ( var j = 0; j < dsub.length; j++ ) { if (dsub.indexOf("`") >= 0) { here = dsub.indexOf("`"); storage = dsub.substring(0,here); here += 1; caboose = dsub.substring(here,dsub.length); dsub = "" + storage + "'" + caboose; } else { break; } } } } icol_a = 0; icol_b = 0; subprice = price; w1d = 0; w1h = 0; mimic = ''; needle = 0; namehasher(); offsider(); var flcrt = 0; if (full_scrn == 1 && (sz.indexOf("9") >= 0 || sz.indexOf("8") >= 0)) { flcrt = 1; } wier('a'+ider); jh = screen.availHeight; jw = screen.availWidth; if (w1h >= jh - 10 || flcrt == 1) { if (full_scrn == 0) { w1h = jh - (jh / 8.5); w1h = Math.round(w1h); } else { w1h = jh; } } if (w1d >= jw - 10) { if (full_scrn == 0) { w1d = jw - (jw / 14); w1d = Math.round(w1d); } else { w1d = jw; } } var sw = 50; if (w1d > screen.availWidth - 100) { sw = screen.availWidth - w1d - 25; if (sw < 0) { sw = 0; } } // OW = window.open("","newwin","resizable=yes,scrollbars=yes,width=" + w1d + ",height=" + w1h + ",screenX=" + sw + ",screenY=10"); oP = new SuperItem(itemno,desc,dsub,price,code,sz,ider); oP.basedesc = mr_clean(oP.basedesc); var swtchx = swtchx2 = ''; if (dq17 && dq17.length > 0) { for (var i = 0; i < dq17.length; i++) { if ((dq17[i] && dq17[i] > 0) || prearray) { swtchx += "" + i + ","; } } swtchx2 = swtchx.substring(0,swtchx.length-1); } else if (prearray) { for (var i = 0; i < dq2.length; i++) { swtchx += "" + i + ","; } swtchx2 = swtchx.substring(0,swtchx.length-1); } n1w += ''; // n1w += ""; n1w += "" + desc + ""; n1w += "\n"; n1w += "/***********************************************\n"; n1w += "* Switch Content script- (c) Dynamic Drive (www.dynamicdrive.com)\n"; n1w += "* This notice must stay intact for legal use.\n"; n1w += "* Visit http://www.dynamicdrive.com/ for full source code\n"; n1w += "***********************************************/\n"; n1w += ""; n1w += ""; n1w += ''; if (franco == 0) { n1w += '' + ""; } else { n1w += '' + ""; } n1w += "
" + zrad[zeye] + ""; if (zmdesc != null && zmdesc && zmdesc[zeye]) { n1w += zmdesc[zeye]; } n1w += "
" + zrad[zeye] + ""; if (zmdesc != null && zmdesc && zmdesc[zeye]) { n1w += zmdesc[zeye]; } n1w += "
" + zrad[zeye] + ""; if (zmdesc != null && zmdesc && zmdesc[zeye]) { n1w += zmdesc[zeye]; } n1w += "
" + zrad[zeye] + ""; if (zmdesc != null && zmdesc && zmdesc[zeye]) { n1w += zmdesc[zeye]; } n1w += "  " + zadd + zend; } else { n1w += "" + zbegin; n1w += "" + zrad[zeye] + ""; if (zmdesc != null && zmdesc && zmdesc[zeye]) { n1w += zmdesc[zeye]; } n1w += "  " + zadd + zend; } } function checkerate2(znum,zcheck,zeye,zrad,zmenu,ztire,zonoff,zadd,zend,zback,defset,znumon,subset,zcsstag,zmdesc) { var zbegin = (!znum || zback ? "
" + zrad[zeye] + ""; if (zmdesc != null && zmdesc && zmdesc[zeye]) { n1w += zmdesc[zeye]; } n1w += "" + cent(zrad[zeye]) + "  
"; if (callcent == 1) { if (site_wnmr == 1) { itemno = ''; } } var widecol = icol_a + 2; n1w += ""; n1w += "
" + desc + "
" + cent(price) + "
"; n1w += "
"; n1w += ""; if (dsub) { n1w += dsub; } n1w += "
"; datelist = ''; if (calmod) { n1w += ""; } n1w += ""; oP.price = subprice; jslim(sz,code); n1w += "

"; n1w += ""; var fxsb = ""; var ico1 = "/icons/justdownstairs_add.gif"; var ico2 = "/icons/minus.gif"; var ico3 = ""; var up1 = "/icons/arrow4.gif"; var up2 = "/icons/arrow2.gif"; var sxt1 = ""; var sxb1 = ""; var sxt = ""; var sxb = ""; var sxc = ""; var mstr = new Array(4,1,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1); var sxs = new Array(new Array("Deli Subs","","GF1"),new Array("Lunch Break","","GF2"),new Array("Specialty Sandwiches","","GF3"),new Array("Deli Wraps","","GF4"),new Array("Garden Salads","","GF5"),new Array("Soups","","GF6"),new Array("Extras","","GF7"),new Array("Beverages","","GF8"),new Array("Weekly Lunch Special","","GF9")); var hds = new Array(""); var bg = "
\n"; n1w += "var swgrpe=new switchcontent('switchgroup1', 'div');\n"; n1w += "swgrpe.setStatus(' ', ' ');\n"; n1w += "swgrpe.setColor('darkred', 'black');\n"; n1w += "swgrpe.collapsePrevious(false);\n"; n1w += "swgrpe.defaultExpanded(" + swtchx2 + ")\n"; n1w += "swgrpe.init();\n"; n1w += ""; n1w += ""; } var thecss = new Array(); if (parent.document.styleSheets && parent.document.styleSheets[0]) { if (parent.document.styleSheets[0].cssRules) { thecss = parent.document.styleSheets[0].cssRules; } else { thecss = parent.document.styleSheets[0].rules; } for (var i = 0; i < thecss.length; i++) { if (thecss[i].selectorText && thecss[i].selectorText.toLowerCase() == '.olcg') { thecss[i].style.cssText="background-Color:#87a13e; color:#ffffff; text-align: center;"; break; } } } parent.overlib(parent.OLiframeContent('/icons/menuaol.html',450,550,'csspop',1,'auto'),parent.WIDTH,450,parent.TEXTPADDING,0,parent.BORDER,2,parent.STICKY,parent.DRAGGABLE,parent.CLOSECLICK,parent.CAPTIONPADDING,4,parent.CAPTION,desc,parent.CGCLASS,'olcg',parent.NOJUSTY,parent.NOJUSTX,parent.RELY,50,parent.MIDX,0,parent.BGCLASS,'round',parent.CLOSEFONTCLASS,'overclose',parent.CAPTIONFONTCLASS,'overclose2',CLOSETEXT,'\'Close\''); var ifrmr = parent.document.getElementById("csspop"); var ifrmdoc = ifrmr.contentDocument; if (ifrmdoc == undefined || ifrmdoc == null) { ifrmdoc = ifrmr.contentWindow.document; } ifrmdoc.open(); ifrmdoc.write(n1w); ifrmdoc.close(); OW = ifrmr.contentWindow; return; } function closer() { } function preshowPizzaWin(id) { prearray = items[id].tracker; p1n = id; updatemenuorder(1); parent.showPizzaWin(items[id].itemno,-1,items[id].basedesc,items[id].baseprice,items[id].code,1,items[id].sz,items[id].ider); } function intra (tau,petak,psi,phi,phaq) { var plus = 0, joe = 0, phaqstring = "", ceeshow = "", ups = 0; var sh = OW.document.order.elements; var elm = ''; var domlen = sh.length; tau = false; if (phi > 0) { joe--; } if (!phaq) { for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == petak || elm.name == "" + petak + ups) { ups++; if (elm.name == petak) { if (plus > phi + joe) { if (elm.checked == true) { tau = true; break; } } if (plus == psi.length - 1) { break; } if (phi > 0) { plus++; } else { plus--; } } else { tau = true; if (plus <= phi + joe) { if (elm.checked == true) { tau = false; break; } } if (plus == psi.length - 1) { break; } if (phi > 0) { plus++; } else { plus--; } } } } } else { tau = true; for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == petak || elm.name == "" + petak + plus) { for (var j = 0; j < phaq.length; j++) { phaqstring = ""; for (var k = j; k < phaq.length; k++) { ceeshow = phaq.charAt(k); if (ceeshow != ",") { phaqstring = phaqstring + ceeshow + ""; } if (ceeshow == "," || k == phaq.length - 1) { if (plus == phaqstring - 1 && elm.checked == true) { tau = false; break; } else { j = k; break; } } } if (!tau) { break; } } if (plus == psi.length - 1 || !tau) { break; } plus++; } } } return(tau); } function ss(tire,sigma,porto,snug) { var plus = 0, two = 0, tst = 0; var trap; var sh = OW.document.order.elements; var elm = ''; var domlen = sh.length; if (snug == null) { snug = 0 } for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == sigma || elm.name == sigma + "_" + plus) { if (tire) { if (elm.checked == true) { elm.checked = false; } } else { if (!trap) { trap = i; } if (elm.checked == true) { two = 1; } if (!tst) { if (plus == porto.length - 1 - snug) { if (elm.checked == true) { tst = 1; } if (two == 0) { sh[trap].checked = true; } } } else { elm.checked = false; } } plus++; if (porto.length == plus) { if (snug != null && snug <= -1 && !tire && two == 0) { sh[trap].checked = true; } break; } } } return; } function po(tire,nu,beta,lambda,ideer) { var plus = 0, two = 0; var trap; var sh = OW.document.order.elements; var elm = ''; var domlen = sh.length; var jump = 0; for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == "" + nu + plus) { if (plus == 0) { jump = i; } if (tire) { if (elm.checked == true) { elm.checked = false; } } else { if (elm.checked == true) { two = true; } } if (plus == beta.length - 1) { break; } plus++; } } plus = 0; if (ideer && !tire && !two && lambda == 1) { for (var i = jump; i < domlen; i++) { elm = sh[i]; if (elm.name == "" + nu + plus) { elm.checked = true; if (plus == beta.length -1) { break; } plus++; } } } return; } function shutoff0(idee) { var test; if (intra(test,t0,tv0,tg0,tq0)) { test = 1; } if (!tx0) { ss(test,tl0,tr0,ts0); } else if (tx0) { po(test,tm0,tl0,tx0,idee); } if (test) { return 1; } else { return 0; } } function checkertoo(veni,vie,vidi,vex,vici,vimin,vnumon) { var uno = 0, dos = 0; var sh = OW.document.order.elements; var elm = '', jsnumon = 0; var domlen = sh.length; for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == veni + "_" + uno) { if (!vnumon || vnumon == 0) { if (elm.checked == true) { dos++; } } else { if (elm.value && elm.value >= 0) { jsnumon = elm.value - 0; dos += jsnumon; } } if (uno == vie.length - 1) { break; } uno++; } } uno = 0; if (vidi && vex) { for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == vidi + "_" + uno) { if (!vnumon || vnumon == 0) { if (elm.checked == true) { dos++; } } else { if (elm.value && elm.value >= 0) { jsnumon = elm.value - 0; dos += jsnumon; } } if (uno == vex.length - 1) { break; } uno++; } } } if (vimin != null && vimin > 0) { if (dos < vimin) { if (OW != null) { OW.alert("You need to pick at least " + vimin + " subitem(s)!"); } else if (AOW2 != null) { AOW2.alert("You need to pick at least " + vimin + " subitem(s)!"); } else { alert("You need to pick at least " + vimin + " subitem(s)!"); } // alert("You need to pick at least " + vimin + " subitem(s)!"); return 1; } } if (dos > vici) { if (OW != null) { OW.alert("You have picked " + (dos - vici) + " too many items!"); } else if (AOW2 != null) { AOW2.alert("You have picked " + (dos - vici) + " too many items!"); } else { alert("You have picked " + (dos - vici) + " too many items!"); } // alert("You have picked " + (dos - vici) + " too many items!"); return 1; } else { return 0; } } function extras_side(sos) { var tst = 0; var plus = 0, two = 0; var sa0, sa, s0s; var sh = OW.document.order.elements; var elm = ''; var domlen = sh.length; if (!sos) { sa = 'r0'; sa0 = r0; s0s = r0r; } else if (sos == 1) { sa = 'r1'; sa0 = r1; s0s = r1r; } else if (sos == 2) { sa = 'r2'; sa0 = r2; s0s = r2r; } else if (sos == 3) { sa = 'r3'; sa0 = r3; s0s = r3r; } else if (sos == 4) { sa = 'r4'; sa0 = r4; s0s = r4r; } else if (sos == 5) { sa = 'r5'; sa0 = r5; s0s = r5r; } else if (sos == 6) { sa = 'r6'; sa0 = r6; s0s = r6r; } else if (sos == 7) { sa = 'r7'; sa0 = r7; s0s = r7r; } for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == sa || elm.name == sa + "_" + plus) { if (!tst) { if (plus == sa0.length - s0s - 1) { if (elm.checked == true) { tst = 1; } } } else { elm.checked = false; } plus++; if (sa0.length == plus) { break; } } } } function t_t(id,aa,a0,a_h,a0p,a0a,yok) { var plus = 0, two = 0, mtchd = 0; var sh = OW.document.order.elements; var elm = ''; var domlen = sh.length; oP.tracker[id] = new Array(); for (var i = 0; i < a0.length; i++) { oP.tracker[id][i] = 0; } for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == aa) { if (elm.checked == true) { if (yok && !plus) { oP.tracker[id][plus] = 1; if (a0p) { oP.price += a0p[plus]; } plus++; continue; } if (a_h.indexOf("With:") >= 0 && !needle) { if (mimic) { mimic = ''; } op += a_h; needle = true; } else if (a_h.indexOf("With:") < 0) { if (needle) { needle = false; } if (a_h == mimic) { a_h = ''; } op += a_h; if (a_h) { mimic = a_h; } a_h = ''; } mtchd++; op += a0[plus] + "; "; // op += a0[plus] + "; "; oP.tracker[id][plus] = 1; if (a0p) { oP.price += a0p[plus]; } if (!a0a) { break; } } plus++; } else if (elm.name == aa + "_" + plus) { if (a0a) { two++; if (elm.checked == true) { if (mtchd == 0) { if (a_h.indexOf("With:") >= 0 && !needle) { if (mimic) { mimic = ''; } op += a_h; needle = true; } else if (a_h.indexOf("With:") < 0) { if (needle) { needle = false; } if (a_h == mimic) { a_h = ''; } op += a_h; if (a_h) { mimic = a_h; } a_h = ''; } mtchd++; } op += a0[plus] + "; "; // op += a0[plus] + "; "; oP.tracker[id][plus] = 1; if (a0p && a0p[plus] > 0) { oP.price += a0p[plus]; } } if (two == a0a) { break; } } plus++; } if (a0.length == plus) { break; } // if (a0.length == plus) { break; } } } function t_c(id,bb,b0,bk0,b_h,b0p,yok) { var plus = 0; var test; var sh = OW.document.order.elements; // var sh = OW.document.neworder.elements; var elm = ''; var domlen = sh.length; oP.tracker[id] = new Array(); for (var i = 0; i < b0.length; i++) { oP.tracker[id][i] = 0; } if (jim0 && tl0 == b0 && tm0 == bb) { return; } for (var i = 0; i < domlen; i++) { elm = sh[i]; if (elm.name == bb + plus) { test = true; if (bk0) { test = false; } if (elm.checked == test) { if (yok && !plus) { oP.tracker[id][plus] = 1; if (b0p) { oP.price += b0p[plus]; } plus++; continue; } if (b_h.indexOf("With:") >= 0 && !needle) { if (mimic) { mimic = ''; } op += b_h; needle = true; } else if (b_h.indexOf("With:") < 0) { if (needle) { needle = false; } if (b_h == mimic) { b_h = ''; } op += b_h; if (b_h) { mimic = b_h }; b_h = ''; } op += b0[plus] + "; "; // op += b0[plus] + "; "; if (test == true ) { oP.tracker[id][plus] = 1; } if (b0p) { oP.price += b0p[plus]; } // if (b0p) { oP.price += b0p[plus]; } } else if (bk0 && test == false ) { oP.tracker[id][plus] = 1; } plus++; if (b0.length == plus) { break; } // if (b0.length == plus) { break; } } } } function addPizzaToOrder(id) { var here, caboose, storage, tiechk, jimoff; //a op = oP.desc; if (!op) { op = oP.desc; } if (subprice != null && subprice == 0 && oP.price > 0) { oP.price = subprice; } jim0 = 0; if (t0) { if(shutoff0()) { if (tx0 == 1) { jim0 = 1; } } } if (q0) { if (checkertoo(q0,v0,qq0,vv0,qa0,qamin0,qanumon0)) { OW.focus(); return; } } if (q0) { if(checkertoo(q0,v0,qq0,vv0,qa0,qamin0,qanumon0)) { OW.focus(); return; } } if (q1) { if(checkertoo(q1,v1,qq1,vv1,qa1,qamin1,qanumon1)) { OW.focus(); return; } } if (r0) { t_t(0,"r0",r0,r_h0,r0p,r0r,y0); } if (c0) { t_c(0,"c0_",c0,ck0,c_h0,c0p,y0); } if (r1) { t_t(1,"r1",r1,r_h1,r1p,r1r,y1); } if (c1) { t_c(1,"c1_",c1,ck1,c_h1,c1p,y1); } if (r2) { t_t(2,"r2",r2,r_h2,r2p,r2r,y2); } if (c2) { t_c(2,"c2_",c2,ck2,c_h2,c2p,y2); } if (r3) { t_t(3,"r3",r3,r_h3,r3p,r3r,y3); } if (c3) { t_c(3,"c3_",c3,ck3,c_h3,c3p,y3); } if (r4) { t_t(4,"r4",r4,r_h4,r4p,r4r,y4); } if (c4) { t_c(4,"c4_",c4,ck4,c_h4,c4p,y4); } if (r5) { t_t(5,"r5",r5,r_h5,r5p,r5r,y5); } if (c5) { t_c(5,"c5_",c5,ck5,c_h5,c5p,y5); } if (c6) { t_c(6,"c6_",c6,ck6,c_h6,c6p,y6); } for (var i = 0; i < op.length; i++ ) { if (op.indexOf(";
") >= 0) { here = op.indexOf(";
"); storage = op.substring(0,here); here += 1; caboose = op.substring(here,op.length); op = "" + storage + caboose; } else { break; } } if (op.indexOf("; ", op.length-2) >= 0) { op = op.substring(0,op.length-2); } if (!id) { winqty = OW.document.order.qtyy.value; } else { winqty = OW.document.order.qtyy.value; } additem(oP.itemno,-1,op,oP.dsub,oP.price,oP.code); parent.cClick(); } function cent(amount) { var end, subamt; amount = amount - 0; amount = Math.round(amount*100)/100; var str = amount + ""; var decimalPoint = '.'; var c; end = str.indexOf ( decimalPoint); if (end != -1) { var tmp1 = amount * 100; tmp1 = Math.round(tmp1); tmp1 = tmp1 + ""; end = tmp1.indexOf(decimalPoint); if (end != -1) { tmp1 = tmp1.substring(0,end); tmp1 = tmp1 -0; } amount = tmp1 / 100; } subamt = "" + amount; if (amount < 1) { c = subamt.charAt(0); if (c == '.') { amount = "" + '0' + amount; } } return (amount == Math.floor(amount)) ? amount + '.00' : ( (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount); } function arrayplay() { var play = '', playful = ''; for (var i = 0; i < oP.tracker.length; i++) { playful += "-2,"; play = oP.tracker[i].join(); playful += play; if (i < oP.tracker.length - 1) { playful += ","; } } return playful; } franco = 1; bsite = "justdownstairs"; csite = "order707wilshire.justdownstairs.com"; cthru = 1; newdivstyle = 1; extracthru = 1; var inhome = 0; var dynmifrm = 0; function displaymenuorder(id,pp1,id4,id5,id6,id7) { if (id4 && id4 == 1) { p1n = 0; prearray = ''; } totalcost = 0; var sh = ''; if (n1m > 0 && callcent == 1 && callcomcent2 == 1 && sitecmnt == 0) { sh = parent.document; callcomcent1 = sh.forms[0].comments.value; } var subtaxey = 0; var n2w = ''; if (newlook == 0 && rfrming == 0) { n2w += ''; n2w += ''; n2w += ""; } var nu2 = navigator.userAgent; n2w += ""; if (n1m == 0 || (id6 != null && id6 == 1)) { n2w += ""; n2w += ""; n2w += ""; n2w += "
We open in 19 hours 10 mins.
"; //a //b n2w += "
Estimated Pickup: 20 Minutes

"; //c //d //e n2w += "" + weaccept1 + ".
"; if (newlook == 0 && rfrming == 0) { n2w += ""; parent.document.open(); parent.document.write(n2w); parent.document.close(); } else { document.getElementById('rfrme').innerHTML = n2w; } return true; } n2w += ""; var dclwdth = 60, dclwdth2 = 4; var tded = ''; n2w += ""; for (var i = 1; i <= n1m; i++) { n2w += ""; n2w += ""; // n2w += ""; n2w += ""; if (items[i].basedesc == null) { n2w += ""; n2w += "\n"; } else { n2w += ""; n2w += "\n"; } n2w += ""; n2w += ""; totalcost += (cent(items[i].price) * cent(items[i].quantity)); if (!taxing[items[i].code]) { subtaxey += (items[i].price * items[i].quantity); } n2w += "\n"; n2w += "\n"; n2w += "\n"; n2w += ""; } if (callcent == 1) { delchrg = 0; if (parent.dchg > 0) { delchrg = 0; var sh4 = parent.document.forms[0].elements; var sh5 = parent.document.forms[0]; var partest = 0; for (var j = 0; j < sh4.length; j++) { if (sh5.elements[j].name == 'info1') { if (sh5.elements[j].checked == true && sh5.elements[j].value == 'D') { partest = 1; } break; } } if (partest == 1) { delchrg = parent.dchg; n2w += ""; } } } n2w += ""; n2w += ""; n2w += "
Qty.No.DescriptionPrice
" + i + "." + items[i].desc + "" + items[i].desc + "" + cent( (items[i].price * items[i].quantity) ) + "
Remove
Delivery Charge:" + cent(delchrg) + "
Total Cost (w/ taxes):" + cent(totalcost + ((subtaxey * taxvar) - subtaxey) + delchrg) + "
"; if (callcent == 1 && sitecmnt == 0) { n2w += ""; } n2w += "
"; n2w += ""; n2w += ""; n2w += ""; n2w += "
"; n2w += ""; n2w += ""; n2w += "
"; n2w += ""; n2w += ""; n2w += ""; n2w += "
Estimated Pickup: 20 Minutes

"; n2w += "" + weaccept1 + ".
"; n2w += ""; if (newlook == 0 && rfrming == 0) { n2w += ""; parent.document.open(); parent.document.write(n2w); parent.document.close(); } else { n2w += ""; document.getElementById('rfrme').innerHTML = n2w; openForm(); } return true; } function chameleon(k) { var sh = parent.document; if (k) { if (sh.forms[0].omegad.value == true) { sh.forms[0].alpha.checked = false; } } else { if (sh.forms[0].alpha.value == true) { sh.forms[0].omegad.checked = false; } } return true; } function deleteitem(id) { if (id + 1 == items.length) { items.length = id; } else { for (var i=id;i<=n1m;i++) { if (i != n1m) { items[i] = ''; items[i] = items[i+1]; } else { items.length = n1m; } } } n1m--; sveord(); update(); } function update() { var n2w = ''; var nu2 = navigator.userAgent; if (newlook == 0 && rfrming == 0) { n2w += ''; n2w += ""; if (franco == 0) { if (extracthru == 0) { n2w += ''; } else { if (nu2.indexOf("MSIE") != -1 && nu2.indexOf("Opera") == -1) { n2w += ''; } else { n2w += ''; } } } else { if (cthru == 0) { n2w += ''; } else { if (nu2.indexOf("MSIE") != -1 && nu2.indexOf("Opera") == -1) { n2w += ''; } else { n2w += ''; } } } } n2w += "

"; n2w += "
Updating Your Order
"; if (newlook == 0 && rfrming == 0) { n2w += ""; parent.document.open(); parent.document.write(n2w); parent.document.close(); } else { document.getElementById('rfrme').innerHTML = n2w; } setTimeout('displaymenuorder()',500); } function clearorder() { n1m = 0; hours = 0; prearray = p1n = ''; items = new Array(); sveord(); // displaymenuorder(); displaymenuorder(); return true; } function popUp(url) { sealWin=window.open(url,"win",'toolbar=0,location =0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=630,height=470'); self.name = "sslWin"; } var fds = new Array(new Array("1","1","","Deli Sub - 8 inch","shredded lettuce, tomato, pickles, red onion, mayo, mustard, pepperoncini, oil & vinegar","","","1a","Deli Sub - 8 inch - Turkey","8.95","60001.121110","8.95 ","Turkey",",'51234551255345'",",1","","1b","Deli Sub - 8 inch - Roast Beef","9.95","60087.121110","9.95 ","Roast Beef",",'51234551255345'",",1","","1c","Deli Sub - 8 inch - Ham","7.95","60088.121110","7.95 ","Ham",",'51234551255345'",",1","","1d","Deli Sub - 8 inch - Tuna Salad","8.50","60090.121110","8.50 ","Tuna Salad",",'51234551255345'",",1","","1e","Deli Sub - 8 inch - Egg Salad","7.95","60091.121110","7.95 ","Egg Salad",",'51234551255345'",",1",""),new Array("1","3","","Half Subs","","","","3a","Half Subs - Half Turkey","5.45","60155.103113","5.45 ","Half Turkey",",'512341255127155345'",",2","","3b","Half Subs - Half Ham","5.45","60157.103113","5.45 ","Half Ham",",'512341255127155345'",",2","","3c","Half Subs - Half Tuna","5.45","60158.103113","5.45 ","Half Tuna",",'512341255127155345'",",2","","3d","Half Subs - Half Egg","5.45","60159.103113","5.45 ","Half Egg",",'512341255127155345'",",2",""),new Array("1","8","","Classic Tuna Melt","classic tuna salad, melted cheddar & tomato on a country french roll","","","8a","Classic Tuna Melt","8.50","60004.121110","8.50 ","",",'5334534'",",3",""),new Array("1","11","","Client Melt","warm turkey breast, brie cheese, cranberry mayo served on a toasted ciabatta","","","11a","Client Melt","8.50","60015.121110","8.50 ","",",'334'",",4",""),new Array("1","13","","707 Cheddar Cheeseburger","ground chuck patty with shredded lettuce, tomato, pickle, red onion & our JD sauce on a sweet hawaiian bun","","","13a","707 Cheddar Cheeseburger","9.95","60173.032614","9.95 ","",",'334'",",5",""),new Array("1","14","","Chicken Sandwich","shredded lettuce, swiss, tomato, red onion & garlic mayo on a sweet hawaiian bun","","","14a","Chicken Sandwich","8.95","60174.032614","8.95 ","",",'334'",",6",""),new Array("1","16","","Veggie Burger","provolone, alfalfa sprouts, tomato & chipotle mayo on a whole wheat bun","","","16a","Veggie Burger","8.95","60176.032614","8.95 ","",",'334'",",7",""),new Array("1","22","","Classic Reuben","Corned beef, sauerkraut, 1000 island dressing & swiss cheese on toasted rye bread","","","22a","Classic Reuben","10.95","60124.030611","10.95 ","",",'334'",",8",""),new Array("1","24","","The Executive","hot pastrami stacked high, swiss, pickles, mustard & pepperoncinis on toasted french roll","","","24a","The Executive","10.95","60010.121110","10.95 ","",",'334'",",9",""),new Array("1","29","","The Boss","warm prosciutto, capicola, salami, seasoned iceberg, provolone & pepperoncini on country french roll","","","29a","The Boss","9.95","60016.121110","9.95 ","",",'334'",",10",""),new Array("1","32","","The CEO Turkey Croissant","sliced turkey breast, alfalfa sprouts, cucumber, tomato & basil pesto aioli on fresh baked croissant","","","32a","The CEO Turkey Croissant","8.95","60145.101613","8.95 ","",",'334'",",11",""),new Array("1","35","","Classic Tuna Wrap","lettuce, tomato & cucumber on a spinach tortillawrap","","","35a","Classic Tuna Wrap","8.50","60018.121110","8.50 ","",",'53345512345'",",12",""),new Array("1","36","","Turkey BLT Wrap","turkey breast, bacon, lettuce, tomato & ranch dressing on a wheat wrap","","","36a","Turkey BLT Wrap","8.50","60019.121110","8.50 ","",",'53345512345'",",13",""),new Array("1","40","","Veggie Crisp Wrap","leaf lettuce, fresh mushrooms, sliced carrots, cucumber, avocado, sprouts rolled in a sundried tortilla wrap with balsamic vinaigrette","","","40a","Veggie Crisp Wrap","7.50","60146.101613","7.50 ","",",'3512345'",",14",""),new Array("1","45","","Grand Avenue Salad","mixed greens, corn, goat cheese, dates, avocado, croutons, toasted almonds, tomatoes, cucumbers & herb vinaigrette. Add chicken breast $3","","","45a","Grand Avenue Salad","10.95","60177.032614","10.95 ","",",'533451512345'",",15",""),new Array("1","46","","BBQ Ranch Chicken Salad","chicken breast drizzled with bbq sauce, romaine, tomato, red onion, avocado, blue cheese crumbles, tortilla strips & bbq ranch","","","46a","BBQ Ranch Chicken Salad","11.50","60178.032614","11.50 ","",",'31512345'",",16",""),new Array("1","48","","Turkey Cobb Salad","Turkey breast, tomato, avocado, crumbled egg, bacon & blue cheese crumbles, with ranch dressing","","","48a","Turkey Cobb Salad","10.95","60125.030611","10.95 ","",",'31512345'",",17",""),new Array("1","51","","Chef Salad","turkey, ham, cheddar, swiss, chopped egg, iceberg, cucumbers, 1000 island","","","51a","Chef Salad","9.95","60152.101613","9.95 ","",",'31512345'",",18",""),new Array("1","52","","Chinese Chicken Salad","tender chicken breast, iceberg, almonds, carrots, sesame vinaigrette, rice noodles & sesame seesd","","","52a","Chinese Chicken Salad - large","10.95","60023.121110","10.95 ","large",",'31512345'",",19",""),new Array("1","53","","Classic Caesar","romaine, parmesan, caesar dressing & croutons","","","53a","Classic Caesar - large","8.95","60025.121110","8.95 ","large",",'531345512345'",",20",""),new Array("1","54","","Build A Salad","MAKE IT YOUR OWN! Order with your favorite FIVE ingredients. add a scoop of tuna salad or egg salad $3. add tender chicken breast $2","","","54a","Build A Salad","9.95","60027.121110","9.95 ","",",'512355345534155123450'",",21",""),new Array("1","55","","Italian Chop Salad","diced romaine & iceberg mix, salami, capicola, provolone, blue cheese crumbles, garbanzo beans, & pepperoncinis with italian dressing","","","55a","Italian Chop Salad","11.50","60028.121110","11.50 ","",",'3134512345'",",22",""),new Array("1","58","","Greek Salad","chopped romaine & iceberg, feta, cucumber, carrot, red onions, kalamata olives & tomato with oil & vinegar. add tender chicken breast $3","","","58a","Greek Salad","9.95","60031.121110","9.95 ","",",'531345512345'",",23",""),new Array("1","60","","Quinoa & Spinach Salad","quinoa, cilantro, corn & black bean mix atop a bed of spinach with avocado, red bell peppers, cherry tomatoes, toasted pumpkin seeds & mango-vinaigrette","","","60a","Quinoa & Spinach Salad","9.95","60033.121110","9.95 ","",",'3134512345'",",24",""),new Array("0","61","","Creamy Tomato Basil Soup","Vegetable based pureed with tomatoes, fresh basil and heavy cream. Garnished with house made croutons and parmesan cheese","","","61a","Creamy Tomato Basil Soup - Cup","4.25","10136.030113","4.25 ","Cup","61b","Creamy Tomato Basil Soup - Bowl","5.95","10137.030113","5.95 ","Bowl"),new Array("0","62","","Vegan Vegetable Soup","carrots, onions, tomato & herbs","","","62a","Vegan Vegetable Soup - cup (8 oz)","4.25","10034.121110","4.25 ","cup (8 oz)","62b","Vegan Vegetable Soup - bowl (12 oz)","5.95","10035.121110","5.95 ","bowl (12 oz)"),new Array("0","71","","Deep River Dill Pickle","","","","71","Deep River Dill Pickle","1.25","10171.032614","1.25 ",""),new Array("0","72","","Fresh Fruit Salad","","","","72","Fresh Fruit Salad","3.25","10056.121110","3.25 ",""),new Array("0","73","","Fountain Soda","(not available for delivery).","","","73a","Fountain Soda - Coke","2.00","10059.121110","2.00 ","Coke","73b","Fountain Soda - Diet Coke","2.00","10184.032614","2.00 ","Diet Coke","73c","Fountain Soda - Sprite","2.00","10185.032614","2.00 ","Sprite","73d","Fountain Soda - Fanta Orange","2.00","10186.032614","2.00 ","Fanta Orange","73e","Fountain Soda - Coke Zero","2.00","10187.032614","2.00 ","Coke Zero","73f","Fountain Soda - Dr. Pepper","2.00","10188.032614","2.00 ","Dr. Pepper"),new Array("0","74","","Coke (20oz - Btl)","","","","74","Coke (20oz - Btl)","2.25","10060.121110","2.25 ",""),new Array("0","75","","Diet Coke (20oz - Btl)","","","","75","Diet Coke (20oz - Btl)","2.25","10061.121110","2.25 ",""),new Array("0","76","","Pepsi (20oz)","","","","76","Pepsi (20oz)","2.25","10065.121110","2.25 ",""),new Array("0","77","","Diet Pepsi (20oz)","","","","77","Diet Pepsi (20oz)","2.25","10066.121110","2.25 ",""),new Array("0","78","","Milk","","","","78","Milk","2.25","10069.121110","2.25 ",""),new Array("0","79","","Pellegrino","","","","79a","Pellegrino","1.75","10070.121110","1.75 ","","79b","Pellegrino - Limonata","1.50","10071.121110","1.50 ","Limonata","79c","Pellegrino - Aranciata","1.50","10072.121110","1.50 ","Aranciata"),new Array("0","80","","Fresh Orange Juice (btl)","","","","80","Fresh Orange Juice (btl)","2.50","10075.121110","2.50 ",""),new Array("0","81","","Smart Water","","","","81","Smart Water","2.50","10085.121110","2.50 ",""),new Array("0","82","","Iced Tea - Freshly Brewed","","","","82a","Iced Tea - Freshly Brewed - Tropical (med)","2.25","10189.032614","2.25 ","Tropical (med)","82b","Iced Tea - Freshly Brewed - Tropical (lg)","2.50","10190.032614","2.50 ","Tropical (lg)","82c","Iced Tea - Freshly Brewed - Summer Solstice (med)","2.25","10191.032614","2.25 ","Summer Solstice (med)","82d","Iced Tea - Freshly Brewed - Summer Solstice (lg)","2.50","10192.032614","2.50 ","Summer Solstice (lg)"),new Array("0","83","","V8 Tomato Juice","","","","83","V8 Tomato Juice","2.50","10193.032614","2.50 ",""),new Array("0","84","","Red Bull","","","","84","Red Bull","3.50","10195.032614","3.50 ",""),new Array("0","85","","Sugar-Free Red Bull","","","","85","Sugar-Free Red Bull","3.50","10196.032614","3.50 ",""),new Array("0","86","","Dr. Brown's Bottled Rootbeer","","","","86","Dr. Brown`s Bottled Rootbeer","2.25","10198.032614","2.25 ","")); var fxst = "




"; var nd = "
"; var spw = spw2 = spw3 = spw4 = icomod = ''; var p1 = p2 = p3 = p5 = 0; function spwfunc(id,slctqty) { if (id != Math.floor(id)) { id = Math.floor(id); } if (id == 60001) { showPizzaWin('1a.','0','8',8.95,'60001.121110',1,'51234551255345',1); } else if (id == 60087) { showPizzaWin('1b.','0','17',9.95,'60087.121110',1,'51234551255345',1); } else if (id == 60088) { showPizzaWin('1c.','0','26',7.95,'60088.121110',1,'51234551255345',1); } else if (id == 60090) { showPizzaWin('1d.','0','35',8.50,'60090.121110',1,'51234551255345',1); } else if (id == 60091) { showPizzaWin('1e.','0','44',7.95,'60091.121110',1,'51234551255345',1); } else if (id == 60155) { showPizzaWin('3a.','1','8',5.45,'60155.103113',1,'512341255127155345',2); } else if (id == 60157) { showPizzaWin('3b.','1','17',5.45,'60157.103113',1,'512341255127155345',2); } else if (id == 60158) { showPizzaWin('3c.','1','26',5.45,'60158.103113',1,'512341255127155345',2); } else if (id == 60159) { showPizzaWin('3d.','1','35',5.45,'60159.103113',1,'512341255127155345',2); } else if (id == 60004) { showPizzaWin('8a.','2','8',8.50,'60004.121110',1,'5334534',3); } else if (id == 60015) { showPizzaWin('11a.','3','8',8.50,'60015.121110',1,'334',4); } else if (id == 60173) { showPizzaWin('13a.','4','8',9.95,'60173.032614',1,'334',5); } else if (id == 60174) { showPizzaWin('14a.','5','8',8.95,'60174.032614',1,'334',6); } else if (id == 60176) { showPizzaWin('16a.','6','8',8.95,'60176.032614',1,'334',7); } else if (id == 60124) { showPizzaWin('22a.','7','8',10.95,'60124.030611',1,'334',8); } else if (id == 60010) { showPizzaWin('24a.','8','8',10.95,'60010.121110',1,'334',9); } else if (id == 60016) { showPizzaWin('29a.','9','8',9.95,'60016.121110',1,'334',10); } else if (id == 60145) { showPizzaWin('32a.','10','8',8.95,'60145.101613',1,'334',11); } else if (id == 60018) { showPizzaWin('35a.','11','8',8.50,'60018.121110',1,'53345512345',12); } else if (id == 60019) { showPizzaWin('36a.','12','8',8.50,'60019.121110',1,'53345512345',13); } else if (id == 60146) { showPizzaWin('40a.','13','8',7.50,'60146.101613',1,'3512345',14); } else if (id == 60177) { showPizzaWin('45a.','14','8',10.95,'60177.032614',1,'533451512345',15); } else if (id == 60178) { showPizzaWin('46a.','15','8',11.50,'60178.032614',1,'31512345',16); } else if (id == 60125) { showPizzaWin('48a.','16','8',10.95,'60125.030611',1,'31512345',17); } else if (id == 60152) { showPizzaWin('51a.','17','8',9.95,'60152.101613',1,'31512345',18); } else if (id == 60023) { showPizzaWin('52a.','18','8',10.95,'60023.121110',1,'31512345',19); } else if (id == 60025) { showPizzaWin('53a.','19','8',8.95,'60025.121110',1,'531345512345',20); } else if (id == 60027) { showPizzaWin('54a.','20','8',9.95,'60027.121110',1,'512355345534155123450',21); } else if (id == 60028) { showPizzaWin('55a.','21','8',11.50,'60028.121110',1,'3134512345',22); } else if (id == 60031) { showPizzaWin('58a.','22','8',9.95,'60031.121110',1,'531345512345',23); } else if (id == 60033) { showPizzaWin('60a.','23','8',9.95,'60033.121110',1,'3134512345',24); } else if (id == 10136) { additem('61a.','24','8','',4.25,'10136.030113',slctqty); } else if (id == 10137) { additem('61b.','24','14','',5.95,'10137.030113',slctqty); } else if (id == 10034) { additem('62a.','25','8','',4.25,'10034.121110',slctqty); } else if (id == 10035) { additem('62b.','25','14','',5.95,'10035.121110',slctqty); } else if (id == 10171) { additem('71.','26','8','',1.25,'10171.032614',slctqty); } else if (id == 10056) { additem('72.','27','8','',3.25,'10056.121110',slctqty); } else if (id == 10059) { additem('73a.','28','8','',2.00,'10059.121110',slctqty); } else if (id == 10184) { additem('73b.','28','14','',2.00,'10184.032614',slctqty); } else if (id == 10185) { additem('73c.','28','20','',2.00,'10185.032614',slctqty); } else if (id == 10186) { additem('73d.','28','26','',2.00,'10186.032614',slctqty); } else if (id == 10187) { additem('73e.','28','32','',2.00,'10187.032614',slctqty); } else if (id == 10188) { additem('73f.','28','38','',2.00,'10188.032614',slctqty); } else if (id == 10060) { additem('74.','29','8','',2.25,'10060.121110',slctqty); } else if (id == 10061) { additem('75.','30','8','',2.25,'10061.121110',slctqty); } else if (id == 10065) { additem('76.','31','8','',2.25,'10065.121110',slctqty); } else if (id == 10066) { additem('77.','32','8','',2.25,'10066.121110',slctqty); } else if (id == 10069) { additem('78.','33','8','',2.25,'10069.121110',slctqty); } else if (id == 10070) { additem('79a.','34','8','',1.75,'10070.121110',slctqty); } else if (id == 10071) { additem('79b.','34','14','',1.50,'10071.121110',slctqty); } else if (id == 10072) { additem('79c.','34','20','',1.50,'10072.121110',slctqty); } else if (id == 10075) { additem('80.','35','8','',2.50,'10075.121110',slctqty); } else if (id == 10085) { additem('81.','36','8','',2.50,'10085.121110',slctqty); } else if (id == 10189) { additem('82a.','37','8','',2.25,'10189.032614',slctqty); } else if (id == 10190) { additem('82b.','37','14','',2.50,'10190.032614',slctqty); } else if (id == 10191) { additem('82c.','37','20','',2.25,'10191.032614',slctqty); } else if (id == 10192) { additem('82d.','37','26','',2.50,'10192.032614',slctqty); } else if (id == 10193) { additem('83.','38','8','',2.50,'10193.032614',slctqty); } else if (id == 10195) { additem('84.','39','8','',3.50,'10195.032614',slctqty); } else if (id == 10196) { additem('85.','40','8','',3.50,'10196.032614',slctqty); } else if (id == 10198) { additem('86.','41','8','',2.25,'10198.032614',slctqty); } } function spwfuncq(id,slctqty) { if (id != Math.floor(id)) { id = Math.floor(id); } } var chgsub2 = ""; function chgprices(id,id2,id3,id4) { var chgprice = "", chgitm = "", chgdsc = "", chgsub = ""; chgsub2 = ""; if (id == 60001) { if (!id2 && !id3 && !id4) { chgprice = "" + 8.95; } else if (id4) { chgsub = "" + "Turkey"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Deli Sub - 8 inch"; } else if (id3) { chgdsc = "" + "shredded lettuce, tomato, pickles, red onion, mayo, mustard, pepperoncini, oil & vinegar"; } } else if (id == 60087) { if (!id2 && !id3 && !id4) { chgprice = "" + 9.95; } else if (id4) { chgsub = "" + "Roast Beef"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Deli Sub - 8 inch"; } else if (id3) { chgdsc = "" + "shredded lettuce, tomato, pickles, red onion, mayo, mustard, pepperoncini, oil & vinegar"; } } else if (id == 60088) { if (!id2 && !id3 && !id4) { chgprice = "" + 7.95; } else if (id4) { chgsub = "" + "Ham"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Deli Sub - 8 inch"; } else if (id3) { chgdsc = "" + "shredded lettuce, tomato, pickles, red onion, mayo, mustard, pepperoncini, oil & vinegar"; } } else if (id == 60090) { if (!id2 && !id3 && !id4) { chgprice = "" + 8.50; } else if (id4) { chgsub = "" + "Tuna Salad"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Deli Sub - 8 inch"; } else if (id3) { chgdsc = "" + "shredded lettuce, tomato, pickles, red onion, mayo, mustard, pepperoncini, oil & vinegar"; } } else if (id == 60091) { if (!id2 && !id3 && !id4) { chgprice = "" + 7.95; } else if (id4) { chgsub = "" + "Egg Salad"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Deli Sub - 8 inch"; } else if (id3) { chgdsc = "" + "shredded lettuce, tomato, pickles, red onion, mayo, mustard, pepperoncini, oil & vinegar"; } } else if (id == 60155) { if (!id2 && !id3 && !id4) { chgprice = "" + 5.45; } else if (id4) { chgsub = "" + "Half Turkey"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Half Subs"; } else if (id3) { } } else if (id == 60157) { if (!id2 && !id3 && !id4) { chgprice = "" + 5.45; } else if (id4) { chgsub = "" + "Half Ham"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Half Subs"; } else if (id3) { } } else if (id == 60158) { if (!id2 && !id3 && !id4) { chgprice = "" + 5.45; } else if (id4) { chgsub = "" + "Half Tuna"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Half Subs"; } else if (id3) { } } else if (id == 60159) { if (!id2 && !id3 && !id4) { chgprice = "" + 5.45; } else if (id4) { chgsub = "" + "Half Egg"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Half Subs"; } else if (id3) { } } else if (id == 60004) { if (!id2 && !id3 && !id4) { chgprice = "" + 8.50; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Classic Tuna Melt"; } else if (id3) { chgdsc = "" + "classic tuna salad, melted cheddar & tomato on a country french roll"; } } else if (id == 60015) { if (!id2 && !id3 && !id4) { chgprice = "" + 8.50; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Client Melt"; } else if (id3) { chgdsc = "" + "warm turkey breast, brie cheese, cranberry mayo served on a toasted ciabatta"; } } else if (id == 60173) { if (!id2 && !id3 && !id4) { chgprice = "" + 9.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "707 Cheddar Cheeseburger"; } else if (id3) { chgdsc = "" + "ground chuck patty with shredded lettuce, tomato, pickle, red onion & our JD sauce on a sweet hawaiian bun"; } } else if (id == 60174) { if (!id2 && !id3 && !id4) { chgprice = "" + 8.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Chicken Sandwich"; } else if (id3) { chgdsc = "" + "shredded lettuce, swiss, tomato, red onion & garlic mayo on a sweet hawaiian bun"; } } else if (id == 60176) { if (!id2 && !id3 && !id4) { chgprice = "" + 8.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Veggie Burger"; } else if (id3) { chgdsc = "" + "provolone, alfalfa sprouts, tomato & chipotle mayo on a whole wheat bun"; } } else if (id == 60124) { if (!id2 && !id3 && !id4) { chgprice = "" + 10.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Classic Reuben"; } else if (id3) { chgdsc = "" + "Corned beef, sauerkraut, 1000 island dressing & swiss cheese on toasted rye bread"; } } else if (id == 60010) { if (!id2 && !id3 && !id4) { chgprice = "" + 10.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "The Executive"; } else if (id3) { chgdsc = "" + "hot pastrami stacked high, swiss, pickles, mustard & pepperoncinis on toasted french roll"; } } else if (id == 60016) { if (!id2 && !id3 && !id4) { chgprice = "" + 9.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "The Boss"; } else if (id3) { chgdsc = "" + "warm prosciutto, capicola, salami, seasoned iceberg, provolone & pepperoncini on country french roll"; } } else if (id == 60145) { if (!id2 && !id3 && !id4) { chgprice = "" + 8.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "The CEO Turkey Croissant"; } else if (id3) { chgdsc = "" + "sliced turkey breast, alfalfa sprouts, cucumber, tomato & basil pesto aioli on fresh baked croissant"; } } else if (id == 60018) { if (!id2 && !id3 && !id4) { chgprice = "" + 8.50; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Classic Tuna Wrap"; } else if (id3) { chgdsc = "" + "lettuce, tomato & cucumber on a spinach tortillawrap"; } } else if (id == 60019) { if (!id2 && !id3 && !id4) { chgprice = "" + 8.50; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Turkey BLT Wrap"; } else if (id3) { chgdsc = "" + "turkey breast, bacon, lettuce, tomato & ranch dressing on a wheat wrap"; } } else if (id == 60146) { if (!id2 && !id3 && !id4) { chgprice = "" + 7.50; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Veggie Crisp Wrap"; } else if (id3) { chgdsc = "" + "leaf lettuce, fresh mushrooms, sliced carrots, cucumber, avocado, sprouts rolled in a sundried tortilla wrap with balsamic vinaigrette"; } } else if (id == 60177) { if (!id2 && !id3 && !id4) { chgprice = "" + 10.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Grand Avenue Salad"; } else if (id3) { chgdsc = "" + "mixed greens, corn, goat cheese, dates, avocado, croutons, toasted almonds, tomatoes, cucumbers & herb vinaigrette. Add chicken breast $3"; } } else if (id == 60178) { if (!id2 && !id3 && !id4) { chgprice = "" + 11.50; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "BBQ Ranch Chicken Salad"; } else if (id3) { chgdsc = "" + "chicken breast drizzled with bbq sauce, romaine, tomato, red onion, avocado, blue cheese crumbles, tortilla strips & bbq ranch"; } } else if (id == 60125) { if (!id2 && !id3 && !id4) { chgprice = "" + 10.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Turkey Cobb Salad"; } else if (id3) { chgdsc = "" + "Turkey breast, tomato, avocado, crumbled egg, bacon & blue cheese crumbles, with ranch dressing"; } } else if (id == 60152) { if (!id2 && !id3 && !id4) { chgprice = "" + 9.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Chef Salad"; } else if (id3) { chgdsc = "" + "turkey, ham, cheddar, swiss, chopped egg, iceberg, cucumbers, 1000 island"; } } else if (id == 60023) { if (!id2 && !id3 && !id4) { chgprice = "" + 10.95; } else if (id4) { chgsub = "" + "large"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Chinese Chicken Salad"; } else if (id3) { chgdsc = "" + "tender chicken breast, iceberg, almonds, carrots, sesame vinaigrette, rice noodles & sesame seesd"; } } else if (id == 60025) { if (!id2 && !id3 && !id4) { chgprice = "" + 8.95; } else if (id4) { chgsub = "" + "large"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Classic Caesar"; } else if (id3) { chgdsc = "" + "romaine, parmesan, caesar dressing & croutons"; } } else if (id == 60027) { if (!id2 && !id3 && !id4) { chgprice = "" + 9.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Build A Salad"; } else if (id3) { chgdsc = "" + "MAKE IT YOUR OWN! Order with your favorite FIVE ingredients. add a scoop of tuna salad or egg salad $3. add tender chicken breast $2"; } } else if (id == 60028) { if (!id2 && !id3 && !id4) { chgprice = "" + 11.50; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Italian Chop Salad"; } else if (id3) { chgdsc = "" + "diced romaine & iceberg mix, salami, capicola, provolone, blue cheese crumbles, garbanzo beans, & pepperoncinis with italian dressing"; } } else if (id == 60031) { if (!id2 && !id3 && !id4) { chgprice = "" + 9.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Greek Salad"; } else if (id3) { chgdsc = "" + "chopped romaine & iceberg, feta, cucumber, carrot, red onions, kalamata olives & tomato with oil & vinegar. add tender chicken breast $3"; } } else if (id == 60033) { if (!id2 && !id3 && !id4) { chgprice = "" + 9.95; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Quinoa & Spinach Salad"; } else if (id3) { chgdsc = "" + "quinoa, cilantro, corn & black bean mix atop a bed of spinach with avocado, red bell peppers, cherry tomatoes, toasted pumpkin seeds & mango-vinaigrette"; } } else if (id == 10136) { if (!id2 && !id3 && !id4) { chgprice = "" + 4.25; } else if (id4) { chgsub = "" + "Cup"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Creamy Tomato Basil Soup"; } else if (id3) { chgdsc = "" + "Vegetable based pureed with tomatoes, fresh basil and heavy cream. Garnished with house made croutons and parmesan cheese"; } } else if (id == 10137) { if (!id2 && !id3 && !id4) { chgprice = "" + 5.95; } else if (id4) { chgsub = "" + "Bowl"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Creamy Tomato Basil Soup"; } else if (id3) { chgdsc = "" + "Vegetable based pureed with tomatoes, fresh basil and heavy cream. Garnished with house made croutons and parmesan cheese"; } } else if (id == 10034) { if (!id2 && !id3 && !id4) { chgprice = "" + 4.25; } else if (id4) { chgsub = "" + "cup (8 oz)"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Vegan Vegetable Soup"; } else if (id3) { chgdsc = "" + "carrots, onions, tomato & herbs"; } } else if (id == 10035) { if (!id2 && !id3 && !id4) { chgprice = "" + 5.95; } else if (id4) { chgsub = "" + "bowl (12 oz)"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Vegan Vegetable Soup"; } else if (id3) { chgdsc = "" + "carrots, onions, tomato & herbs"; } } else if (id == 10171) { if (!id2 && !id3 && !id4) { chgprice = "" + 1.25; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Deep River Dill Pickle"; } else if (id3) { } } else if (id == 10056) { if (!id2 && !id3 && !id4) { chgprice = "" + 3.25; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Fresh Fruit Salad"; } else if (id3) { } } else if (id == 10059) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.00; } else if (id4) { chgsub = "" + "Coke"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Fountain Soda"; } else if (id3) { chgdsc = "" + "(not available for delivery)."; } } else if (id == 10184) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.00; } else if (id4) { chgsub = "" + "Diet Coke"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Fountain Soda"; } else if (id3) { chgdsc = "" + "(not available for delivery)."; } } else if (id == 10185) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.00; } else if (id4) { chgsub = "" + "Sprite"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Fountain Soda"; } else if (id3) { chgdsc = "" + "(not available for delivery)."; } } else if (id == 10186) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.00; } else if (id4) { chgsub = "" + "Fanta Orange"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Fountain Soda"; } else if (id3) { chgdsc = "" + "(not available for delivery)."; } } else if (id == 10187) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.00; } else if (id4) { chgsub = "" + "Coke Zero"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Fountain Soda"; } else if (id3) { chgdsc = "" + "(not available for delivery)."; } } else if (id == 10188) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.00; } else if (id4) { chgsub = "" + "Dr. Pepper"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Fountain Soda"; } else if (id3) { chgdsc = "" + "(not available for delivery)."; } } else if (id == 10060) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.25; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Coke (20oz - Btl)"; } else if (id3) { } } else if (id == 10061) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.25; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Diet Coke (20oz - Btl)"; } else if (id3) { } } else if (id == 10065) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.25; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Pepsi (20oz)"; } else if (id3) { } } else if (id == 10066) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.25; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Diet Pepsi (20oz)"; } else if (id3) { } } else if (id == 10069) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.25; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Milk"; } else if (id3) { } } else if (id == 10070) { if (!id2 && !id3 && !id4) { chgprice = "" + 1.75; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Pellegrino"; } else if (id3) { } } else if (id == 10071) { if (!id2 && !id3 && !id4) { chgprice = "" + 1.50; } else if (id4) { chgsub = "" + "Limonata"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Pellegrino"; } else if (id3) { } } else if (id == 10072) { if (!id2 && !id3 && !id4) { chgprice = "" + 1.50; } else if (id4) { chgsub = "" + "Aranciata"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Pellegrino"; } else if (id3) { } } else if (id == 10075) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.50; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Fresh Orange Juice (btl)"; } else if (id3) { } } else if (id == 10085) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.50; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Smart Water"; } else if (id3) { } } else if (id == 10189) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.25; } else if (id4) { chgsub = "" + "Tropical (med)"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Iced Tea - Freshly Brewed"; } else if (id3) { } } else if (id == 10190) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.50; } else if (id4) { chgsub = "" + "Tropical (lg)"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Iced Tea - Freshly Brewed"; } else if (id3) { } } else if (id == 10191) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.25; } else if (id4) { chgsub = "" + "Summer Solstice (med)"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Iced Tea - Freshly Brewed"; } else if (id3) { } } else if (id == 10192) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.50; } else if (id4) { chgsub = "" + "Summer Solstice (lg)"; chgsub2 = 1; } else if (id2) { chgitm = "" + "Iced Tea - Freshly Brewed"; } else if (id3) { } } else if (id == 10193) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.50; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "V8 Tomato Juice"; } else if (id3) { } } else if (id == 10195) { if (!id2 && !id3 && !id4) { chgprice = "" + 3.50; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Red Bull"; } else if (id3) { } } else if (id == 10196) { if (!id2 && !id3 && !id4) { chgprice = "" + 3.50; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Sugar-Free Red Bull"; } else if (id3) { } } else if (id == 10198) { if (!id2 && !id3 && !id4) { chgprice = "" + 2.25; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Dr. Brown's Bottled Rootbeer"; } else if (id3) { } } if (chgprice) { chgprice = cent(chgprice); return chgprice; } else if (chgitm) { return chgitm; } else if (chgdsc) { return chgdsc; } else if (chgsub) { return chgsub; } } function chgfrmprices(id2) { var subprce = '', subprce2 = '', newprice = '', getvar = ''; var nuq = navigator.userAgent; var ifrmed2 = ''; if (nuq.indexOf("MSIE 9") == -1 && nuq.indexOf("MSIE 1") == -1) { ifrmed2 = parent.document.getElementsByTagName("span"), i = ifrmed2.length; } else { ifrmed2 = parent.document.querySelectorAll("span"), i = ifrmed2.length; } var anext = i; while(i--) { if (ifrmed2[i].id && ifrmed2[i].id.indexOf('i_') != -1) { subprce = ifrmed2[i].id; subprce2 = subprce.substr(2); newprice = chgprices(subprce2); if (!newprice || newprice == undefined || newprice == null) { newprice = ''; } getvar = ifrmed2[i].id; parent.document.getElementById(getvar).innerHTML = newprice; } } if (id2) { i = anext; while(i--) { if (ifrmed2[i].id) { if (ifrmed2[i].id.indexOf('a_') != -1) { subitm = ifrmed2[i].id; subitm2 = subitm.substr(2); newprice = chgprices(subitm2,1); if (!newprice || newprice == undefined || newprice == null) { newprice = ''; } getvar = ifrmed2[i].id; parent.document.getElementById(getvar).innerHTML = newprice; } else if (ifrmed2[i].id.indexOf('b_') != -1) { subitm = ifrmed2[i].id; subitm2 = subitm.substr(2); newprice = chgprices(subitm2,'',1); if (!newprice || newprice == undefined || newprice == null) { newprice = ''; } getvar = ifrmed2[i].id; parent.document.getElementById(getvar).innerHTML = newprice; } else if (ifrmed2[i].id.indexOf('c_') != -1) { subitm = ifrmed2[i].id; subitm2 = subitm.substr(2); newprice = chgprices(subitm2,'','',1); if (!newprice || newprice == undefined || newprice == null) { newprice = ''; } getvar = ifrmed2[i].id; parent.document.getElementById(getvar).innerHTML = newprice; } else if (ifrmed2[i].id.indexOf('j_') != -1) { subitm = ifrmed2[i].id; subitm2 = subitm.substr(2); newprice = chgprices(subitm2,'','',1); // if (!newprice || newprice == undefined || newprice == null) { if (!chgsub2) { getvar = ifrmed2[i].id; parent.document.getElementById(getvar).innerHTML = ''; } } } } } } p1 = p2 = p3 = p5 = 0; // if (id == null) { id = 0; } // if (id == 0) { var pj1 = -1, pj2 = 1, sctn = 0; var sectitlsw = divsecst = 0, subyfx = priceyfx = loopend0 = loopend1 = loopend2 = ''; for (var i = 0; i < mstr.length; i++) { if (mstr[i] == 0) { if (fds[p1][0] == 0 || fds[p1][0] == 1) { if (fds[p1][4] == undefined || fds[p1][4] == null) { fds[p1][4] = ''; } if (fds[p1][0] == 0) { for (var j = 7; j < fds[p1].length; j++) { p5 = j+1; if (fds[p1][j+5]) { subyfx = " - " + fds[p1][j+5]; } else { subyfx = ''; } n3w += ("
  • " + fds[p1][3] + " " + subyfx + "
    " + fds[p1][j+2] + "
    " + fds[p1][3] + "
    " + fds[p1][4] + "
  • "); if (fds[p1].length == j + 5 + 1) { break; }; j += 5; } } else { for (var j = 7; j < fds[p1].length; j++) { p5 = j+1; if (fds[p1][j+5]) { subyfx = " - " + fds[p1][j+5]; } else { subyfx = ''; } n3w += ("
  • " + fds[p1][3] + " " + subyfx + "
    " + fds[p1][j+2] + "
    " + fds[p1][3] + "
    " + fds[p1][4] + "
  • "); if (fds[p1].length == j + 8 + 1) { break; }; j += 8; } } } p1++; pj2++; } else if (mstr[i] < 4) { if (i != 0) { n3w += (""); } if (mstr[i] == 1) { n3w += ("
    " + sxs[p2][0] + "
    " + sxs[p2][1] + "
      "); } p2++; } else { p3++; } } n3w += (nd); n3w += (""); function morph(id,id2,id3,id4,id5) { document.getElementById('lfrme').innerHTML = n3w; } function csspull() { n6w = (".calDataTitle { color:#000000 !important; } .calThisMonth { color:#000000 !important; } .olcg { height:25px; vertical-align:top;} .gentext { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; line-height: 16px; color: #353330; } .gentitle { font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size: 13px; font-weight: 400; /*font-weight: bold;*/ line-height: 16px; color: #353330; } .topn { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 16px; color: #000000; } .topn2 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; line-height: 16px; color: #ffffff; } .topn3 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; line-height: 16px; color: #ffffff; } .topn4 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: normal; line-height: 16px; color: #ffffff; } .topn5 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; line-height: 16px; color: #ffffff; } .trhover:hover { background-color:#87a13e; color:ffffff; } .csstime { color:#353330; } .cssrest { color:#353330; font-size:14px; } .ocssrest { color:#353330; } .cssresta { color:#353330; font-size:14px; } .cssrestb { color:#353330; } .cssrestc { color:#353330; } .qcsstime { font-size:14px; font-family:Arial, Helvetica, sans-serif; color:#353330; font-weight: normal; } .qcssrest { font-size:14px; font-family:Arial, Helvetica, sans-serif; color:#353330; font-weight: bold; } .qcssresta { font-size:14px; font-family:Arial, Helvetica, sans-serif; color:#353330; font-weight: bold; } .qcssrestb { font-size:14px; font-family:Arial, Helvetica, sans-serif; color:#353330; } .qcssrestc { font-size:14px; font-family:Arial, Helvetica, sans-serif; color:#353330; font-weight: bold; } body { padding:0px; margin:0px; } #csspop{ border:1px solid #87a13e; } .round { -moz-border-radius: 10px; -webkit-border-radius: 10px; -khmtl-border-radius: 10px; border-radius: 20px; background-color: #87a13e; color: #ffffff; font-size:16px; font-weight:bold; height:630px; border:2px solid #fff; border-collapse: unset !important; } table#overCap td:first-child { width: 90% !important; } #hrid { color:#000000; } .overclose { height:2px; color: #c9252c; position:relative; left:-5px; top:5px; } .overclose:hover { height:2px; color: #c9252c; position:relative; left:-5px; top:5px; } .overclose2 { color: #c9252c; font-size:0px; height:0px; line-height:2px; } .poptitle { font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; line-height: 16px; color: #000; vertical-align:bottom; } .popmine { width: 100%; border-bottom: 1px dotted black; margin-bottom:12px; } .popmine2 { width: 100%; border-top: 1px dotted black; height:15px; } .popmine3 { width: 100%; border-top: 1px dotted black; height:10px; } .popmine4 { width: 100%; border-top: 1px dotted black; height:10px; } .csstrnom { padding-bottom:15px; } .pricetext { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 14px; color: #000; vertical-align:bottom; } .poptext { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 14px; color: #000; padding-bottom:10px; padding-top:10px; padding-right:2px; } .poptext2 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 14px; color: #752735; padding-bottom:10px; padding-top:10px; } form { padding-left:10px; padding-right:10px; } .cssnomspan { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; line-height: 13px; color: #a10308; vertical-align:bottom; } #qaddbtn { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #ffffff; border:1px solid #87a13e; background:#87a13e; -moz-border-radius: 4px; -webkit-border-radius: 4px; -khmtl-border-radius: 4px; border-radius: 3px; margin:0px; padding:0px; height:17px; width:40px; cursor:pointer; } .headcss { vertical-align:top; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; color:#000; line-height:16px; padding:0px; margin:0px; } .radchks { margin-right:15px; vertical-align:middle; } .cssnomenbox { -moz-border-radius: 8px; -webkit-border-radius: 8px; -khmtl-border-radius: 8px; border-radius: 8px; padding:3px; border:solid 1px black; height:10px; font-size:10px; background-color:#e7e7e8; width:200px; } .cssineobox { -moz-border-radius: 8px; -webkit-border-radius: 8px; -khmtl-border-radius: 8px; border-radius: 8px; padding:3px; border:solid 1px black; height:40px; font-size:10px; background-color:#e7e7e8; width:200px; } .csscancelbox { color:#000; text-decoration:none; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; line-height: 13px; } .cssclearbox { color:#000; text-decoration:none; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; line-height: 13px; } span { font-size:14px; } .taxnone{ display:none; } label[class='forclass'] { border: 0; clip: rect(0 0 0 0); overflow: hidden; height: 1px; margin: -1px; padding: 0; position:absolute; width: 1px; } #rfrme { position:relative; width: 315px; z-index:1; float: left; text-align: left; margin:0px 0px 0px 0px; padding:0px 0px 10px 5px; }"); var styleelm = document.createElement('style'); styleelm.type = 'text/css'; if (styleelm.styleSheet) { styleelm.styleSheet.cssText = n6w; } else { styleelm.appendChild(document.createTextNode(n6w)); } document.getElementsByTagName("head")[0].appendChild(styleelm); }