﻿
var cats = [
[1, 1,  'Stocks', 0, 0], 
[1, 2,  'Forex', 0, 0], 
[1, 3,  'Commodity', 0, 0], 
[1, 4,  'Bond', 0, 0], 
[2, 1,  'Equity', 1, 0], 
[2, 2,  'Indices', 1, 0], 
[2, 3,  'Major', 2, 1], 
[2, 4,  'Minor', 2, 1], 
[2, 5,  'Emerging', 2, 1], 
[2, 6,  'Agriculture', 3, 1], 
[2, 7,  'Energy', 3, 1], 
[2, 8,  'Metal', 3, 1], 
[2, 9,  'Precious Metal', 3, 1], 
[2, 10,  'Core Market', 4, 0], 
[2, 11,  'Emerging', 4, 0], 
[3, 1,  'American', 1, 0], 
[3, 2,  'European', 1, 0], 
[3, 3,  'Asian', 1, 0], 
[3, 4,  'Emerging', 1, 0], 
[3, 5,  'American', 2, 1], 
[3, 6,  'European', 2, 1], 
[3, 7,  'Asian', 2, 1], 
[3, 8,  'Emerging', 2, 1], 
[3, 9,  'Bond', 10, 1], 
[3, 10,  'IRS', 10, 1], 
[3, 11,  'FRA', 10, 1], 
[3, 12,  'Bond', 11, 1], 
[3, 13,  'IRS', 11, 1], 
[3, 14,  'FRA', 11, 1], 
[4, 1,  'Financials', 0, 0], 
[4, 2,  'Consumer Goods', 0, 0], 
[4, 3,  'Industrials', 0, 0], 
[4, 4,  'Utilities', 0, 0], 
[4, 5,  'Consumer Service', 0, 0], 
[4, 6,  'Basic Materials', 0, 0], 
[4, 7,  'Telecommunications', 0, 0], 
[4, 8,  'Health Care', 0, 0], 
[4, 9,  'Technology', 0], 
[4, 10,  'Oil & Gas', 0], 
[5, 1,  'Banks', 1, 1], 
[5, 2,  'Insurances', 1, 1], 
[5, 3,  'Financial Services', 1, 1], 
[5, 4,  'Personal & Household Goods', 2, 1], 
[5, 5,  'Automobiles & Parts', 2, 1], 
[5, 6,  'Food & Beverage', 2, 1], 
[5, 7,  'Construction & Materials', 3, 1], 
[5, 8,  'Industrial Goods & Services', 3, 1], 
[5, 9,  'General Industrials', 3, 1], 
[5, 10,  'Gas,  Water & Multiutilities', 4, 1], 
[5, 11,  'Electricity', 4, 1], 
[5, 12,  'Media', 5, 1], 
[5, 13,  'Travel & Leisure', 5, 1], 
[5, 14,  'Retail', 5, 1], 
[5, 15,  'Basic Resources', 6, 1], 
[5, 16,  'Chemicals', 6, 1], 
[5, 17,  'Fixed Line Telecommunication', 7, 1], 
[5, 18,  'Mobile Telecommunication', 7, 1], 
[5, 19,  'Health Care Equipment & Services', 8, 1], 
[5, 20,  'Pharmaceuticals & Biotechnology', 8, 1], 
[5, 21,  'Technology Hardware & Equipment', 9, 1], 
[5, 22,  'Software & Computer Services', 9, 1], 
[5, 23,  'Oil Equipment,  Services & Distribution', 10, 1], 
[5, 24,  'Oil & Gas Producers', 10, 1]
];

var allTitle = ["","","","region","","sub-sector"];

function selectCat(level)
{
    var i, k, n;
    n = cats.length;
   
    var parent = document.getElementById('cat'+level).value;
    
    //alert('level = '+level+', selection = '+parent);
    
    if(parent == 0) 
    {   instrumentList();
        return;
    }

    for(i = 0; i < n; i++) 
        if(cats[i][0] == level && cats[i][1] == parent) break;

    // 1 = does not have descendant
    if(cats[i][4] == 1)
    {   if(level == 2) document.getElementById('cat3').style.display = 'none';
        instrumentList();
        return;
    }

    level++;
    if(level != 4)
    {
        var obj = document.getElementById('cat'+level);
        obj.options.length = 0;	// Empty the box
        obj.options[0] = new Option('All '+allTitle[level],'0');
        k = 0;
        
        for(i = 0; i < n; i++)
        {   
            if(cats[i][0] == level && (parent == 0 || parent == cats[i][3]))
            {   obj.options[++k] = new Option(cats[i][2],cats[i][1]);
            }
        }
        obj.style.display = k ? 'inline' : 'none';
    }

    
    document.getElementById('cat3').style.display = document.getElementById('cat1').value == 1 || document.getElementById('cat1').value == 4 ? 'inline' : 'none';
    document.getElementById('cat4').style.display = document.getElementById('cat1').value == 1 && document.getElementById('cat2').value == 1 ? 'inline' : 'none';
    document.getElementById('cat5').style.display = document.getElementById('cat1').value == 1 && document.getElementById('cat2').value == 1 ? 'inline' : 'none';
    
}

