var alphaFund = false;
var watchlist = false;

function PopulateAlphaFund() {

    alphaFund = true;
    watchlist = false;

    document.getElementById("centertable").rows[1].style.backgroundColor = "#89DF1A"; //setAttribute("class", "row1alphafund");
    document.getElementById("centertable").rows[1].style.fontWeight = "bold";
    document.getElementById("centertable").rows[2].style.backgroundColor = "#2DA9B5";  //setAttribute("class", "row2alphafund");
    document.getElementById("centertable").rows[3].style.backgroundColor = "#218D99"; //setAttribute("class", "row3alphafund");
    document.getElementById("centertable").rows[4].style.backgroundColor = "#056A98"; //setAttribute("class", "row4alphafund");
    document.getElementById("centertable").rows[5].style.backgroundColor = "#005C85"; //setAttribute("class", "row5alphafund");

    document.getElementById("row1IFrame").src = "/AlphaAllInOneSamenvatting.aspx";
    document.getElementById("row2IFrame").src = "/AlphaProFundSamenvatting.aspx";
    document.getElementById("row3IFrame").src = "/AlphaAlgoCFDSamenvatting.aspx";
    document.getElementById("row4IFrame").src = "/AlphaFutureSamenvatting.aspx";
    document.getElementById("row5IFrame").src = "/AlphaGlobalSamenvatting.aspx";
    
    var xmlDoc = null;
    if (window.ActiveXObject) {// code for IE
        xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.async = false;
    xmlDoc.load("resources/XML/NumbersAlphaFund.xml");
    }
    else {
     var xmlhttp = new XMLHttpRequest();
     xmlhttp.open("GET","resources/XML/NumbersAlphaFund.xml",false);
     xmlhttp.send(null);
     xmlDoc = xmlhttp.responseXML;
    }/*if (document.implementation.createDocument) {// code for Mozilla, Firefox, Opera, etc.
        xmlDoc = document.implementation.createDocument("", "", null);
    }
    else {
        alert("Your browser cannot handle this script");
    }

    xmlDoc.async = false;
    xmlDoc.load("resources/XML/NumbersAlphaFund.xml");
*/
    document.getElementById("watchlist").src = "templates/templateImages/tabs_button1.png";
    document.getElementById("alphafund").src = "templates/templateImages/tabs_button2-selected.png";
    document.getElementById("dutchfunds").src = "templates/templateImages/tabs_button3.png";

    for (var i = 0; i < document.getElementById("centertable").rows.lenght; i++) {
        for (var j = 0; j < document.getElementById("centertable").rows[i].cells.lenght; j++) {
            document.getElementById("centertable").rows[i].cells[j].innerHTML = "";
        }
    }

    var AlphaFundRow1Cells = document.getElementById("centertable").rows[1].cells;
    AlphaFundRow1Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[0].childNodes[0].nodeValue;
    AlphaFundRow1Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[0].childNodes[0].nodeValue;
    AlphaFundRow1Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[0].childNodes[0].nodeValue + "%";
    AlphaFundRow1Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[0].childNodes[0].nodeValue + "%";
    AlphaFundRow1Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[0].childNodes[0].nodeValue + "%";

    var AlphaFundRow2Cells = document.getElementById("centertable").rows[2].cells;
    AlphaFundRow2Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[1].childNodes[0].nodeValue;
    AlphaFundRow2Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[1].childNodes[0].nodeValue;
    AlphaFundRow2Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[1].childNodes[0].nodeValue + "%";
    AlphaFundRow2Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[1].childNodes[0].nodeValue + "%";
    AlphaFundRow2Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[1].childNodes[0].nodeValue + "%";

    var AlphaFundRow3Cells = document.getElementById("centertable").rows[3].cells;
    AlphaFundRow3Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[2].childNodes[0].nodeValue;
    AlphaFundRow3Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[2].childNodes[0].nodeValue;
    AlphaFundRow3Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[2].childNodes[0].nodeValue + "%";
    AlphaFundRow3Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[2].childNodes[0].nodeValue + "%";
    AlphaFundRow3Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[2].childNodes[0].nodeValue + "%";

    var AlphaFundRow4Cells = document.getElementById("centertable").rows[4].cells;
    AlphaFundRow4Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[3].childNodes[0].nodeValue;
    AlphaFundRow4Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[3].childNodes[0].nodeValue;
    AlphaFundRow4Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[3].childNodes[0].nodeValue + "%";
    AlphaFundRow4Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[3].childNodes[0].nodeValue + "%";
    AlphaFundRow4Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[3].childNodes[0].nodeValue + "%";

    var AlphaFundRow5Cells = document.getElementById("centertable").rows[5].cells;
    AlphaFundRow5Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[4].childNodes[0].nodeValue;
    AlphaFundRow5Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[4].childNodes[0].nodeValue;
    AlphaFundRow5Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[4].childNodes[0].nodeValue + "%";
    AlphaFundRow5Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[4].childNodes[0].nodeValue + "%";
    AlphaFundRow5Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[4].childNodes[0].nodeValue + "%";
}

