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\
\
 WGT 
\
MATIF
\
CBOT 
\
\
\ \ \
WalutaKupnoSprzedaż
USD
EUR
CHF
\
\ \ \
\
\ '); tClass.aTab("ewgt_tab");