var i = 0;
var list = new Array();
list[i++] = 'AUDUSD 0.961/02:54:12 ';
list[i++] = 'EURCHF 1.628/02:53:15 ';
list[i++] = 'EURGBP 0.785/02:53:47 ';
list[i++] = 'EURJPY 169.16/02:54:27 ';
list[i++] = 'EURPLN 3.251/02:48:39 ';
list[i++] = 'EURUSD 1.568/02:54:03 ';
list[i++] = 'GBPUSD 1.997/02:54:13 ';
list[i++] = 'GOLD 921.73/02:54:28 ';
list[i++] = 'OIL 125.16/23:54:32 ';
list[i++] = 'SILVER 17.39/02:34:01 ';
list[i++] = 'USDCAD 1.011/02:54:24 ';
list[i++] = 'USDCHF 1.038/02:54:31 ';
list[i++] = 'USDJPY 107.88/02:54:26 ';
list[i++] = 'USDPLN 2.071/02:48:06 ';
var scrollId = 'pasekWalut';
// prepare node structure //
function loadStructure() {
// div 4 frame - user defined //
var scroll = document.getElementById(scrollId);
if (scroll == null) return;
// add cliping outside frame //
scroll.style.cssText = scroll.style.cssText + '; overflow: hidden;';
var children = scroll.childNodes;
while (children.length > 0) scroll.removeChild(children[0]);
// add sliding div inside frame //
var innerScroll = document.createElement('div');
innerScroll.style.width = '10000px';
innerScroll.style.marginLeft = (scroll.clientWidth+10)+'px';
scroll.appendChild(innerScroll);
// add floating div-containers 4 list elements //
// for (var j in list) {
for (j=0;j