function PopulateWatchlist() {

    alphaFund = false;
    watchlist = true;

    document.getElementById("centertable").rows[1].style.backgroundColor = "#A0A0A0"; //.setAttribute("class", "row1watchlist");
    document.getElementById("centertable").rows[1].style.fontWeight = "bold";
    document.getElementById("centertable").rows[2].style.backgroundColor = "#858585"; //setAttribute("class", "row2watchlist");
    document.getElementById("centertable").rows[3].style.backgroundColor = "#6E6E6E"; //setAttribute("class", "row3watchlist");
    document.getElementById("centertable").rows[4].style.backgroundColor = "#505050"; //setAttribute("class", "row4watchlist");
    document.getElementById("centertable").rows[5].style.backgroundColor = "#444444"; //setAttribute("class", "row5watchlist");
     
    document.getElementById("row1IFrame").src = "/CaimSamenvatting.aspx";
    document.getElementById("row2IFrame").src = "/MegaSamenvatting.aspx";
    document.getElementById("row3IFrame").src = "/MellowSamenvatting.aspx";
    document.getElementById("row4IFrame").src = "/FunkadellickSamenvatting.aspx";
    document.getElementById("row5IFrame").src = "/DontworrySamenvatting.aspx";

    var xmlDoc = null;
    if (window.ActiveXObject) {// code for IE
        xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.async = false;
    xmlDoc.load("resources/XML/NumbersWatchlist.xml");
    }
    else {
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.open("GET","resources/XML/NumbersWatchlist.xml",false);
    xmlhttp.send(null);
    xmlDoc = xmlhttp.responseXML;
    } /*if (document.implementation.createDocument) {// code for Mozilla, Firefox, Opera, etc.
        xmlDoc = document.implementation.createDocument("", "", null);
    }
    else {
        alert("Your browser cannot handle this script");
    }

    xmlDoc.async = false;
    xmlDoc.load("resources/XML/NumbersWatchlist.xml");
*/
    document.getElementById("watchlist").src = "templates/templateImages/tabs_button1-selected.png";
    document.getElementById("alphafund").src = "templates/templateImages/tabs_button2.png";
    document.getElementById("dutchfunds").src = "templates/templateImages/tabs_button3.png";

    for (var i = 0; i < document.getElementById("centertable").rows.lenght; i++) {
        for (var j = 0; j < document.getElementById("centertable").rows[i].cells.lenght; j++) {
            document.getElementById("centertable").rows[i].cells[j].innerHTML = "";
        }
    }

    var watchListRow1Cells = document.getElementById("centertable").rows[1].cells;
    watchListRow1Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[0].childNodes[0].nodeValue;
    watchListRow1Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[0].childNodes[0].nodeValue;
    watchListRow1Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[0].childNodes[0].nodeValue + "%";
    watchListRow1Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[0].childNodes[0].nodeValue + "%";
    watchListRow1Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[0].childNodes[0].nodeValue + "%";

    var watchListRow2Cells = document.getElementById("centertable").rows[2].cells;
    watchListRow2Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[1].childNodes[0].nodeValue;
    watchListRow2Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[1].childNodes[0].nodeValue;
    watchListRow2Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[1].childNodes[0].nodeValue + "%";
    watchListRow2Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[1].childNodes[0].nodeValue + "%";
    watchListRow2Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[1].childNodes[0].nodeValue + "%";

    var watchListRow3Cells = document.getElementById("centertable").rows[3].cells;
    watchListRow3Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[2].childNodes[0].nodeValue;
    watchListRow3Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[2].childNodes[0].nodeValue;
    watchListRow3Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[2].childNodes[0].nodeValue + "%";
    watchListRow3Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[2].childNodes[0].nodeValue + "%";
    watchListRow3Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[2].childNodes[0].nodeValue + "%";

    var watchListRow4Cells = document.getElementById("centertable").rows[4].cells;
    watchListRow4Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[3].childNodes[0].nodeValue;
    watchListRow4Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[3].childNodes[0].nodeValue;
    watchListRow4Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[3].childNodes[0].nodeValue + "%";
    watchListRow4Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[3].childNodes[0].nodeValue + "%";
    watchListRow4Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[3].childNodes[0].nodeValue + "%";

    var watchListRow5Cells = document.getElementById("centertable").rows[5].cells;
    watchListRow5Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[4].childNodes[0].nodeValue;
    watchListRow5Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[4].childNodes[0].nodeValue;
    watchListRow5Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[4].childNodes[0].nodeValue + "%";
    watchListRow5Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[4].childNodes[0].nodeValue + "%";
    watchListRow5Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[4].childNodes[0].nodeValue + "%";
}

