    /**
     * calendar is a script used to create dynamic calendars on the fly.
     * the script contains a lot of functions for date calculation and validation.
     * This is the danish language plugin - it should be used together with calendar.js
     *
     * @author Christian Hansen <chrsen@fundanemt.com>
     * @version 1.0
     * @copyright Christian Hansen.
     *
     * This script is a part of the Fundanemt CMS but is also distributed as
     * an independent script to be used anywhere you see fit.
     *
     * calendar is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation; either version 2 of the License, or
     * (at your option) any later version.
     *
     * calendar is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with Fundanemt CMS; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     **/

    /*=================================================================
    INITIAL SETTINGS
    =================================================================*/

        var lWeek = new Array(
            "Søndag",
            "Mandag",
            "Tirsdag",
            "Onsdag",
            "Torsdag",
            "Fredag",
            "Lørdag"
        );

        var sWeek = new Array(
            "S",
            "M",
            "T",
            "O",
            "T",
            "F",
            "L"
        );

        var lMonth = new Array(
            "Januar",
            "Februar",
            "Marts",
            "April",
            "Maj",
            "Juni",
            "Juli",
            "August",
            "September",
            "Oktober",
            "November",
            "December"
        );

        var sMonth = new Array(
            "Jan",
            "Feb",
            "Mar",
            "Apr",
            "Maj",
            "Jun",
            "Jul",
            "Aug",
            "Sep",
            "Okt",
            "Nov",
            "Dec"
        );


        //The week begins on a:
        var weekbegin = 1;       //monday
        //var weekbegin = 2;     //tuesday
        //var weekbegin = 3;     //wednesday
        //var weekbegin = 4;     //thursday
        //var weekbegin = 5;     //friday
        //var weekbegin = 6;     //saturday
        //var weekbegin = 0;     //sunday

        //the first week in a year begins:
        var firstweek = 1;       //the first week in a year is the
                                 //first week with thursday in it (iso8601).
        //var firstweek = 2;     //the first week in a year begins the first day in the year.

    /*=================================================================
    ISholiday RELATED FUNCTIONS
    =================================================================*/


         function isHoliDay_da(jd) {

            //get todays data
            var D = jd2date(jd);

            //create object with all holidays:
            var holidays = new Object();

            //first get the date of easter from which most holidays are derived
            var easter = getEaster(jd);

            //holidays that depend on easter
            holidays[easter-49] = "Fastelavn|calH";
            holidays[easter-7] = "Palmesøndag|calH";
            holidays[easter-3] = "Skærtorsdag|calH";
            holidays[easter-2] = "Langfredag|calH";
            holidays[easter] = "Påskedag|calH";
            holidays[easter+1] = "2. påskedag|calH";
            holidays[easter+26] = "Store bededag|calH";
            holidays[easter+39] = "Kristi Himmelfartsdag|calH";
            holidays[easter+49] = "Pinsedag|calH";
            holidays[easter+50] = "2. Pinsedag|calH";

            //add nonreligious "holidays"
            holidays[mkjd(D["year"],6,5,0,0,0)] = "Grundlovsdag|calH";


            //add christmas
            holidays[mkjd(D["year"],12,24)] = "Juleaften|calH";
            holidays[mkjd(D["year"],12,25)] = "1. juledag|calH";
            holidays[mkjd(D["year"],12,26)] = "2. juledag|calH";
            holidays[mkjd(D["year"],1,6)] = "Hellig 3 konger|calH";

            if(holidays[jd]) return holidays[jd];
            else return false;

         }//isholidayda
