// get_hol_dates.js
//this get thes XML file info into arrays


// get the German dates

function hol_de()



{
objNodeList_de_a = xmlDoc_de.getElementsByTagName("n");
objNodeList_de_b = xmlDoc_de.getElementsByTagName("d");

// make the assumption that both are of equal length, if not the xml file is incorrect

var today_is = "";

    for (var i=0; i<objNodeList_de_a.length; i++) 

    {
 
    if (iso_today == objNodeList_de_b.item(i).firstChild.nodeValue)

// .text instead of .firstChild.nodeValue only works with IE
 
    {	today_is = objNodeList_de_a.item(i).firstChild.nodeValue;

    }
    }

    if (today_is == "")

    {	

	today_is_de = anc_start_de + this_day_de + anc_end;


    }

    else

    {

	today_is_de = anc_start_de + today_is + anc_end;

    }

}

// get the English dates

function hol_en()


{


objNodeList_en_a = xmlDoc_en.getElementsByTagName("n");
objNodeList_en_b = xmlDoc_en.getElementsByTagName("d");

// make the assumption that both are of equal length, if not the xml file is incorrect

var today_is = "";

    for (var i=0; i<objNodeList_en_a.length; i++) 

    {
 
    if (iso_today == objNodeList_en_b.item(i).firstChild.nodeValue)
 
    {	today_is = objNodeList_en_a.item(i).firstChild.nodeValue;

    }
    }

    if (today_is == "")

    {	

	today_is_en = anc_start_en + this_day_en + anc_end;


    }

    else

    {

	today_is_en = anc_start_en + today_is + anc_end;

    }

}

// Copyright © Mark Plews 2002 - 2005