function PopulateDutchFund() {

    alphaFund = false;
    watchlist = false;

    document.getElementById("centertable").rows[1].style.backgroundColor = "#005C85"; //.setAttribute("class", "row1watchlist");
    document.getElementById("centertable").rows[1].style.fontWeight = "bold";
    document.getElementById("centertable").rows[2].style.backgroundColor = "#056A98"; //setAttribute("class", "row2watchlist");
    document.getElementById("centertable").rows[3].style.backgroundColor = "#1B7A9D"; //setAttribute("class", "row3watchlist");
    document.getElementById("centertable").rows[4].style.backgroundColor = "#2D8BC1"; //setAttribute("class", "row4watchlist");
    document.getElementById("centertable").rows[5].style.backgroundColor = "#66A4D6"; //setAttribute("class", "row5watchlist");

    document.getElementById("row1IFrame").src = "/Dutch1Samenvatting.aspx";
    document.getElementById("row2IFrame").src = "/Dutch2Samenvatting.aspx";
    document.getElementById("row3IFrame").src = "/Dutch3Samenvatting.aspx";
    document.getElementById("row4IFrame").src = "/Dutch4Samenvatting.aspx";
    document.getElementById("row5IFrame").src = "/Dutch5Samenvatting.aspx";

    var xmlDoc = null;
    if (window.ActiveXObject) {// code for IE
        xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
         xmlDoc.async = false;
         xmlDoc.load("resources/XML/NumbersDutchFund.xml");
    }
    else {
    var xmlhttp = new XMLHttpRequest();
    xmlhttp.open("GET","resources/XML/NumbersDutchFund.xml",false);
    xmlhttp.send(null);
    xmlDoc = xmlhttp.responseXML;
    } 
    /*if (document.implementation.createDocument) {// code for Mozilla, Firefox, Opera, etc.
        xmlDoc = document.implementation.createDocument("", "", null);
    }
    else {
        alert("Your browser cannot handle this script");
    }

    xmlDoc.async = false;
    xmlDoc.load("resources/XML/NumbersDutchFund.xml");
    */
    document.getElementById("watchlist").src = "templates/templateImages/tabs_button1.png";
    document.getElementById("alphafund").src = "templates/templateImages/tabs_button2.png";
    document.getElementById("dutchfunds").src = "templates/templateImages/tabs_button3-selected.png";

    for (var i = 0; i < document.getElementById("centertable").rows.lenght; i++) {
        for (var j = 0; j < document.getElementById("centertable").rows[i].cells.lenght; j++) {
            document.getElementById("centertable").rows[i].cells[j].innerHTML = "";
        }
    }

    var watchListRow1Cells = document.getElementById("centertable").rows[1].cells;
    watchListRow1Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[0].childNodes[0].nodeValue;
    watchListRow1Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[0].childNodes[0].nodeValue;
    watchListRow1Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[0].childNodes[0].nodeValue + "%";
    watchListRow1Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[0].childNodes[0].nodeValue + "%";
    watchListRow1Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[0].childNodes[0].nodeValue + "%";

    var watchListRow2Cells = document.getElementById("centertable").rows[2].cells;
    watchListRow2Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[1].childNodes[0].nodeValue;
    watchListRow2Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[1].childNodes[0].nodeValue;
    watchListRow2Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[1].childNodes[0].nodeValue + "%";
    watchListRow2Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[1].childNodes[0].nodeValue + "%";
    watchListRow2Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[1].childNodes[0].nodeValue + "%";

    var watchListRow3Cells = document.getElementById("centertable").rows[3].cells;
    watchListRow3Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[2].childNodes[0].nodeValue;
    watchListRow3Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[2].childNodes[0].nodeValue;
    watchListRow3Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[2].childNodes[0].nodeValue + "%";
    watchListRow3Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[2].childNodes[0].nodeValue + "%";
    watchListRow3Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[2].childNodes[0].nodeValue + "%";

    var watchListRow4Cells = document.getElementById("centertable").rows[4].cells;
    watchListRow4Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[3].childNodes[0].nodeValue;
    watchListRow4Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[3].childNodes[0].nodeValue;
    watchListRow4Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[3].childNodes[0].nodeValue + "%";
    watchListRow4Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[3].childNodes[0].nodeValue + "%";
    watchListRow4Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[3].childNodes[0].nodeValue + "%";

    var watchListRow5Cells = document.getElementById("centertable").rows[5].cells;
    watchListRow5Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[4].childNodes[0].nodeValue;
    watchListRow5Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[4].childNodes[0].nodeValue;
    watchListRow5Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[4].childNodes[0].nodeValue + "%";
    watchListRow5Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[4].childNodes[0].nodeValue + "%";
    watchListRow5Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[4].childNodes[0].nodeValue + "%";
}

