function showstats() {
if(document.getElementById) document.getElementById("stats").style.display = "inline";
if(document.getElementById) document.getElementById("stats_inline").style.display = "none";
if(document.getElementById) document.getElementById("stats_none").style.display = "inline";
}

function hidestats() {
if(document.getElementById) document.getElementById("stats").style.display = "none";
if(document.getElementById) document.getElementById("stats_inline").style.display = "inline";
if(document.getElementById) document.getElementById("stats_none").style.display = "none";
}

function showsavedeck() {
if(document.getElementById) document.getElementById("save_deck").style.display = "inline";
if(document.getElementById) document.getElementById("s1").style.display = "none";
if(document.getElementById) document.getElementById("s0").style.display = "inline";
}

function hidesavedeck() {
if(document.getElementById) document.getElementById("save_deck").style.display = "none";
if(document.getElementById) document.getElementById("s1").style.display = "inline";
if(document.getElementById) document.getElementById("s0").style.display = "none";
}

function createGraph_type(t6c, t5c, t7c) {
var graph = new BAR_GRAPH("hBar");
graph.values = t6c + "," + t5c + "," + t7c;
graph.labels = "Buildings,Creatures,Spells";
graph.showValues = 1;
graph.barWidth = 20;
graph.barLength = 1;
graph.labelSize = 12;
graph.absValuesSize = 12;
graph.percValuesSize = 12;
graph.graphPadding = 10;
graph.graphBGColor = "white";
graph.graphBorder = "0px solid orange";
graph.barColors = "#A0C0F0";
graph.barBGColor = "white";
graph.barBorder = "2px outset white";
graph.labelColor = "#000000";
graph.labelBGColor = "#C0E0FF";
graph.labelBorder = "2px groove white";
graph.absValuesColor = "#000000";
graph.absValuesBGColor = "#FFFFFF";
graph.absValuesBorder = "2px groove white";
document.write(graph.create());
}

function createGraph_orbs(t1c, t2c, t3c, t4c) {
var graph = new BAR_GRAPH("hBar");
graph.values = t1c + "," + t2c + "," + t3c + "," + t4c;
graph.labels = "1 Orb, 2 Orbs, 3 Orbs, 4 Orbs";
graph.showValues = 1;
graph.barWidth = 20;
graph.barLength = 1;
graph.labelSize = 12;
graph.absValuesSize = 12;
graph.percValuesSize = 12;
graph.graphPadding = 10;
graph.graphBGColor = "white";
graph.graphBorder = "0px solid orange";
graph.barColors = "#A0C0F0";
graph.barBGColor = "white";
graph.barBorder = "2px outset white";
graph.labelColor = "#000000";
graph.labelBGColor = "#C0E0FF";
graph.labelBorder = "2px groove white";
graph.absValuesColor = "#000000";
graph.absValuesBGColor = "#FFFFFF";
graph.absValuesBorder = "2px groove white";
document.write(graph.create());
}

function createGraph_color(t8c, t9c, t10c, t11c) {
var graph = new BAR_GRAPH("hBar");
graph.values = t8c + "," + t9c + "," + t10c + "," + t11c;
graph.labels = "Fire, Frost, Nature, Shadow";
graph.showValues = 1;
graph.barWidth = 20;
graph.barLength = 1;
graph.labelSize = 12;
graph.absValuesSize = 12;
graph.percValuesSize = 12;
graph.graphPadding = 10;
graph.graphBGColor = "white";
graph.graphBorder = "0px solid orange";
graph.barColors = "#A0C0F0";
graph.barBGColor = "white";
graph.barBorder = "2px outset white";
graph.labelColor = "#000000";
graph.labelBGColor = "#C0E0FF";
graph.labelBorder = "2px groove white";
graph.absValuesColor = "#000000";
graph.absValuesBGColor = "#FFFFFF";
graph.absValuesBorder = "2px groove white";
document.write(graph.create());
}

function createGraph_rarity(t12c, t13c, t14c, t15c) {
var graph = new BAR_GRAPH("hBar");
graph.values = t12c + "," + t13c + "," + t14c + "," + t15c;
graph.labels = "Common, Uncommon, Rare, Ultra Rare";
graph.showValues = 1;
graph.barWidth = 20;
graph.barLength = 1;
graph.labelSize = 12;
graph.absValuesSize = 12;
graph.percValuesSize = 12;
graph.graphPadding = 10;
graph.graphBGColor = "white";
graph.graphBorder = "0px solid orange";
graph.barColors = "#A0C0F0";
graph.barBGColor = "white";
graph.barBorder = "2px outset white";
graph.labelColor = "#000000";
graph.labelBGColor = "#C0E0FF";
graph.labelBorder = "2px groove white";
graph.absValuesColor = "#000000";
graph.absValuesBGColor = "#FFFFFF";
graph.absValuesBorder = "2px groove white";
document.write(graph.create());
}