var instruments = [
['ABB', 1, 1, 1, 3, 8, 1631, 0, 0, 0],
['Abbott Laboratories', 1, 1, 1, 8, 20, 381, 382, 383, 0],
['Accenture', 1, 1, 1, 9, 22, 384, 385, 0, 0],
['ACS', 1, 1, 2, 3, 7, 387, 388, 389, 0],
['Adecco', 1, 1, 2, 3, 8, 390, 391, 0, 0],
['Aegon', 1, 1, 2, 1, 2, 393, 394, 0, 0],
['AEON', 1, 1, 3, 5, 14, 396, 397, 0, 0],
['Aetna', 1, 1, 1, 8, 19, 399, 400, 401, 0],
['AEX AMSTERDAM', 1, 2, 6, 0, 0, 1, 252, 2, 0],
['Agora', 1, 1, 4, 5, 12, 1779, 1780, 1781, 0],
['Air France-KLM Group', 1, 1, 2, 5, 13, 402, 403, 404, 0],
['Aisin Seiki', 1, 1, 3, 2, 5, 405, 406, 0, 0],
['Akbank TAS', 1, 1, 4, 1, 1, 1821, 1822, 0, 0],
['Aksigorta', 1, 1, 4, 1, 2, 1824, 0, 0, 0],
['Akzo Nobel', 1, 1, 2, 6, 16, 408, 409, 0, 0],
['Alcatel-Lucent', 1, 1, 2, 9, 21, 411, 412, 413, 0],
['Alcoa', 1, 1, 1, 3, 7, 414, 415, 416, 0],
['Allianz', 1, 1, 2, 1, 2, 417, 418, 419, 0],
['Allstate', 1, 1, 1, 1, 2, 420, 421, 422, 0],
['Alstom', 1, 1, 2, 3, 8, 423, 424, 0, 0],
['Altria Group', 1, 1, 1, 2, 4, 426, 427, 428, 0],
['Aluminum Corp. of China', 1, 1, 3, 3, 7, 429, 430, 0, 0],
['América Móvil', 1, 1, 1, 7, 18, 432, 433, 0, 0],
['American Express', 1, 1, 1, 1, 3, 435, 436, 437, 0],
['American International Group', 1, 1, 1, 1, 2, 438, 439, 440, 0],
['AmerisourceBergen', 1, 1, 1, 5, 14, 441, 442, 443, 0],
['AMR', 1, 1, 1, 5, 13, 444, 445, 446, 0],
['Anadolu Efes Biracilik ce Malt Sanayii', 1, 1, 4, 2, 6, 1827, 1828, 0, 0],
['Anglo American', 1, 1, 2, 6, 15, 447, 448, 449, 0],
['Apple', 1, 1, 1, 9, 21, 450, 451, 452, 0],
['Arcandor', 1, 1, 2, 5, 14, 453, 454, 0, 0],
['Arcelik', 1, 1, 4, 2, 4, 1830, 1831, 0, 0],
['ArcelorMittal', 1, 1, 2, 3, 7, 456, 457, 0, 0],
['Archer Daniels Midland', 1, 1, 1, 2, 6, 378, 460, 461, 0],
['Asseco Poland', 1, 1, 4, 9, 21, 1782, 1783, 1784, 0],
['Assicurazioni Generali', 1, 1, 2, 1, 2, 462, 463, 464, 0],
['AstraZeneca', 1, 1, 2, 8, 20, 465, 466, 467, 0],
['Asustek Computer', 1, 1, 4, 9, 21, 468, 469, 0, 0],
['Asya Katilim Bankasi', 1, 1, 4, 1, 1, 1833, 1834, 0, 0],
['AT&T', 1, 1, 1, 7, 17, 471, 472, 473, 0],
['ATHEX GREECE', 1, 2, 6, 0, 0, 3, 253, 0, 0],
['ATX AUSTRIA', 1, 2, 6, 0, 0, 5, 254, 0, 0],
['AUDCAD', 2, 4, 0, 0, 0, 7, 255, 8, 0],
['AUDCHF', 2, 4, 0, 0, 0, 9, 256, 10, 0],
['AUDJPY', 2, 3, 0, 0, 0, 11, 257, 12, 0],
['AUDNZD', 2, 4, 0, 0, 0, 13, 258, 14, 0],
['AUDSEK', 2, 4, 0, 0, 0, 15, 259, 16, 0],
['AUDUSD', 2, 3, 0, 0, 0, 17, 260, 18, 0],
['Australia & New Zealand Banking', 1, 1, 3, 1, 1, 474, 475, 476, 0],
['AutoNation', 1, 1, 1, 3, 8, 477, 478, 479, 0],
['Aviva', 1, 1, 2, 1, 2, 480, 481, 482, 0],
['AXA', 1, 1, 2, 1, 2, 19, 261, 20, 0],
['BAE Systems', 1, 1, 2, 3, 8, 485, 486, 487, 0],
['Banco Bilbao Vizcaya Argentaria', 1, 1, 2, 1, 1, 0, 0, 0, 0],
['Banco Bradesco', 1, 1, 1, 1, 1, 491, 492, 0, 0],
['Banco do Brasil', 1, 1, 4, 1, 1, 0, 0, 0, 0],
['Bank of America Corp.', 1, 1, 1, 1, 1, 497, 498, 499, 0],
['Bank of China', 1, 1, 3, 1, 1, 500, 501, 0, 0],
['Bank of Ireland Group', 1, 1, 2, 1, 1, 0, 0, 0, 0],
['Bank of Montreal', 1, 1, 1, 1, 1, 506, 507, 508, 0],
['Bank of Nova Scotia', 1, 1, 1, 1, 1, 509, 510, 511, 0],
['Bank Pekao', 1, 1, 4, 1, 1, 1656, 1657, 1658, 0],
['Bank Zachodny WBK', 1, 1, 4, 1, 1, 1785, 1786, 0, 0],
['Barclays', 1, 1, 2, 1, 1, 512, 513, 514, 0],
['BASF', 1, 1, 2, 10, 24, 515, 516, 517, 0],
['Bayer', 1, 1, 2, 8, 20, 518, 519, 520, 0],
['BEL 20 BELGIUM', 1, 2, 6, 0, 0, 21, 262, 0, 0],
['Berkshire Hathaway', 1, 1, 1, 1, 3, 521, 522, 523, 0],
['Best Buy', 1, 1, 1, 5, 14, 524, 525, 526, 0],
['Bharat Petroleum', 1, 1, 4, 10, 24, 527, 528, 0, 0],
['BHP Billiton', 1, 1, 3, 6, 15, 530, 531, 532, 0],
['BIM Birlesik Magalazar', 1, 1, 4, 5, 14, 1836, 1837, 0, 0],
['Bioton', 1, 1, 4, 8, 20, 1788, 1789, 0, 0],
['BMW', 1, 1, 2, 2, 5, 533, 534, 535, 0],
['BNP PARIBAS', 1, 1, 2, 1, 1, 0, 0, 0, 0],
['Boeing', 1, 1, 1, 3, 8, 538, 539, 0, 0],
['Bombardier', 1, 1, 1, 3, 8, 541, 542, 543, 0],
['Bouygues', 1, 1, 2, 3, 7, 544, 545, 546, 0],
['BOVESPA BRASIL', 1, 2, 8, 0, 0, 25, 264, 26, 0],
['BP', 1, 1, 2, 10, 24, 1914, 1915, 1916, 0],
['BRE Bank', 1, 1, 4, 1, 1, 1659, 1660, 1661, 0],
['Bridgestone', 1, 1, 3, 2, 5, 549, 550, 0, 0],
['Bristol-Myers Squibb', 1, 1, 1, 8, 20, 552, 553, 554, 0],
['British Airways', 1, 1, 2, 5, 13, 555, 556, 557, 0],
['British American Tobacco', 1, 1, 2, 2, 4, 558, 559, 560, 0],
['BT', 1, 1, 2, 7, 17, 561, 562, 563, 0],
['Bunge', 1, 1, 1, 2, 6, 564, 565, 0, 0],
['BUX', 1, 2, 8, 0, 0, 29, 266, 30, 0],
['CAC 40', 1, 2, 6, 0, 0, 31, 267, 32, 0],
['CADCHF', 2, 4, 0, 0, 0, 33, 268, 34, 0],
['CADJPY', 2, 4, 0, 0, 0, 35, 269, 36, 0],
['CANADA S&P', 1, 2, 5, 0, 0, 37, 270, 0, 0],
['Canadian Imperial Bank of Commerce', 1, 1, 1, 1, 1, 567, 568, 569, 0],
['Canon', 1, 1, 3, 9, 21, 570, 571, 0, 0],
['Capital One Financial', 1, 1, 1, 1, 1, 573, 574, 575, 0],
['Cardinal Health', 1, 1, 1, 5, 14, 576, 577, 578, 0],
['Carrefour', 1, 1, 2, 5, 14, 579, 580, 581, 0],
['Carso Global Telecom', 1, 1, 4, 7, 17, 0, 0, 0, 0],
['Caterpillar', 1, 1, 1, 3, 8, 585, 586, 587, 0],
['Cathay Financial Holdings', 1, 1, 4, 1, 2, 588, 589, 0, 0],
['CATTLE LIVE', 3, 6, 0, 0, 0, 39, 271, 40, 0],
['CECEXEUR Index', 1, 2, 8, 0, 0, 1909, 1910, 0, 0],
['Cemex', 1, 1, 1, 3, 7, 591, 592, 593, 0],
['Central European Media Enterprises', 1, 1, 4, 5, 12, 1662, 1663, 0, 0],
['Centrica', 1, 1, 2, 4, 10, 594, 595, 596, 0],
['Cepsa', 1, 1, 2, 10, 24, 597, 598, 599, 0],
['Cersanit', 1, 1, 4, 3, 7, 1791, 1792, 1793, 0],
['CEZ AS Pol', 1, 1, 4, 4, 11, 1794, 1795, 0, 0],
['CEZ', 1, 1, 4, 4, 11, 1665, 1666, 1667, 0],
['CHEVRON', 1, 1, 1, 10, 24, 41, 272, 42, 0],
['CHFJPY', 2, 3, 0, 0, 0, 43, 273, 44, 0],
['CHFNZD', 2, 4, 0, 0, 0, 45, 274, 46, 0],
['CHILE IPSA', 1, 2, 8, 0, 0, 0, 0, 0, 0],
['China Communications Construction', 1, 1, 3, 3, 7, 602, 603, 0, 0],
['China Construction Bank', 1, 1, 3, 1, 1, 605, 606, 0, 0],
['China Life Insurance', 1, 1, 3, 1, 2, 608, 609, 0, 0],
['China National Offshore Oil', 1, 1, 3, 10, 24, 611, 612, 0, 0],
['China Railway Construction', 1, 1, 3, 3, 7, 614, 615, 0, 0],
['China Railway Group', 1, 1, 3, 3, 8, 617, 618, 0, 0],
['China Telecommunications', 1, 1, 3, 7, 17, 0, 0, 0, 0],
['Christian Dior', 1, 1, 2, 2, 4, 623, 624, 625, 0],
['Chubu Electric Power', 1, 1, 3, 4, 11, 626, 627, 0, 0],
['Cigna', 1, 1, 1, 8, 19, 629, 630, 631, 0],
['Cisco Systems', 1, 1, 1, 9, 21, 632, 633, 634, 0],
['CITIGROUP', 1, 1, 1, 1, 1, 49, 276, 50, 0],
['CNP Assurances', 1, 1, 2, 1, 2, 637, 638, 639, 0],
['Coca-Cola Enterprises', 1, 1, 1, 2, 6, 643, 644, 645, 0],
['Coca-Cola', 1, 1, 1, 2, 6, 640, 641, 642, 0],
['COCOA', 3, 6, 0, 0, 0, 51, 277, 52, 0],
['COFFEE', 3, 6, 0, 0, 0, 53, 278, 54, 0],
['Comcast', 1, 1, 1, 7, 17, 646, 647, 648, 0],
['Commerzbank', 1, 1, 2, 1, 1, 649, 650, 651, 0],
['Commonwealth Bank of Australia', 1, 1, 3, 1, 1, 652, 653, 654, 0],
['Compass Group', 1, 1, 2, 2, 6, 655, 656, 657, 0],
['Comstar United Telesystems OJSC', 1, 1, 4, 7, 17, 1716, 1717, 0, 0],
['CONOCO PHILLIPS', 1, 1, 1, 10, 24, 55, 279, 56, 0],
['Constellation Energy', 1, 1, 1, 4, 11, 659, 660, 661, 0],
['Continental', 1, 1, 1, 2, 5, 662, 663, 664, 0],
['COPPER', 3, 8, 0, 0, 0, 57, 280, 58, 0],
['CORN', 3, 6, 0, 0, 0, 59, 281, 60, 0],
['Cosmo Oil', 1, 1, 3, 10, 24, 665, 666, 0, 0],
['Costco Wholesale', 1, 1, 1, 5, 14, 668, 669, 670, 0],
['COTTON', 3, 6, 0, 0, 0, 61, 282, 62, 0],
['Crédit Agricole', 1, 1, 2, 1, 1, 671, 672, 0, 0],
['Crédit Industriel & Commercial', 1, 1, 2, 1, 1, 674, 675, 676, 0],
['Credit Suisse', 1, 1, 2, 1, 1, 677, 678, 679, 0],
['CRH', 1, 1, 2, 3, 7, 680, 681, 682, 0],
['CVRD', 1, 1, 1, 6, 15, 683, 684, 0, 0],
['CVS Caremark', 1, 1, 1, 5, 14, 686, 687, 688, 0],
['Cyfrowy Polsat', 1, 1, 4, 5, 12, 1797, 1798, 0, 0],
['DAIMLER', 1, 1, 2, 2, 5, 63, 283, 64, 0],
['Danske Bank Group', 1, 1, 2, 1, 1, 691, 692, 693, 0],
['DAX', 1, 2, 6, 0, 0, 65, 284, 66, 0],
['Deere', 1, 1, 1, 3, 8, 694, 695, 696, 0],
['Delhaize Group', 1, 1, 2, 5, 14, 697, 698, 0, 0],
['Dell', 1, 1, 1, 9, 21, 700, 701, 702, 0],
['Delphi', 1, 1, 1, 2, 5, 703, 704, 0, 0],
['Delta Air Lines', 1, 1, 1, 5, 13, 706, 707, 0, 0],
['Denso', 1, 1, 3, 2, 5, 709, 710, 0, 0],
['Deutsche Bank', 1, 1, 2, 1, 1, 712, 713, 714, 0],
['Deutsche Post', 1, 1, 2, 3, 8, 715, 716, 0, 0],
['Deutsche Telekom', 1, 1, 2, 7, 17, 718, 719, 720, 0],
['DEXIA GROUP', 1, 1, 2, 1, 1, 67, 285, 0, 0],
['DirecTV Group', 1, 1, 1, 5, 12, 723, 724, 0, 0],
['Dogan Sirketler Grubu Holdings', 1, 1, 4, 10, 24, 1839, 1840, 0, 0],
['Dogan Yayin Holding', 1, 1, 4, 5, 12, 1842, 1843, 0, 0],
['Dow Chemical', 1, 1, 1, 6, 16, 726, 727, 728, 0],
['DOW JONES', 1, 2, 5, 0, 0, 69, 286, 70, 1637],
['DuPont', 1, 1, 1, 8, 20, 729, 730, 731, 0],
['E.ON', 1, 1, 2, 4, 11, 732, 379, 734, 0],
['E.ON', 1, 1, 2, 4, 11, 732, 733, 734, 0],
['EADS', 1, 1, 2, 3, 8, 735, 736, 737, 0],
['East Japan Railway', 1, 1, 3, 5, 13, 738, 739, 0, 0],
['Egis', 1, 1, 4, 8, 20, 1668, 1669, 1670, 0],
['Eiffage', 1, 1, 2, 3, 7, 741, 742, 743, 0],
['Électricité de France', 1, 1, 2, 4, 11, 744, 745, 0, 0],
['Eli Lilly', 1, 1, 1, 8, 20, 747, 748, 749, 0],
['Emerson Electric', 1, 1, 1, 3, 8, 750, 751, 752, 0],
['EnCana', 1, 1, 1, 10, 24, 753, 754, 0, 0],
['Endesa', 1, 1, 2, 4, 10, 756, 757, 758, 0],
['Enel', 1, 1, 2, 4, 11, 759, 760, 0, 0],
['Energie Baden-Württemberg', 1, 1, 2, 4, 11, 762, 763, 0, 0],
['ENI', 1, 1, 2, 10, 24, 765, 766, 0, 0],
['Enka Insaat ve Sanayi', 1, 1, 4, 3, 7, 1845, 1846, 0, 0],
['Enterprise GP Holdings', 1, 1, 1, 10, 23, 768, 769, 0, 0],
['Eregli Demir', 1, 1, 4, 6, 15, 1848, 1849, 0, 0],
['Erste Bank', 1, 1, 2, 1, 1, 771, 772, 773, 0],
['Erste Group', 1, 1, 4, 1, 1, 1671, 1672, 0, 0],
['EURAUD', 2, 3, 0, 0, 0, 71, 287, 72, 0],
['EURCAD', 2, 3, 0, 0, 0, 73, 288, 74, 0],
['EURCHF', 2, 3, 0, 0, 0, 75, 289, 76, 0],
['EURCZK', 2, 5, 0, 0, 0, 1640, 1650, 1651, 0],
['EURGBP', 2, 3, 0, 0, 0, 77, 290, 78, 0],
['EURHUF', 2, 5, 0, 0, 0, 1638, 1652, 1653, 0],
['EURJPY', 2, 3, 0, 0, 0, 79, 291, 80, 0],
['EURNOK', 2, 4, 0, 0, 0, 81, 292, 82, 0],
['EURNZD', 2, 4, 0, 0, 0, 83, 293, 84, 0],
['EURPLN', 2, 5, 0, 0, 0, 1639, 1654, 1655, 0],
['EURSEK', 2, 4, 0, 0, 0, 85, 294, 86, 0],
['EURTRY', 2, 5, 0, 0, 0, 1710, 1711, 0, 0],
['EURUSD', 2, 3, 0, 0, 0, 87, 295, 88, 0],
['Evraz Group', 1, 1, 4, 3, 8, 1719, 1720, 0, 0],
['Exelon', 1, 1, 1, 4, 11, 774, 775, 776, 0],
['Express Scripts', 1, 1, 1, 8, 19, 777, 778, 779, 0],
['EXXON MOBIL', 1, 1, 1, 10, 24, 89, 296, 90, 0],
['Fannie Mae', 1, 1, 1, 1, 3, 782, 783, 784, 0],
['FedEx', 1, 1, 1, 3, 8, 785, 786, 787, 0],
['Ferrovial', 1, 1, 2, 3, 7, 856, 857, 858, 0],
['Fiat', 1, 1, 2, 2, 5, 788, 789, 790, 0],
['Finmeccanica', 1, 1, 2, 3, 8, 791, 792, 793, 0],
['Flextronics International', 1, 1, 1, 9, 21, 794, 795, 796, 0],
['Fluor', 1, 1, 1, 3, 7, 797, 798, 799, 0],
['Fomento de Construcciones', 1, 1, 2, 3, 7, 800, 801, 802, 0],
['Foncičre Euris', 1, 1, 2, 5, 14, 803, 804, 0, 0],
['FORD MOTOR', 1, 1, 1, 2, 5, 91, 297, 92, 0],
['Formosa Petrochemical', 1, 1, 3, 10, 24, 808, 809, 0, 0],
['FORTIS', 1, 1, 2, 1, 1, 93, 298, 0, 0],
['France Télécom', 1, 1, 2, 7, 17, 813, 814, 815, 0],
['Freddie Mac', 1, 1, 1, 1, 3, 816, 817, 0, 0],
['Freeport-McMoRan Copper & Gold', 1, 1, 1, 6, 15, 819, 820, 821, 0],
['FTSE 100', 1, 2, 6, 0, 0, 95, 299, 96, 0],
['Fujifilm Holdings', 1, 1, 3, 9, 21, 822, 823, 0, 0],
['Fujitsu', 1, 1, 3, 9, 21, 825, 826, 0, 0],
['Galp Energia', 1, 1, 2, 10, 24, 0, 0, 0, 0],
['Gazprom Neft JSC', 1, 1, 4, 10, 24, 1725, 1726, 0, 0],
['Gazprom', 1, 1, 4, 10, 24, 1722, 1723, 1724, 0],
['GBPAUD', 2, 4, 0, 0, 0, 97, 300, 98, 0],
['GBPCAD', 2, 4, 0, 0, 0, 99, 301, 100, 0],
['GBPCHF', 2, 3, 0, 0, 0, 101, 302, 102, 0],
['GBPJPY', 2, 3, 0, 0, 0, 103, 303, 104, 0],
['GBPNOK', 2, 4, 0, 0, 0, 105, 304, 106, 0],
['GBPNZD', 2, 4, 0, 0, 0, 107, 305, 108, 0],
['GBPSEK', 2, 4, 0, 0, 0, 109, 306, 110, 0],
['GBPUSD', 2, 3, 0, 0, 0, 111, 307, 112, 0],
['General Dynamics', 1, 1, 1, 3, 8, 834, 835, 836, 0],
['GENERAL ELECTRIC', 1, 1, 1, 4, 11, 113, 308, 114, 0],
['GENERAL MOTORS', 1, 1, 1, 2, 5, 0, 0, 0, 0],
['George Weston', 1, 1, 1, 5, 14, 841, 842, 843, 0],
['Getin Holding', 1, 1, 4, 1, 1, 1800, 1801, 0, 0],
['GlaxoSmithKline', 1, 1, 2, 8, 20, 844, 845, 846, 0],
['Globe Trade Centre', 1, 1, 4, 1, 3, 1803, 1804, 0, 0],
['GOLD', 3, 9, 0, 0, 0, 117, 310, 118, 0],
['Goldman Sachs Group', 1, 1, 1, 1, 3, 847, 848, 849, 0],
['Goodyear Tire & Rubber', 1, 1, 1, 2, 5, 850, 851, 852, 0],
['Groupe Danone', 1, 1, 2, 2, 6, 853, 854, 855, 0],
['Grupa Lotos', 1, 1, 4, 10, 24, 1806, 1807, 0, 0],
['GS Holdings', 1, 1, 3, 10, 23, 859, 860, 0, 0],
['Haci Omer Sabanci', 1, 1, 4, 1, 3, 1851, 1852, 0, 0],
['HANG SENG', 1, 2, 7, 0, 0, 119, 311, 120, 0],
['Hanwha', 1, 1, 3, 3, 8, 862, 863, 0, 0],
['Hartford Financial Services', 1, 1, 1, 1, 2, 865, 866, 867, 0],
['HBOS', 1, 1, 2, 1, 1, 868, 869, 0, 0],
['HEATING OIL', 3, 7, 0, 0, 0, 121, 312, 122, 0],
['Heineken Holding', 1, 1, 2, 2, 6, 871, 872, 0, 0],
['Henkel', 1, 1, 2, 2, 4, 874, 875, 876, 0],
['Hess', 1, 1, 1, 10, 24, 877, 878, 879, 0],
['Hewlett-Packard', 1, 1, 1, 9, 21, 880, 881, 882, 0],
['Hindustan Petroleum', 1, 1, 4, 10, 24, 883, 884, 0, 0],
['Hitachi', 1, 1, 3, 9, 21, 886, 887, 0, 0],
['Hochtief', 1, 1, 2, 3, 7, 889, 890, 0, 0],
['Holcim', 1, 1, 2, 3, 7, 892, 893, 0, 0],
['Home Depot', 1, 1, 1, 5, 14, 895, 896, 897, 0],
['Hon Hai Precision Industry', 1, 1, 4, 9, 21, 898, 899, 0, 0],
['Honda Motor', 1, 1, 3, 2, 5, 901, 902, 0, 0],
['Honeywell International', 1, 1, 1, 3, 8, 904, 905, 906, 0],
['HSBC HOLDINGS', 1, 1, 2, 1, 1, 123, 313, 124, 0],
['Humana', 1, 1, 1, 8, 19, 909, 910, 911, 0],
['Hutchison Whampoa', 1, 1, 3, 5, 14, 912, 913, 0, 0],
['Hyundai Heavy Industries', 1, 1, 3, 3, 8, 915, 916, 0, 0],
['Hyundai Motor', 1, 1, 3, 2, 5, 918, 919, 0, 0],
['Iberdrola', 1, 1, 2, 4, 11, 921, 922, 923, 0],
['IBEX 35', 1, 2, 6, 0, 0, 125, 314, 126, 0],
['Idemitsu Kosan', 1, 1, 3, 10, 24, 924, 925, 0, 0],
['Inbev', 1, 1, 2, 2, 6, 927, 928, 0, 0],
['Indian Oil', 1, 1, 4, 10, 24, 930, 931, 0, 0],
['Industrial & Commercial Bank of China', 1, 1, 3, 1, 1, 933, 934, 0, 0],
['ING GROUP', 1, 1, 2, 1, 1, 127, 315, 128, 0],
['Ingram Micro', 1, 1, 1, 5, 14, 938, 939, 940, 0],
['Intel', 1, 1, 1, 9, 21, 941, 942, 943, 0],
['International Business Machines', 1, 1, 1, 9, 22, 944, 945, 946, 0],
['International Paper', 1, 1, 1, 2, 4, 947, 948, 949, 0],
['Intesa Sanpaolo', 1, 1, 2, 1, 1, 950, 951, 952, 0],
['Isuzu Motors', 1, 1, 3, 2, 5, 953, 954, 0, 0],
['Itaúsa-Investimentos Itaú', 1, 1, 4, 1, 1, 956, 957, 0, 0],
['Itochu', 1, 1, 3, 3, 8, 959, 960, 0, 0],
['J. Sainsbury', 1, 1, 2, 5, 14, 962, 963, 964, 0],
['J.C. Penney', 1, 1, 1, 5, 14, 965, 966, 967, 0],
['J.P. Morgan Chase & Co.', 1, 1, 1, 1, 3, 968, 969, 970, 0],
['JAKARTA COMPOSITE INDEX', 1, 2, 8, 0, 0, 129, 316, 0, 0],
['Japan Airlines', 1, 1, 3, 5, 13, 971, 972, 0, 0],
['Japan Tobacco', 1, 1, 3, 2, 4, 974, 975, 0, 0],
['Jardine Matheson', 1, 1, 3, 3, 8, 0, 0, 0, 0],
['JFE Holdings', 1, 1, 3, 3, 7, 980, 981, 0, 0],
['Johnson & Johnson', 1, 1, 1, 2, 4, 983, 984, 985, 0],
['Johnson Controls', 1, 1, 1, 2, 5, 986, 987, 988, 0],
['Kansai Electric Power', 1, 1, 3, 4, 11, 989, 990, 0, 0],
['Kardemir Karabuk', 1, 1, 4, 6, 15, 1854, 1855, 0, 0],
['KBC Group', 1, 1, 2, 1, 1, 992, 993, 0, 0],
['KDDI', 1, 1, 3, 7, 18, 995, 996, 0, 0],
['KGHM', 1, 1, 4, 6, 15, 1674, 1675, 1676, 0],
['Kimberly-Clark', 1, 1, 1, 2, 4, 998, 999, 1000, 0],
['Kingfisher', 1, 1, 2, 5, 14, 1001, 1002, 1003, 0],
['Kobe Steel', 1, 1, 3, 3, 7, 1004, 1005, 0, 0],
['Koç Holding', 1, 1, 4, 1, 3, 1007, 1008, 0, 0],
['Komatsu', 1, 1, 3, 3, 8, 1010, 1011, 0, 0],
['Komercni Bank', 1, 1, 4, 1, 1, 1677, 1678, 1679, 0],
['Korea Electric Power', 1, 1, 3, 4, 11, 1013, 1014, 0, 0],
['KOREAN KOSPI', 1, 2, 7, 0, 0, 131, 317, 132, 0],
['Koza Anadolu Metal', 1, 1, 4, 3, 8, 0, 1858, 0, 0],
['Kraft Foods', 1, 1, 1, 2, 6, 1016, 1017, 0, 0],
['Kroger', 1, 1, 1, 5, 14, 1019, 1020, 1021, 0],
['KT', 1, 1, 3, 7, 17, 1022, 1023, 0, 0],
['L.M. Ericsson', 1, 1, 2, 9, 21, 0, 0, 0, 0],
['Lafarge', 1, 1, 2, 3, 7, 1028, 1029, 1030, 0],
['LEAN HOG', 3, 6, 0, 0, 0, 133, 318, 134, 0],
['Legal & General Group', 1, 1, 2, 1, 2, 1031, 1032, 1033, 0],
['Lenovo Group', 1, 1, 3, 9, 21, 1034, 1035, 0, 0],
['LG', 1, 1, 3, 9, 21, 1037, 1038, 0, 0],
['LIGHT CRUDE OIL', 3, 7, 0, 0, 0, 135, 319, 136, 0],
['Linde Group', 1, 1, 2, 6, 16, 1040, 1041, 1042, 0],
['Lloyds TSB Group', 1, 1, 2, 1, 1, 1043, 1044, 1045, 0],
['Lockheed Martin', 1, 1, 1, 3, 8, 1046, 1047, 1048, 0],
['Loews', 1, 1, 1, 1, 2, 1049, 1050, 1051, 0],
['Lowe\'s', 1, 1, 1, 5, 14, 1052, 1053, 1054, 0],
['Lufthansa Group', 1, 1, 2, 5, 13, 1055, 1056, 1057, 0],
['Lukoil', 1, 1, 4, 10, 24, 1728, 1729, 0, 0],
['LUMBER', 3, 6, 0, 0, 0, 137, 320, 138, 0],
['M', 1, 1, 1, 9, 21, 1061, 1062, 1063, 0],
['Macy\'s', 1, 1, 1, 5, 14, 1064, 1065, 1066, 0],
['Magna International', 1, 1, 1, 2, 5, 1067, 1068, 1069, 0],
['Magnitogorsk Iron', 1, 1, 4, 6, 15, 1731, 1732, 0, 0],
['Magyar Telekom ', 1, 1, 4, 7, 17, 1680, 1681, 1682, 0],
['MAN Group', 1, 1, 2, 2, 5, 1070, 1071, 1072, 0],
['Manpower', 1, 1, 1, 3, 8, 1073, 1074, 1075, 0],
['Manulife Financial', 1, 1, 1, 1, 2, 1076, 1077, 1078, 0],
['Mapfre Group', 1, 1, 2, 1, 2, 1079, 1080, 0, 0],
['Marathon Oil', 1, 1, 1, 10, 24, 1082, 1083, 1084, 0],
['Marks & Spencer', 1, 1, 2, 5, 14, 1085, 1086, 1087, 0],
['Marubeni', 1, 1, 3, 3, 8, 1088, 1089, 0, 0],
['Mazda Motor', 1, 1, 3, 2, 5, 1091, 1092, 0, 0],
['McDonald\'s', 1, 1, 1, 2, 6, 1094, 1095, 1096, 0],
['McKesson', 1, 1, 1, 5, 14, 1097, 1098, 1099, 0],
['Medco Health Solutions', 1, 1, 1, 8, 19, 1100, 1101, 0, 0],
['Mediceo Paltac Holdings', 1, 1, 3, 5, 14, 1103, 1104, 0, 0],
['Merck', 1, 1, 1, 8, 20, 1106, 1107, 1108, 0],
['MERVAL ARGENTINA', 1, 2, 8, 0, 0, 139, 321, 0, 0],
['MetLife', 1, 1, 1, 1, 2, 1109, 1110, 1111, 0],
['Metro', 1, 1, 2, 5, 14, 1112, 1113, 1114, 0],
['MEXICO BOLSA', 1, 2, 8, 0, 0, 141, 322, 142, 0],
['Michelin', 1, 1, 2, 2, 5, 1115, 1116, 1117, 0],
['Microsoft', 1, 1, 1, 9, 22, 1118, 1119, 1120, 0],
['Mitsubishi Chemical Holdings', 1, 1, 3, 6, 16, 1124, 1125, 0, 0],
['Mitsubishi Electric', 1, 1, 3, 9, 21, 1127, 1128, 0, 0],
['Mitsubishi Heavy Industries', 1, 1, 3, 3, 8, 1130, 1131, 0, 0],
['Mitsubishi Motors', 1, 1, 3, 2, 5, 1133, 1134, 0, 0],
['Mitsubishi UFJ Financial Group', 1, 1, 3, 1, 1, 1136, 1137, 0, 0],
['Mitsubishi', 1, 1, 3, 3, 8, 1121, 1122, 0, 0],
['Mitsui OSK Lines', 1, 1, 3, 3, 8, 1142, 1143, 0, 0],
['Mitsui Sumitomo Insurance', 1, 1, 3, 1, 2, 1145, 1146, 0, 0],
['Mitsui', 1, 1, 3, 3, 8, 1139, 1140, 0, 0],
['Mizuho Financial Group', 1, 1, 3, 1, 1, 1148, 1149, 0, 0],
['MMC Norilsk Nickel', 1, 1, 4, 6, 15, 1734, 1735, 0, 0],
['MOL', 1, 1, 4, 10, 24, 1683, 1684, 1685, 0],
['Morgan Stanley', 1, 1, 1, 1, 3, 1151, 1152, 1153, 0],
['Motorola', 1, 1, 1, 9, 21, 1154, 1155, 1156, 0],
['Munich Re Group', 1, 1, 2, 1, 2, 1157, 1158, 1159, 0],
['Murphy Oil', 1, 1, 1, 10, 24, 1160, 1161, 1162, 0],
['NASDAQ COMPOSITE', 1, 2, 5, 0, 0, 143, 323, 144, 0],
['National Australia Bank', 1, 1, 3, 1, 1, 1163, 1164, 1165, 0],
['National Grid', 1, 1, 2, 4, 11, 1166, 1167, 0, 0],
['NATURAL GAS', 3, 7, 0, 0, 0, 145, 324, 146, 0],
['NEC', 1, 1, 3, 9, 21, 1169, 1170, 0, 0],
['Nestlé', 1, 1, 2, 2, 6, 1172, 1173, 0, 0],
['New World Resources', 1, 1, 4, 6, 15, 1686, 1687, 0, 0],
['News Corp.', 1, 1, 1, 5, 12, 1175, 1176, 1177, 0],
['NIKKEI 225', 1, 2, 7, 0, 0, 147, 325, 148, 0],
['Nippon Mining Holdings', 1, 1, 3, 10, 24, 1178, 1179, 0, 0],
['Nippon Oil', 1, 1, 3, 10, 24, 1181, 1182, 0, 0],
['Nippon Steel', 1, 1, 3, 3, 7, 1184, 1185, 0, 0],
['Nippon Telegraph & Telephone', 1, 1, 3, 7, 17, 0, 1188, 0, 0],
['Nippon Yusen', 1, 1, 3, 3, 8, 1190, 1191, 0, 0],
['Nissan Motor', 1, 1, 3, 2, 5, 1193, 1194, 0, 0],
['Noble Group', 1, 1, 3, 3, 8, 1196, 1197, 1198, 0],
['NOKCAD', 2, 4, 0, 0, 0, 149, 326, 150, 0],
['NOKCHF', 2, 4, 0, 0, 0, 151, 327, 152, 0],
['Nokia', 1, 1, 2, 9, 21, 1199, 1200, 1201, 0],
['NOKJPY', 2, 4, 0, 0, 0, 153, 328, 0, 0],
['Nordea Bank', 1, 1, 2, 1, 1, 1202, 1203, 1204, 0],
['Norsk Hydro', 1, 1, 2, 3, 7, 1205, 1206, 1207, 0],
['Northrop Grumman', 1, 1, 1, 3, 8, 1208, 1209, 1210, 0],
['Novartis', 1, 1, 2, 8, 20, 1211, 1212, 0, 0],
['Novatek OAO', 1, 1, 4, 10, 24, 1737, 1738, 0, 0],
['Novolipetsk Steel OAO', 1, 1, 4, 6, 15, 1740, 1741, 0, 0],
['NZDCAD', 2, 4, 0, 0, 0, 155, 329, 0, 0],
['NZDJPY', 2, 4, 0, 0, 0, 157, 330, 158, 0],
['NZDSEK', 2, 4, 0, 0, 0, 159, 331, 160, 0],
['NZDUSD', 2, 3, 0, 0, 0, 161, 332, 162, 0],
['NZX50 NEW ZEALAND', 1, 2, 7, 0, 0, 163, 333, 0, 0],
['OATS', 3, 6, 0, 0, 0, 165, 334, 166, 0],
['OBX OSLO', 1, 2, 6, 0, 0, 167, 335, 0, 0],
['Occidental Petroleum', 1, 1, 1, 10, 24, 1214, 1215, 1216, 0],
['Oil & Natural Gas', 1, 1, 4, 10, 24, 1217, 1218, 0, 0],
['Old Mutual', 1, 1, 2, 1, 2, 1220, 1221, 1222, 0],
['OMV Group', 1, 1, 2, 10, 24, 1223, 1224, 1225, 0],
['OMX COPPENHAGEN', 1, 2, 6, 0, 0, 169, 336, 0, 0],
['OMX HELSINKI', 1, 2, 6, 0, 0, 171, 337, 0, 0],
['OMX STOCKHOLM', 1, 2, 6, 0, 0, 173, 338, 0, 0],
['Onex', 1, 1, 1, 3, 8, 1226, 1227, 1228, 0],
['Oracle', 1, 1, 1, 9, 22, 1229, 1230, 1231, 0],
['ORANGE JUICE', 3, 6, 0, 0, 0, 175, 339, 176, 0],
['OTP', 1, 1, 4, 1, 1, 1689, 1690, 1691, 0],
['PALLADIUM', 3, 9, 0, 0, 0, 177, 340, 178, 0],
['PANASONIC', 1, 1, 3, 9, 21, 1232, 1233, 0, 0],
['PBG', 1, 1, 4, 3, 7, 1809, 1810, 0, 0],
['PepsiCo', 1, 1, 1, 2, 6, 1235, 1236, 1237, 0],
['Petkim Petrokimya Holding', 1, 1, 4, 6, 16, 1908, 1861, 0, 0],
['Petro-Canada', 1, 1, 1, 10, 24, 1238, 1239, 1240, 0],
['Peugeot', 1, 1, 2, 2, 5, 1241, 1242, 1243, 0],
['Pfizer', 1, 1, 1, 8, 20, 1244, 1245, 1246, 0],
['PGN', 1, 1, 4, 10, 24, 1692, 1693, 0, 0],
['Pharmstandard', 1, 1, 4, 8, 20, 1743, 1744, 0, 0],
['PKN Orlen', 1, 1, 4, 10, 24, 1247, 1248, 1249, 0],
['PKO Bank', 1, 1, 4, 1, 1, 1695, 1696, 0, 0],
['Plains All American Pipeline', 1, 1, 1, 1, 2, 1250, 1251, 1252, 0],
['PLATINUM', 3, 9, 0, 0, 0, 179, 341, 180, 0],
['Polimex Mostostal', 1, 1, 4, 3, 7, 1812, 1813, 1814, 0],
['Polskie Gornictwo Naftowe i Gazonictwo', 1, 1, 4, 10, 24, 1815, 1816, 0, 0],
['Polyus Gold', 1, 1, 4, 6, 15, 1746, 1747, 0, 0],
['POSCO', 1, 1, 3, 3, 7, 1253, 1254, 0, 0],
['Power Corp. of Canada', 1, 1, 1, 1, 2, 1256, 1257, 1258, 0],
['PPR', 1, 1, 2, 5, 14, 1259, 1260, 1261, 0],
['Premafin Finanziaria', 1, 1, 2, 1, 2, 1262, 1263, 1264, 0],
['Procter & Gamble', 1, 1, 1, 2, 4, 1265, 1266, 1267, 0],
['Prudential', 1, 1, 1, 1, 3, 1268, 1269, 0, 0],
['PSEI PHILIPPINE', 1, 2, 8, 0, 0, 181, 342, 0, 0],
['PSI GERAL LISABOA', 1, 2, 6, 0, 0, 0, 0, 0, 0],
['PTT', 1, 1, 4, 10, 24, 1274, 1275, 0, 0],
['Publix Super Markets', 1, 1, 1, 5, 14, 0, 0, 0, 0],
['PX PRAGUE', 1, 2, 8, 0, 0, 185, 344, 1633, 0],
['Quanta Computer', 1, 1, 4, 9, 21, 1280, 1281, 0, 0],
['Raytheon', 1, 1, 1, 3, 8, 1283, 1284, 1285, 0],
['Reliance Industries', 1, 1, 4, 10, 24, 1286, 1287, 0, 0],
['Renault', 1, 1, 2, 2, 5, 1289, 1290, 1291, 0],
['Repsol YPF', 1, 1, 2, 10, 24, 1292, 1293, 1294, 0],
['Richter', 1, 1, 4, 8, 20, 1698, 1699, 1700, 0],
['Ricoh', 1, 1, 3, 9, 21, 1295, 1296, 0, 0],
['Rio Tinto Group', 1, 1, 2, 6, 15, 1298, 1299, 1300, 0],
['Rite Aid', 1, 1, 1, 5, 14, 1301, 1302, 1303, 0],
['Roche Group', 1, 1, 2, 8, 20, 1304, 1305, 0, 0],
['Rosneft Oil', 1, 1, 4, 10, 24, 1749, 1750, 0, 0],
['Royal Ahold', 1, 1, 2, 5, 14, 1310, 1311, 1312, 0],
['Royal Bank of Canada', 1, 1, 1, 1, 1, 1313, 1314, 1315, 0],
['Royal Bank of Scotland', 1, 1, 2, 1, 1, 1316, 1317, 1318, 0],
['ROYAL DUTCH SHELL', 1, 1, 2, 10, 24, 187, 345, 0, 0],
['Royal KPN', 1, 1, 2, 7, 17, 1321, 1322, 0, 0],
['Royal Philips Electronics', 1, 1, 2, 9, 21, 1324, 1325, 0, 0],
['RTS RUSSIA', 1, 2, 8, 0, 0, 188, 346, 189, 0],
['Rushydro', 1, 1, 4, 4, 10, 0, 1753, 0, 0],
['RWE', 1, 1, 2, 4, 10, 1327, 1328, 1329, 0],
['S&P/ASX200 AUSTRALIA', 1, 2, 7, 0, 0, 190, 347, 0, 0],
['S&P/MIB', 1, 2, 6, 0, 0, 0, 348, 0, 0],
['S&P500', 1, 2, 5, 0, 0, 194, 349, 195, 1636],
['SABMiller', 1, 1, 2, 2, 6, 1330, 1331, 1332, 0],
['Safeway', 1, 1, 1, 5, 14, 1333, 1334, 1335, 0],
['Saint-Gobain', 1, 1, 2, 3, 7, 1336, 1337, 1338, 0],
['Samsung C&T', 1, 1, 3, 3, 8, 1339, 1340, 0, 0],
['Samsung Electronics', 1, 1, 3, 9, 21, 1342, 1343, 0, 0],
['Sanofi-Aventis', 1, 1, 2, 8, 20, 1345, 1346, 1347, 0],
['Santander Central Hispano Group', 1, 1, 2, 1, 1, 1348, 1349, 1350, 0],
['Sanyo Electric', 1, 1, 3, 9, 21, 1351, 1352, 0, 0],
['Sberbank', 1, 1, 4, 1, 1, 1354, 1355, 1356, 0],
['Schlumberger', 1, 1, 1, 10, 23, 1357, 1358, 1359, 0],
['Schneider Electric', 1, 1, 2, 3, 8, 1360, 1361, 1362, 0],
['Scottish & Southern Energy', 1, 1, 2, 4, 11, 1363, 1364, 1365, 0],
['Sears Holdings', 1, 1, 1, 5, 14, 1366, 1367, 0, 0],
['SEKCAD', 2, 4, 0, 0, 0, 196, 350, 197, 0],
['SEKCHF', 2, 4, 0, 0, 0, 198, 351, 199, 0],
['Sekerbank', 1, 1, 4, 1, 1, 1863, 1864, 0, 0],
['SEKJPY', 2, 4, 0, 0, 0, 200, 352, 201, 0],
['SENSEX INDIA', 1, 2, 8, 0, 0, 202, 353, 203, 0],
['SETI THAILAND', 1, 2, 8, 0, 0, 204, 354, 0, 0],
['Seven & I Holdings', 1, 1, 3, 5, 14, 1369, 1370, 0, 0],
['Severstal', 1, 1, 4, 6, 15, 1755, 1756, 0, 0],
['SHANGHAI COMPOSITE', 1, 2, 8, 0, 0, 206, 355, 0, 0],
['Sharp', 1, 1, 3, 9, 21, 1372, 1373, 0, 0],
['Shinhan Financial Group', 1, 1, 3, 1, 3, 1375, 1376, 0, 0],
['Siemens', 1, 1, 2, 3, 9, 1378, 1379, 1380, 0],
['SILVER', 3, 9, 0, 0, 0, 208, 356, 209, 0],
['Sinochem', 1, 1, 4, 3, 8, 1381, 1382, 0, 0],
['SINOPEC', 1, 1, 3, 10, 24, 210, 357, 0, 0],
['Sistema JSFC', 1, 1, 4, 7, 17, 1758, 1759, 0, 0],
['SK Holdings', 1, 1, 3, 1, 3, 1386, 1387, 0, 0],
['Skandinaviska Enskilda Banken', 1, 1, 2, 1, 1, 0, 0, 0, 0],
['Skanska', 1, 1, 2, 3, 7, 0, 0, 0, 0],
['Société Générale', 1, 1, 2, 1, 1, 1395, 1396, 1397, 0],
['Sodexo', 1, 1, 2, 2, 6, 1398, 1399, 1400, 0],
['Softbank', 1, 1, 3, 7, 17, 1401, 1402, 0, 0],
['Sony', 1, 1, 3, 9, 21, 1404, 1405, 0, 0],
['SOYBEAN MEAL', 3, 6, 0, 0, 0, 214, 359, 215, 0],
['SOYBEAN OIL', 3, 6, 0, 0, 0, 216, 360, 217, 0],
['SOYBEAN', 3, 6, 0, 0, 0, 212, 358, 213, 0],
['Sprint Nextel', 1, 1, 1, 7, 18, 1407, 1408, 1409, 0],
['Standard Chartered Bank', 1, 1, 2, 1, 1, 1410, 1411, 1412, 0],
['Standard Life', 1, 1, 2, 1, 2, 1413, 1414, 1415, 0],
['Staples', 1, 1, 1, 5, 14, 1416, 1417, 1418, 0],
['State Bank of India', 1, 1, 4, 1, 1, 0, 0, 0, 0],
['Statoil Hydro', 1, 1, 2, 10, 24, 1422, 1423, 0, 0],
['Stora Enso', 1, 1, 2, 2, 4, 1425, 1426, 1427, 0],
['Suez', 1, 1, 2, 4, 10, 1428, 1429, 0, 0],
['SUGAR', 3, 6, 0, 0, 0, 218, 361, 219, 0],
['Sumitomo Electric Industries', 1, 1, 3, 2, 5, 1434, 1435, 0, 0],
['Sumitomo Mitsui Financial Group', 1, 1, 3, 1, 1, 1437, 1438, 0, 0],
['Sumitomo', 1, 1, 3, 3, 8, 1431, 1432, 0, 0],
['Sun Life Financial', 1, 1, 1, 1, 2, 1440, 1441, 1442, 0],
['Sunoco', 1, 1, 1, 10, 24, 1443, 1444, 1445, 0],
['Supervalu', 1, 1, 1, 5, 14, 1446, 1447, 1448, 0],
['Surgutneftegas', 1, 1, 4, 10, 24, 1761, 1762, 0, 0],
['Suzuki Motor', 1, 1, 3, 2, 5, 1452, 1453, 0, 0],
['Swiss Life', 1, 1, 2, 1, 2, 1455, 1456, 0, 0],
['SWISS MARKET', 1, 2, 6, 0, 0, 220, 362, 221, 0],
['Swiss Reinsurance', 1, 1, 2, 1, 2, 1458, 1459, 1460, 0],
['Sysco', 1, 1, 1, 5, 14, 1461, 1462, 1463, 0],
['T&D Holdings', 1, 1, 3, 1, 2, 1464, 1465, 0, 0],
['Target', 1, 1, 1, 5, 14, 1467, 1468, 1469, 0],
['Tata Steel', 1, 1, 4, 3, 7, 1470, 1471, 0, 0],
['Tatneft', 1, 1, 4, 10, 24, 1764, 1765, 1766, 0],
['TAV Havalimanlari Holding', 1, 1, 4, 3, 8, 1866, 1867, 0, 0],
['Tech Data', 1, 1, 1, 5, 14, 1473, 1474, 1475, 0],
['Tekfen Holding', 1, 1, 4, 1, 3, 1869, 1870, 0, 0],
['Telecom Italia', 1, 1, 2, 7, 17, 1476, 1477, 1478, 0],
['Telefónica', 1, 1, 2, 7, 17, 1479, 1480, 1481, 0],
['Telefonica', 1, 1, 4, 7, 17, 1701, 1702, 1703, 0],
['Telstra', 1, 1, 3, 7, 17, 1482, 1483, 1484, 0],
['Tesco', 1, 1, 2, 5, 14, 1485, 1486, 1487, 0],
['Tesoro', 1, 1, 1, 10, 24, 1488, 1489, 1490, 0],
['Thales Group', 1, 1, 2, 3, 8, 1491, 1492, 1493, 0],
['ThyssenKrupp', 1, 1, 2, 3, 8, 1494, 1495, 1496, 0],
['Time Warner', 1, 1, 1, 5, 12, 1497, 1498, 1499, 0],
['TJX', 1, 1, 1, 5, 14, 1500, 1501, 1502, 0],
['TMK OAO', 1, 1, 4, 3, 8, 1767, 1768, 0, 0],
['Tofas Turk Otomobil Fabrikasi', 1, 1, 4, 2, 5, 1872, 1873, 0, 0],
['Tokyo Electric Power', 1, 1, 3, 4, 11, 1503, 1504, 0, 0],
['TOP 40 JOHANNESBURG', 1, 2, 8, 0, 0, 222, 363, 0, 0],
['Toronto-Dominion Bank', 1, 1, 1, 1, 1, 1506, 1507, 1508, 0],
['Toshiba', 1, 1, 3, 9, 21, 1509, 1510, 0, 0],
['TOTAL', 1, 1, 2, 10, 24, 224, 364, 225, 0],
['Toyota Industries', 1, 1, 3, 2, 5, 1514, 1515, 0, 0],
['TOYOTA MOTOR', 1, 1, 3, 2, 5, 226, 365, 0, 0],
['TPSA', 1, 1, 4, 7, 17, 1704, 1705, 1706, 0],
['Travelers Cos.', 1, 1, 1, 1, 2, 1519, 1520, 1521, 0],
['TUI', 1, 1, 2, 5, 13, 1522, 1523, 1524, 0],
['Tupras Turkiye Petrol Rafine', 1, 1, 4, 10, 24, 1875, 1876, 0, 0],
['Turk Ekonomi Bankasi', 1, 1, 4, 1, 1, 1878, 1879, 0, 0],
['Turk Hava Yollari', 1, 1, 4, 5, 13, 1881, 1882, 0, 0],
['Turk Sise ve Cam Fabrikalari', 1, 1, 4, 2, 4, 1884, 1885, 0, 0],
['Turk Telekomunikasyon', 1, 1, 4, 7, 17, 1887, 1888, 0, 0],
['Turkcell Iletisim Hizmet', 1, 1, 4, 7, 17, 1890, 1891, 0, 0],
['Turkiye Garanti Bankasi', 1, 1, 4, 1, 1, 1893, 1894, 0, 0],
['Turkiye Halk Bankasi', 1, 1, 4, 1, 1, 1896, 1897, 0, 0],
['Turkiye Is Bankasi', 1, 1, 4, 1, 1, 1899, 1900, 0, 0],
['Turkiye Vakiflar Bankasi', 1, 1, 4, 1, 1, 1902, 1903, 0, 0],
['TVN', 1, 1, 4, 5, 12, 1818, 1819, 0, 0],
['Tyco International', 1, 1, 1, 9, 21, 1525, 1526, 0, 0],
['Tyson Foods', 1, 1, 1, 2, 6, 1528, 1529, 1530, 0],
['U.S. Bancorp', 1, 1, 1, 1, 1, 1531, 1532, 1533, 0],
['UAL', 1, 1, 1, 5, 13, 1534, 1535, 0, 0],
['UBS', 1, 1, 2, 1, 1, 1537, 1538, 1539, 0],
['UniCredit Group', 1, 1, 2, 1, 1, 0, 0, 0, 0],
['Unilever', 1, 1, 2, 2, 4, 1543, 1544, 0, 0],
['Unipetrol', 1, 1, 4, 10, 24, 1707, 1708, 1709, 0],
['United Parcel Service', 1, 1, 1, 3, 8, 1546, 1547, 1548, 0],
['United States Steel', 1, 1, 1, 3, 7, 1549, 1550, 1551, 0],
['United Technologies', 1, 1, 1, 3, 8, 1552, 1553, 1554, 0],
['UnitedHealth Group', 1, 1, 1, 8, 19, 1555, 1556, 1557, 0],
['Uralkali', 1, 1, 4, 6, 16, 1770, 1771, 0, 0],
['US 10Y TREASURY NOTE', 4, 10, 0, 0, 0, 228, 366, 229, 0],
['US 30Y TREASURY BOND', 4, 10, 0, 0, 0, 230, 367, 231, 0],
['US 5Y TREASURY NOTE', 4, 10, 0, 0, 0, 232, 368, 233, 0],
['USDCAD', 2, 3, 0, 0, 0, 234, 369, 235, 0],
['USDCHF', 2, 3, 0, 0, 0, 236, 370, 237, 0],
['USDCZK', 2, 5, 0, 0, 0, 1641, 1642, 1643, 0],
['USDHUF', 2, 5, 0, 0, 0, 1644, 1645, 1646, 0],
['USDJPY', 2, 3, 0, 0, 0, 238, 371, 239, 0],
['USDNOK', 2, 4, 0, 0, 0, 240, 372, 241, 0],
['USDPLN', 2, 5, 0, 0, 0, 1647, 1648, 1649, 0],
['USDSEK', 2, 4, 0, 0, 0, 242, 373, 243, 0],
['USDTRY', 2, 5, 0, 0, 0, 1713, 1714, 1715, 0],
['Valero Energy', 1, 1, 1, 10, 24, 1558, 1559, 1560, 0],
['Veolia Environnement', 1, 1, 2, 4, 10, 1912, 1913, 380, 0],
['Verizon Communications', 1, 1, 1, 7, 17, 1564, 1565, 1566, 0],
['Vinci', 1, 1, 2, 3, 7, 1567, 1568, 1569, 0],
['Vivendi', 1, 1, 2, 5, 12, 1570, 1571, 1572, 0],
['Vodafone', 1, 1, 2, 7, 18, 1573, 1574, 1575, 0],
['VOLKSWAGEN', 1, 1, 2, 2, 5, 244, 374, 245, 0],
['Volvo', 1, 1, 2, 2, 5, 1578, 1579, 1580, 0],
['VTB Bank OTSC', 1, 1, 4, 1, 1, 1773, 1774, 0, 0],
['Wachovia Corp.', 1, 1, 1, 1, 1, 1581, 0, 1583, 0],
['Walgreen', 1, 1, 1, 5, 14, 1584, 1585, 1586, 0],
['WAL-MART STORES', 1, 1, 1, 5, 14, 246, 375, 247, 0],
['Walt Disney', 1, 1, 1, 5, 12, 1589, 1590, 1591, 0],
['WellPoint', 1, 1, 1, 8, 19, 1592, 1593, 1594, 0],
['Wells Fargo', 1, 1, 1, 1, 1, 1595, 1596, 1597, 0],
['Westpac Banking', 1, 1, 3, 1, 1, 1598, 1599, 1600, 0],
['Weyerhaeuser', 1, 1, 1, 2, 4, 1601, 1602, 1603, 0],
['WHEAT', 3, 6, 0, 0, 0, 248, 376, 249, 0],
['Whirlpool', 1, 1, 1, 2, 4, 1604, 1605, 1606, 0],
['WIG WARSAW', 1, 2, 8, 0, 0, 250, 377, 0, 0],
['William Morrison Supermarkets', 1, 1, 2, 5, 14, 1607, 1608, 1609, 0],
['Wolseley', 1, 1, 2, 5, 14, 1610, 1611, 1612, 0],
['Woolworths', 1, 1, 3, 5, 14, 1613, 1614, 1615, 0],
['Woori Finance Holdings', 1, 1, 3, 1, 1, 1616, 1617, 0, 0],
['Wyeth', 1, 1, 1, 8, 20, 1619, 1620, 1621, 0],
['X5 Retail Group NV', 1, 1, 4, 5, 14, 1776, 1777, 0, 0],
['Xerox', 1, 1, 1, 9, 21, 1622, 1623, 1624, 0],
['Xstrata', 1, 1, 2, 6, 15, 1625, 1626, 0, 0],
['Yapi ve Kredi Bankasi', 1, 1, 4, 1, 1, 1905, 1906, 0, 0],
['Zurich Financial Services', 1, 1, 2, 1, 3, 1628, 1629, 1630, 0]
];