/*
function PopulateAlphaFundEN() {

    alphaFund = true;
    document.getElementById("centertable").rows[1].style.backgroundColor = "#89DF1A"; //setAttribute("class", "row1alphafund");
    document.getElementById("centertable").rows[1].style.fontWeight = "bold";
    document.getElementById("centertable").rows[2].style.backgroundColor = "#2DA9B5";  //setAttribute("class", "row2alphafund");
    document.getElementById("centertable").rows[3].style.backgroundColor = "#218D99"; //setAttribute("class", "row3alphafund");
    document.getElementById("centertable").rows[4].style.backgroundColor = "#056A98"; //setAttribute("class", "row4alphafund");
    document.getElementById("centertable").rows[5].style.backgroundColor = "#005C85"; //setAttribute("class", "row5alphafund");

    document.getElementById("row1IFrame").src = "/AlphaAllInOneSummary.aspx";
    document.getElementById("row2IFrame").src = "/AlphaProSummary.aspx";
    document.getElementById("row3IFrame").src = "/AlphaAlgoSummary.aspx";
    document.getElementById("row4IFrame").src = "/AlphaFutureSummary.aspx";
    document.getElementById("row5IFrame").src = "/AlphaGlobalSummary.aspx";

    var xmlDoc = null;
    if (window.ActiveXObject) {// code for IE
        xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    }
    else if (document.implementation.createDocument) {// code for Mozilla, Firefox, Opera, etc.
        xmlDoc = document.implementation.createDocument("", "", null);
    }
    else {
        alert("Your browser cannot handle this script");
    }

    xmlDoc.async = false;
    xmlDoc.load("resources/XML/NumbersAlphaFund.xml");

    document.getElementById("watchlist").src = "templates/templateImages/tabs_button1.png";
    document.getElementById("alphafund").src = "templates/templateImages/tabs_button2-selected.png";

    var AlphaFundRow1Cells = document.getElementById("centertable").rows[1].cells;
    AlphaFundRow1Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[0].childNodes[0].nodeValue;
    AlphaFundRow1Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[0].childNodes[0].nodeValue;
    AlphaFundRow1Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[0].childNodes[0].nodeValue + "%";
    AlphaFundRow1Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[0].childNodes[0].nodeValue + "%";
    AlphaFundRow1Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[0].childNodes[0].nodeValue + "%";

    var AlphaFundRow2Cells = document.getElementById("centertable").rows[2].cells;
    AlphaFundRow2Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[1].childNodes[0].nodeValue;
    AlphaFundRow2Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[1].childNodes[0].nodeValue;
    AlphaFundRow2Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[1].childNodes[0].nodeValue + "%";
    AlphaFundRow2Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[1].childNodes[0].nodeValue + "%";
    AlphaFundRow2Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[1].childNodes[0].nodeValue + "%";

    var AlphaFundRow3Cells = document.getElementById("centertable").rows[3].cells;
    AlphaFundRow3Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[2].childNodes[0].nodeValue;
    AlphaFundRow3Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[2].childNodes[0].nodeValue;
    AlphaFundRow3Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[2].childNodes[0].nodeValue + "%";
    AlphaFundRow3Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[2].childNodes[0].nodeValue + "%";
    AlphaFundRow3Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[2].childNodes[0].nodeValue + "%";

    var AlphaFundRow4Cells = document.getElementById("centertable").rows[4].cells;
    AlphaFundRow4Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[3].childNodes[0].nodeValue;
    AlphaFundRow4Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[3].childNodes[0].nodeValue;
    AlphaFundRow4Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[3].childNodes[0].nodeValue + "%";
    AlphaFundRow4Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[3].childNodes[0].nodeValue + "%";
    AlphaFundRow4Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[3].childNodes[0].nodeValue + "%";

    var AlphaFundRow5Cells = document.getElementById("centertable").rows[5].cells;
    AlphaFundRow5Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[4].childNodes[0].nodeValue;
    AlphaFundRow5Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[4].childNodes[0].nodeValue;
    AlphaFundRow5Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[4].childNodes[0].nodeValue + "%";
    AlphaFundRow5Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[4].childNodes[0].nodeValue + "%";
    AlphaFundRow5Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[4].childNodes[0].nodeValue + "%";
}

function PopulateWatchlistEN() {

    alphaFund = false;

    document.getElementById("centertable").rows[1].style.backgroundColor = "#A0A0A0"; //.setAttribute("class", "row1watchlist");
    document.getElementById("centertable").rows[1].style.fontWeight = "bold";
    document.getElementById("centertable").rows[2].style.backgroundColor = "#858585"; //setAttribute("class", "row2watchlist");
    document.getElementById("centertable").rows[3].style.backgroundColor = "#6E6E6E"; //setAttribute("class", "row3watchlist");
    document.getElementById("centertable").rows[4].style.backgroundColor = "#505050"; //setAttribute("class", "row4watchlist");
    document.getElementById("centertable").rows[5].style.backgroundColor = "#444444"; //setAttribute("class", "row5watchlist");
     
    document.getElementById("row1IFrame").src = "/CaimSamenvatting.aspx";
    document.getElementById("row2IFrame").src = "/MegaSummary.aspx";
    document.getElementById("row3IFrame").src = "/MellowSummary.aspx";
    document.getElementById("row4IFrame").src = "/FunkadellickSummary.aspx";
    document.getElementById("row5IFrame").src = "/DontworrySummary.aspx";

    var xmlDoc = null;
    if (window.ActiveXObject) {// code for IE
        xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    }
    else if (document.implementation.createDocument) {// code for Mozilla, Firefox, Opera, etc.
        xmlDoc = document.implementation.createDocument("", "", null);
    }
    else {
        alert("Your browser cannot handle this script");
    }

    xmlDoc.async = false;
    xmlDoc.load("resources/XML/NumbersWatchlist.xml");

    document.getElementById("watchlist").src = "templates/templateImages/tabs_button1-selected.png";
    document.getElementById("alphafund").src = "templates/templateImages/tabs_button2.png";

    var watchListRow1Cells = document.getElementById("centertable").rows[1].cells;
    watchListRow1Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[0].childNodes[0].nodeValue;
    watchListRow1Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[0].childNodes[0].nodeValue;
    watchListRow1Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[0].childNodes[0].nodeValue + "%";
    watchListRow1Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[0].childNodes[0].nodeValue + "%";
    watchListRow1Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[0].childNodes[0].nodeValue + "%";

    var watchListRow2Cells = document.getElementById("centertable").rows[2].cells;
    watchListRow2Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[1].childNodes[0].nodeValue;
    watchListRow2Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[1].childNodes[0].nodeValue;
    watchListRow2Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[1].childNodes[0].nodeValue + "%";
    watchListRow2Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[1].childNodes[0].nodeValue + "%";
    watchListRow2Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[1].childNodes[0].nodeValue + "%";

    var watchListRow3Cells = document.getElementById("centertable").rows[3].cells;
    watchListRow3Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[2].childNodes[0].nodeValue;
    watchListRow3Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[2].childNodes[0].nodeValue;
    watchListRow3Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[2].childNodes[0].nodeValue + "%";
    watchListRow3Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[2].childNodes[0].nodeValue + "%";
    watchListRow3Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[2].childNodes[0].nodeValue + "%";

    var watchListRow4Cells = document.getElementById("centertable").rows[4].cells;
    watchListRow4Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[3].childNodes[0].nodeValue;
    watchListRow4Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[3].childNodes[0].nodeValue;
    watchListRow4Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[3].childNodes[0].nodeValue + "%";
    watchListRow4Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[3].childNodes[0].nodeValue + "%";
    watchListRow4Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[3].childNodes[0].nodeValue + "%";

    var watchListRow5Cells = document.getElementById("centertable").rows[5].cells;
    watchListRow5Cells[1].innerHTML = "<img src=" + "templates/templateImages/bullet1.gif" + " style=" + "padding:5px;float:left;" + ">" + "</img> " + xmlDoc.getElementsByTagName("fonds")[4].childNodes[0].nodeValue;
    watchListRow5Cells[3].innerHTML = xmlDoc.getElementsByTagName("datum")[4].childNodes[0].nodeValue;
    watchListRow5Cells[4].innerHTML = xmlDoc.getElementsByTagName("procentPerJaar")[4].childNodes[0].nodeValue + "%";
    watchListRow5Cells[5].innerHTML = xmlDoc.getElementsByTagName("procentSindsStart")[4].childNodes[0].nodeValue + "%";
    watchListRow5Cells[6].innerHTML = xmlDoc.getElementsByTagName("procentDitJaar")[4].childNodes[0].nodeValue + "%";
}*/


