var EC_LithoCalc={product_name:"",product_id:38,flag_form:true,opts:false,skus:false,area:0,selectedArea:0,widthText:0,heightText:0,weights:false,extra:false,prices:false,printRate:0,currentSku:"",currentName:"",currentTitle:"",formContents:"",sizeID:0,timer:0,selWeight:0,localText:false,shipOpts:false,shipRates:[],shipTimes:[],foldRate:0,names:false,titles:false,shipVals:false,foldingOpts:false,formContents:"",international:0,country_code:'<input type="hidden" id="country_code" name="country_code" value="US" />',handling_fee:0,order_action:"",green:false,minimum_price:0,minimum_area_for_price:1,quarter_inch_increments:false,mailingCanUseUV:false,folding:false,additional:true,additionalOpts:false,setAdditionalOpts:function(){this.additionalOpts=new Hash();this.additionalOpts.set("custom_finishing",new Hash());this.additionalOpts.get("custom_finishing").set(399,new Hash());this.additionalOpts.get("custom_finishing").get(399).set("name","Bottom of label dispenses first");this.additionalOpts.get("custom_finishing").get(399).set("price","0.00");this.additionalOpts.get("custom_finishing").get(399).set("setup","0.00");this.additionalOpts.get("custom_finishing").set(401,new Hash());this.additionalOpts.get("custom_finishing").get(401).set("name","Left side of label dispenses first");this.additionalOpts.get("custom_finishing").get(401).set("price","0.00");this.additionalOpts.get("custom_finishing").get(401).set("setup","0.00");this.additionalOpts.get("custom_finishing").set(400,new Hash());this.additionalOpts.get("custom_finishing").get(400).set("name","Right side of label dispenses first");this.additionalOpts.get("custom_finishing").get(400).set("price","0.00");this.additionalOpts.get("custom_finishing").get(400).set("setup","0.00");this.additionalOpts.get("custom_finishing").set(398,new Hash());this.additionalOpts.get("custom_finishing").get(398).set("name","Top of label dispenses first");this.additionalOpts.get("custom_finishing").get(398).set("price","0.00");this.additionalOpts.get("custom_finishing").get(398).set("setup","0.00");},setOpts:function(){this.opts=[];this.opts.product=[];this.opts.product[38]="Roll Labels";this.product_name="Roll Labels";this.opts.coating=[];this.opts.color=[];this.opts.paper=[];this.opts.size=[];this.opts.turnaround=[];this.opts.size[433]=".75 Diam. - Circle";this.opts.coating[395]="Gloss Indoor Laminate";this.opts.coating[397]="Gloss Outdoor Laminate";this.opts.size[434]="1 Diam. - Circle";this.opts.coating[396]="Matte Indoor Laminate";this.opts.size[403]="1 X 1 - Square (Rounded Corners)";this.opts.color[8]="4/0 (Full Color Front Side)";this.opts.size[409]="1 X 1.5 - Rectangle (Rounded Corners)";this.opts.turnaround[282]="2-4 Day";this.opts.size[410]="1 X 2 - Rectangle (Rounded Corners)";this.opts.turnaround[107]="5 Day";this.opts.size[411]="1 X 3 - Rectangle (Rounded Corners)";this.opts.size[435]="1.5 Diam. - Circle";this.opts.size[443]="1.5 X .75 - Oval";this.opts.size[404]="1.5 X 1.5 - Square (Rounded Corners)";this.opts.size[412]="1.5 X 2 - Rectangle (Rounded Corners)";this.opts.size[444]="1.5 X 2.5 - Oval";this.opts.size[413]="1.5 X 2.5 - Rectangle (Rounded Corners)";this.opts.size[414]="1.5 X 3 - Rectangle (Rounded Corners)";this.opts.size[436]="2 Diam. - Circle";this.opts.size[405]="2 X 2 - Square (Rounded Corners)";this.opts.size[445]="2 X 3 - Oval";this.opts.size[415]="2 X 3 - Rectangle (Rounded Corners)";this.opts.size[416]="2 X 4 - Rectangle (Rounded Corners)";this.opts.size[417]="2 X 5.5 - Rectangle (Rounded Corners)";this.opts.size[418]="2.25 X 6.25 - Rectangle (Rounded Corners)";this.opts.size[437]="2.5 Diam. - Circle";this.opts.size[406]="2.5 X 2.5 - Square (Rounded Corners)";this.opts.size[446]="2.5 X 3.5 - Oval";this.opts.size[419]="2.5 X 3.5 - Rectangle (Rounded Corners)";this.opts.paper[450]="Clear Poly (Indoor)";this.opts.size[420]="2.5 X 5 - Rectangle (Rounded Corners)";this.opts.paper[402]="White Poly (Indoor)";this.opts.size[421]="2.5 X 7 - Rectangle (Rounded Corners)";this.opts.paper[451]="White Vinyl (Outdoor)";this.opts.size[447]="2.75 X 4 - Oval";this.opts.size[422]="2.75 X 7.5 - Rectangle (Rounded Corners)";this.opts.size[438]="3 Diam. - Circle";this.opts.size[407]="3 X 3 - Square (Rounded Corners)";this.opts.size[423]="3 X 4 - Rectangle (Rounded Corners)";this.opts.size[424]="3 X 5 - Rectangle (Rounded Corners)";this.opts.size[425]="3 X 7.5 - Rectangle (Rounded Corners)";this.opts.size[426]="3.375 X 8.5 - Rectangle (Rounded Corners)";this.opts.size[439]="3.5 Diam. - Circle";this.opts.size[427]="3.5 X 4 - Rectangle (Rounded Corners)";this.opts.size[440]="4 Diam. - Circle";this.opts.size[428]="4 X 5 - Rectangle (Rounded Corners)";this.opts.size[448]="4 X 6 - Oval";this.opts.size[429]="4 X 6 - Rectangle (Rounded Corners)";this.opts.size[449]="4.5 X 3.5 - Oval";this.opts.size[441]="5 Diam. - Circle";this.opts.size[408]="5 X 5 - Square (Rounded Corners)";this.opts.size[430]="5 X 7 - Rectangle (Rounded Corners)";this.opts.size[431]="5.5 X 8.5 - Rectangle (Rounded Corners)";this.opts.size[432]="5.75 X 17 - Rectangle (Rounded Corners)";this.opts.size[442]="6 Diam. - Circle";if(this.product_name=="Roll Labels"){this.opts.die_shapes={};for(var b in this.opts.size){if(!isNaN(b)){var d=this.opts.size[b];var c=d.split(" - ");if(c.length==2){this.opts.size[b]=c[0];if(this.opts.die_shapes[c[1]]==undefined){this.opts.die_shapes[c[1]]=[];}this.opts.die_shapes[c[1]].push(b);}}}}},setSkus:function(){this.skus=new Hash();this.addSKU([38,"403",402,8,395,107],5441);this.addSKU([38,"403",402,8,396,107],5442);this.addSKU([38,"404",402,8,395,107],5443);this.addSKU([38,"404",402,8,396,107],5444);this.addSKU([38,"405",402,8,395,107],5445);this.addSKU([38,"405",402,8,396,107],5446);this.addSKU([38,"406",402,8,395,107],5447);this.addSKU([38,"406",402,8,396,107],5448);this.addSKU([38,"407",402,8,395,107],5449);this.addSKU([38,"407",402,8,396,107],5450);this.addSKU([38,"408",402,8,395,107],5451);this.addSKU([38,"408",402,8,396,107],5452);this.addSKU([38,"409",402,8,395,107],5453);this.addSKU([38,"409",402,8,396,107],5454);this.addSKU([38,"410",402,8,395,107],5455);this.addSKU([38,"410",402,8,396,107],5456);this.addSKU([38,"411",402,8,395,107],5457);this.addSKU([38,"411",402,8,396,107],5458);this.addSKU([38,"412",402,8,395,107],5459);this.addSKU([38,"412",402,8,396,107],5460);this.addSKU([38,"413",402,8,395,107],5461);this.addSKU([38,"413",402,8,396,107],5462);this.addSKU([38,"414",402,8,395,107],5463);this.addSKU([38,"414",402,8,396,107],5464);this.addSKU([38,"415",402,8,395,107],5465);this.addSKU([38,"415",402,8,396,107],5466);this.addSKU([38,"416",402,8,395,107],5467);this.addSKU([38,"416",402,8,396,107],5468);this.addSKU([38,"417",402,8,395,107],5469);this.addSKU([38,"417",402,8,396,107],5470);this.addSKU([38,"418",402,8,395,107],5471);this.addSKU([38,"418",402,8,396,107],5472);this.addSKU([38,"419",402,8,395,107],5473);this.addSKU([38,"419",402,8,396,107],5474);this.addSKU([38,"420",402,8,395,107],5475);this.addSKU([38,"420",402,8,396,107],5476);this.addSKU([38,"421",402,8,395,107],5477);this.addSKU([38,"421",402,8,396,107],5478);this.addSKU([38,"422",402,8,395,107],5479);this.addSKU([38,"422",402,8,396,107],5480);this.addSKU([38,"423",402,8,395,107],5481);this.addSKU([38,"423",402,8,396,107],5482);this.addSKU([38,"424",402,8,395,107],5483);this.addSKU([38,"424",402,8,396,107],5484);this.addSKU([38,"425",402,8,395,107],5485);this.addSKU([38,"425",402,8,396,107],5486);this.addSKU([38,"426",402,8,395,107],5487);this.addSKU([38,"426",402,8,396,107],5488);this.addSKU([38,"427",402,8,395,107],5489);this.addSKU([38,"427",402,8,396,107],5490);this.addSKU([38,"428",402,8,395,107],5491);this.addSKU([38,"428",402,8,396,107],5492);this.addSKU([38,"429",402,8,395,107],5493);this.addSKU([38,"429",402,8,396,107],5494);this.addSKU([38,"430",402,8,395,107],5495);this.addSKU([38,"430",402,8,396,107],5496);this.addSKU([38,"431",402,8,395,107],5497);this.addSKU([38,"431",402,8,396,107],5498);this.addSKU([38,"432",402,8,395,107],5499);this.addSKU([38,"432",402,8,396,107],5500);this.addSKU([38,"433",402,8,395,107],5501);this.addSKU([38,"433",402,8,396,107],5502);this.addSKU([38,"434",402,8,395,107],5503);this.addSKU([38,"434",402,8,396,107],5504);this.addSKU([38,"435",402,8,395,107],5505);this.addSKU([38,"435",402,8,396,107],5506);this.addSKU([38,"436",402,8,395,107],5507);this.addSKU([38,"436",402,8,396,107],5508);this.addSKU([38,"437",402,8,395,107],5509);this.addSKU([38,"437",402,8,396,107],5510);this.addSKU([38,"438",402,8,395,107],5511);this.addSKU([38,"438",402,8,396,107],5512);this.addSKU([38,"439",402,8,395,107],5513);this.addSKU([38,"439",402,8,396,107],5514);this.addSKU([38,"440",402,8,395,107],5515);this.addSKU([38,"440",402,8,396,107],5516);this.addSKU([38,"441",402,8,395,107],5517);this.addSKU([38,"441",402,8,396,107],5518);this.addSKU([38,"442",402,8,395,107],5519);this.addSKU([38,"442",402,8,396,107],5520);this.addSKU([38,"443",402,8,395,107],5521);this.addSKU([38,"443",402,8,396,107],5522);this.addSKU([38,"444",402,8,395,107],5523);this.addSKU([38,"444",402,8,396,107],5524);this.addSKU([38,"445",402,8,395,107],5525);this.addSKU([38,"445",402,8,396,107],5526);this.addSKU([38,"446",402,8,395,107],5527);this.addSKU([38,"446",402,8,396,107],5528);this.addSKU([38,"447",402,8,395,107],5529);this.addSKU([38,"447",402,8,396,107],5530);this.addSKU([38,"448",402,8,395,107],5531);this.addSKU([38,"448",402,8,396,107],5532);this.addSKU([38,"449",402,8,395,107],5533);this.addSKU([38,"449",402,8,396,107],5534);this.addSKU([38,"403",450,8,395,107],5535);this.addSKU([38,"403",450,8,396,107],5536);this.addSKU([38,"404",450,8,395,107],5537);this.addSKU([38,"404",450,8,396,107],5538);this.addSKU([38,"405",450,8,395,107],5539);this.addSKU([38,"405",450,8,396,107],5540);this.addSKU([38,"406",450,8,395,107],5541);this.addSKU([38,"406",450,8,396,107],5542);this.addSKU([38,"407",450,8,395,107],5543);this.addSKU([38,"407",450,8,396,107],5544);this.addSKU([38,"408",450,8,395,107],5545);this.addSKU([38,"408",450,8,396,107],5546);this.addSKU([38,"409",450,8,395,107],5547);this.addSKU([38,"409",450,8,396,107],5548);this.addSKU([38,"410",450,8,395,107],5549);this.addSKU([38,"410",450,8,396,107],5550);this.addSKU([38,"411",450,8,395,107],5551);this.addSKU([38,"411",450,8,396,107],5552);this.addSKU([38,"412",450,8,395,107],5553);this.addSKU([38,"412",450,8,396,107],5554);this.addSKU([38,"413",450,8,395,107],5555);this.addSKU([38,"413",450,8,396,107],5556);this.addSKU([38,"414",450,8,395,107],5557);this.addSKU([38,"414",450,8,396,107],5558);this.addSKU([38,"415",450,8,395,107],5559);this.addSKU([38,"415",450,8,396,107],5560);this.addSKU([38,"416",450,8,395,107],5561);this.addSKU([38,"416",450,8,396,107],5562);this.addSKU([38,"417",450,8,395,107],5563);this.addSKU([38,"417",450,8,396,107],5564);this.addSKU([38,"418",450,8,395,107],5565);this.addSKU([38,"418",450,8,396,107],5566);this.addSKU([38,"419",450,8,395,107],5567);this.addSKU([38,"419",450,8,396,107],5568);this.addSKU([38,"420",450,8,395,107],5569);this.addSKU([38,"420",450,8,396,107],5570);this.addSKU([38,"421",450,8,395,107],5571);this.addSKU([38,"421",450,8,396,107],5572);this.addSKU([38,"422",450,8,395,107],5573);this.addSKU([38,"422",450,8,396,107],5574);this.addSKU([38,"423",450,8,395,107],5575);this.addSKU([38,"423",450,8,396,107],5576);this.addSKU([38,"424",450,8,395,107],5577);this.addSKU([38,"424",450,8,396,107],5578);this.addSKU([38,"425",450,8,395,107],5579);this.addSKU([38,"425",450,8,396,107],5580);this.addSKU([38,"426",450,8,395,107],5581);this.addSKU([38,"426",450,8,396,107],5582);this.addSKU([38,"427",450,8,395,107],5583);this.addSKU([38,"427",450,8,396,107],5584);this.addSKU([38,"428",450,8,395,107],5585);this.addSKU([38,"428",450,8,396,107],5586);this.addSKU([38,"429",450,8,395,107],5587);this.addSKU([38,"429",450,8,396,107],5588);this.addSKU([38,"430",450,8,395,107],5589);this.addSKU([38,"430",450,8,396,107],5590);this.addSKU([38,"431",450,8,395,107],5591);this.addSKU([38,"431",450,8,396,107],5592);this.addSKU([38,"432",450,8,395,107],5593);this.addSKU([38,"432",450,8,396,107],5594);this.addSKU([38,"433",450,8,395,107],5595);this.addSKU([38,"433",450,8,396,107],5596);this.addSKU([38,"434",450,8,395,107],5597);this.addSKU([38,"434",450,8,396,107],5598);this.addSKU([38,"435",450,8,395,107],5599);this.addSKU([38,"435",450,8,396,107],5600);this.addSKU([38,"436",450,8,395,107],5601);this.addSKU([38,"436",450,8,396,107],5602);this.addSKU([38,"437",450,8,395,107],5603);this.addSKU([38,"437",450,8,396,107],5604);this.addSKU([38,"438",450,8,395,107],5605);this.addSKU([38,"438",450,8,396,107],5606);this.addSKU([38,"439",450,8,395,107],5607);this.addSKU([38,"439",450,8,396,107],5608);this.addSKU([38,"440",450,8,395,107],5609);this.addSKU([38,"440",450,8,396,107],5610);this.addSKU([38,"441",450,8,395,107],5611);this.addSKU([38,"441",450,8,396,107],5612);this.addSKU([38,"442",450,8,395,107],5613);this.addSKU([38,"442",450,8,396,107],5614);this.addSKU([38,"443",450,8,395,107],5615);this.addSKU([38,"443",450,8,396,107],5616);this.addSKU([38,"444",450,8,395,107],5617);this.addSKU([38,"444",450,8,396,107],5618);this.addSKU([38,"445",450,8,395,107],5619);this.addSKU([38,"445",450,8,396,107],5620);this.addSKU([38,"446",450,8,395,107],5621);this.addSKU([38,"446",450,8,396,107],5622);this.addSKU([38,"447",450,8,395,107],5623);this.addSKU([38,"447",450,8,396,107],5624);this.addSKU([38,"448",450,8,395,107],5625);this.addSKU([38,"448",450,8,396,107],5626);this.addSKU([38,"449",450,8,395,107],5627);this.addSKU([38,"449",450,8,396,107],5628);this.addSKU([38,"403",451,8,397,107],5629);this.addSKU([38,"404",451,8,397,107],5630);this.addSKU([38,"405",451,8,397,107],5631);this.addSKU([38,"406",451,8,397,107],5632);this.addSKU([38,"407",451,8,397,107],5633);this.addSKU([38,"408",451,8,397,107],5634);this.addSKU([38,"409",451,8,397,107],5635);this.addSKU([38,"410",451,8,397,107],5636);this.addSKU([38,"411",451,8,397,107],5637);this.addSKU([38,"412",451,8,397,107],5638);this.addSKU([38,"413",451,8,397,107],5639);this.addSKU([38,"414",451,8,397,107],5640);this.addSKU([38,"415",451,8,397,107],5641);this.addSKU([38,"416",451,8,397,107],5642);this.addSKU([38,"417",451,8,397,107],5643);this.addSKU([38,"418",451,8,397,107],5644);this.addSKU([38,"419",451,8,397,107],5645);this.addSKU([38,"420",451,8,397,107],5646);this.addSKU([38,"421",451,8,397,107],5647);this.addSKU([38,"422",451,8,397,107],5648);this.addSKU([38,"423",451,8,397,107],5649);this.addSKU([38,"424",451,8,397,107],5650);this.addSKU([38,"425",451,8,397,107],5651);this.addSKU([38,"426",451,8,397,107],5652);this.addSKU([38,"427",451,8,397,107],5653);this.addSKU([38,"428",451,8,397,107],5654);this.addSKU([38,"429",451,8,397,107],5655);this.addSKU([38,"430",451,8,397,107],5656);this.addSKU([38,"431",451,8,397,107],5657);this.addSKU([38,"432",451,8,397,107],5658);this.addSKU([38,"433",451,8,397,107],5659);this.addSKU([38,"434",451,8,397,107],5660);this.addSKU([38,"435",451,8,397,107],5661);this.addSKU([38,"436",451,8,397,107],5662);this.addSKU([38,"437",451,8,397,107],5663);this.addSKU([38,"438",451,8,397,107],5664);this.addSKU([38,"439",451,8,397,107],5665);this.addSKU([38,"440",451,8,397,107],5666);this.addSKU([38,"441",451,8,397,107],5667);this.addSKU([38,"442",451,8,397,107],5668);this.addSKU([38,"443",451,8,397,107],5669);this.addSKU([38,"444",451,8,397,107],5670);this.addSKU([38,"445",451,8,397,107],5671);this.addSKU([38,"446",451,8,397,107],5672);this.addSKU([38,"447",451,8,397,107],5673);this.addSKU([38,"448",451,8,397,107],5674);this.addSKU([38,"449",451,8,397,107],5675);},setWeights:function(){this.weights=[];this.weights[5441]=0.3;this.weights[5442]=0.3;this.weights[5443]=0.7;this.weights[5444]=0.7;this.weights[5445]=1.3;this.weights[5446]=1.3;this.weights[5447]=2;this.weights[5448]=2;this.weights[5449]=2.8;this.weights[5450]=2.8;this.weights[5451]=7.8;this.weights[5452]=7.8;this.weights[5453]=0.5;this.weights[5454]=0.5;this.weights[5455]=0.6;this.weights[5456]=0.6;this.weights[5457]=0.9;this.weights[5458]=0.9;this.weights[5459]=0.9;this.weights[5460]=0.9;this.weights[5461]=1.2;this.weights[5462]=1.2;this.weights[5463]=1.4;this.weights[5464]=1.4;this.weights[5465]=1.9;this.weights[5466]=1.9;this.weights[5467]=2.5;this.weights[5468]=2.5;this.weights[5469]=3.4;this.weights[5470]=3.4;this.weights[5471]=4.4;this.weights[5472]=4.4;this.weights[5473]=2.7;this.weights[5474]=2.7;this.weights[5475]=3.9;this.weights[5476]=3.9;this.weights[5477]=5.5;this.weights[5478]=5.5;this.weights[5479]=6.4;this.weights[5480]=6.4;this.weights[5481]=3.8;this.weights[5482]=3.8;this.weights[5483]=4.7;this.weights[5484]=4.7;this.weights[5485]=7;this.weights[5486]=7;this.weights[5487]=9;this.weights[5488]=9;this.weights[5489]=4.4;this.weights[5490]=4.4;this.weights[5491]=6.3;this.weights[5492]=6.3;this.weights[5493]=7.5;this.weights[5494]=7.5;this.weights[5495]=10.9;this.weights[5496]=10.9;this.weights[5497]=14.6;this.weights[5498]=14.6;this.weights[5499]=0;this.weights[5500]=0;this.weights[5501]=0.2;this.weights[5502]=0.2;this.weights[5503]=0.3;this.weights[5504]=0.3;this.weights[5505]=0.7;this.weights[5506]=0.7;this.weights[5507]=1.3;this.weights[5508]=1.3;this.weights[5509]=2;this.weights[5510]=2;this.weights[5511]=2.8;this.weights[5512]=2.8;this.weights[5513]=3.8;this.weights[5514]=3.8;this.weights[5515]=5;this.weights[5516]=5;this.weights[5517]=7.8;this.weights[5518]=7.8;this.weights[5519]=11.3;this.weights[5520]=11.3;this.weights[5521]=0.2;this.weights[5522]=0.2;this.weights[5523]=1.2;this.weights[5524]=1.2;this.weights[5525]=1.9;this.weights[5526]=1.9;this.weights[5527]=2.7;this.weights[5528]=2.7;this.weights[5529]=3.4;this.weights[5530]=3.4;this.weights[5531]=7.5;this.weights[5532]=7.5;this.weights[5533]=4.9;this.weights[5534]=4.9;this.weights[5535]=0.3;this.weights[5536]=0.3;this.weights[5537]=0.7;this.weights[5538]=0.7;this.weights[5539]=1.3;this.weights[5540]=1.3;this.weights[5541]=2;this.weights[5542]=2;this.weights[5543]=2.8;this.weights[5544]=2.8;this.weights[5545]=7.8;this.weights[5546]=7.8;this.weights[5547]=0.5;this.weights[5548]=0.5;this.weights[5549]=0.6;this.weights[5550]=0.6;this.weights[5551]=0.9;this.weights[5552]=0.9;this.weights[5553]=0.9;this.weights[5554]=0.9;this.weights[5555]=1.2;this.weights[5556]=1.2;this.weights[5557]=1.4;this.weights[5558]=1.4;this.weights[5559]=1.9;this.weights[5560]=1.9;this.weights[5561]=2.5;this.weights[5562]=2.5;this.weights[5563]=3.4;this.weights[5564]=3.4;this.weights[5565]=4.4;this.weights[5566]=4.4;this.weights[5567]=2.7;this.weights[5568]=2.7;this.weights[5569]=3.9;this.weights[5570]=3.9;this.weights[5571]=5.5;this.weights[5572]=5.5;this.weights[5573]=6.4;this.weights[5574]=6.4;this.weights[5575]=3.8;this.weights[5576]=3.8;this.weights[5577]=4.7;this.weights[5578]=4.7;this.weights[5579]=7;this.weights[5580]=7;this.weights[5581]=9;this.weights[5582]=9;this.weights[5583]=4.4;this.weights[5584]=4.4;this.weights[5585]=6.3;this.weights[5586]=6.3;this.weights[5587]=7.5;this.weights[5588]=7.5;this.weights[5589]=10.9;this.weights[5590]=10.9;this.weights[5591]=14.6;this.weights[5592]=14.6;this.weights[5593]=30.5;this.weights[5594]=30.5;this.weights[5595]=0.2;this.weights[5596]=0.2;this.weights[5597]=0.3;this.weights[5598]=0.3;this.weights[5599]=0.7;this.weights[5600]=0.7;this.weights[5601]=1.3;this.weights[5602]=1.3;this.weights[5603]=2;this.weights[5604]=2;this.weights[5605]=2.8;this.weights[5606]=2.8;this.weights[5607]=3.8;this.weights[5608]=3.8;this.weights[5609]=5;this.weights[5610]=5;this.weights[5611]=7.8;this.weights[5612]=7.8;this.weights[5613]=11.3;this.weights[5614]=11.3;this.weights[5615]=0.4;this.weights[5616]=0.4;this.weights[5617]=1.2;this.weights[5618]=1.2;this.weights[5619]=1.9;this.weights[5620]=1.9;this.weights[5621]=2.7;this.weights[5622]=2.7;this.weights[5623]=3.4;this.weights[5624]=3.4;this.weights[5625]=7.5;this.weights[5626]=7.5;this.weights[5627]=4.9;this.weights[5628]=4.9;this.weights[5629]=0.5;this.weights[5630]=1;this.weights[5631]=1.8;this.weights[5632]=2.9;this.weights[5633]=4.1;this.weights[5634]=11.4;this.weights[5635]=0.7;this.weights[5636]=0.9;this.weights[5637]=1.4;this.weights[5638]=1.4;this.weights[5639]=1.7;this.weights[5640]=2.1;this.weights[5641]=2.7;this.weights[5642]=3.7;this.weights[5643]=5;this.weights[5644]=6.4;this.weights[5645]=4;this.weights[5646]=5.7;this.weights[5647]=8;this.weights[5648]=9.4;this.weights[5649]=5.5;this.weights[5650]=6.8;this.weights[5651]=10.3;this.weights[5652]=13.1;this.weights[5653]=6.4;this.weights[5654]=9.1;this.weights[5655]=10.9;this.weights[5656]=16;this.weights[5657]=21.3;this.weights[5658]=44.6;this.weights[5659]=0.3;this.weights[5660]=0.5;this.weights[5661]=1;this.weights[5662]=1.8;this.weights[5663]=2.9;this.weights[5664]=4.1;this.weights[5665]=5.5;this.weights[5666]=7.3;this.weights[5667]=11.4;this.weights[5668]=16.4;this.weights[5669]=0.5;this.weights[5670]=1.7;this.weights[5671]=2.7;this.weights[5672]=4;this.weights[5673]=5;this.weights[5674]=10.9;this.weights[5675]=7.2;},setPrices:function(){this.prices=new Hash();var b=[];var a;for(a=0;a<b.length;a++){if(this.prices.get(b[a]["i"])==null){this.prices.set(b[a]["i"],new Hash());}this.prices.get(b[a]["i"]).set(b[a]["q"],new Hash());this.prices.get(b[a]["i"]).get(b[a]["q"]).set("i",b[a]["ii"]);this.prices.get(b[a]["i"]).get(b[a]["q"]).set("p",b[a]["p"]);}},init:function(){if($("myForm")){this.order_action=$("myForm").action;$("myForm").addEvent("submit",function(a){if(EC_LithoCalc.flag_form){new Event(a).stop();}});}this.setLocalVars();this.setOpts();this.setSkus();this.setWeights();this.setPrices();this.setAdditionalOpts();if(window.EC_Mailing){EC_Mailing.init();}this.updateForm();},setLocalVars:function(){this.localText=[];this.localText.titleText="Pricing Calculator";this.localText.headingText="Select A Product";this.localText.priceText="Printing Total";this.localText.productText="Product";this.localText.dieShapeText="Die Shape";this.localText.sizeText="Size";this.localText.trimSizeText="Custom Trim Size (Not Required)";this.localText.widthText="Width";this.localText.heightText="Height";this.localText.paperText="Paper";this.localText.colorText="Color";this.localText.coatingText="Coating";this.localText.pageText="Pages";this.localText.turnaroundText="Turnaround";this.localText.foldingText="Folding";this.localText.quantityText="Quantity";this.localText.orderText="Place Order";this.localText.estimateText="Print Estimate";this.localText.chooseText="Choose Here...";this.localText.shippingText="Estimate Shipping";this.localText.zipcodeText="Zip / Postal Code";this.localText.countrycodeText="Country";this.localText.ratesText="Get Rates";this.localText.shipmethodText="Ship Method";this.localText.shiprateText="Shipping Rate";this.localText.shiptimeText="Shipping Time";this.localText.pleaseclickText="<p>Please Click &quot;Get Rates&quot;</p>";this.localText.ziperrorText="Please Enter A 5 Digit Zip Code.";this.localText.pleasewaitText="Please Wait";this.localText.custom_finishingText="Finishing";this.localText.custom_green_paperText="Go Green Paper";if(window.CustomCalcText){for(var a in CustomCalcText){this.localText[a]=CustomCalcText[a];}}this.names=[];this.titles=[];this.names=["product","size","paper","color","coating","turnaround"];this.titles=[this.localText.productText,this.localText.sizeText,this.localText.paperText,this.localText.colorText,this.localText.coatingText,this.localText.turnaroundText];shipOpts=new Hash({"03":"UPS Ground","12":"UPS Three-Day Select","02":"UPS Second Day Air","01":"UPS Next Day Air","14":"UPS Next Day Air Early A.M.","65":"UPS Worldwide Saver","11":"UPS Worldwide Standard","08":"UPS Worldwide Expedited","07":"UPS Worldwide Express",FR:"Freight",DL:"Delivery",RO:"Recycle Overages"});},createForm:function(b){var a=0;if($("eondesigner_id")){a=$("eondesigner_id").value;}this.formContents='<h3 class="formTitle">'+this.localText.titleText+"</h3>";this.formContents+="<table>";this.formContents+=calcFI_TPL("",'<h4 class="formHeading">'+this.localText.headingText+"</h4>","");this.formContents+=b;this.formContents+="</table>";this.formContents+='<input type="hidden" name="price_id" value="" />';this.formContents+='<input type="hidden" name="quote" value="" />';this.formContents+='<input type="hidden" id="totals" name="totals" value="" />';this.formContents+='<input type="hidden" id="design_id" name="design_id" value="'+a+'" />';$("myForm").setHTML(this.formContents);if(window.datePickerController){datePickerController.create();}},createSelect:function(h,d,f,g,b){if(window.EC_Mailing&&d=="quantity"){f="EC_Mailing.setQuantity();"+f;}var a='<select id="'+d+'" name="'+d+'" onchange="'+f+'">';if(d=="quantity"){a+=this.createQuantityOptions(g);}else{if(d=="folding"&&this.folding==true){a+=this.createFoldingOptions(g);}else{if(b){a+=this.createOptions(g,true);}else{a+=this.createOptions(g);}}}a+="</select>";var e="";var c="";if((this.green==true&&(this.additionalOpts==undefined||this.additionalOpts.get("custom_green_paper")==undefined)&&d=="paper")||d=="custom_green_paper"){c=calcFI_TPL("","","","greenBadgeTD");}return c+calcFI_TPL(h,a,d,e);},createSizeInput:function(l,a,b){var m=(a=="width")?this.widthText:this.heightText;var j=0;var c=0;if(a=="width"&&m<1){if(this.opts.min_width){var n=Number(this.opts.min_width);if(n>Math.floor(n)){j=n-Math.floor(n);n-=j;}m=n;var n=Number(this.opts.min_width);var g=Number(this.opts.min_height);this.area=n*g;}else{m=1;}}if(a!="width"&&m<1){if(this.opts.min_height){var g=Number(this.opts.min_height);if(g>Math.floor(g)){j=g-Math.floor(g);g-=j;}m=g;var n=Number(this.opts.min_width);var g=Number(this.opts.min_height);this.area=n*g;}else{m=1;}}if($(a+"Fract")){c=$(a+"Fract").selectedIndex;}var k='<input type="text" id="'+a+'" name="'+a+'" value="'+m+'" onchange="'+b+'" class="sizeInput" />&nbsp;&nbsp;';k+='<select id="'+a+'Fract" name="'+a+'Fract" onchange="'+b+'" class="sizeInput">';for(var e=0;e<options.length;e++){var f=options[e];if(c==0&&j>0){if(Number(f.value)==j){c=e;}}var d=(c==e)?" selected":"";k+='<option value="'+f.value+'"'+d+">"+f.label+"</option>";}k+="</select>";return calcFI_TPL(l,k,a);},createDieShapeInput:function(f,b,c){var a=[];var h=false;for(var j in this.opts.die_shapes){if(h==false){h=j;}a.push(j);}if($(b)){h=$(b).getValue();}var g='<select id="'+b+'" name="'+b+'" onchange="'+c+'">';for(var e=0;e<a.length;e++){var d=(a[e]==h)?" selected":"";g+='<option value="'+a[e]+'"'+d+">"+a[e]+"</option>";}g+="</select>";return calcFI_TPL(f,g,b,"");},createTrimSizeInput:function(e,b,c){var d=this.opts.size[this.sizeID];if($(b)){d=$(b).getValue();}var a='<input type="text" id="'+b+'" name="'+b+'" value="'+d+'" onblur="'+c+'" class="textInput" />';return calcFI_TPL(e,a,b,"custom_trim_size");},createOptions:function(g,j){var m,h,k;var o=[];var p="";var c="";var f="";var l=false;if(this.currentName=="size"&&this.product_name=="Roll Labels"){var e=false;for(var n in this.opts.die_shapes){if(e==false){e=n;}}if($("die_shape")){e=$("die_shape").getValue();}var d=this.opts.die_shapes[e];l=new Hash();for(h=0;h<d.length;h++){l.set(d[h],true);}}o=g.keys();k=o.length;for(h=0;h<k;h++){m=o[h];if(l!=false&&l.hasKey(m)==false){m=false;}if(!isNaN(m)&&m!=false){f=($(this.currentName)&&m==$(this.currentName).getValue())?" selected":"";if(this.currentName=="size"&&h==0){this.sizeID=m;}if(!j){}var b=(j)?this.additionalOpts.get(this.currentName).get(m).get("name"):this.opts[this.currentName][m];if(this.currentName=="coating"&&b!=undefined&&b.indexOf("UV 2")!=-1&&window.EC_Mailing&&this.mailingCanUseUV==false){}else{p+='<option value="'+m+'"'+f+">"+b+"</option>";}}}if(this.currentName=="custom_green_paper"){this.currentName="paper";}return p;},createQuantityOptions:function(e){var b;var c="";var f="";var d="";if(e.length>0){e.each(function(g){if(!isNaN(g)){d=($("quantity")&&g==$("quantity").getValue())?" selected":"";c+='<option value="'+g+'"'+d+">"+g+"</option>";}});}return c;},createFoldingOptions:function(f){var b="";var c="";var d=false;var a=false;if($("paper")){var e=$("paper").options[$("paper").selectedIndex].text;if(e.indexOf("Cover")!=-1){d=true;}if(e.indexOf("Index")!=-1){a=true;}}f.each(function(h,g){($("folding")&&g==$("folding").getValue())?c=" selected":c="";if(d){if(h.get("name").indexOf("Cover")!=-1||h.get("name").indexOf("None")!=-1){b+='<option value="'+g+'"'+c+">"+h.get("name")+"</option>";}}else{if(a){if(h.get("name").indexOf("Index")!=-1||h.get("name").indexOf("None")!=-1){b+='<option value="'+g+'"'+c+">"+h.get("name")+"</option>";}}else{if(h.get("name").indexOf("Cover")==-1&&h.get("name").indexOf("Index")==-1){b+='<option value="'+g+'"'+c+">"+h.get("name")+"</option>";}}}});return b;},updateForm:function(){var e=0;var c;var g;this.formContents="";this.currentSku=this.skus;var b=false;for(var e=0;e<this.names.length;e++){this.currentName=this.names[e];this.currentTitle=this.titles[e];if(this.currentName=="width"||this.currentName=="height"){this.formContents+=this.createSizeInput(this.currentTitle,this.currentName,"EC_LithoCalc.updateForm()");if(this.currentName=="width"){continue;}}else{if(this.currentName=="green_paper"){}else{if(this.currentName=="size"&&this.product_name=="Roll Labels"){this.formContents+=this.createDieShapeInput(this.localText.dieShapeText,"die_shape","EC_LithoCalc.updateForm()");}g=(this.currentName=="size"&&this.product_name!="Roll Labels")?"EC_LithoCalc.resetTrimSize();":"";this.formContents+=this.createSelect(this.currentTitle,this.currentName,g+"EC_LithoCalc.updateForm()",this.currentSku);if(this.currentName=="size"&&this.product_name!="Roll Labels"){this.formContents+=this.createTrimSizeInput(this.localText.trimSizeText,"trim_size","EC_LithoCalc.updateTrimSize()");}if(this.currentName=="paper"&&this.additionalOpts!=undefined&&this.additionalOpts.get("custom_green_paper")!=undefined){this.additionalOpts.each(function(i,a){if(a=="custom_green_paper"){EC_LithoCalc.currentName=a;EC_LithoCalc.formContents+=EC_LithoCalc.createSelect(EC_LithoCalc.localText[a+"Text"],a,"EC_LithoCalc.updatePrice()",i,true);}});}}}var d=0;var h="";this.currentSku.each(function(i,a){d++;if(d==1){h=a;}});if(this.currentName=="height"){var f=this.currentSku.keys();f.sort(EC_Base.sortNumber);f.reverse();f.each(function(a){if(EC_LithoCalc.area<=a){h=a.toString();EC_LithoCalc.selectedArea=a;}});}if($(this.currentName)&&this.currentSku.hasKey($(this.currentName).getValue())){this.currentSku=this.currentSku.get($(this.currentName).getValue());}else{if(this.currentSku.hasKey(h)){this.currentSku=this.currentSku.get(h);}else{break;}}}if(this.currentSku>0){this.setupQuantities();}else{this.createForm(this.formContents);}},updateArea:function(){if($("width")&&$("height")){var b;this.widthText=Math.floor(Number($("width").getValue())).toString();this.heightText=Math.floor(Number($("height").getValue())).toString();if(this.widthText=="NaN"||this.widthText<1){if(this.opts.min_width){var a=Number(this.opts.min_width);if(a>Math.floor(a)){b=a-Math.floor(a);a-=b;}this.widthText=a;b=0;}else{this.widthText=1;}}if(this.heightText=="NaN"||this.heightText<1){if(this.opts.min_height){var c=Number(this.opts.min_height);if(c>Math.floor(c)){b=c-Math.floor(c);c-=b;}this.heightText=c;b=0;}else{this.heightText=1;}}var a=Math.floor(Number(this.widthText))+Number($("widthFract").getValue());var c=Math.floor(Number(this.heightText))+Number($("heightFract").getValue());if(isNaN(a)){a=$("width").value=0;$("widthFract").selectedIndex=0;}if(isNaN(c)){c=$("height").value=0;$("heightFract").selectedIndex=0;}b=0;if(a<Number(this.opts.min_width)&&a>0){alert("The minimum width is "+this.opts.min_width);this.resetToMinMx("width",this.opts.min_width);return;}if(c<Number(this.opts.min_height)&&c>0){alert("The minimum height is "+this.opts.min_height);this.resetToMinMx("height",this.opts.min_height);return;}if(a>Number(this.opts.max_width)){alert("The maximum width is "+this.opts.max_width);this.resetToMinMx("width",this.opts.max_width);return;}if(c>Number(this.opts.max_height)){alert("The maximum height is "+this.opts.max_height);this.resetToMinMx("height",this.opts.max_height);return;}this.area=a*c;}},updateTrimSize:function(){if($("trim_size")){var e=$("trim_size").getValue();e=e.replace(/([^0-9. Xx])/g,"");var d=$("size").options[$("size").selectedIndex].text;d=d.replace(/([^0-9. Xx])/g,"");var a=Number(e.replace(/(\d+[.]*\d{0,4})([ Xx]+)(\d+[.]*\d{0,4})/,"$1"));var c=Number(e.replace(/(\d+[.]*\d{0,4})([ Xx]+)(\d+[.]*\d{0,4})/,"$3"));var f=Number(d.replace(/(\d+[.]*\d{0,4})([ Xx]+)(\d+[.]*\d{0,4})/,"$1"));var b=Number(d.replace(/(\d+[.]*\d{0,4})([ Xx]+)(\d+[.]*\d{0,4})/,"$3"));a=(a>f)?f:a;c=(c>b)?b:c;if(isNaN(a)||isNaN(c)||a==0||c==0){$("trim_size").value=d;}else{$("trim_size").value=a+" X "+c;}}},resetTrimSize:function(){if($("trim_size")){$("trim_size").value=$("size").options[$("size").selectedIndex].text;}},setupQuantities:function(){var a=0;var c=0;if(this.folding){this.formContents+=this.createSelect(this.localText.foldingText,"folding","EC_LithoCalc.updatePrice()",this.foldingOpts);}if(this.additional){this.additionalOpts.each(function(g,f){if(f!="custom_green_paper"){if(f=="custom_finishing"&&window.EC_Mailing){}else{EC_LithoCalc.currentName=f;EC_LithoCalc.formContents+=EC_LithoCalc.createSelect(EC_LithoCalc.localText[f+"Text"],f,"EC_LithoCalc.updatePrice()",g,true);}}});}var e=this.prices.get(this.currentSku).keys();e.sort(this.numOrdA);this.formContents+=this.createSelect(this.localText.quantityText,"quantity","EC_LithoCalc.updatePrice()",e);if($("quantity")){var d=$("quantity").getValue();if(this.prices.get(this.currentSku).hasKey(d)){c=this.prices.get(this.currentSku).get(d).get("p");}}else{var b=this.prices.get(this.currentSku).keys();c=this.prices.get(this.currentSku).get(b[0]).get("p");}if(window.EC_Mailing){this.formContents+=EC_Mailing.updateForm();}else{this.formContents+=calcHR_TPL();}this.formContents+=calcTotalFI_TPL(this.localText.priceText,'<div id="printRate" class="price">'+EC_Base.moneyFormat(c)+"</div>","");if(window.EC_Mailing){this.formContents+=EC_Mailing.totalsForm();}else{this.formContents+=calcHR_TPL();}this.formContents+=calcFI_TPL("",calcBTN_TPL(this.localText.orderText,"EC_LithoCalc.placeOrder()"),"");this.formContents+=calcFI_TPL("",calcBTN_TPL(this.localText.estimateText,"EC_LithoCalc.printEstimate()"),"");if(!window.EC_Mailing){this.formContents+=this.setupShipping();}else{this.formContents+=postageWarning();}this.createForm(this.formContents);this.updatePrice();},updateFolding:function(){var d=$("myForm");var c=$("folding").getValue();if(c==undefined){var f=this.foldingOpts.keys();c=f[0];}var b=this.foldingOpts.get(c).get("price");var a=this.foldingOpts.get(c).get("setup");var e=($("quantity").options)?$("quantity").options[$("quantity").selectedIndex].text:$("quantity").getValue();var g=parseInt(e)/1000;this.foldRate=(Number(b)*g)+Number(a);},updatePrice:function(){this.foldRate=0;if($("folding")&&this.folding==true){this.updateFolding();}if($("quantity")){this.currentSku=this.skus;for(var c=0;c<EC_LithoCalc.names.length;c++){this.currentName=EC_LithoCalc.names[c];if($(this.currentName)&&this.currentName!="width"&&this.currentName!="height"){var f=this.currentSku;this.currentSku=this.currentSku.get($(this.currentName).value);if(this.currentSku==undefined){EC_LithoCalc.updatePrice.delay(200);return;}}if($(this.currentName)&&this.currentName=="height"){this.currentSku=this.skus.get($("product").value).get(this.selectedArea);}}var a=this.prices.get(this.currentSku).get($("quantity").value).get("p");if(a<this.minimum_price){a=this.minimum_price;}var e=new Hash({hole_punch:1000,numbering:1000,perforation:1000,print_type:1000,pms_ink:1000,lamination:1000,finishing:1000});if(this.additional){this.additionalOpts.each(function(k,h){if($(h)){var l=1000;var i=h.replace(/custom_/,"");if(e.hasKey(i)){l=Number(e.get(i));}var j=Number(EC_LithoCalc.additionalOpts.get(h).get($(h).value).get("price"));var g=Number(EC_LithoCalc.additionalOpts.get(h).get($(h).value).get("setup"));a+=(j*($("quantity").value/l))+g;}});}this.printRate=a+this.foldRate;$("printRate").setHTML(EC_Base.moneyFormat(this.printRate));if(window.EC_Mailing){EC_Mailing.updatePrice();}if($("zipcode")){var d=$("zipcode").getValue();if(d.length==5){this.getShipRates();}}var b={print:this.printRate,folding:this.foldRate,shipping:this.shipRates};if(window.EC_Mailing){b.setup=Number($("setupRate").getText().replace(/([^0-9.])/,""));b.inkjet=Number($("inkjetRate").getText().replace(/([^0-9.])/,""));b.tabbing=Number($("tabbingRate").getText().replace(/([^0-9.])/,""));b.postage=Number($("postageRate").getText().replace(/([^0-9.])/,""));if($("listRate")){b.list=Number($("listRate").getText().replace(/([^0-9.])/,""));}b.total=Number($("totalRate").getText().replace(/([^0-9.])/,""));}if($("totals")){$("totals").value=Json.toString(b);}else{EC_LithoCalc.updatePrice.delay(100);}}},printEstimate:function(){if(this.order_action==""){alert("This feature is not available right now. Please try again later.");return;}$("myForm").action=estimateURL;$("myForm").target="estimatepopup";estimatePopup($("myForm").target);setTimeout(function(){$("myForm").submit();},100);},placeOrder:function(){$("myForm").target="_self";if(this.order_action!=""){$("myForm").action=this.order_action;}if(this.currentSku!=null){var a=this.prices.get(this.currentSku).get($("quantity").getValue()).get("i");}else{var c=this.prices.keys();var a=this.prices.get(c[0]).get($("quantity").getValue()).get("i");}var b=$("myForm");b.price_id.value=a;this.flag_form=false;if(window.confirmText&&confirmText!=""){if(!$("disallow_popups")||($("disallow_popups")&&$("disallow_popups").getValue()!="1")){var d=confirm(confirmText);if(d){b.submit();}}}else{b.submit();}},addSKU:function(f,g){var d;var e;var c;var b=f.length;f.each(function(h,a){if(a>0){c=c.get(f[a-1]);}else{c=EC_LithoCalc.skus;}if(!c.hasKey(h)){c.set(h,new Hash());}if(a==b-1){c.set(h,g);}});},setupShipping:function(){var a=calcHR_TPL();a+=calcFI_TPL("",'<h4 class="formHeading">'+this.localText.shippingText+"</h4>","");if(this.international==1){a+=calcFI_TPL(this.localText.countrycodeText,this.country_code,"");}else{a+=this.country_code;}a+=calcFI_TPL(this.localText.zipcodeText,'<input type="text" class="zipTI" id="zipcode" name="zipcode" onkeyup="EC_LithoCalc.checkEnter(event, \'EC_LithoCalc.getShipRates()\')" /><input id="getRatesBTN" type="button" class="rateBTN" value="'+this.localText.ratesText+'" onclick="EC_LithoCalc.getShipRates()" />',"");a+=calcShipGrid_TPL("<br />");return a;},shipSelect:function(){},getShipRates:function(){if(!this.currentSku){this.updateForm();}var b=$("getRatesBTN");var c=$("zipcode").getValue();if(b.disabled){return;}var e=$("country_code").getValue();if((c.length!=5||isNaN(c))&&e=="US"){alert(this.localText.ziperrorText);return;}b.value=this.localText.pleasewaitText;b.disabled=true;this.timer=setTimeout("EC_LithoCalc.stopRates()",10000);this.selWeight=Math.round(((Number($("quantity").getValue())/1000)*this.weights[this.currentSku])*10)/10;var a="/ws/shipping/getRates/zip/"+c+"/country/"+e+"/weight/"+this.selWeight+"/handling_fee/"+this.handling_fee+"/product_id/"+this.product_id;if(this.free_ground_shipping){a+="/fgs/1";}var d=new Ajax(a,{method:"get",onSuccess:function(g){EC_LithoCalc.shipRates=Json.evaluate(g);EC_LithoCalc.stopRates();EC_LithoCalc.changeShipRates();if(EC_LithoCalc.shipRates.error){alert(EC_LithoCalc.shipRates.error);}if($("totals")){var f=Json.evaluate($("totals").getValue());f.shipping=EC_LithoCalc.shipRates;$("totals").value=Json.toString(f);}}}).request();},stopRates:function(){var a=$("getRatesBTN");a.value=this.localText.ratesText;a.disabled=false;clearTimeout(this.timer);},changeShipRates:function(){var a=" checked";$$("input[name=shipMethod]").each(function(b){if(b.checked!=false){a=b.value.toString();}});$("shipGrid").setHTML("<br />"+this.shipGrid(a));},shipGrid:function(e){var b='<table width="100%">';var c="";var d=$("country_code").getValue();var a=false;if($("delivery")&&$("delivery_zipcode")&&$("delivery_countrycode")){if($("delivery").getValue()==1&&($("delivery_zipcode").getValue()==$("zipcode").getValue()||$("delivery_zipcode").getValue()=="ANY")&&d==$("delivery_countrycode").getValue()){a=true;}}shipOpts.each(function(h,f){if(!h.match(/Recycle/)){var g=EC_LithoCalc.shipRates[f.toString()];if(e==f.toString()){e=" checked";}if(g!==false&&!isNaN(g)){g=EC_Base.moneyFormat(g);}if(g!==false&&g!=undefined){if((f!="DL"||(f=="DL"&&a==true))&&f!="FR"){b+='<tr><td class="ship_desc"><input type="radio" name="shipMethod" value="'+f.toString()+'"'+e+" />";b+=h+'</td><td class="ship_price">'+g+"</td></tr>";}else{if(f=="FR"){b+='<tr><td class="ship_desc"><input type="radio" name="shipMethod" value="'+f.toString()+'"'+e+" />";b+=h+'</td><td class="ship_price">'+g+"</td></tr>";}}if(e==" checked"){e="";}}}});b+="</table>";return b;},checkEnter:function(event,func){event=new Event(event);if(event.key=="enter"){if(func){eval(func);}event.stop();this.flag_form=true;}},selectByValue:function(b,c){if(typeof(b)==="string"){b=$(b);}if(b&&b.options){for(var a=0;a<b.options.length;a++){if(b.options[a].value==c){b.options[a].selected=true;b.options.selectedIndex=a;}}}},resetToMinMx:function(e,d){var b=0;d=Number(d);if(d>Math.floor(d)){b=d-Math.floor(d);d-=b;}this[e+"Text"]=d;$(e).value=d;if(b==0){b=".0";}this.selectByValue(e+"Fract",b);var a=Math.floor(Number(this.widthText))+Number($("widthFract").getValue());var c=Math.floor(Number(this.heightText))+Number($("heightFract").getValue());this.area=a*c;this.updatePrice();},numOrdA:function(d,c){return(d-c);},numOrdD:function(d,c){return(c-d);},debug:function(c,b){var a="";if(b){a=EC_Base.dumpObj(c,true);}else{a=c;}$("calcDebug").setHTML(a+"<br />=======================================<br /><br />");}};window.addEvent("domready",function(){EC_LithoCalc.init();});