// Dan_tsunamiweb.JS by oEo, 2005
// Latest revision: 2:35 PM 9/13/2005
// Labels of "blue Menu" choices

var mnuChoiceLabel = new Array();

mnuChoiceLabel [0]= "Latest";
//mnuChoiceLabel [1]= "Project Funding";
//mnuChoiceLabel [2]= "Maps and photos";
mnuChoiceLabel [1] =  "India";
mnuChoiceLabel [2] =  "Indonesia"; 
mnuChoiceLabel [3] =  "Malaysia"; 
mnuChoiceLabel [4] = "Maldives";
mnuChoiceLabel [5] =  "Myanmar";
mnuChoiceLabel [6] =  "Seychelles";
mnuChoiceLabel [7] =  "Somalia";
mnuChoiceLabel [8]=  "Sri Lanka";
mnuChoiceLabel [9]=  "Thailand";
mnuChoiceLabel [10]=  "News In Brief";
mnuChoiceLabel [11]=  "Feature stories";
mnuChoiceLabel [12]=  "Regional overview";
mnuChoiceLabel [13]=  "Expenditure tracking";
mnuChoiceLabel [14]=  "Contacts";
mnuChoiceLabel [15]=  "UNDP Home";

// Links for Menu choices in "blue Menu"

var mnuChoiceURL= new Array();

mnuChoiceURL[0] = "index.htm";
//mnuChoiceURL[1]= "javascript:location.reload(false)";
//mnuChoiceURL[2] = "javascript:location.reload(false)";
mnuChoiceURL[1] = "india.htm";
mnuChoiceURL[2] = "indonesia.htm";
mnuChoiceURL[3] = "malaysia.htm";
mnuChoiceURL[4] = "maldives.htm";
mnuChoiceURL[5] = "myanmar.htm";
mnuChoiceURL[6] = "seychelles.htm";
mnuChoiceURL[7] = "somalia.htm";
mnuChoiceURL[8] = "srilanka.htm";
mnuChoiceURL[9] = "thailand.htm";
mnuChoiceURL[10] = "inbrief.htm";
mnuChoiceURL[11] = "features.htm";
mnuChoiceURL[12] = "regcenter.htm";
mnuChoiceURL[13] = "http://ocha.unog.ch/ets/Default.aspx";
mnuChoiceURL[14] = "contacts.htm";
mnuChoiceURL[15] = "http://www.undp.org/";


// Which menu choices have a submenu

var withSubMenu = new Array();

withSubMenu [0] =   "";
withSubMenu [1] =   "";
withSubMenu [2] =   "";
withSubMenu [3] =   "";
withSubMenu [4] =   "";
withSubMenu [5] =   "";
withSubMenu [6] =   "";
withSubMenu [7] =   "";
withSubMenu [8] =   "";
withSubMenu [9] =   "";
withSubMenu [10] =  "";
withSubMenu [11] =  "";
withSubMenu [12] =  "";
withSubMenu [13] =  "";
withSubMenu [14] =  "";
withSubMenu [15] =  "";
withSubMenu [16] =  "";
withSubMenu [17] =  "";
withSubMenu [18] =  "";




// Submenus --------------------\

arMenu1 = new Array(
"",
"","",
"","",
"","",
"","",
"National Recovery Plan","javascript:alert('Under construction.')",0,
"Disarmament, Demobilization, Rehabilitation and Reintegration","javascript:alert('Under construction.')",0,
"Human Rights","javascript:alert('Under construction.')",0,
"Capacity building","javascript:alert('Under construction.')",0

);


arMenu2 = new Array(
"",
"","",
"","",
"","",
"","",
"CSSDCA","cssdca.html",0,
"NEPAD (Secretariat)","nepad.html",0
);
arMenu3 = new Array(
"",
"","",
"","",
"","",
"","",
"Chairperson","javascript:alert('Under construction.')",0,
"Commissioners","javascript:alert('Under construction.')",0,
"Directorates","javascript:alert('Under construction.')",0
);

// end of MDG_contentArrays.js

function pasteMenu() {

// width 225 or 235? A: 225 and less, that is, the width of the blue column	

var To = "<TABLE ALIGN=\"left\" BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" WIDTH=\"220\">"
var Tc = "</TABLE>";
var Ro = "<TR>";
var Rc = "</TR>";
var thisItem = "";
var allItems = "";
var thisURL = "";
var thisAnchor = ""; // <A>Link</A>
var hasSubMenu = 0;
var s_space = "&nbsp;"; 

for (it = 0; it < mnuChoiceLabel.length; it++)

{

thisURL = "HREF=\"";
//thisURL += " TARGET='_blank'"; 
//--open all pages in same window
thisURL += mnuChoiceURL[it] + "\"";



// ---Decide ----------------------------------------------------------\

if (withSubMenu [it] == "YES") {

hasSubMenu = hasSubMenu + 1;

//ATTENTION to next line: it can break or make the script!!! 4 double quotes ONLY
thisAnchor =  "<A CLASS=\"normalazul\"" + thisURL 
thisAnchor += " ONMOUSEOVER=\"popUp('elMenu" + hasSubMenu + "',event)\" ONMOUSEOUT="
thisAnchor += "\"popDown('elMenu" + hasSubMenu + "')\">" + mnuChoiceLabel[it] + "</A>"

}

else if (withSubMenu [it] == "")

{
thisAnchor =  "<A CLASS=\"normalazul\"" + thisURL + " STYLE=\""
thisAnchor += "\"TEXT-DECORATION: none\">" + s_space + mnuChoiceLabel[it] + "</A>"

}
// ----------------------------------------------------------------/


// ---Build -------------------------------------------------------------\


thisItem = "<TR><TD BGCOLOR=\"#6699CC\" CLASS=\"rColmenulabel\" HEIGHT=\"20\""
thisItem += " ONMOUSEOUT=\"onOut(this,'#6699CC');\" ONMOUSEOVER=\"onOver(this,'#CCCC66');\" "
thisItem += " WIDTH=\"235\">" + thisAnchor + "</TD></TR>"
thisItem += "<TR><TD HEIGHT=\"1\" WIDTH=\"235\" BGCOLOR=\"#ffffff\"></TD></TR>";

allItems = allItems + thisItem

}


document.write(To + allItems + Tc);


} // function