//function MouseOverDivs1(obj) {
//    document.getElementById("row1Div").style.display = "block";
//    obj.style.cursor = "pointer";
//    obj.style.cursor = "hand";
//}
//function MouseOverDivs2(obj) {
//    document.getElementById("row2Div").style.display = "block";
//    obj.style.cursor = "pointer";
//    obj.style.cursor = "hand";
//}
//function MouseOverDivs3(obj) {
//    document.getElementById("row3Div").style.display = "block";
//    obj.style.cursor = "pointer";
//    obj.style.cursor = "hand";
//}
//function MouseOverDivs4(obj) {
//    document.getElementById("row4Div").style.display = "block";
//    obj.style.cursor = "pointer";
//    obj.style.cursor = "hand";
//}
//function MouseOverDivs5(obj) {
//    document.getElementById("row5Div").style.display = "block";
//    obj.style.cursor = "pointer";
//    obj.style.cursor = "hand";
//}

//function MouseOutDivs1(obj) {
//    document.getElementById("row1Div").style.display = "none";
//    obj.style.cursor = "";
//}
//function MouseOutDivs2(obj) {
//    document.getElementById("row2Div").style.display = "none";   
//    obj.style.cursor = "";
//}
//function MouseOutDivs3(obj) {
//    document.getElementById("row3Div").style.display = "none";
//    obj.style.cursor = "";
//}
//function MouseOutDivs4(obj) {
//    document.getElementById("row4Div").style.display = "none";
//    obj.style.cursor = "";
//}
//function MouseOutDivs5(obj) {
//    document.getElementById("row5Div").style.display = "none";
//    obj.style.cursor = "";
//}

