var tocTab = new Array();
tocTab[0] = new Array ("0", "", "");
tocTab[1] = new Array ("1", "Introduction", "");
tocTab[2] = new Array ("1.1", "Establishment", "Stran3.htm");
tocTab[3] = new Array ("1.2", "Goals", "Stran2.htm");
tocTab[4] = new Array ("1.3", "Strategy", "Strategy.htm");
tocTab[5] = new Array ("1.4", "Rules", "Rules.Pdf");
tocTab[6] = new Array ("2", "What's new", "");
tocTab[7] = new Array ("2.1", "News", "Stran4.htm");
tocTab[8] = new Array ("2.2", "Newsletter", "Stran5.htm");
tocTab[9] = new Array ("3", "Members&Observers", "");
tocTab[10] = new Array ("3.1", "AMAE", "Stran6.htm");
tocTab[11] = new Array ("3.2", "ANAMA", "Stran7.htm");
tocTab[12] = new Array ("3.3", "BH MAC", "Stran8.htm");
tocTab[13] = new Array ("3.4", "CROMAC", "Stran9.htm");
tocTab[14] = new Array ("3.5", "CTDT Croatia", "Stran21.htm");
tocTab[15] = new Array ("3.6", "ITF", "Stran10.htm");
tocTab[16] = new Array ("3.7", "Montenegro", "Stran11.htm");
tocTab[17] = new Array ("3.8", "MAC Belgrade", "Stran12.htm");
tocTab[18] = new Array ("3.9", "MDD Center", "Stran19.htm");
tocTab[19] = new Array ("3.10", "UNMIK Kosovo", "Stran20.htm");
tocTab[20] = new Array ("3.11", "Protection and Rescue Directorate of the Republic of Macedonia", "Stran22.htm");
tocTab[21] = new Array ("4", "Meetings", "");
tocTab[22] = new Array ("4.1", "Schedule", "Stran13.htm");
tocTab[23] = new Array ("4.2", "Minutes", "Minutes.htm");
tocTab[24] = new Array ("5", "Regional Projects", "");
tocTab[25] = new Array ("5.1", "RCUD", "Stran15.htm");
tocTab[26] = new Array ("5.2", "MDD Center", "MDD.PDF");
tocTab[27] = new Array ("5.3", "Mechanical Equipment", "Equipment.Pdf");
tocTab[28] = new Array ("5.4", "Trainings", "Stran18.htm");
tocTab[29] = new Array ("5.5", "Other activities", "Other_Activities.htm");
tocTab[30] = new Array ("6", "GIS / Maps", "");
tocTab[31] = new Array ("6.1", "Select Map", "website/default.htm");
tocTab[32] = new Array ("6.2", "maXML Project", "maXML Project.pdf");
tocTab[33] = new Array ("6.3", "Other", "Minutes_GIS.html");
tocTab[34] = new Array ("7", "Links", "");  
var nCols = 2;

var secs;
var timerID = null;
var timerRunning = false;
var delay = 1000;

function InitializeTimer()
{
    // Set the length of the timer, in seconds
    secs = 5;
    StopTheClock();
    StartTheTimer();
}

function StopTheClock()
{
    if(timerRunning)
        clearTimeout(timerID);
    timerRunning = false;
}

function StartTheTimer()
{
    if (secs==0)
    {
        StopTheClock();
        // Here's where you put something useful that's
        // supposed to happen after the allotted time.
        // For example, you could display a message:
        reDisplay('0',true);
    }
    else
    {
        self.status = 'S.E.E.M.A.C.C.';
        secs = secs - 1;
        timerRunning = true;
        timerID = self.setTimeout("StartTheTimer()", delay);
    }
}
