var tClass = {
tArr: new Array(),
cOn: "t_on",
cOff: "t_off",
aTab: function (tabsContainer) {
tabs = document.getElementById(tabsContainer).getElementsByTagName("div");
for (x in tabs) { if (typeof(tabs[x].id) != "undefined") { this.tArr.push(tabs[x].id); } else {} }
},
sTab: function (element) {
for (x in this.tArr) {
tabItem = this.tArr[x];
dataElement = document.getElementById(tabItem + "_data");
if (dataElement) { if (dataElement.style.display != "none") { dataElement.style.display = "none"; } else {} } else {}
tabElement = document.getElementById(tabItem);
if (tabElement) { if (tabElement.className != this.cOff) { tabElement.className = this.cOff; } else {} } else {}
}
document.getElementById(element.id + "_data").style.display = "";
element.className = this.cOn;
}
};
document.write('\
\
\
\
\
\
\
\
\
\
\
Kontrakty terminowe\
| \
\
\
\
\
\
\
Pszenica kons. | MAR25 | ↑ 1011.37zł | Kukurydza | MAR25 | ↓ 929.81zł | Rzepak | LUT25 | 2210.89zł | |
\
\
\
\
Pszenica kons. | MAR25 | ↑ 863.78zł | Kukurydza | MAR25 | ↑ 817.86zł | Soja | MAR25 | ↑ 1628.65zł | Śruta soj. | MAR25 | ↑ 1427.45zł | |
\
\
| \
\
\
| \
\
\
');
tClass.aTab("ewgt_tab");