var items = new Array(); var n1m = 0; var hours = 0; var total = 0; var pricewmods = 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 op, needle, oP, mimic, w1d, w1h, icol_a, icol_b, subprice, prearray, p1n, winqty, svhn = 0, sevrish = 0, callcent = 0, callcomcent1 = "Comment", callcomcent2 = 0, totalcost = 0, delchrg = 0, delchrg2 = 0, jsgrat = 0, jsgrat2 = 0, gratitude = 0, dsct = 0, dsct2 = 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 = "", partmenuoff = "", inbetweenhours = 0, weaccept1 = "", sizefull = 0, sizefull2 = 0, sizefull3 = 0, sizefuller2 = 0, freep2 = 0, freep3 = 0, freep4 = 0, freemodstotal = 0, freemodscount = 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 = '$$my{TAMPM}', newlookphone = 0, qlessi = "", qlessd = "", qlesss = "", qtymaxamnt = 0, numcnt = 0, numcnt2 = 0, keep = -1, logcustom = 0, logstring = "", logcuser = "", rfrming = 1, alertchk = 0, nomen = "", nomon = "", ineo = "", calmod = "", datelist = "", datestr = "", datearg = "", dateprearg = "", ineon = "", mphonevar = 0, chromevar = 0, pckaobj, json2fds, taxvar = 1.0775; var superqty, ropez; function visvals() { if (document.getElementById('visphon') != null) { document.getElementById('visphon').innerHTML = '(619) 546-0570'; } if (document.getElementById('visaddr') != null) { document.getElementById('visaddr').innerHTML = '645 B Street'; } if (document.getElementById('viscity') != null) { document.getElementById('viscity').innerHTML = 'San Diego'; } if (document.getElementById('visstat') != null) { document.getElementById('visstat').innerHTML = 'CA'; } if (document.getElementById('visname') != null) { document.getElementById('visname').innerHTML = 'The Taco Stand - Retail'; } } 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('eatord1002310',JSON.stringify(items), {expires: 1, path : '/' }); } else { localStorage.setItem('eatord1002310',JSON.stringify(items)); timeobj = { itmtime: new Date().getTime() }; localStorage.setItem('eattime1002310',JSON.stringify(timeobj)); localStorage.setItem('langtrans1002310',JSON.stringify(ltrns)); } } function grabord() { var pieitems,pienum,langtrans,clang; clang = 'ENG'; if (!ropez) { if (!localStorage) { if ($ && $.cookie && JSON.parse($.cookie('eatord1002310'))) { items = fJSON.parse($.cookie('eatord1002310')); } } else { pieitems = JSON.parse(localStorage.getItem('eatord1002310')); langtrans = JSON.parse(localStorage.getItem('langtrans1002310')); 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('eattime1002310')); 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["10001.012621"] = 1; var wq1 = ''; var wq2 = ''; function namehasher() { var mixx; 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=1002310&hubco=&menuturn=0&situs=letstaco&franco=1&csite=retail.letstaco.com&ck="; logstring = "Login"; weaccept1 = "WE ACCEPT VISA, MASTERCARD, AMERICAN EXPRESS AND DISCOVER"; function posOflex() { } qtymaxamnt = 40; 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 > totalcost) { alert("The $" + cent(totalcost) + " Amount of Items You Ordered Is Below the 0 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(); } displaymenuorder(); } 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=1002310&menu2=0&hubco=&menuturn=0&situs=letstaco&franco=1&csite=retail.letstaco.com&ck=&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1002310&menu2=0&hubco=&menuturn=0&situs=letstaco&franco=1&csite=retail.letstaco.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=1002310&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=1002310&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=1002310&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=1002310&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=1002310&menu2=0&hubco=&menuturn=0&situs=letstaco&franco=1&csite=retail.letstaco.com&ck=1&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1002310&menu2=0&hubco=&menuturn=0&situs=letstaco&franco=1&csite=retail.letstaco.com&ck=1'; } } else { if (n1m) { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1002310&menu2=0&hubco=&menuturn=0&situs=letstaco&franco=1&csite=retail.letstaco.com&ck=&inside=1'; } else { sh.forms[0].action = 'https://www.eatkey.com/apps/EatCustomer/?rids=1002310&menu2=0&hubco=&menuturn=0&situs=letstaco&franco=1&csite=retail.letstaco.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=1002310&menu2=0&hubco=&menuturn=0&situs=letstaco&franco=1&csite=retail.letstaco.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 (tmpQty == 0) { deleteitem(i); return; } 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 = d; 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 = '"'; var desc; if (d1 >= 0) { desc = fds[d1][d2]; } else { desc = d2; } var desc2 = desc; desc = mr_clean(desc); var foundIt = false; var quantity; 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); } displaymenuorder(); sveord(); } 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 = "letstaco"; csite = "retail.letstaco.com"; cthru = 1; imgx = 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 close in 7 hours 26 mins.
"; //a //b n2w += "PLEASE ALLOW 5 TO 10 DAYS FOR SHIPPING.

"; //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 += ""; n2w += ""; 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 + "" + 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 += "PLEASE ALLOW 5 TO 10 DAYS FOR SHIPPING.

"; 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; 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 hide = drpc = 0; var mousex, mousey, hold; function dRC(e,id){ var rightclick=''; var chgval = ''; // var sh = OW.document; if (!id || id == null) { if(!e) { var e=window.event; } if(e.which){ if (e.which==3) { hidenow(1); } } else if (e.button){ if (e.button==2) { if (keep == 0) { hidenow(1); } } } } else { hidenow(1); } } var moziewhich = 0; var lrbutton = ''; document.addEventListener('click',dRC3,true); document.mousedown=dRC; function dRC3(e) { if(!e) var e=window.event; moziewhich = e.which; } function dRC22(e,id,id2,elmider,zmnn){ var rightclick=''; var chgval = ''; var sh = OW.document; var mbtn = (window.Event) ? e.which : e.button; if (elmider) { chgval = sh.getElementById(elmider).value - 0; if (!zmnn || zmnn == null || zmnn <= 1) { chgval = chgval + 1; } else { if (chgval < zmnn) { chgval = chgval + 1; } } sh.getElementById(elmider).value = chgval; } } function dRC2(e,id,id2,elmider,zmnn){ var chgval = ''; var sh = OW.document; var mbtn = 0; if (elmider) { if(!e) { e = window.Event; } mbtn = e.which || e.button; if (mbtn) { if (mbtn== 1) { chgval = sh.getElementById(elmider).value - 0; if (!zmnn || zmnn == null || zmnn <= 1) { chgval = chgval + 1; } else { if (chgval < zmnn) { chgval = chgval + 1; } } // chgval = chgval + 1; sh.getElementById(elmider).value = chgval; } else { chgval = sh.getElementById(elmider).value - 0; if (chgval > 0) { chgval = chgval - 1; sh.getElementById(elmider).value = chgval; } } } else if (e) { mbtn = e.button; if (mbtn == 0) { chgval = sh.getElementById(elmider).value - 0; if (!zmnn || zmnn == null || zmnn <= 1) { chgval = chgval + 1; } else { if (chgval < zmnn) { chgval = chgval + 1; } } // chgval = chgval + 1; sh.getElementById(elmider).value = chgval; } else { chgval = sh.getElementById(elmider).value - 0; if (chgval > 0) { chgval = chgval - 1; sh.getElementById(elmider).value = chgval; } } } } } document.onmousedown=dRC; function show(id,cvt,flp) { keep = 0; if (flp == null) { flp = 0; } if ((hold && id != hold) || (flp == 1 && drpc == 1)) { if (document.getElementById(hold) != null) { document.getElementById(hold).style.visibility="hidden"; } } if (flp == 1) { drpc = (drpc == 1 ? 0 : 1); if (drpc == 0 && id == hold) { return; } } hold = id if (flp == 0) { hidenow(hold); } showbiz(hold); } function showbiz(id) { if (document.getElementById(id) == null) { return true; } document.getElementById(id).style.visibility = "visible"; } function hider(id) { keep = -1; hold = id; setTimeout('hidenow()',500); } function hidenow(off) { hide = 0; if (off == null) { off = 0; } mouser(); if (keep != 0) { if (hide) { if (document.getElementById(hold) == null) { return true; } document.getElementById(hold).style.visibility = "hidden"; } } else if (off == 1) { if (document.getElementById(hold) == null) { return true; } document.getElementById(hold).style.visibility = "hidden"; } } var e; document.onmousemove = getmousepos; //will be deprecated in Firefox 3 //document.captureEvents(Event.MOUSEMOVE); document.addEventListener('mousemove',getmousepos,true); function getmousepos(e) { mousex = e.pageX; mousey = e.pageY; } function mouser() { var xmin = 0, xmax = 0, ymin = 0, ymax = 0, pos; if (document.getElementById(hold) == null) { return true; } xmin = document.getElementById(hold).style.left; pos = xmin.indexOf("px"); if (pos >= 0) { xmin = xmin.substring(0,pos); } xmin = xmin - 0; xmax = xmin + document.getElementById(hold).offsetWidth; ymin = document.getElementById(hold).style.top; pos = ymin.indexOf("px"); if (pos >= 0) { ymin = ymin.substring(0,pos); } ymin = ymin - 0; ymax = ymin + document.getElementById(hold).offsetHeight; if (mousex >= xmin && mousex <= xmax && mousey >= ymin && mousey <= ymax) { hide = 0; } else { hide = 1; } } var fds = new Array(new Array("0","1","10001","Taco Stand Hat","Includes taxes & shipping","","","1","Taco Stand Hat","27.00","10001.012621","27.00 ","")); var fxst = "
"; var fxsb = ""; var ico1 = "/icons/thetacostand_add.gif"; var ico2 = "/icons/minus.gif"; var ico3 = ""; var up1 = "/icons/arrow3.gif"; var up2 = "/icons/arrow2.gif"; var sxt1 = "
"; var sxb1 = ""; var sxt = "

"; var sxb = ""; var sxc = ""; var mstr = new Array(4,1,0); var sxs = new Array(new Array("Retail","","GF1","","1")); var hds = new Array(""); var bg = ""; 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 == 10001) { additem('1.','0','8','',27.00,'10001.012621',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 == 10001) { if (!id2 && !id3 && !id4) { chgprice = "" + 27.00; } else if (id4) { chgsub = "" + ""; chgsub2 = 1; } else if (id2) { chgitm = "" + "Taco Stand Hat"; } else if (id3) { chgdsc = "" + "Includes taxes & shipping"; } } 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] + "
\""
" + fds[p1][4] + "" + subyfx + " " + fds[p1][j+2] + " \"Add
"); 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] + "
\""
" + fds[p1][4] + "" + subyfx + " " + fds[p1][j+2] + " \"Add
"); 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 = (".olcg { height:25px; vertical-align:top; background-color: #bb0303 !important;} .gentext { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; line-height: 16px; color: #000000; } .gentitle { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; line-height: 16px; color: #000000; } .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:#bb0303; } .csstime { color:#000000; font-family: bebas-neue, Arial, sans-serif !important; } .cssrest { color:#000000; font-size:1rem; font-family: bebas-neue, Arial, sans-serif !important; } .ocssrest { color:#000000; font-family: bebas-neue, Arial, sans-serif !important; } .cssresta { color:#000000; font-size:1rem; font-family: bebas-neue, Arial, sans-serif !important; text-decoration:none; } .cssrestb { color:#000000; font-family: bebas-neue, Arial, sans-serif !important; } .cssrestc { color:#000000; font-family: bebas-neue, Arial, sans-serif !important; } .qcsstime { font-size:1rem; font-family: bebas-neue, Arial, sans-serif !important; color:#000000; font-weight: normal; } .qcssrest { font-size:1rem; font-family: bebas-neue, Arial, sans-serif !important; color:#000000; font-weight: bold; } .qcssresta { font-size:1rem; font-family: bebas-neue, Arial, sans-serif !important; color:#000000; font-weight: bold; } .qcssrestb { font-size:1rem; font-family: bebas-neue, Arial, sans-serif !important; color:#000000; } .qcssrestc { font-size:1rem; font-family: bebas-neue, Arial, sans-serif !important; color:#000000; font-weight: bold; } body { padding:0px; margin:0px; } .round { -moz-border-radius: 10px; -webkit-border-radius: 10px; -khmtl-border-radius: 10px; border-radius: 20px; background-color: #bb0303; color: #ffffff; font-size:16px; font-weight:bold; height:760px; } .round table { background-color: #bb0303 !important; border-radius: 20px; } .round iframe { border:1px solid #000; width:450px; } table#overCap td:first-child { width: 90% !important; background-color: #bb0303 !important; } #hrid { color:#000000; } .overclose { height:2px; color: #bb0303; position:relative; left:0px; top:0px; } .overclose:hover { height:2px; color: #bb0303; position:relative; left:0px; top:0px; } .overclose2 { color: #bb0303; 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: #636363; 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: #636363; vertical-align:bottom; } .poptext { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; line-height: 14px; color: #636363; 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: #55aaee; 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: #000000; vertical-align:bottom; } #qaddbtn { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #ffffff; border:1px solid #999999; background:#bb0303; -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:#000000; line-height:16px; padding:0px; margin:0px; } .radchks { margin-right:15px; vertical-align:middle; } .trhover:hover { background-color:#bb0303; } .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:#000000; text-decoration:none; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; line-height: 13px; } .cssclearbox { color:#ecb51c; 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; }"); 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); }