var currencyTotals=new Array();currencyTotals.push({name:"Scroll of Wisdom",amount:0,exaltedRatio:0});currencyTotals.push({name:"Portal Scroll",amount:0,exaltedRatio:0});currencyTotals.push({name:"Orb of Transmutation",amount:0,exaltedRatio:0});currencyTotals.push({name:"Orb of Augmentation",amount:0,exaltedRatio:0});currencyTotals.push({name:"Chromatic Orb",amount:0,exaltedRatio:180});currencyTotals.push({name:"Orb of Alteration",amount:0,exaltedRatio:260});currencyTotals.push({name:"Jeweller's Orb",amount:0,exaltedRatio:150});currencyTotals.push({name:"Orb of Chance",amount:0,exaltedRatio:110});currencyTotals.push({name:"Cartographer's Chisel",amount:0,exaltedRatio:45});currencyTotals.push({name:"Orb of Fusing",amount:0,exaltedRatio:0,exaltedRatio:40});currencyTotals.push({name:"Orb of Alchemy",amount:0,exaltedRatio:50});currencyTotals.push({name:"Orb of Scouring",amount:0,exaltedRatio:28});currencyTotals.push({name:"Blessed Orb",amount:0,exaltedRatio:40});currencyTotals.push({name:"Chaos Orb",amount:0,exaltedRatio:20});currencyTotals.push({name:"Orb of Regret",amount:0,exaltedRatio:14});currencyTotals.push({name:"Regal Orb",amount:0,exaltedRatio:18});currencyTotals.push({name:"Gemcutter's Prism",amount:0,exaltedRatio:9});currencyTotals.push({name:"Divine Orb",amount:0,exaltedRatio:2});currencyTotals.push({name:"Exalted Orb",amount:0,exaltedRatio:1});currencyTotals.push({name:"Eternal Orb",amount:0,exaltedRatio:0.5});currencyTotals.push({name:"Mirror of Kalandra",amount:0,exaltedRatio:0.0077});var numTabs=0;var characters=null;var leagues=new Array();function getLeagueBreakdown(b){$.ajax({url:"http://www.pathofexile.com/character-window/get-stash-items?league="+b,async:false}).done(function(i){if(i.error!=undefined){console.log(i.error.message);return}numTabs=i.numTabs;console.log("You have "+numTabs+" tabs.")});for(var d=0;d