function LinkToPageAlpha0() {
    if (alphaFund) {
        window.open("/AlphaAllInOneInhoud.aspx", '_self');
    }
    else if (watchlist) {
        window.open("/CaimInhoud.aspx", '_self');
    }
    else {
        window.open("/Dutch1Inhoud.aspx", '_self');
    }
}
function LinkToPageAlpha1() {
    if (alphaFund) {
        window.open("/AlphaProInhoud.aspx", '_self');
    }
    else if (watchlist) {
        window.open("/MegaInhoud.aspx", '_self');
    }
    else {
        window.open("/Dutch2Inhoud.aspx", '_self');
    }
}
function LinkToPageAlpha2() {
    if (alphaFund) {
        window.open("/AlphaAlgoCFDInhoud.aspx", '_self');
    }
    else if (watchlist) {
        window.open("/MellowInhoud.aspx", '_self');
    }
    else {
        window.open("/Dutch3Inhoud.aspx", '_self');
    }
}
function LinkToPageAlpha3() {
    if (alphaFund) {
        window.open("/AlphaFutureInhoud.aspx", '_self');
    }
    else if (watchlist) {
        window.open("/FunkadellickInhoud.aspx", '_self');
    }
    else {
        window.open("/Dutch4Inhoud.aspx", '_self');
    }
}
function LinkToPageAlpha4() {
    if (alphaFund) {
        window.open("/AlphaGlobalInhoud.aspx", '_self');
    }
    else if (watchlist) {
        window.open("/DontworryInhoud.aspx", '_self');
    }
    else {
        window.open("/Dutch5Inhoud.aspx", '_self');
    }
}

//function LinkToPageAlpha1EN() {
//    if (alphaFund) {
//        window.open("/AlphaProContent.aspx", '_self');
//    }
//    else {
//        window.open("/MegaContent.aspx", '_self');
//    }
//}
//function LinkToPageAlpha2EN() {
//    if (alphaFund) {
//        window.open("/AlphaAlgoCFDContent.aspx", '_self');
//    }
//    else {
//        window.open("/MellowContent.aspx", '_self');
//    }
//}
//function LinkToPageAlpha3EN() {
//    if (alphaFund) {
//        window.open("/AlphaFutureContent.aspx", '_self');
//    }
//    else {
//        window.open("/FunkadellickContent.aspx", '_self');
//    }
//}
//function LinkToPageAlpha4EN() {
//    if (alphaFund) {
//        window.open("/AlphaGlobalContent.aspx", '_self');
//    }
//    else {
//        window.open("/DontworryContent.aspx", '_self');
//    }
//}                                                                                                                                                                         
