var EC_LithoCalc={product_name:"",product_id:40,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:10,order_action:"",green:false,minimum_price:0,minimum_area_for_price:1,quarter_inch_increments:false,mailingCanUseUV:false,folding:false,additional:false,setOpts:function(){this.opts=[];this.opts.product=[];this.opts.product[40]="Copies";this.product_name="Copies";this.opts.coating=[];this.opts.color=[];this.opts.paper=[];this.opts.size=[];this.opts.turnaround=[];this.opts.paper[289]="60# Bright Text";this.opts.paper[286]="20# Bond";this.opts.paper[287]="24# Bond";this.opts.color[284]="1/0 ( B&W Front Side )";this.opts.turnaround[283]="1 Day";this.opts.paper[288]="28# Bond";this.opts.color[285]="1/1 ( B&W Both Sides )";this.opts.color[8]="4/0 (Full Color Front Side)";this.opts.color[9]="4/1 (Full Color Front / B&W Back)";this.opts.color[10]="4/4 (Full Color Both Sides)";this.opts.paper[119]="100# Gloss Text";this.opts.coating[1]="Uncoated";this.opts.size[54]="8.5 X 11";this.opts.size[55]="8.5 X 14";this.opts.size[57]="11 X 17";this.opts.size[84]="12 X 18";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([40,"54",286,284,1,283],8723);this.addSKU([40,"54",286,285,1,283],8724);this.addSKU([40,"54",286,8,1,283],8722);this.addSKU([40,"54",286,9,1,283],8721);this.addSKU([40,"54",286,10,1,283],8720);this.addSKU([40,"55",286,284,1,283],8728);this.addSKU([40,"55",286,285,1,283],8729);this.addSKU([40,"55",286,8,1,283],8727);this.addSKU([40,"55",286,9,1,283],8726);this.addSKU([40,"55",286,10,1,283],8725);this.addSKU([40,"54",289,8,1,283],8782);this.addSKU([40,"54",289,10,1,283],8780);this.addSKU([40,"54",289,9,1,283],8781);this.addSKU([40,"54",289,284,1,283],8783);this.addSKU([40,"54",289,285,1,283],8784);this.addSKU([40,"55",289,10,1,283],8785);this.addSKU([40,"55",289,9,1,283],8786);this.addSKU([40,"55",289,8,1,283],8787);this.addSKU([40,"55",289,284,1,283],8788);this.addSKU([40,"55",289,285,1,283],8789);this.addSKU([40,"57",289,10,1,283],8790);this.addSKU([40,"57",289,9,1,283],8791);this.addSKU([40,"57",289,8,1,283],8792);this.addSKU([40,"57",289,284,1,283],8793);this.addSKU([40,"57",289,285,1,283],8794);this.addSKU([40,"57",287,9,1,283],8751);this.addSKU([40,"57",287,8,1,283],8752);this.addSKU([40,"57",287,284,1,283],8753);this.addSKU([40,"57",287,285,1,283],8754);this.addSKU([40,"57",287,10,1,283],8750);this.addSKU([40,"55",287,285,1,283],8749);this.addSKU([40,"54",287,9,1,283],8741);this.addSKU([40,"54",287,8,1,283],8742);this.addSKU([40,"54",287,284,1,283],8743);this.addSKU([40,"54",287,285,1,283],8744);this.addSKU([40,"55",287,10,1,283],8745);this.addSKU([40,"55",287,9,1,283],8746);this.addSKU([40,"55",287,8,1,283],8747);this.addSKU([40,"55",287,284,1,283],8748);this.addSKU([40,"54",288,10,1,283],8760);this.addSKU([40,"57",288,9,1,283],8771);this.addSKU([40,"57",288,8,1,283],8772);this.addSKU([40,"57",288,284,1,283],8773);this.addSKU([40,"57",288,285,1,283],8774);this.addSKU([40,"57",288,10,1,283],8770);this.addSKU([40,"55",288,285,1,283],8769);this.addSKU([40,"54",288,9,1,283],8761);this.addSKU([40,"54",288,8,1,283],8762);this.addSKU([40,"54",288,284,1,283],8763);this.addSKU([40,"54",288,285,1,283],8764);this.addSKU([40,"55",288,10,1,283],8765);this.addSKU([40,"55",288,9,1,283],8766);this.addSKU([40,"55",288,8,1,283],8767);this.addSKU([40,"55",288,284,1,283],8768);this.addSKU([40,"54",287,10,1,283],8740);this.addSKU([40,"57",119,9,1,283],8711);this.addSKU([40,"57",119,8,1,283],8712);this.addSKU([40,"57",119,284,1,283],8713);this.addSKU([40,"57",119,285,1,283],8714);this.addSKU([40,"57",119,10,1,283],8710);this.addSKU([40,"54",119,9,1,283],8701);this.addSKU([40,"54",119,8,1,283],8702);this.addSKU([40,"54",119,284,1,283],8703);this.addSKU([40,"54",119,285,1,283],8704);this.addSKU([40,"57",286,9,1,283],8731);this.addSKU([40,"57",286,8,1,283],8732);this.addSKU([40,"57",286,284,1,283],8733);this.addSKU([40,"57",286,285,1,283],8734);this.addSKU([40,"57",286,10,1,283],8730);this.addSKU([40,"54",119,10,1,283],8700);},setWeights:function(){this.weights=[];this.weights[8723]=15;this.weights[8724]=15;this.weights[8722]=15;this.weights[8721]=15;this.weights[8720]=15;this.weights[8728]=22;this.weights[8729]=22;this.weights[8727]=22;this.weights[8726]=22;this.weights[8725]=22;this.weights[8782]=15;this.weights[8780]=15;this.weights[8781]=15;this.weights[8783]=15;this.weights[8784]=15;this.weights[8785]=22;this.weights[8786]=22;this.weights[8787]=22;this.weights[8788]=22;this.weights[8789]=22;this.weights[8790]=25;this.weights[8791]=25;this.weights[8792]=25;this.weights[8793]=25;this.weights[8794]=25;this.weights[8751]=36;this.weights[8752]=36;this.weights[8753]=36;this.weights[8754]=36;this.weights[8750]=36;this.weights[8749]=25;this.weights[8741]=18;this.weights[8742]=18;this.weights[8743]=18;this.weights[8744]=18;this.weights[8745]=25;this.weights[8746]=25;this.weights[8747]=25;this.weights[8748]=25;this.weights[8760]=20;this.weights[8771]=38;this.weights[8772]=38;this.weights[8773]=38;this.weights[8774]=38;this.weights[8770]=38;this.weights[8769]=25;this.weights[8761]=20;this.weights[8762]=20;this.weights[8763]=20;this.weights[8764]=20;this.weights[8765]=28;this.weights[8766]=28;this.weights[8767]=28;this.weights[8768]=28;this.weights[8740]=18;this.weights[8711]=0;this.weights[8712]=0;this.weights[8713]=0;this.weights[8714]=0;this.weights[8710]=0;this.weights[8701]=0;this.weights[8702]=0;this.weights[8703]=0;this.weights[8704]=0;this.weights[8731]=25;this.weights[8732]=25;this.weights[8733]=25;this.weights[8734]=25;this.weights[8730]=25;this.weights[8700]=0;},setPrices:function(){this.prices=new Hash();var b=[];var a;b.push({i:8723,ii:37265,q:500,p:35});b.push({i:8723,ii:37266,q:1000,p:60});b.push({i:8723,ii:37267,q:2500,p:125});b.push({i:8723,ii:37268,q:5000,p:200});b.push({i:8723,ii:37269,q:10000,p:300});b.push({i:8724,ii:37270,q:500,p:50});b.push({i:8724,ii:37271,q:1000,p:90});b.push({i:8724,ii:37272,q:2500,p:200});b.push({i:8724,ii:37273,q:5000,p:350});b.push({i:8724,ii:37274,q:10000,p:600});b.push({i:8722,ii:37275,q:100,p:39});b.push({i:8722,ii:37276,q:250,p:72.5});b.push({i:8722,ii:37277,q:500,p:125});b.push({i:8722,ii:37278,q:1000,p:200});b.push({i:8722,ii:37279,q:2500,p:475});b.push({i:8721,ii:37280,q:100,p:50});b.push({i:8721,ii:37281,q:250,p:99});b.push({i:8721,ii:37282,q:500,p:180});b.push({i:8721,ii:37283,q:1000,p:310});b.push({i:8721,ii:37284,q:2500,p:625});b.push({i:8720,ii:37285,q:100,p:60});b.push({i:8720,ii:37286,q:250,p:122.5});b.push({i:8720,ii:37287,q:500,p:230});b.push({i:8720,ii:37288,q:1000,p:450});b.push({i:8720,ii:37289,q:2500,p:850});b.push({i:8728,ii:37351,q:500,p:45});b.push({i:8728,ii:37352,q:1000,p:80});b.push({i:8728,ii:37353,q:2500,p:175});b.push({i:8728,ii:37354,q:5000,p:300});b.push({i:8728,ii:37355,q:10000,p:500});b.push({i:8729,ii:37356,q:500,p:65});b.push({i:8729,ii:37357,q:1000,p:120});b.push({i:8729,ii:37358,q:2500,p:275});b.push({i:8729,ii:37359,q:5000,p:450});b.push({i:8729,ii:37360,q:10000,p:800});b.push({i:8727,ii:37361,q:100,p:45});b.push({i:8727,ii:37362,q:250,p:87.5});b.push({i:8727,ii:37363,q:500,p:150});b.push({i:8727,ii:37364,q:1000,p:250});b.push({i:8726,ii:37365,q:100,p:49});b.push({i:8726,ii:37366,q:250,p:97.5});b.push({i:8726,ii:37367,q:500,p:175});b.push({i:8726,ii:37368,q:1000,p:300});b.push({i:8725,ii:37369,q:100,p:70});b.push({i:8725,ii:37370,q:250,p:150});b.push({i:8725,ii:37371,q:500,p:275});b.push({i:8725,ii:37372,q:1000,p:500});b.push({i:8782,ii:37346,q:100,p:45});b.push({i:8782,ii:37347,q:250,p:80});b.push({i:8782,ii:37348,q:500,p:175});b.push({i:8782,ii:37349,q:1000,p:325});b.push({i:8782,ii:37350,q:2500,p:550});b.push({i:8780,ii:37373,q:100,p:70});b.push({i:8780,ii:37374,q:250,p:140});b.push({i:8780,ii:37375,q:500,p:250});b.push({i:8780,ii:37376,q:1000,p:490});b.push({i:8780,ii:37377,q:2500,p:875});b.push({i:8781,ii:37378,q:100,p:70});b.push({i:8781,ii:37379,q:250,p:140});b.push({i:8781,ii:37380,q:500,p:250});b.push({i:8781,ii:37381,q:1000,p:490});b.push({i:8781,ii:37382,q:2500,p:875});b.push({i:8783,ii:37383,q:500,p:50});b.push({i:8783,ii:37384,q:1000,p:80});b.push({i:8783,ii:37385,q:2500,p:150});b.push({i:8783,ii:37386,q:5000,p:275});b.push({i:8783,ii:37387,q:10000,p:460});b.push({i:8784,ii:37388,q:500,p:75});b.push({i:8784,ii:37389,q:1000,p:110});b.push({i:8784,ii:37390,q:2500,p:225});b.push({i:8784,ii:37391,q:5000,p:425});b.push({i:8784,ii:37392,q:10000,p:760});b.push({i:8785,ii:37393,q:100,p:75});b.push({i:8785,ii:37394,q:250,p:175});b.push({i:8785,ii:37395,q:500,p:325});b.push({i:8785,ii:37396,q:1000,p:575});b.push({i:8786,ii:37397,q:100,p:70});b.push({i:8786,ii:37398,q:250,p:150});b.push({i:8786,ii:37399,q:500,p:275});b.push({i:8786,ii:37400,q:1000,p:500});b.push({i:8787,ii:37401,q:100,p:65});b.push({i:8787,ii:37402,q:250,p:140});b.push({i:8787,ii:37403,q:500,p:250});b.push({i:8787,ii:37404,q:1000,p:425});b.push({i:8788,ii:37405,q:500,p:45});b.push({i:8788,ii:37406,q:1000,p:80});b.push({i:8788,ii:37407,q:2500,p:175});b.push({i:8788,ii:37408,q:5000,p:300});b.push({i:8788,ii:37409,q:10000,p:500});b.push({i:8789,ii:37414,q:500,p:60});b.push({i:8789,ii:37415,q:1000,p:110});b.push({i:8789,ii:37416,q:2500,p:250});b.push({i:8789,ii:37417,q:5000,p:450});b.push({i:8789,ii:37418,q:10000,p:800});b.push({i:8790,ii:37410,q:100,p:150});b.push({i:8790,ii:37411,q:250,p:250});b.push({i:8790,ii:37412,q:500,p:425});b.push({i:8790,ii:37413,q:1000,p:750});b.push({i:8791,ii:37419,q:100,p:100});b.push({i:8791,ii:37420,q:250,p:225});b.push({i:8791,ii:37421,q:500,p:375});b.push({i:8791,ii:37422,q:1000,p:695});b.push({i:8792,ii:37423,q:100,p:100});b.push({i:8792,ii:37424,q:250,p:225});b.push({i:8792,ii:37425,q:500,p:375});b.push({i:8792,ii:37426,q:1000,p:695});b.push({i:8793,ii:37427,q:500,p:75});b.push({i:8793,ii:37428,q:1000,p:140});b.push({i:8793,ii:37429,q:2500,p:337.5});b.push({i:8793,ii:37430,q:5000,p:650});b.push({i:8794,ii:37431,q:500,p:130});b.push({i:8794,ii:37432,q:1000,p:250});b.push({i:8794,ii:37433,q:2500,p:600});b.push({i:8794,ii:37434,q:5000,p:1150});b.push({i:8751,ii:37435,q:100,p:100});b.push({i:8751,ii:37436,q:250,p:225});b.push({i:8751,ii:37437,q:500,p:375});b.push({i:8751,ii:37438,q:1000,p:695});b.push({i:8752,ii:37439,q:100,p:100});b.push({i:8752,ii:37440,q:250,p:225});b.push({i:8752,ii:37441,q:500,p:375});b.push({i:8752,ii:37442,q:1000,p:695});b.push({i:8753,ii:37447,q:500,p:75});b.push({i:8753,ii:37448,q:1000,p:140});b.push({i:8753,ii:37449,q:2500,p:337});b.push({i:8753,ii:37450,q:5000,p:650});b.push({i:8754,ii:37451,q:500,p:130});b.push({i:8754,ii:37452,q:1000,p:250});b.push({i:8754,ii:37453,q:2500,p:600});b.push({i:8754,ii:37454,q:5000,p:1150});b.push({i:8750,ii:37443,q:100,p:150});b.push({i:8750,ii:37444,q:250,p:250});b.push({i:8750,ii:37445,q:500,p:425});b.push({i:8750,ii:37446,q:1000,p:750});b.push({i:8749,ii:37455,q:500,p:60});b.push({i:8749,ii:37456,q:1000,p:110});b.push({i:8749,ii:37457,q:2500,p:250});b.push({i:8749,ii:37458,q:5000,p:450});b.push({i:8749,ii:37459,q:10000,p:800});b.push({i:8741,ii:37460,q:100,p:70});b.push({i:8741,ii:37461,q:250,p:140});b.push({i:8741,ii:37462,q:500,p:250});b.push({i:8741,ii:37463,q:1000,p:490});b.push({i:8741,ii:37464,q:2500,p:875});b.push({i:8742,ii:37465,q:100,p:45});b.push({i:8742,ii:37466,q:250,p:80});b.push({i:8742,ii:37467,q:500,p:175});b.push({i:8742,ii:37468,q:1000,p:325});b.push({i:8742,ii:37469,q:2500,p:550});b.push({i:8743,ii:37470,q:500,p:50});b.push({i:8743,ii:37471,q:1000,p:80});b.push({i:8743,ii:37472,q:2500,p:150});b.push({i:8743,ii:37473,q:5000,p:275});b.push({i:8743,ii:37474,q:10000,p:460});b.push({i:8744,ii:37475,q:500,p:75});b.push({i:8744,ii:37476,q:1000,p:110});b.push({i:8744,ii:37477,q:2500,p:225});b.push({i:8744,ii:37478,q:5000,p:425});b.push({i:8744,ii:37479,q:10000,p:760});b.push({i:8745,ii:37485,q:100,p:75});b.push({i:8745,ii:37486,q:250,p:175});b.push({i:8745,ii:37487,q:500,p:325});b.push({i:8745,ii:37488,q:1000,p:575});b.push({i:8746,ii:37489,q:100,p:70});b.push({i:8746,ii:37490,q:250,p:150});b.push({i:8746,ii:37491,q:500,p:275});b.push({i:8746,ii:37492,q:1000,p:500});b.push({i:8747,ii:37493,q:100,p:65});b.push({i:8747,ii:37494,q:250,p:140});b.push({i:8747,ii:37495,q:500,p:250});b.push({i:8747,ii:37496,q:1000,p:425});b.push({i:8748,ii:37497,q:500,p:45});b.push({i:8748,ii:37498,q:1000,p:80});b.push({i:8748,ii:37499,q:2500,p:175});b.push({i:8748,ii:37500,q:5000,p:300});b.push({i:8748,ii:37501,q:10000,p:500});b.push({i:8760,ii:37502,q:100,p:75});b.push({i:8760,ii:37503,q:250,p:175});b.push({i:8760,ii:37504,q:500,p:325});b.push({i:8760,ii:37505,q:1000,p:600});b.push({i:8760,ii:37506,q:2500,p:1225});b.push({i:8771,ii:37593,q:100,p:110});b.push({i:8771,ii:37594,q:250,p:235});b.push({i:8771,ii:37595,q:500,p:395});b.push({i:8771,ii:37596,q:1000,p:695});b.push({i:8772,ii:37597,q:100,p:100});b.push({i:8772,ii:37598,q:250,p:225});b.push({i:8772,ii:37599,q:500,p:375});b.push({i:8772,ii:37600,q:1000,p:695});b.push({i:8773,ii:37601,q:500,p:75});b.push({i:8773,ii:37602,q:1000,p:140});b.push({i:8773,ii:37603,q:2500,p:337});b.push({i:8773,ii:37604,q:5000,p:650});b.push({i:8774,ii:37605,q:500,p:130});b.push({i:8774,ii:37606,q:1000,p:250});b.push({i:8774,ii:37607,q:2500,p:600});b.push({i:8774,ii:37608,q:5000,p:1150});b.push({i:8770,ii:37617,q:100,p:160});b.push({i:8770,ii:37618,q:250,p:360});b.push({i:8770,ii:37619,q:500,p:590});b.push({i:8769,ii:37620,q:500,p:75});b.push({i:8769,ii:37621,q:1000,p:125});b.push({i:8769,ii:37624,q:1000,p:900});b.push({i:8769,ii:37622,q:2500,p:300});b.push({i:8769,ii:37623,q:5000,p:500});b.push({i:8761,ii:37507,q:100,p:70});b.push({i:8761,ii:37508,q:250,p:140});b.push({i:8761,ii:37509,q:500,p:250});b.push({i:8761,ii:37510,q:1000,p:490});b.push({i:8761,ii:37511,q:2500,p:875});b.push({i:8762,ii:37512,q:100,p:65});b.push({i:8762,ii:37513,q:250,p:115});b.push({i:8762,ii:37514,q:500,p:225});b.push({i:8762,ii:37515,q:1000,p:400});b.push({i:8762,ii:37516,q:2500,p:825});b.push({i:8763,ii:37517,q:500,p:60});b.push({i:8763,ii:37518,q:1000,p:90});b.push({i:8763,ii:37519,q:2500,p:175});b.push({i:8763,ii:37520,q:5000,p:315});b.push({i:8763,ii:37521,q:10000,p:520});b.push({i:8764,ii:37522,q:500,p:80});b.push({i:8764,ii:37523,q:1000,p:120});b.push({i:8764,ii:37524,q:2500,p:250});b.push({i:8764,ii:37525,q:5000,p:450});b.push({i:8764,ii:37526,q:10000,p:775});b.push({i:8765,ii:37527,q:100,p:80});b.push({i:8765,ii:37528,q:250,p:190});b.push({i:8765,ii:37529,q:500,p:350});b.push({i:8765,ii:37530,q:1000,p:625});b.push({i:8766,ii:37531,q:100,p:75});b.push({i:8766,ii:37532,q:250,p:175});b.push({i:8766,ii:37533,q:500,p:325});b.push({i:8766,ii:37534,q:1000,p:575});b.push({i:8767,ii:37535,q:100,p:70});b.push({i:8767,ii:37536,q:250,p:150});b.push({i:8767,ii:37537,q:500,p:275});b.push({i:8767,ii:37538,q:1000,p:500});b.push({i:8768,ii:37539,q:500,p:50});b.push({i:8768,ii:37540,q:1000,p:90});b.push({i:8768,ii:37541,q:2500,p:200});b.push({i:8768,ii:37542,q:5000,p:350});b.push({i:8768,ii:37543,q:10000,p:600});b.push({i:8740,ii:37480,q:100,p:70});b.push({i:8740,ii:37481,q:250,p:140});b.push({i:8740,ii:37482,q:500,p:250});b.push({i:8740,ii:37483,q:1000,p:490});b.push({i:8740,ii:37484,q:2500,p:875});b.push({i:8711,ii:37544,q:100,p:125});b.push({i:8711,ii:37545,q:250,p:275});b.push({i:8711,ii:37546,q:500,p:500});b.push({i:8712,ii:37547,q:100,p:95});b.push({i:8712,ii:37548,q:250,p:225});b.push({i:8712,ii:37549,q:500,p:425});b.push({i:8713,ii:37553,q:100,p:35});b.push({i:8713,ii:37554,q:250,p:60});b.push({i:8713,ii:37555,q:500,p:115});b.push({i:8713,ii:37556,q:1000,p:225});b.push({i:8714,ii:37557,q:100,p:35});b.push({i:8714,ii:37558,q:250,p:85});b.push({i:8714,ii:37559,q:500,p:165});b.push({i:8714,ii:37560,q:1000,p:320});b.push({i:8710,ii:37550,q:100,p:175});b.push({i:8710,ii:37551,q:250,p:375});b.push({i:8710,ii:37552,q:500,p:625});b.push({i:8701,ii:37561,q:100,p:60});b.push({i:8701,ii:37562,q:250,p:135});b.push({i:8701,ii:37563,q:500,p:250});b.push({i:8701,ii:37564,q:1000,p:475});b.push({i:8702,ii:37565,q:100,p:45});b.push({i:8702,ii:37566,q:250,p:110});b.push({i:8702,ii:37567,q:500,p:200});b.push({i:8702,ii:37568,q:1000,p:375});b.push({i:8703,ii:37573,q:100,p:25});b.push({i:8703,ii:37574,q:250,p:60});b.push({i:8703,ii:37575,q:500,p:90});b.push({i:8703,ii:37576,q:1000,p:175});b.push({i:8704,ii:37577,q:100,p:35});b.push({i:8704,ii:37578,q:250,p:65});b.push({i:8704,ii:37579,q:500,p:110});b.push({i:8704,ii:37580,q:1000,p:225});b.push({i:8731,ii:37585,q:100,p:120});b.push({i:8731,ii:37586,q:250,p:250});b.push({i:8731,ii:37587,q:500,p:390});b.push({i:8731,ii:37588,q:1000,p:695});b.push({i:8732,ii:37589,q:100,p:100});b.push({i:8732,ii:37590,q:250,p:225});b.push({i:8732,ii:37591,q:500,p:375});b.push({i:8732,ii:37592,q:1000,p:695});b.push({i:8733,ii:37609,q:500,p:60});b.push({i:8733,ii:37610,q:1000,p:120});b.push({i:8733,ii:37611,q:2500,p:290});b.push({i:8733,ii:37612,q:5000,p:560});b.push({i:8734,ii:37613,q:500,p:75});b.push({i:8734,ii:37614,q:1000,p:140});b.push({i:8734,ii:37615,q:2500,p:337});b.push({i:8734,ii:37616,q:5000,p:650});b.push({i:8730,ii:37581,q:100,p:175});b.push({i:8730,ii:37582,q:250,p:290});b.push({i:8730,ii:37583,q:500,p:460});b.push({i:8730,ii:37584,q:1000,p:820});b.push({i:8700,ii:37569,q:100,p:85});b.push({i:8700,ii:37570,q:250,p:200});b.push({i:8700,ii:37571,q:500,p:375});b.push({i:8700,ii:37572,q:1000,p:650});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();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_green_paperText="Eco Friendly 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 3 Day Select","02":"UPS 2nd Day","01":"UPS Next Day",WC:"Will Call",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();});