var resname = ["daily", "hourly", "weekly", "monthly"];
var simpleChartSelect;
var simpleInstrumentSelect;


function fillSimpleInstrumentSelect()
{   
    var i, n = instruments.length;
    
    simpleInstrumentSelect = '<select id="instrument"><option selected value="----">Select an instrument</option>' 
                    
    for(i = 0; i < n; i++)
    {   simpleInstrumentSelect +=
          '<option value="'
          + (i+1) + '-'
          + instruments[i][6] +'-'
          + instruments[i][7] +'-'
          + instruments[i][8] +'-'
          + instruments[i][9] + '">'
          + instruments[i][0]
          +'</option>\n';
    }
    simpleInstrumentSelect += '</select>';

}

function fillSimpleChartSelect(id)
{   
    var n = instruments.length;
    var i, r, s;
    var cs = '<select id="'+id+'"><option selected value="--">Select a chart</option>' 
                    
    for(i = 0; i < n; i++)
    {   
        for(r = 6; r <= 9; r++)
        {   
            if(instruments[i][r] > 0) 
            {   s = '<option value="' 
                    + i + '-' + r
                    + '">' 
                    + instruments[i][0] 
                    + ' - '
                    + resname[r-6] 
                    + '</option>\n';

                cs += s;
            }
        }
    }
    cs += '</select>';
    return cs;

}

function instrumentList()
{   
    if(lastMenu == 'vp') { drawInstruments(); return; }
    
    hideSheets();
    
    var n = instruments.length;
    var c1 = document.getElementById('cat1').value;
    var c2 = document.getElementById('cat2').value;
    var c3 = document.getElementById('cat3').style.display == 'none' ? 0 : document.getElementById('cat3').value;
    var c4 = document.getElementById('cat4').style.display == 'none' ? 0 : document.getElementById('cat4').value;
    var c5 = document.getElementById('cat5').style.display == 'none' ? 0 : document.getElementById('cat5').value;

    var i;    
    var cols = 3;
    var s = '<table width="100%"><tr><td width="33%"</td><td width="34%"</td><td width="33%"</td></tr>';
    var k = 0;
    var ind;
    
    switch(document.getElementById('res').value)
    {   case 'd': r = 6; break;
        case 'h': r = 7; break;
        case 'w': r = 8; break;
        case 'm': r = 9; break;
    }

    for(i = 0; i < n; i++)
    {   
        if(instruments[i][r] == 0) continue;

        if(c1 > 0 && instruments[i][1] != c1) continue;
        if(c2 > 0 && instruments[i][2] != c2) continue;
        if(c3 > 0 && instruments[i][3] != c3) continue;
        if(c4 > 0 && instruments[i][4] != c4) continue;
        if(c5 > 0 && instruments[i][5] != c5) continue;
        
        k++;
        if(k%cols == 1) s += '<tr>';
        s += '<td><a class="instrlist" onclick="diagphp('+instruments[i][r]+')">'+instruments[i][0] + '</a></td>';
        if(k%cols == 0) s += '</tr>';
    }
    if(k%cols != 0) s += '</tr>';
    s += '</tr></table>';
    
    il = document.getElementById("ilist");
    if(il) il.innerHTML = s;
    else bx.innerHTML = s;
}


function chartIndex(chartId)
{   var i, n, r;

    n = instruments.length;

    for(i = 0; i < n ; i++)
        for(r = 6; r< 10; r++)
            if(instruments[i][r] == chartId) return (i+1)+'-'
                                                  + instruments[i][6] + '-'
                                                  + instruments[i][7] + '-'
                                                  + instruments[i][8] + '-'
                                                  + instruments[i][9];
    return '--';
}

function chartId(code)
{   
    if(!code || code=='--') return 0;
    var a = code.split('-');
    return instruments[a[0]][a[1]];
}

